Class: Api::Dimass::Operations::PurchaseOrder
- Defined in:
- app/services/api/dimass/operations/purchase_order.rb
Overview
Service object: purchase order.
Constant Summary collapse
- PATH =
Path.
"/papi/purchaseOrder/1.0".freeze
- NAMESPACE =
Namespace.
"pur".freeze
- WSDL =
Wsdl.
"v1/purchaseOrder".freeze
Instance Attribute Summary
Attributes inherited from Base
#api_key, #api_secret, #api_url, #endpoint_url, #namespace, #wsdl, #wsdl_content
Instance Method Summary collapse
- #create_purchase_order ⇒ Object
- #get_goods_receipt ⇒ Object
- #get_goods_receipts ⇒ Object
- #get_purchase_order ⇒ Object
- #get_purchase_orders ⇒ Object
-
#initialize ⇒ PurchaseOrder
constructor
A new instance of PurchaseOrder.
Methods inherited from Base
#authenticated_endpoint_url, #client, #nonce, #operations, #refresh_wsdl, #retrieve_wsdl_content, #signature_params, #timestamp, #wsdl_local_path
Constructor Details
#initialize ⇒ PurchaseOrder
Returns a new instance of PurchaseOrder.
12 13 14 |
# File 'app/services/api/dimass/operations/purchase_order.rb', line 12 def initialize super(PATH, NAMESPACE, WSDL) end |
Instance Method Details
#create_purchase_order ⇒ Object
23 |
# File 'app/services/api/dimass/operations/purchase_order.rb', line 23 def create_purchase_order; end |
#get_goods_receipt ⇒ Object
21 |
# File 'app/services/api/dimass/operations/purchase_order.rb', line 21 def get_goods_receipt; end |
#get_goods_receipts ⇒ Object
22 |
# File 'app/services/api/dimass/operations/purchase_order.rb', line 22 def get_goods_receipts; end |
#get_purchase_order ⇒ Object
20 |
# File 'app/services/api/dimass/operations/purchase_order.rb', line 20 def get_purchase_order; end |
#get_purchase_orders ⇒ Object
16 17 18 |
# File 'app/services/api/dimass/operations/purchase_order.rb', line 16 def get_purchase_orders client.call(:get_purchase_orders, message: { since: nil }) end |