Module: Unforlogistics::Core::ShipmentDispatchHandlings
- Included in:
- Api
- Defined in:
- lib/unforlogistics/core/shipment_dispatch_handlings.rb
Instance Method Summary collapse
- #cancel_shipment_dispatch_handling(id) ⇒ Object
- #create_shipment_dispatch_handling(attrs = {}) ⇒ Object
- #get_shipment_dispatch_handling(id) ⇒ Object
- #get_shipment_dispatch_handlings(filters = {}) ⇒ Object
Instance Method Details
#cancel_shipment_dispatch_handling(id) ⇒ Object
20 21 22 23 24 |
# File 'lib/unforlogistics/core/shipment_dispatch_handlings.rb', line 20 def cancel_shipment_dispatch_handling(id) response = put_request("/shipment_dispatch_handlings/#{id}/cancellation") get_persistance_response(response) end |
#create_shipment_dispatch_handling(attrs = {}) ⇒ Object
14 15 16 17 18 |
# File 'lib/unforlogistics/core/shipment_dispatch_handlings.rb', line 14 def create_shipment_dispatch_handling(attrs={}) response = post_request('/shipment_dispatch_handlings', attrs) get_persistance_response(response) end |
#get_shipment_dispatch_handling(id) ⇒ Object
10 11 12 |
# File 'lib/unforlogistics/core/shipment_dispatch_handlings.rb', line 10 def get_shipment_dispatch_handling(id) get_request("/shipment_dispatch_handlings/#{id}").body end |
#get_shipment_dispatch_handlings(filters = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/unforlogistics/core/shipment_dispatch_handlings.rb', line 4 def get_shipment_dispatch_handlings(filters={}) response = get_request('/shipment_dispatch_handlings', filters) get_paging_response(response) end |