Class: AmzSpApi::FulfillmentInboundApiModel::FbaInboundApi
- Inherits:
-
Object
- Object
- AmzSpApi::FulfillmentInboundApiModel::FbaInboundApi
- Defined in:
- lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#confirm_preorder(shipment_id, need_by_date, marketplace_id, opts = {}) ⇒ ConfirmPreorderResponse
Returns information needed to confirm a shipment for pre-order.
-
#confirm_preorder_with_http_info(shipment_id, need_by_date, marketplace_id, opts = {}) ⇒ Array<(ConfirmPreorderResponse, Integer, Hash)>
Returns information needed to confirm a shipment for pre-order.
-
#confirm_transport(shipment_id, opts = {}) ⇒ ConfirmTransportResponse
Confirms that the seller accepts the Amazon-partnered shipping estimate, agrees to allow Amazon to charge their account for the shipping cost, and requests that the Amazon-partnered carrier ship the inbound shipment.
-
#confirm_transport_with_http_info(shipment_id, opts = {}) ⇒ Array<(ConfirmTransportResponse, Integer, Hash)>
Confirms that the seller accepts the Amazon-partnered shipping estimate, agrees to allow Amazon to charge their account for the shipping cost, and requests that the Amazon-partnered carrier ship the inbound shipment.
-
#create_inbound_shipment(body, shipment_id, opts = {}) ⇒ InboundShipmentResponse
Returns a new inbound shipment based on the specified shipmentId that was returned by the createInboundShipmentPlan operation.
-
#create_inbound_shipment_plan(body, opts = {}) ⇒ CreateInboundShipmentPlanResponse
Returns one or more inbound shipment plans, which provide the information you need to create one or more inbound shipments for a set of items that you specify.
-
#create_inbound_shipment_plan_with_http_info(body, opts = {}) ⇒ Array<(CreateInboundShipmentPlanResponse, Integer, Hash)>
Returns one or more inbound shipment plans, which provide the information you need to create one or more inbound shipments for a set of items that you specify.
-
#create_inbound_shipment_with_http_info(body, shipment_id, opts = {}) ⇒ Array<(InboundShipmentResponse, Integer, Hash)>
Returns a new inbound shipment based on the specified shipmentId that was returned by the createInboundShipmentPlan operation.
-
#estimate_transport(shipment_id, opts = {}) ⇒ EstimateTransportResponse
Initiates the process of estimating the shipping cost for an inbound shipment by an Amazon-partnered carrier.
-
#estimate_transport_with_http_info(shipment_id, opts = {}) ⇒ Array<(EstimateTransportResponse, Integer, Hash)>
Initiates the process of estimating the shipping cost for an inbound shipment by an Amazon-partnered carrier.
-
#get_bill_of_lading(shipment_id, opts = {}) ⇒ GetBillOfLadingResponse
Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment.
-
#get_bill_of_lading_with_http_info(shipment_id, opts = {}) ⇒ Array<(GetBillOfLadingResponse, Integer, Hash)>
Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment.
-
#get_inbound_guidance(marketplace_id, opts = {}) ⇒ GetInboundGuidanceResponse
Returns information that lets a seller know if Amazon recommends sending an item to a given marketplace.
-
#get_inbound_guidance_with_http_info(marketplace_id, opts = {}) ⇒ Array<(GetInboundGuidanceResponse, Integer, Hash)>
Returns information that lets a seller know if Amazon recommends sending an item to a given marketplace.
-
#get_labels(shipment_id, page_type, label_type, opts = {}) ⇒ GetLabelsResponse
Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center.
-
#get_labels_with_http_info(shipment_id, page_type, label_type, opts = {}) ⇒ Array<(GetLabelsResponse, Integer, Hash)>
Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center.
-
#get_preorder_info(shipment_id, marketplace_id, opts = {}) ⇒ GetPreorderInfoResponse
Returns pre-order information, including dates, that a seller needs before confirming a shipment for pre-order.
-
#get_preorder_info_with_http_info(shipment_id, marketplace_id, opts = {}) ⇒ Array<(GetPreorderInfoResponse, Integer, Hash)>
Returns pre-order information, including dates, that a seller needs before confirming a shipment for pre-order.
-
#get_prep_instructions(ship_to_country_code, opts = {}) ⇒ GetPrepInstructionsResponse
Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon’s fulfillment network.
-
#get_prep_instructions_with_http_info(ship_to_country_code, opts = {}) ⇒ Array<(GetPrepInstructionsResponse, Integer, Hash)>
Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon's fulfillment network.
-
#get_shipment_items(query_type, marketplace_id, opts = {}) ⇒ GetShipmentItemsResponse
Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame.
-
#get_shipment_items_by_shipment_id(shipment_id, marketplace_id, opts = {}) ⇒ GetShipmentItemsResponse
Returns a list of items in a specified inbound shipment.
-
#get_shipment_items_by_shipment_id_with_http_info(shipment_id, marketplace_id, opts = {}) ⇒ Array<(GetShipmentItemsResponse, Integer, Hash)>
Returns a list of items in a specified inbound shipment.
-
#get_shipment_items_with_http_info(query_type, marketplace_id, opts = {}) ⇒ Array<(GetShipmentItemsResponse, Integer, Hash)>
Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame.
-
#get_shipments(query_type, marketplace_id, opts = {}) ⇒ GetShipmentsResponse
Returns a list of inbound shipments based on criteria that you specify.
-
#get_shipments_with_http_info(query_type, marketplace_id, opts = {}) ⇒ Array<(GetShipmentsResponse, Integer, Hash)>
Returns a list of inbound shipments based on criteria that you specify.
-
#get_transport_details(shipment_id, opts = {}) ⇒ GetTransportDetailsResponse
Returns current transportation information about an inbound shipment.
-
#get_transport_details_with_http_info(shipment_id, opts = {}) ⇒ Array<(GetTransportDetailsResponse, Integer, Hash)>
Returns current transportation information about an inbound shipment.
-
#initialize(api_client = ApiClient.default) ⇒ FbaInboundApi
constructor
A new instance of FbaInboundApi.
-
#put_transport_details(body, shipment_id, opts = {}) ⇒ PutTransportDetailsResponse
Sends transportation information to Amazon about an inbound shipment.
-
#put_transport_details_with_http_info(body, shipment_id, opts = {}) ⇒ Array<(PutTransportDetailsResponse, Integer, Hash)>
Sends transportation information to Amazon about an inbound shipment.
-
#update_inbound_shipment(body, shipment_id, opts = {}) ⇒ InboundShipmentResponse
Updates or removes items from the inbound shipment identified by the specified shipment identifier.
-
#update_inbound_shipment_with_http_info(body, shipment_id, opts = {}) ⇒ Array<(InboundShipmentResponse, Integer, Hash)>
Updates or removes items from the inbound shipment identified by the specified shipment identifier.
-
#void_transport(shipment_id, opts = {}) ⇒ VoidTransportResponse
Cancels a previously-confirmed request to ship an inbound shipment using an Amazon-partnered carrier.
-
#void_transport_with_http_info(shipment_id, opts = {}) ⇒ Array<(VoidTransportResponse, Integer, Hash)>
Cancels a previously-confirmed request to ship an inbound shipment using an Amazon-partnered carrier.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ FbaInboundApi
Returns a new instance of FbaInboundApi.
16 17 18 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 16 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
14 15 16 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 14 def api_client @api_client end |
Instance Method Details
#confirm_preorder(shipment_id, need_by_date, marketplace_id, opts = {}) ⇒ ConfirmPreorderResponse
Returns information needed to confirm a shipment for pre-order. Call this operation after calling the getPreorderInfo operation to get the NeedByDate value and other pre-order information about the shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
25 26 27 28 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 25 def confirm_preorder(shipment_id, need_by_date, marketplace_id, opts = {}) data, _status_code, _headers = confirm_preorder_with_http_info(shipment_id, need_by_date, marketplace_id, opts) data end |
#confirm_preorder_with_http_info(shipment_id, need_by_date, marketplace_id, opts = {}) ⇒ Array<(ConfirmPreorderResponse, Integer, Hash)>
Returns information needed to confirm a shipment for pre-order. Call this operation after calling the getPreorderInfo operation to get the NeedByDate value and other pre-order information about the shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 36 def confirm_preorder_with_http_info(shipment_id, need_by_date, marketplace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.confirm_preorder ...' end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.confirm_preorder" end # verify the required parameter 'need_by_date' is set if @api_client.config.client_side_validation && need_by_date.nil? fail ArgumentError, "Missing the required parameter 'need_by_date' when calling FbaInboundApi.confirm_preorder" end # verify the required parameter 'marketplace_id' is set if @api_client.config.client_side_validation && marketplace_id.nil? fail ArgumentError, "Missing the required parameter 'marketplace_id' when calling FbaInboundApi.confirm_preorder" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}/preorder/confirm'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'NeedByDate'] = need_by_date query_params[:'MarketplaceId'] = marketplace_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'ConfirmPreorderResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#confirm_preorder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#confirm_transport(shipment_id, opts = {}) ⇒ ConfirmTransportResponse
Confirms that the seller accepts the Amazon-partnered shipping estimate, agrees to allow Amazon to charge their account for the shipping cost, and requests that the Amazon-partnered carrier ship the inbound shipment. Prior to calling the confirmTransport operation, you should call the getTransportDetails operation to get the Amazon-partnered shipping estimate. Important: After confirming the transportation request, if the seller decides that they do not want the Amazon-partnered carrier to ship the inbound shipment, you can call the voidTransport operation to cancel the transportation request. Note that for a Small Parcel shipment, the seller has 24 hours after confirming a transportation request to void the transportation request. For a Less Than Truckload/Full Truckload (LTL/FTL) shipment, the seller has one hour after confirming a transportation request to void it. After the grace period has expired the seller’s account will be charged for the shipping cost. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
91 92 93 94 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 91 def confirm_transport(shipment_id, opts = {}) data, _status_code, _headers = confirm_transport_with_http_info(shipment_id, opts) data end |
#confirm_transport_with_http_info(shipment_id, opts = {}) ⇒ Array<(ConfirmTransportResponse, Integer, Hash)>
Confirms that the seller accepts the Amazon-partnered shipping estimate, agrees to allow Amazon to charge their account for the shipping cost, and requests that the Amazon-partnered carrier ship the inbound shipment. Prior to calling the confirmTransport operation, you should call the getTransportDetails operation to get the Amazon-partnered shipping estimate. Important: After confirming the transportation request, if the seller decides that they do not want the Amazon-partnered carrier to ship the inbound shipment, you can call the voidTransport operation to cancel the transportation request. Note that for a Small Parcel shipment, the seller has 24 hours after confirming a transportation request to void the transportation request. For a Less Than Truckload/Full Truckload (LTL/FTL) shipment, the seller has one hour after confirming a transportation request to void it. After the grace period has expired the seller's account will be charged for the shipping cost. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 100 def confirm_transport_with_http_info(shipment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.confirm_transport ...' end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.confirm_transport" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}/transport/confirm'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'ConfirmTransportResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#confirm_transport\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_inbound_shipment(body, shipment_id, opts = {}) ⇒ InboundShipmentResponse
Returns a new inbound shipment based on the specified shipmentId that was returned by the createInboundShipmentPlan operation. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
146 147 148 149 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 146 def create_inbound_shipment(body, shipment_id, opts = {}) data, _status_code, _headers = create_inbound_shipment_with_http_info(body, shipment_id, opts) data end |
#create_inbound_shipment_plan(body, opts = {}) ⇒ CreateInboundShipmentPlanResponse
Returns one or more inbound shipment plans, which provide the information you need to create one or more inbound shipments for a set of items that you specify. Multiple inbound shipment plans might be required so that items can be optimally placed in Amazon’s fulfillment network—for example, positioning inventory closer to the customer. Alternatively, two inbound shipment plans might be created with the same Amazon fulfillment center destination if the two shipment plans require different processing—for example, items that require labels must be shipped separately from stickerless, commingled inventory. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
207 208 209 210 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 207 def create_inbound_shipment_plan(body, opts = {}) data, _status_code, _headers = create_inbound_shipment_plan_with_http_info(body, opts) data end |
#create_inbound_shipment_plan_with_http_info(body, opts = {}) ⇒ Array<(CreateInboundShipmentPlanResponse, Integer, Hash)>
Returns one or more inbound shipment plans, which provide the information you need to create one or more inbound shipments for a set of items that you specify. Multiple inbound shipment plans might be required so that items can be optimally placed in Amazon's fulfillment network—for example, positioning inventory closer to the customer. Alternatively, two inbound shipment plans might be created with the same Amazon fulfillment center destination if the two shipment plans require different processing—for example, items that require labels must be shipped separately from stickerless, commingled inventory. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 216 def create_inbound_shipment_plan_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.create_inbound_shipment_plan ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling FbaInboundApi.create_inbound_shipment_plan" end # resource path local_var_path = '/fba/inbound/v0/plans' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] || 'CreateInboundShipmentPlanResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#create_inbound_shipment_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_inbound_shipment_with_http_info(body, shipment_id, opts = {}) ⇒ Array<(InboundShipmentResponse, Integer, Hash)>
Returns a new inbound shipment based on the specified shipmentId that was returned by the createInboundShipmentPlan operation. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 156 def create_inbound_shipment_with_http_info(body, shipment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.create_inbound_shipment ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling FbaInboundApi.create_inbound_shipment" end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.create_inbound_shipment" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] || 'InboundShipmentResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#create_inbound_shipment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#estimate_transport(shipment_id, opts = {}) ⇒ EstimateTransportResponse
Initiates the process of estimating the shipping cost for an inbound shipment by an Amazon-partnered carrier. Prior to calling the estimateTransport operation, you must call the putTransportDetails operation to provide Amazon with the transportation information for the inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
263 264 265 266 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 263 def estimate_transport(shipment_id, opts = {}) data, _status_code, _headers = estimate_transport_with_http_info(shipment_id, opts) data end |
#estimate_transport_with_http_info(shipment_id, opts = {}) ⇒ Array<(EstimateTransportResponse, Integer, Hash)>
Initiates the process of estimating the shipping cost for an inbound shipment by an Amazon-partnered carrier. Prior to calling the estimateTransport operation, you must call the putTransportDetails operation to provide Amazon with the transportation information for the inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 272 def estimate_transport_with_http_info(shipment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.estimate_transport ...' end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.estimate_transport" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}/transport/estimate'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'EstimateTransportResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#estimate_transport\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_bill_of_lading(shipment_id, opts = {}) ⇒ GetBillOfLadingResponse
Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
317 318 319 320 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 317 def get_bill_of_lading(shipment_id, opts = {}) data, _status_code, _headers = get_bill_of_lading_with_http_info(shipment_id, opts) data end |
#get_bill_of_lading_with_http_info(shipment_id, opts = {}) ⇒ Array<(GetBillOfLadingResponse, Integer, Hash)>
Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 326 def get_bill_of_lading_with_http_info(shipment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.get_bill_of_lading ...' end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.get_bill_of_lading" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}/billOfLading'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetBillOfLadingResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#get_bill_of_lading\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_inbound_guidance(marketplace_id, opts = {}) ⇒ GetInboundGuidanceResponse
Returns information that lets a seller know if Amazon recommends sending an item to a given marketplace. In some cases, Amazon provides guidance for why a given SellerSKU or ASIN is not recommended for shipment to Amazon’s fulfillment network. Sellers may still ship items that are not recommended, at their discretion. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
373 374 375 376 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 373 def get_inbound_guidance(marketplace_id, opts = {}) data, _status_code, _headers = get_inbound_guidance_with_http_info(marketplace_id, opts) data end |
#get_inbound_guidance_with_http_info(marketplace_id, opts = {}) ⇒ Array<(GetInboundGuidanceResponse, Integer, Hash)>
Returns information that lets a seller know if Amazon recommends sending an item to a given marketplace. In some cases, Amazon provides guidance for why a given SellerSKU or ASIN is not recommended for shipment to Amazon's fulfillment network. Sellers may still ship items that are not recommended, at their discretion. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 384 def get_inbound_guidance_with_http_info(marketplace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.get_inbound_guidance ...' end # verify the required parameter 'marketplace_id' is set if @api_client.config.client_side_validation && marketplace_id.nil? fail ArgumentError, "Missing the required parameter 'marketplace_id' when calling FbaInboundApi.get_inbound_guidance" end # resource path local_var_path = '/fba/inbound/v0/itemsGuidance' # query parameters query_params = opts[:query_params] || {} query_params[:'MarketplaceId'] = marketplace_id query_params[:'SellerSKUList'] = @api_client.build_collection_param(opts[:'seller_sku_list'], :csv) if !opts[:'seller_sku_list'].nil? query_params[:'ASINList'] = @api_client.build_collection_param(opts[:'asin_list'], :csv) if !opts[:'asin_list'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetInboundGuidanceResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#get_inbound_guidance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_labels(shipment_id, page_type, label_type, opts = {}) ⇒ GetLabelsResponse
Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
439 440 441 442 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 439 def get_labels(shipment_id, page_type, label_type, opts = {}) data, _status_code, _headers = get_labels_with_http_info(shipment_id, page_type, label_type, opts) data end |
#get_labels_with_http_info(shipment_id, page_type, label_type, opts = {}) ⇒ Array<(GetLabelsResponse, Integer, Hash)>
Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 455 def get_labels_with_http_info(shipment_id, page_type, label_type, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.get_labels ...' end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.get_labels" end # verify the required parameter 'page_type' is set if @api_client.config.client_side_validation && page_type.nil? fail ArgumentError, "Missing the required parameter 'page_type' when calling FbaInboundApi.get_labels" end # verify enum value if @api_client.config.client_side_validation && !['PackageLabel_Letter_2', 'PackageLabel_Letter_4', 'PackageLabel_Letter_6', 'PackageLabel_Letter_6_CarrierLeft', 'PackageLabel_A4_2', 'PackageLabel_A4_4', 'PackageLabel_Plain_Paper', 'PackageLabel_Plain_Paper_CarrierBottom', 'PackageLabel_Thermal', 'PackageLabel_Thermal_Unified', 'PackageLabel_Thermal_NonPCP', 'PackageLabel_Thermal_No_Carrier_Rotation'].include?(page_type) fail ArgumentError, "invalid value for 'page_type', must be one of PackageLabel_Letter_2, PackageLabel_Letter_4, PackageLabel_Letter_6, PackageLabel_Letter_6_CarrierLeft, PackageLabel_A4_2, PackageLabel_A4_4, PackageLabel_Plain_Paper, PackageLabel_Plain_Paper_CarrierBottom, PackageLabel_Thermal, PackageLabel_Thermal_Unified, PackageLabel_Thermal_NonPCP, PackageLabel_Thermal_No_Carrier_Rotation" end # verify the required parameter 'label_type' is set if @api_client.config.client_side_validation && label_type.nil? fail ArgumentError, "Missing the required parameter 'label_type' when calling FbaInboundApi.get_labels" end # verify enum value if @api_client.config.client_side_validation && !['BARCODE_2D', 'UNIQUE', 'PALLET'].include?(label_type) fail ArgumentError, "invalid value for 'label_type', must be one of BARCODE_2D, UNIQUE, PALLET" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}/labels'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'PageType'] = page_type query_params[:'LabelType'] = label_type query_params[:'NumberOfPackages'] = opts[:'number_of_packages'] if !opts[:'number_of_packages'].nil? query_params[:'PackageLabelsToPrint'] = @api_client.build_collection_param(opts[:'package_labels_to_print'], :csv) if !opts[:'package_labels_to_print'].nil? query_params[:'NumberOfPallets'] = opts[:'number_of_pallets'] if !opts[:'number_of_pallets'].nil? query_params[:'PageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'PageStartIndex'] = opts[:'page_start_index'] if !opts[:'page_start_index'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetLabelsResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#get_labels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_preorder_info(shipment_id, marketplace_id, opts = {}) ⇒ GetPreorderInfoResponse
Returns pre-order information, including dates, that a seller needs before confirming a shipment for pre-order. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
524 525 526 527 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 524 def get_preorder_info(shipment_id, marketplace_id, opts = {}) data, _status_code, _headers = get_preorder_info_with_http_info(shipment_id, marketplace_id, opts) data end |
#get_preorder_info_with_http_info(shipment_id, marketplace_id, opts = {}) ⇒ Array<(GetPreorderInfoResponse, Integer, Hash)>
Returns pre-order information, including dates, that a seller needs before confirming a shipment for pre-order. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 534 def get_preorder_info_with_http_info(shipment_id, marketplace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.get_preorder_info ...' end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.get_preorder_info" end # verify the required parameter 'marketplace_id' is set if @api_client.config.client_side_validation && marketplace_id.nil? fail ArgumentError, "Missing the required parameter 'marketplace_id' when calling FbaInboundApi.get_preorder_info" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}/preorder'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'MarketplaceId'] = marketplace_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetPreorderInfoResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#get_preorder_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_prep_instructions(ship_to_country_code, opts = {}) ⇒ GetPrepInstructionsResponse
Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon’s fulfillment network. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
586 587 588 589 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 586 def get_prep_instructions(ship_to_country_code, opts = {}) data, _status_code, _headers = get_prep_instructions_with_http_info(ship_to_country_code, opts) data end |
#get_prep_instructions_with_http_info(ship_to_country_code, opts = {}) ⇒ Array<(GetPrepInstructionsResponse, Integer, Hash)>
Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon's fulfillment network. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 597 def get_prep_instructions_with_http_info(ship_to_country_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.get_prep_instructions ...' end # verify the required parameter 'ship_to_country_code' is set if @api_client.config.client_side_validation && ship_to_country_code.nil? fail ArgumentError, "Missing the required parameter 'ship_to_country_code' when calling FbaInboundApi.get_prep_instructions" end # resource path local_var_path = '/fba/inbound/v0/prepInstructions' # query parameters query_params = opts[:query_params] || {} query_params[:'ShipToCountryCode'] = ship_to_country_code query_params[:'SellerSKUList'] = @api_client.build_collection_param(opts[:'seller_sku_list'], :csv) if !opts[:'seller_sku_list'].nil? query_params[:'ASINList'] = @api_client.build_collection_param(opts[:'asin_list'], :csv) if !opts[:'asin_list'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetPrepInstructionsResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#get_prep_instructions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_shipment_items(query_type, marketplace_id, opts = {}) ⇒ GetShipmentItemsResponse
Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
649 650 651 652 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 649 def get_shipment_items(query_type, marketplace_id, opts = {}) data, _status_code, _headers = get_shipment_items_with_http_info(query_type, marketplace_id, opts) data end |
#get_shipment_items_by_shipment_id(shipment_id, marketplace_id, opts = {}) ⇒ GetShipmentItemsResponse
Returns a list of items in a specified inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
721 722 723 724 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 721 def get_shipment_items_by_shipment_id(shipment_id, marketplace_id, opts = {}) data, _status_code, _headers = get_shipment_items_by_shipment_id_with_http_info(shipment_id, marketplace_id, opts) data end |
#get_shipment_items_by_shipment_id_with_http_info(shipment_id, marketplace_id, opts = {}) ⇒ Array<(GetShipmentItemsResponse, Integer, Hash)>
Returns a list of items in a specified inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 731 def get_shipment_items_by_shipment_id_with_http_info(shipment_id, marketplace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.get_shipment_items_by_shipment_id ...' end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.get_shipment_items_by_shipment_id" end # verify the required parameter 'marketplace_id' is set if @api_client.config.client_side_validation && marketplace_id.nil? fail ArgumentError, "Missing the required parameter 'marketplace_id' when calling FbaInboundApi.get_shipment_items_by_shipment_id" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}/items'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'MarketplaceId'] = marketplace_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetShipmentItemsResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#get_shipment_items_by_shipment_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_shipment_items_with_http_info(query_type, marketplace_id, opts = {}) ⇒ Array<(GetShipmentItemsResponse, Integer, Hash)>
Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 662 def get_shipment_items_with_http_info(query_type, marketplace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.get_shipment_items ...' end # verify the required parameter 'query_type' is set if @api_client.config.client_side_validation && query_type.nil? fail ArgumentError, "Missing the required parameter 'query_type' when calling FbaInboundApi.get_shipment_items" end # verify enum value if @api_client.config.client_side_validation && !['DATE_RANGE', 'NEXT_TOKEN'].include?(query_type) fail ArgumentError, "invalid value for 'query_type', must be one of DATE_RANGE, NEXT_TOKEN" end # verify the required parameter 'marketplace_id' is set if @api_client.config.client_side_validation && marketplace_id.nil? fail ArgumentError, "Missing the required parameter 'marketplace_id' when calling FbaInboundApi.get_shipment_items" end # resource path local_var_path = '/fba/inbound/v0/shipmentItems' # query parameters query_params = opts[:query_params] || {} query_params[:'QueryType'] = query_type query_params[:'MarketplaceId'] = marketplace_id query_params[:'LastUpdatedAfter'] = opts[:'last_updated_after'] if !opts[:'last_updated_after'].nil? query_params[:'LastUpdatedBefore'] = opts[:'last_updated_before'] if !opts[:'last_updated_before'].nil? query_params[:'NextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetShipmentItemsResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#get_shipment_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_shipments(query_type, marketplace_id, opts = {}) ⇒ GetShipmentsResponse
Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
787 788 789 790 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 787 def get_shipments(query_type, marketplace_id, opts = {}) data, _status_code, _headers = get_shipments_with_http_info(query_type, marketplace_id, opts) data end |
#get_shipments_with_http_info(query_type, marketplace_id, opts = {}) ⇒ Array<(GetShipmentsResponse, Integer, Hash)>
Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 802 def get_shipments_with_http_info(query_type, marketplace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.get_shipments ...' end # verify the required parameter 'query_type' is set if @api_client.config.client_side_validation && query_type.nil? fail ArgumentError, "Missing the required parameter 'query_type' when calling FbaInboundApi.get_shipments" end # verify enum value if @api_client.config.client_side_validation && !['SHIPMENT', 'DATE_RANGE', 'NEXT_TOKEN'].include?(query_type) fail ArgumentError, "invalid value for 'query_type', must be one of SHIPMENT, DATE_RANGE, NEXT_TOKEN" end # verify the required parameter 'marketplace_id' is set if @api_client.config.client_side_validation && marketplace_id.nil? fail ArgumentError, "Missing the required parameter 'marketplace_id' when calling FbaInboundApi.get_shipments" end if @api_client.config.client_side_validation && opts[:'shipment_status_list'] && !opts[:'shipment_status_list'].all? { |item| ['WORKING', 'SHIPPED', 'RECEIVING', 'CANCELLED', 'DELETED', 'CLOSED', 'ERROR', 'IN_TRANSIT', 'DELIVERED', 'CHECKED_IN'].include?(item) } fail ArgumentError, 'invalid value for "shipment_status_list", must include one of WORKING, SHIPPED, RECEIVING, CANCELLED, DELETED, CLOSED, ERROR, IN_TRANSIT, DELIVERED, CHECKED_IN' end # resource path local_var_path = '/fba/inbound/v0/shipments' # query parameters query_params = opts[:query_params] || {} query_params[:'QueryType'] = query_type query_params[:'MarketplaceId'] = marketplace_id query_params[:'ShipmentStatusList'] = @api_client.build_collection_param(opts[:'shipment_status_list'], :csv) if !opts[:'shipment_status_list'].nil? query_params[:'ShipmentIdList'] = @api_client.build_collection_param(opts[:'shipment_id_list'], :csv) if !opts[:'shipment_id_list'].nil? query_params[:'LastUpdatedAfter'] = opts[:'last_updated_after'] if !opts[:'last_updated_after'].nil? query_params[:'LastUpdatedBefore'] = opts[:'last_updated_before'] if !opts[:'last_updated_before'].nil? query_params[:'NextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetShipmentsResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#get_shipments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_transport_details(shipment_id, opts = {}) ⇒ GetTransportDetailsResponse
Returns current transportation information about an inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
865 866 867 868 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 865 def get_transport_details(shipment_id, opts = {}) data, _status_code, _headers = get_transport_details_with_http_info(shipment_id, opts) data end |
#get_transport_details_with_http_info(shipment_id, opts = {}) ⇒ Array<(GetTransportDetailsResponse, Integer, Hash)>
Returns current transportation information about an inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 874 def get_transport_details_with_http_info(shipment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.get_transport_details ...' end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.get_transport_details" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}/transport'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetTransportDetailsResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#get_transport_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_transport_details(body, shipment_id, opts = {}) ⇒ PutTransportDetailsResponse
Sends transportation information to Amazon about an inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
920 921 922 923 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 920 def put_transport_details(body, shipment_id, opts = {}) data, _status_code, _headers = put_transport_details_with_http_info(body, shipment_id, opts) data end |
#put_transport_details_with_http_info(body, shipment_id, opts = {}) ⇒ Array<(PutTransportDetailsResponse, Integer, Hash)>
Sends transportation information to Amazon about an inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 930 def put_transport_details_with_http_info(body, shipment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.put_transport_details ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling FbaInboundApi.put_transport_details" end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.put_transport_details" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}/transport'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] || 'PutTransportDetailsResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#put_transport_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_inbound_shipment(body, shipment_id, opts = {}) ⇒ InboundShipmentResponse
Updates or removes items from the inbound shipment identified by the specified shipment identifier. Adding new items is not supported. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
982 983 984 985 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 982 def update_inbound_shipment(body, shipment_id, opts = {}) data, _status_code, _headers = update_inbound_shipment_with_http_info(body, shipment_id, opts) data end |
#update_inbound_shipment_with_http_info(body, shipment_id, opts = {}) ⇒ Array<(InboundShipmentResponse, Integer, Hash)>
Updates or removes items from the inbound shipment identified by the specified shipment identifier. Adding new items is not supported. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 992 def update_inbound_shipment_with_http_info(body, shipment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.update_inbound_shipment ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling FbaInboundApi.update_inbound_shipment" end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.update_inbound_shipment" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] || 'InboundShipmentResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#update_inbound_shipment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#void_transport(shipment_id, opts = {}) ⇒ VoidTransportResponse
Cancels a previously-confirmed request to ship an inbound shipment using an Amazon-partnered carrier. To be successful, you must call this operation before the VoidDeadline date that is returned by the getTransportDetails operation. Important: The VoidDeadline date is 24 hours after you confirm a Small Parcel shipment transportation request or one hour after you confirm a Less Than Truckload/Full Truckload (LTL/FTL) shipment transportation request. After the void deadline passes, your account will be charged for the shipping cost. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
1043 1044 1045 1046 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 1043 def void_transport(shipment_id, opts = {}) data, _status_code, _headers = void_transport_with_http_info(shipment_id, opts) data end |
#void_transport_with_http_info(shipment_id, opts = {}) ⇒ Array<(VoidTransportResponse, Integer, Hash)>
Cancels a previously-confirmed request to ship an inbound shipment using an Amazon-partnered carrier. To be successful, you must call this operation before the VoidDeadline date that is returned by the getTransportDetails operation. Important: The VoidDeadline date is 24 hours after you confirm a Small Parcel shipment transportation request or one hour after you confirm a Less Than Truckload/Full Truckload (LTL/FTL) shipment transportation request. After the void deadline passes, your account will be charged for the shipping cost. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 30 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 |
# File 'lib/fulfillment-inbound-api-model/api/fba_inbound_api.rb', line 1052 def void_transport_with_http_info(shipment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FbaInboundApi.void_transport ...' end # verify the required parameter 'shipment_id' is set if @api_client.config.client_side_validation && shipment_id.nil? fail ArgumentError, "Missing the required parameter 'shipment_id' when calling FbaInboundApi.void_transport" end # resource path local_var_path = '/fba/inbound/v0/shipments/{shipmentId}/transport/void'.sub('{' + 'shipmentId' + '}', shipment_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'VoidTransportResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: FbaInboundApi#void_transport\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |