Module: Unforlogistics::Core::ShipmentDispatches

Included in:
Api
Defined in:
lib/unforlogistics/core/shipment_dispatches.rb

Instance Method Summary collapse

Instance Method Details

#cancel_shipment_dispatch(id) ⇒ Object



20
21
22
23
24
# File 'lib/unforlogistics/core/shipment_dispatches.rb', line 20

def cancel_shipment_dispatch(id)
  response = put_request("/shipment_dispatches/#{id}/cancellation")

  get_persistance_response(response)
end

#create_shipment_dispatch(attrs = {}) ⇒ Object



14
15
16
17
18
# File 'lib/unforlogistics/core/shipment_dispatches.rb', line 14

def create_shipment_dispatch(attrs={})
  response = post_request('/shipment_dispatches', attrs)

  get_persistance_response(response)
end

#get_shipment_dispatch(id) ⇒ Object



4
5
6
7
8
# File 'lib/unforlogistics/core/shipment_dispatches.rb', line 4

def get_shipment_dispatch(filters={})
  response = get_request('/shipment_dispatches', filters)

  get_paging_response(response)
end