Module: Agris::Api::Inventory::Orders
- Included in:
- Client
- Defined in:
- lib/agris/api/inventory/orders.rb
Instance Method Summary collapse
- #create_order(order) ⇒ Object
- #order(order_location, order_number, order_type = 'S') ⇒ Object
- #orders(order_extracts) ⇒ Object
- #orders_changed_since(datetime, detail = false) ⇒ Object
Instance Method Details
#create_order(order) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/agris/api/inventory/orders.rb', line 6 def create_order(order) response = @request.( Gyoku.xml(xml: context_hash), 82_320, create_post_payload_xml(convert_order_to_details(order)) ) PostResult.new(response) end |
#order(order_location, order_number, order_type = 'S') ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/agris/api/inventory/orders.rb', line 16 def order(order_location, order_number, order_type = 'S') extract = SpecificOrderExtract.new( order_location, order_number, order_type ) orders([extract]) end |