class Veeqo::Shipment
Public Instance Methods
create(order_id:, allocation_id:, shipment:)
click to toggle source
# File lib/veeqo/shipment.rb, line 5 def create(order_id:, allocation_id:, shipment:) create_resource( order_id: order_id, allocation_id: allocation_id, shipment: reorganize_shipment(shipment), ) end
Private Instance Methods
end_point()
click to toggle source
# File lib/veeqo/shipment.rb, line 15 def end_point "shipments" end
reorganize_shipment(carrier_id:, notify_customer:, **attributes)
click to toggle source
# File lib/veeqo/shipment.rb, line 19 def reorganize_shipment(carrier_id:, notify_customer:, **attributes) { carrier_id: carrier_id, notify_customer: notify_customer, update_remote_order: attributes.delete(:update_remote_order), tracking_number_attributes: { tracking_number: attributes.delete(:tracking_number), }, } end