Class: MWS::FulfillmentInboundShipment::Client
- Inherits:
-
Peddler::Client
- Object
- Peddler::Client
- MWS::FulfillmentInboundShipment::Client
- Defined in:
- lib/mws/fulfillment_inbound_shipment/client.rb
Overview
With the Fulfillment Inbound Shipment API, you can create and update inbound shipments of inventory in the Amazon Fulfillment Network. You can also request lists of inbound shipments or inbound shipment items based on criteria that you specify.
Instance Attribute Summary
Attributes inherited from Peddler::Client
#auth_token, #body, #marketplace_id, #merchant_id, #path
Instance Method Summary collapse
-
#confirm_transport_request(shipment_id) ⇒ Peddler::XMLParser
Confirms that you accept the Amazon-partnered shipping estimate and you request that the Amazon-partnered carrier ship your inbound shipment.
-
#create_inbound_shipment(shipment_id, inbound_shipment_header, opts = {}) ⇒ Peddler::XMLParser
Creates an inbound shipment.
-
#create_inbound_shipment_plan(ship_from_address, inbound_shipment_plan_request_items, opts = {}) ⇒ Peddler::XMLParser
Returns the information required to create an inbound shipment.
-
#estimate_transport_request(shipment_id) ⇒ Peddler::XMLParser
Requests an estimate of the shipping cost for an inbound shipment.
-
#get_bill_of_lading(shipment_id) ⇒ Peddler::XMLParser
Returns PDF document data for printing a bill of lading for an inbound shipment.
-
#get_package_labels(shipment_id, page_type, opts = {}) ⇒ Peddler::XMLParser
Returns PDF document data for printing package labels for an inbound shipment.
-
#get_service_status ⇒ Peddler::XMLParser
Gets the operational status of the API.
-
#get_transport_content(shipment_id) ⇒ Peddler::XMLParser
Returns current transportation information about an inbound shipment.
-
#list_inbound_shipment_items(opts = {}) ⇒ Peddler::XMLParser
Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame.
-
#list_inbound_shipment_items_by_next_token(next_token) ⇒ Peddler::XMLParser
Returns the next page of inbound shipment items.
-
#list_inbound_shipments(opts = {}) ⇒ Peddler::XMLParser
Returns a list of inbound shipments based on criteria that you specify.
-
#list_inbound_shipments_by_next_token(next_token) ⇒ Peddler::XMLParser
Returns the next page of inbound shipments.
-
#put_transport_content(shipment_id, is_partnered, shipment_type, transport_details) ⇒ Peddler::XMLParser
Sends transportation information to Amazon about an inbound shipment.
-
#update_inbound_shipment(shipment_id, inbound_shipment_header, opts = {}) ⇒ Peddler::XMLParser
Updates an existing inbound shipment.
-
#void_transport_request(shipment_id) ⇒ Peddler::XMLParser
Voids a previously-confirmed request to ship your inbound shipment using an Amazon-partnered carrier.
Methods inherited from Peddler::Client
#aws_endpoint, #defaults, #headers, inherited, #initialize, #marketplace, #on_error, #operation, parser, parser=, path, #run
Constructor Details
This class inherits a constructor from Peddler::Client
Instance Method Details
#confirm_transport_request(shipment_id) ⇒ Peddler::XMLParser
Confirms that you accept the Amazon-partnered shipping estimate and you request that the Amazon-partnered carrier ship your inbound shipment
115 116 117 118 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 115 def confirm_transport_request(shipment_id) operation('ConfirmTransportRequest').add('ShipmentId' => shipment_id) run end |
#create_inbound_shipment(shipment_id, inbound_shipment_header, opts = {}) ⇒ Peddler::XMLParser
Creates an inbound shipment
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 39 def create_inbound_shipment(shipment_id, inbound_shipment_header, opts = {}) operation('CreateInboundShipment') .add(opts.update( 'ShipmentId' => shipment_id, 'InboundShipmentHeader' => inbound_shipment_header )) .structure!('InboundShipmentItems', 'member') run end |
#create_inbound_shipment_plan(ship_from_address, inbound_shipment_plan_request_items, opts = {}) ⇒ Peddler::XMLParser
Returns the information required to create an inbound shipment
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 20 def create_inbound_shipment_plan(ship_from_address, inbound_shipment_plan_request_items, opts = {}) operation('CreateInboundShipmentPlan') .add(opts.update( 'ShipFromAddress' => ship_from_address, 'InboundShipmentPlanRequestItems' => inbound_shipment_plan_request_items )) .structure!('InboundShipmentPlanRequestItems', 'member') run end |
#estimate_transport_request(shipment_id) ⇒ Peddler::XMLParser
Requests an estimate of the shipping cost for an inbound shipment
94 95 96 97 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 94 def estimate_transport_request(shipment_id) operation('EstimateTransportRequest').add('ShipmentId' => shipment_id) run end |
#get_bill_of_lading(shipment_id) ⇒ Peddler::XMLParser
Returns PDF document data for printing a bill of lading for an inbound shipment
156 157 158 159 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 156 def get_bill_of_lading(shipment_id) operation('GetBillOfLading').add('ShipmentId' => shipment_id) run end |
#get_package_labels(shipment_id, page_type, opts = {}) ⇒ Peddler::XMLParser
Returns PDF document data for printing package labels for an inbound shipment
140 141 142 143 144 145 146 147 148 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 140 def get_package_labels(shipment_id, page_type, opts = {}) operation('GetPackageLabels') .add(opts.update( 'ShipmentId' => shipment_id, 'PageType' => page_type )) run end |
#get_service_status ⇒ Peddler::XMLParser
Gets the operational status of the API
221 222 223 224 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 221 def get_service_status operation('GetServiceStatus') run end |
#get_transport_content(shipment_id) ⇒ Peddler::XMLParser
Returns current transportation information about an inbound shipment
104 105 106 107 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 104 def get_transport_content(shipment_id) operation('GetTransportContent').add('ShipmentId' => shipment_id) run end |
#list_inbound_shipment_items(opts = {}) ⇒ Peddler::XMLParser
Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame
200 201 202 203 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 200 def list_inbound_shipment_items(opts = {}) operation('ListInboundShipmentItems').add(opts) run end |
#list_inbound_shipment_items_by_next_token(next_token) ⇒ Peddler::XMLParser
Returns the next page of inbound shipment items
210 211 212 213 214 215 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 210 def list_inbound_shipment_items_by_next_token(next_token) operation('ListInboundShipmentItemsByNextToken') .add('NextToken' => next_token) run end |
#list_inbound_shipments(opts = {}) ⇒ Peddler::XMLParser
Returns a list of inbound shipments based on criteria that you specify
170 171 172 173 174 175 176 177 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 170 def list_inbound_shipments(opts = {}) operation('ListInboundShipments') .add(opts) .structure!('ShipmentStatusList', 'member') .structure!('ShipmentIdList', 'member') run end |
#list_inbound_shipments_by_next_token(next_token) ⇒ Peddler::XMLParser
Returns the next page of inbound shipments
184 185 186 187 188 189 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 184 def list_inbound_shipments_by_next_token(next_token) operation('ListInboundShipmentsByNextToken') .add('NextToken' => next_token) run end |
#put_transport_content(shipment_id, is_partnered, shipment_type, transport_details) ⇒ Peddler::XMLParser
Sends transportation information to Amazon about an inbound shipment
77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 77 def put_transport_content(shipment_id, is_partnered, shipment_type, transport_details) operation('PutTransportContent') .add( 'ShipmentId' => shipment_id, 'IsPartnered' => is_partnered, 'ShipmentType' => shipment_type, 'TransportDetails' => transport_details ) run end |
#update_inbound_shipment(shipment_id, inbound_shipment_header, opts = {}) ⇒ Peddler::XMLParser
Updates an existing inbound shipment
58 59 60 61 62 63 64 65 66 67 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 58 def update_inbound_shipment(shipment_id, inbound_shipment_header, opts = {}) operation('UpdateInboundShipment') .add(opts.update( 'ShipmentId' => shipment_id, 'InboundShipmentHeader' => inbound_shipment_header )) .structure!('InboundShipmentItems', 'member') run end |
#void_transport_request(shipment_id) ⇒ Peddler::XMLParser
Voids a previously-confirmed request to ship your inbound shipment using an Amazon-partnered carrier
126 127 128 129 |
# File 'lib/mws/fulfillment_inbound_shipment/client.rb', line 126 def void_transport_request(shipment_id) operation('VoidTransportRequest').add('ShipmentId' => shipment_id) run end |