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