Module: Spree::API::Client::Shipments

Included in:
Spree::API::Client
Defined in:
lib/spree-api-client/shipments.rb

Instance Method Summary collapse

Instance Method Details

#ship_shipment(order_number, shipment_id, options = {}) ⇒ Object



9
10
11
# File 'lib/spree-api-client/shipments.rb', line 9

def ship_shipment(order_number, shipment_id, options={})
  put("orders/#{order_number}/shipments/#{shipment_id}/ship", options)
end

#shipment_ready(order_number, shipment_id, options = {}) ⇒ Object



5
6
7
# File 'lib/spree-api-client/shipments.rb', line 5

def shipment_ready(order_number, shipment_id, options={})
  put("orders/#{order_number}/shipments/#{shipment_id}/ready", options)
end