Class: Api::Dimass::Operations::PurchaseOrder

Inherits:
Base
  • Object
show all
Defined in:
app/services/api/dimass/operations/purchase_order.rb

Constant Summary collapse

PATH =
"/papi/purchaseOrder/1.0"
NAMESPACE =
"pur"
WSDL =
"v1/purchaseOrder"

Instance Attribute Summary

Attributes inherited from Base

#api_key, #api_secret, #api_url, #endpoint_url, #namespace, #wsdl, #wsdl_content

Instance Method Summary collapse

Methods inherited from Base

#authenticated_endpoint_url, #client, #nonce, #operations, #refresh_wsdl, #retrieve_wsdl_content, #signature_params, #timestamp, #wsdl_local_path

Constructor Details

#initializePurchaseOrder

Returns a new instance of PurchaseOrder.



8
9
10
# File 'app/services/api/dimass/operations/purchase_order.rb', line 8

def initialize
  super(PATH, NAMESPACE, WSDL)
end

Instance Method Details

#create_purchase_orderObject



19
# File 'app/services/api/dimass/operations/purchase_order.rb', line 19

def create_purchase_order; end

#get_goods_receiptObject



17
# File 'app/services/api/dimass/operations/purchase_order.rb', line 17

def get_goods_receipt; end

#get_goods_receiptsObject



18
# File 'app/services/api/dimass/operations/purchase_order.rb', line 18

def get_goods_receipts; end

#get_purchase_orderObject



16
# File 'app/services/api/dimass/operations/purchase_order.rb', line 16

def get_purchase_order; end

#get_purchase_ordersObject



12
13
14
# File 'app/services/api/dimass/operations/purchase_order.rb', line 12

def get_purchase_orders
  client.call(:get_purchase_orders, message: { since: nil })
end