Class: AmznSpApi::OrdersApiModel::OrdersV0Api
- Inherits:
-
Object
- Object
- AmznSpApi::OrdersApiModel::OrdersV0Api
- Defined in:
- lib/orders_api_model/api/orders_v0_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#confirm_shipment(body, order_id, opts = {}) ⇒ nil
Updates the shipment confirmation status for a specified order.
-
#confirm_shipment_with_http_info(body, order_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Updates the shipment confirmation status for a specified order.
-
#get_order(order_id, opts = {}) ⇒ GetOrderResponse
Returns the order that you specify.
-
#get_order_address(order_id, opts = {}) ⇒ GetOrderAddressResponse
Returns the shipping address for the order that you specify.
-
#get_order_address_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderAddressResponse, Integer, Hash)>
Returns the shipping address for the order that you specify.
-
#get_order_buyer_info(order_id, opts = {}) ⇒ GetOrderBuyerInfoResponse
Returns buyer information for the order that you specify.
-
#get_order_buyer_info_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderBuyerInfoResponse, Integer, Hash)>
Returns buyer information for the order that you specify.
-
#get_order_items(order_id, opts = {}) ⇒ GetOrderItemsResponse
Returns detailed order item information for the order that you specify.
-
#get_order_items_buyer_info(order_id, opts = {}) ⇒ GetOrderItemsBuyerInfoResponse
Returns buyer information for the order items in the order that you specify.
-
#get_order_items_buyer_info_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderItemsBuyerInfoResponse, Integer, Hash)>
Returns buyer information for the order items in the order that you specify.
-
#get_order_items_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderItemsResponse, Integer, Hash)>
Returns detailed order item information for the order that you specify.
-
#get_order_regulated_info(order_id, opts = {}) ⇒ GetOrderRegulatedInfoResponse
Returns regulated information for the order that you specify.
-
#get_order_regulated_info_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderRegulatedInfoResponse, Integer, Hash)>
Returns regulated information for the order that you specify.
-
#get_order_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderResponse, Integer, Hash)>
Returns the order that you specify.
-
#get_orders(marketplace_ids, opts = {}) ⇒ GetOrdersResponse
Returns orders created or updated during the time frame indicated by the specified parameters.
-
#get_orders_with_http_info(marketplace_ids, opts = {}) ⇒ Array<(GetOrdersResponse, Integer, Hash)>
Returns orders created or updated during the time frame indicated by the specified parameters.
-
#initialize(api_client = ApiClient.default) ⇒ OrdersV0Api
constructor
A new instance of OrdersV0Api.
-
#update_verification_status(body, order_id, opts = {}) ⇒ nil
Updates (approves or rejects) the verification status of an order containing regulated products.
-
#update_verification_status_with_http_info(body, order_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Updates (approves or rejects) the verification status of an order containing regulated products.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ OrdersV0Api
Returns a new instance of OrdersV0Api.
14 15 16 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 14 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
12 13 14 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 12 def api_client @api_client end |
Instance Method Details
#confirm_shipment(body, order_id, opts = {}) ⇒ nil
Updates the shipment confirmation status for a specified order. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 10 | The ‘x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
23 24 25 26 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 23 def confirm_shipment(body, order_id, opts = {}) confirm_shipment_with_http_info(body, order_id, opts) nil end |
#confirm_shipment_with_http_info(body, order_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Updates the shipment confirmation status for a specified order. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
33 34 35 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 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 33 def confirm_shipment_with_http_info(body, order_id, opts = {}) @api_client.config.logger.debug 'Calling API: OrdersV0Api.confirm_shipment ...' if @api_client.config.debugging # verify the required parameter 'body' is set raise ArgumentError, "Missing the required parameter 'body' when calling OrdersV0Api.confirm_shipment" if @api_client.config.client_side_validation && body.nil? # verify the required parameter 'order_id' is set raise ArgumentError, "Missing the required parameter 'order_id' when calling OrdersV0Api.confirm_shipment" if @api_client.config.client_side_validation && order_id.nil? # resource path local_var_path = '/orders/v0/orders/{orderId}/shipmentConfirmation'.sub('{' + 'orderId' + '}', order_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] 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) @api_client.config.logger.debug "API called: OrdersV0Api#confirm_shipment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_order(order_id, opts = {}) ⇒ GetOrderResponse
Returns the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.0167 | 20 | The ‘x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
78 79 80 81 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 78 def get_order(order_id, opts = {}) data, _status_code, _headers = get_order_with_http_info(order_id, opts) data end |
#get_order_address(order_id, opts = {}) ⇒ GetOrderAddressResponse
Returns the shipping address for the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.0167 | 20 | The ‘x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
128 129 130 131 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 128 def get_order_address(order_id, opts = {}) data, _status_code, _headers = get_order_address_with_http_info(order_id, opts) data end |
#get_order_address_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderAddressResponse, Integer, Hash)>
Returns the shipping address for the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.0167 | 20 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 137 def get_order_address_with_http_info(order_id, opts = {}) @api_client.config.logger.debug 'Calling API: OrdersV0Api.get_order_address ...' if @api_client.config.debugging # verify the required parameter 'order_id' is set raise ArgumentError, "Missing the required parameter 'order_id' when calling OrdersV0Api.get_order_address" if @api_client.config.client_side_validation && order_id.nil? # resource path local_var_path = '/orders/v0/orders/{orderId}/address'.sub('{' + 'orderId' + '}', order_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] || 'GetOrderAddressResponse' 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) @api_client.config.logger.debug "API called: OrdersV0Api#get_order_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_order_buyer_info(order_id, opts = {}) ⇒ GetOrderBuyerInfoResponse
Returns buyer information for the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.0167 | 20 | The ‘x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
178 179 180 181 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 178 def get_order_buyer_info(order_id, opts = {}) data, _status_code, _headers = get_order_buyer_info_with_http_info(order_id, opts) data end |
#get_order_buyer_info_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderBuyerInfoResponse, Integer, Hash)>
Returns buyer information for the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.0167 | 20 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 187 def get_order_buyer_info_with_http_info(order_id, opts = {}) @api_client.config.logger.debug 'Calling API: OrdersV0Api.get_order_buyer_info ...' if @api_client.config.debugging # verify the required parameter 'order_id' is set raise ArgumentError, "Missing the required parameter 'order_id' when calling OrdersV0Api.get_order_buyer_info" if @api_client.config.client_side_validation && order_id.nil? # resource path local_var_path = '/orders/v0/orders/{orderId}/buyerInfo'.sub('{' + 'orderId' + '}', order_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] || 'GetOrderBuyerInfoResponse' 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) @api_client.config.logger.debug "API called: OrdersV0Api#get_order_buyer_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_order_items(order_id, opts = {}) ⇒ GetOrderItemsResponse
Returns detailed order item information for the order that you specify. If NextToken is provided, it’s used to retrieve the next page of order items. __Note__: When an order is in the Pending state (the order has been placed but payment has not been authorized), the getOrderItems operation does not return information about pricing, taxes, shipping charges, gift status or promotions for the order items in the order. After an order leaves the Pending state (this occurs when payment has been authorized) and enters the Unshipped, Partially Shipped, or Shipped state, the getOrderItems operation returns information about pricing, taxes, shipping charges, gift status and promotions for the order items in the order. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.5 | 30 | The ‘x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
229 230 231 232 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 229 def get_order_items(order_id, opts = {}) data, _status_code, _headers = get_order_items_with_http_info(order_id, opts) data end |
#get_order_items_buyer_info(order_id, opts = {}) ⇒ GetOrderItemsBuyerInfoResponse
Returns buyer information for the order items in the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.5 | 30 | The ‘x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
282 283 284 285 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 282 def get_order_items_buyer_info(order_id, opts = {}) data, _status_code, _headers = get_order_items_buyer_info_with_http_info(order_id, opts) data end |
#get_order_items_buyer_info_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderItemsBuyerInfoResponse, Integer, Hash)>
Returns buyer information for the order items in the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 292 def get_order_items_buyer_info_with_http_info(order_id, opts = {}) @api_client.config.logger.debug 'Calling API: OrdersV0Api.get_order_items_buyer_info ...' if @api_client.config.debugging # verify the required parameter 'order_id' is set raise ArgumentError, "Missing the required parameter 'order_id' when calling OrdersV0Api.get_order_items_buyer_info" if @api_client.config.client_side_validation && order_id.nil? # resource path local_var_path = '/orders/v0/orders/{orderId}/orderItems/buyerInfo'.sub('{' + 'orderId' + '}', order_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:NextToken] = opts[:next_token] unless 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] || 'GetOrderItemsBuyerInfoResponse' 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) @api_client.config.logger.debug "API called: OrdersV0Api#get_order_items_buyer_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_order_items_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderItemsResponse, Integer, Hash)>
Returns detailed order item information for the order that you specify. If NextToken is provided, it's used to retrieve the next page of order items. __Note__: When an order is in the Pending state (the order has been placed but payment has not been authorized), the getOrderItems operation does not return information about pricing, taxes, shipping charges, gift status or promotions for the order items in the order. After an order leaves the Pending state (this occurs when payment has been authorized) and enters the Unshipped, Partially Shipped, or Shipped state, the getOrderItems operation returns information about pricing, taxes, shipping charges, gift status and promotions for the order items in the order. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 239 def get_order_items_with_http_info(order_id, opts = {}) @api_client.config.logger.debug 'Calling API: OrdersV0Api.get_order_items ...' if @api_client.config.debugging # verify the required parameter 'order_id' is set raise ArgumentError, "Missing the required parameter 'order_id' when calling OrdersV0Api.get_order_items" if @api_client.config.client_side_validation && order_id.nil? # resource path local_var_path = '/orders/v0/orders/{orderId}/orderItems'.sub('{' + 'orderId' + '}', order_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:NextToken] = opts[:next_token] unless 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] || 'GetOrderItemsResponse' 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) @api_client.config.logger.debug "API called: OrdersV0Api#get_order_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_order_regulated_info(order_id, opts = {}) ⇒ GetOrderRegulatedInfoResponse
Returns regulated information for the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.5 | 30 | The ‘x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
334 335 336 337 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 334 def get_order_regulated_info(order_id, opts = {}) data, _status_code, _headers = get_order_regulated_info_with_http_info(order_id, opts) data end |
#get_order_regulated_info_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderRegulatedInfoResponse, Integer, Hash)>
Returns regulated information for the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 343 def get_order_regulated_info_with_http_info(order_id, opts = {}) @api_client.config.logger.debug 'Calling API: OrdersV0Api.get_order_regulated_info ...' if @api_client.config.debugging # verify the required parameter 'order_id' is set raise ArgumentError, "Missing the required parameter 'order_id' when calling OrdersV0Api.get_order_regulated_info" if @api_client.config.client_side_validation && order_id.nil? # resource path local_var_path = '/orders/v0/orders/{orderId}/regulatedInfo'.sub('{' + 'orderId' + '}', order_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', 'PendingOrder', 'ApprovedOrder', 'RejectedOrder']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetOrderRegulatedInfoResponse' 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) @api_client.config.logger.debug "API called: OrdersV0Api#get_order_regulated_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_order_with_http_info(order_id, opts = {}) ⇒ Array<(GetOrderResponse, Integer, Hash)>
Returns the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.0167 | 20 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 87 def get_order_with_http_info(order_id, opts = {}) @api_client.config.logger.debug 'Calling API: OrdersV0Api.get_order ...' if @api_client.config.debugging # verify the required parameter 'order_id' is set raise ArgumentError, "Missing the required parameter 'order_id' when calling OrdersV0Api.get_order" if @api_client.config.client_side_validation && order_id.nil? # resource path local_var_path = '/orders/v0/orders/{orderId}'.sub('{' + 'orderId' + '}', order_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] || 'GetOrderResponse' 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) @api_client.config.logger.debug "API called: OrdersV0Api#get_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_orders(marketplace_ids, opts = {}) ⇒ GetOrdersResponse
Returns orders created or updated during the time frame indicated by the specified parameters. You can also apply a range of filtering criteria to narrow the list of orders returned. If NextToken is present, that will be used to retrieve the orders instead of other criteria. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.0167 | 20 | The ‘x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
403 404 405 406 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 403 def get_orders(marketplace_ids, opts = {}) data, _status_code, _headers = get_orders_with_http_info(marketplace_ids, opts) data end |
#get_orders_with_http_info(marketplace_ids, opts = {}) ⇒ Array<(GetOrdersResponse, Integer, Hash)>
Returns orders created or updated during the time frame indicated by the specified parameters. You can also apply a range of filtering criteria to narrow the list of orders returned. If NextToken is present, that will be used to retrieve the orders instead of other criteria. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.0167 | 20 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 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 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 431 def get_orders_with_http_info(marketplace_ids, opts = {}) @api_client.config.logger.debug 'Calling API: OrdersV0Api.get_orders ...' if @api_client.config.debugging # verify the required parameter 'marketplace_ids' is set raise ArgumentError, "Missing the required parameter 'marketplace_ids' when calling OrdersV0Api.get_orders" if @api_client.config.client_side_validation && marketplace_ids.nil? # resource path local_var_path = '/orders/v0/orders' # query parameters query_params = opts[:query_params] || {} query_params[:MarketplaceIds] = @api_client.build_collection_param(marketplace_ids, :csv) query_params[:CreatedAfter] = opts[:created_after] unless opts[:created_after].nil? query_params[:CreatedBefore] = opts[:created_before] unless opts[:created_before].nil? query_params[:LastUpdatedAfter] = opts[:last_updated_after] unless opts[:last_updated_after].nil? query_params[:LastUpdatedBefore] = opts[:last_updated_before] unless opts[:last_updated_before].nil? query_params[:OrderStatuses] = @api_client.build_collection_param(opts[:order_statuses], :csv) unless opts[:order_statuses].nil? query_params[:FulfillmentChannels] = @api_client.build_collection_param(opts[:fulfillment_channels], :csv) unless opts[:fulfillment_channels].nil? query_params[:PaymentMethods] = @api_client.build_collection_param(opts[:payment_methods], :csv) unless opts[:payment_methods].nil? query_params[:BuyerEmail] = opts[:buyer_email] unless opts[:buyer_email].nil? query_params[:SellerOrderId] = opts[:seller_order_id] unless opts[:seller_order_id].nil? query_params[:MaxResultsPerPage] = opts[:max_results_per_page] unless opts[:max_results_per_page].nil? query_params[:EasyShipShipmentStatuses] = @api_client.build_collection_param(opts[:easy_ship_shipment_statuses], :csv) unless opts[:easy_ship_shipment_statuses].nil? query_params[:ElectronicInvoiceStatuses] = @api_client.build_collection_param(opts[:electronic_invoice_statuses], :csv) unless opts[:electronic_invoice_statuses].nil? query_params[:NextToken] = opts[:next_token] unless opts[:next_token].nil? query_params[:AmazonOrderIds] = @api_client.build_collection_param(opts[:amazon_order_ids], :csv) unless opts[:amazon_order_ids].nil? query_params[:ActualFulfillmentSupplySourceId] = opts[:actual_fulfillment_supply_source_id] unless opts[:actual_fulfillment_supply_source_id].nil? query_params[:IsISPU] = opts[:is_ispu] unless opts[:is_ispu].nil? query_params[:StoreChainStoreId] = opts[:store_chain_store_id] unless opts[:store_chain_store_id].nil? query_params[:ItemApprovalTypes] = @api_client.build_collection_param(opts[:item_approval_types], :csv) unless opts[:item_approval_types].nil? query_params[:ItemApprovalStatus] = @api_client.build_collection_param(opts[:item_approval_status], :csv) unless opts[:item_approval_status].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] || 'GetOrdersResponse' 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) @api_client.config.logger.debug "API called: OrdersV0Api#get_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#update_verification_status(body, order_id, opts = {}) ⇒ nil
Updates (approves or rejects) the verification status of an order containing regulated products. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.5 | 30 | The ‘x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
493 494 495 496 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 493 def update_verification_status(body, order_id, opts = {}) update_verification_status_with_http_info(body, order_id, opts) nil end |
#update_verification_status_with_http_info(body, order_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Updates (approves or rejects) the verification status of an order containing regulated products. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 |
# File 'lib/orders_api_model/api/orders_v0_api.rb', line 503 def update_verification_status_with_http_info(body, order_id, opts = {}) @api_client.config.logger.debug 'Calling API: OrdersV0Api.update_verification_status ...' if @api_client.config.debugging # verify the required parameter 'body' is set raise ArgumentError, "Missing the required parameter 'body' when calling OrdersV0Api.update_verification_status" if @api_client.config.client_side_validation && body.nil? # verify the required parameter 'order_id' is set raise ArgumentError, "Missing the required parameter 'order_id' when calling OrdersV0Api.update_verification_status" if @api_client.config.client_side_validation && order_id.nil? # resource path local_var_path = '/orders/v0/orders/{orderId}/regulatedInfo'.sub('{' + 'orderId' + '}', order_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] auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:PATCH, 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) @api_client.config.logger.debug "API called: OrdersV0Api#update_verification_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |