@sp-api-sdk/orders-api-v0 1.18.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/cjs/src/api-model/api/orders-v0-api.js +176 -52
  2. package/dist/cjs/src/api-model/base.js +1 -3
  3. package/dist/cjs/src/api-model/common.js +2 -0
  4. package/dist/cjs/src/api-model/models/approval-support-data-element.js +15 -0
  5. package/dist/cjs/src/api-model/models/get-order-approvals-response.js +15 -0
  6. package/dist/cjs/src/api-model/models/index.js +14 -0
  7. package/dist/cjs/src/api-model/models/item-approval-action-changes.js +15 -0
  8. package/dist/cjs/src/api-model/models/item-approval-action.js +21 -0
  9. package/dist/cjs/src/api-model/models/item-approval-context.js +15 -0
  10. package/dist/cjs/src/api-model/models/item-approval-status.js +29 -0
  11. package/dist/cjs/src/api-model/models/item-approval-type.js +24 -0
  12. package/dist/cjs/src/api-model/models/item-approval.js +25 -0
  13. package/dist/cjs/src/api-model/models/item-identifier.js +21 -0
  14. package/dist/cjs/src/api-model/models/order-approvals-response.js +15 -0
  15. package/dist/cjs/src/api-model/models/order-item-approval-request.js +15 -0
  16. package/dist/cjs/src/api-model/models/order-item-approvals.js +15 -0
  17. package/dist/cjs/src/api-model/models/update-items-approvals-error-response.js +15 -0
  18. package/dist/cjs/src/api-model/models/update-order-approvals-request.js +15 -0
  19. package/dist/cjs/src/client.js +14 -0
  20. package/dist/es/src/api-model/api/orders-v0-api.js +176 -52
  21. package/dist/es/src/api-model/base.js +1 -3
  22. package/dist/es/src/api-model/common.js +2 -0
  23. package/dist/es/src/api-model/models/approval-support-data-element.js +14 -0
  24. package/dist/es/src/api-model/models/get-order-approvals-response.js +14 -0
  25. package/dist/es/src/api-model/models/index.js +14 -0
  26. package/dist/es/src/api-model/models/item-approval-action-changes.js +14 -0
  27. package/dist/es/src/api-model/models/item-approval-action.js +18 -0
  28. package/dist/es/src/api-model/models/item-approval-context.js +14 -0
  29. package/dist/es/src/api-model/models/item-approval-status.js +26 -0
  30. package/dist/es/src/api-model/models/item-approval-type.js +21 -0
  31. package/dist/es/src/api-model/models/item-approval.js +22 -0
  32. package/dist/es/src/api-model/models/item-identifier.js +18 -0
  33. package/dist/es/src/api-model/models/order-approvals-response.js +14 -0
  34. package/dist/es/src/api-model/models/order-item-approval-request.js +14 -0
  35. package/dist/es/src/api-model/models/order-item-approvals.js +14 -0
  36. package/dist/es/src/api-model/models/update-items-approvals-error-response.js +14 -0
  37. package/dist/es/src/api-model/models/update-order-approvals-request.js +14 -0
  38. package/dist/es/src/client.js +14 -0
  39. package/dist/types/src/api-model/api/orders-v0-api.d.ts +158 -43
  40. package/dist/types/src/api-model/base.d.ts +2 -3
  41. package/dist/types/src/api-model/common.d.ts +3 -3
  42. package/dist/types/src/api-model/models/approval-support-data-element.d.ts +30 -0
  43. package/dist/types/src/api-model/models/get-order-approvals-response.d.ts +31 -0
  44. package/dist/types/src/api-model/models/index.d.ts +14 -0
  45. package/dist/types/src/api-model/models/item-approval-action-changes.d.ts +38 -0
  46. package/dist/types/src/api-model/models/item-approval-action.d.ts +43 -0
  47. package/dist/types/src/api-model/models/item-approval-context.d.ts +39 -0
  48. package/dist/types/src/api-model/models/item-approval-status.d.ts +25 -0
  49. package/dist/types/src/api-model/models/item-approval-type.d.ts +20 -0
  50. package/dist/types/src/api-model/models/item-approval.d.ts +72 -0
  51. package/dist/types/src/api-model/models/item-identifier.d.ts +36 -0
  52. package/dist/types/src/api-model/models/order-approvals-response.d.ts +31 -0
  53. package/dist/types/src/api-model/models/order-item-approval-request.d.ts +31 -0
  54. package/dist/types/src/api-model/models/order-item-approvals.d.ts +45 -0
  55. package/dist/types/src/api-model/models/order-item.d.ts +13 -0
  56. package/dist/types/src/api-model/models/order.d.ts +14 -0
  57. package/dist/types/src/api-model/models/update-items-approvals-error-response.d.ts +24 -0
  58. package/dist/types/src/api-model/models/update-order-approvals-request.d.ts +31 -0
  59. package/package.json +3 -3
@@ -143,6 +143,46 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
143
143
  options: localVarRequestOptions,
144
144
  };
145
145
  },
146
+ /**
147
+ * Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
148
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628.
149
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
150
+ * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return approvals for items which approval type is contained in the specified approval types.
151
+ * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return approvals that contain items which approval status is contained in the specified approval status.
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ getOrderItemsApprovals: async (orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options = {}) => {
156
+ // verify required parameter 'orderId' is not null or undefined
157
+ (0, common_1.assertParamExists)('getOrderItemsApprovals', 'orderId', orderId);
158
+ const localVarPath = `/orders/v0/orders/{orderId}/approvals`
159
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
160
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
161
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
162
+ let baseOptions;
163
+ if (configuration) {
164
+ baseOptions = configuration.baseOptions;
165
+ }
166
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
167
+ const localVarHeaderParameter = {};
168
+ const localVarQueryParameter = {};
169
+ if (nextToken !== undefined) {
170
+ localVarQueryParameter['NextToken'] = nextToken;
171
+ }
172
+ if (itemApprovalTypes) {
173
+ localVarQueryParameter['ItemApprovalTypes'] = itemApprovalTypes.join(base_1.COLLECTION_FORMATS.csv);
174
+ }
175
+ if (itemApprovalStatus) {
176
+ localVarQueryParameter['ItemApprovalStatus'] = itemApprovalStatus.join(base_1.COLLECTION_FORMATS.csv);
177
+ }
178
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
179
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
180
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
181
+ return {
182
+ url: (0, common_1.toPathString)(localVarUrlObj),
183
+ options: localVarRequestOptions,
184
+ };
185
+ },
146
186
  /**
147
187
  * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
148
188
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -223,10 +263,12 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
223
263
  * @param {string} [actualFulfillmentSupplySourceId] Denotes the recommended sourceId where the order should be fulfilled from.
224
264
  * @param {boolean} [isISPU] When true, this order is marked to be picked up from a store rather than delivered.
225
265
  * @param {string} [storeChainStoreId] The store chain store identifier. Linked to a specific store in a store chain.
266
+ * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return orders that contain items which approval type is contained in the specified approval types.
267
+ * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return orders that contain items which approval status is contained in the specified approval status.
226
268
  * @param {*} [options] Override http request option.
227
269
  * @throws {RequiredError}
228
270
  */
229
- getOrders: async (marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options = {}) => {
271
+ getOrders: async (marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options = {}) => {
230
272
  // verify required parameter 'marketplaceIds' is not null or undefined
231
273
  (0, common_1.assertParamExists)('getOrders', 'marketplaceIds', marketplaceIds);
232
274
  const localVarPath = `/orders/v0/orders`;
@@ -293,6 +335,12 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
293
335
  if (storeChainStoreId !== undefined) {
294
336
  localVarQueryParameter['StoreChainStoreId'] = storeChainStoreId;
295
337
  }
338
+ if (itemApprovalTypes) {
339
+ localVarQueryParameter['ItemApprovalTypes'] = itemApprovalTypes.join(base_1.COLLECTION_FORMATS.csv);
340
+ }
341
+ if (itemApprovalStatus) {
342
+ localVarQueryParameter['ItemApprovalStatus'] = itemApprovalStatus.join(base_1.COLLECTION_FORMATS.csv);
343
+ }
296
344
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
297
345
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
346
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -301,6 +349,39 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
301
349
  options: localVarRequestOptions,
302
350
  };
303
351
  },
352
+ /**
353
+ * Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
354
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
355
+ * @param {UpdateOrderApprovalsRequest} payload The request body for the updateOrderItemsApprovals operation.
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ updateOrderItemsApprovals: async (orderId, payload, options = {}) => {
360
+ // verify required parameter 'orderId' is not null or undefined
361
+ (0, common_1.assertParamExists)('updateOrderItemsApprovals', 'orderId', orderId);
362
+ // verify required parameter 'payload' is not null or undefined
363
+ (0, common_1.assertParamExists)('updateOrderItemsApprovals', 'payload', payload);
364
+ const localVarPath = `/orders/v0/orders/{orderId}/approvals`
365
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
366
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
367
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
368
+ let baseOptions;
369
+ if (configuration) {
370
+ baseOptions = configuration.baseOptions;
371
+ }
372
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
373
+ const localVarHeaderParameter = {};
374
+ const localVarQueryParameter = {};
375
+ localVarHeaderParameter['Content-Type'] = 'application/json';
376
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
377
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
378
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
379
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
380
+ return {
381
+ url: (0, common_1.toPathString)(localVarUrlObj),
382
+ options: localVarRequestOptions,
383
+ };
384
+ },
304
385
  /**
305
386
  * Update the shipment status for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
306
387
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -418,6 +499,19 @@ const OrdersV0ApiFp = function (configuration) {
418
499
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderItems(orderId, nextToken, options);
419
500
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
420
501
  },
502
+ /**
503
+ * Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
504
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628.
505
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
506
+ * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return approvals for items which approval type is contained in the specified approval types.
507
+ * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return approvals that contain items which approval status is contained in the specified approval status.
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ async getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options) {
512
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options);
513
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
514
+ },
421
515
  /**
422
516
  * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
423
517
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -459,11 +553,24 @@ const OrdersV0ApiFp = function (configuration) {
459
553
  * @param {string} [actualFulfillmentSupplySourceId] Denotes the recommended sourceId where the order should be fulfilled from.
460
554
  * @param {boolean} [isISPU] When true, this order is marked to be picked up from a store rather than delivered.
461
555
  * @param {string} [storeChainStoreId] The store chain store identifier. Linked to a specific store in a store chain.
556
+ * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return orders that contain items which approval type is contained in the specified approval types.
557
+ * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return orders that contain items which approval status is contained in the specified approval status.
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ async getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options) {
562
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options);
563
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
564
+ },
565
+ /**
566
+ * Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
567
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
568
+ * @param {UpdateOrderApprovalsRequest} payload The request body for the updateOrderItemsApprovals operation.
462
569
  * @param {*} [options] Override http request option.
463
570
  * @throws {RequiredError}
464
571
  */
465
- async getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options) {
466
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options);
572
+ async updateOrderItemsApprovals(orderId, payload, options) {
573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrderItemsApprovals(orderId, payload, options);
467
574
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
468
575
  },
469
576
  /**
@@ -500,105 +607,102 @@ const OrdersV0ApiFactory = function (configuration, basePath, axios) {
500
607
  return {
501
608
  /**
502
609
  * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
503
- * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
610
+ * @param {OrdersV0ApiGetOrderRequest} requestParameters Request parameters.
504
611
  * @param {*} [options] Override http request option.
505
612
  * @throws {RequiredError}
506
613
  */
507
- getOrder(orderId, options) {
508
- return localVarFp.getOrder(orderId, options).then((request) => request(axios, basePath));
614
+ getOrder(requestParameters, options) {
615
+ return localVarFp.getOrder(requestParameters.orderId, options).then((request) => request(axios, basePath));
509
616
  },
510
617
  /**
511
618
  * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
512
- * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
619
+ * @param {OrdersV0ApiGetOrderAddressRequest} requestParameters Request parameters.
513
620
  * @param {*} [options] Override http request option.
514
621
  * @throws {RequiredError}
515
622
  */
516
- getOrderAddress(orderId, options) {
517
- return localVarFp.getOrderAddress(orderId, options).then((request) => request(axios, basePath));
623
+ getOrderAddress(requestParameters, options) {
624
+ return localVarFp.getOrderAddress(requestParameters.orderId, options).then((request) => request(axios, basePath));
518
625
  },
519
626
  /**
520
627
  * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
521
- * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
628
+ * @param {OrdersV0ApiGetOrderBuyerInfoRequest} requestParameters Request parameters.
522
629
  * @param {*} [options] Override http request option.
523
630
  * @throws {RequiredError}
524
631
  */
525
- getOrderBuyerInfo(orderId, options) {
526
- return localVarFp.getOrderBuyerInfo(orderId, options).then((request) => request(axios, basePath));
632
+ getOrderBuyerInfo(requestParameters, options) {
633
+ return localVarFp.getOrderBuyerInfo(requestParameters.orderId, options).then((request) => request(axios, basePath));
527
634
  },
528
635
  /**
529
636
  * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
530
- * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
531
- * @param {string} [nextToken] A string token returned in the response of your previous request.
637
+ * @param {OrdersV0ApiGetOrderItemsRequest} requestParameters Request parameters.
532
638
  * @param {*} [options] Override http request option.
533
639
  * @throws {RequiredError}
534
640
  */
535
- getOrderItems(orderId, nextToken, options) {
536
- return localVarFp.getOrderItems(orderId, nextToken, options).then((request) => request(axios, basePath));
641
+ getOrderItems(requestParameters, options) {
642
+ return localVarFp.getOrderItems(requestParameters.orderId, requestParameters.nextToken, options).then((request) => request(axios, basePath));
643
+ },
644
+ /**
645
+ * Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
646
+ * @param {OrdersV0ApiGetOrderItemsApprovalsRequest} requestParameters Request parameters.
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ */
650
+ getOrderItemsApprovals(requestParameters, options) {
651
+ return localVarFp.getOrderItemsApprovals(requestParameters.orderId, requestParameters.nextToken, requestParameters.itemApprovalTypes, requestParameters.itemApprovalStatus, options).then((request) => request(axios, basePath));
537
652
  },
538
653
  /**
539
654
  * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
540
- * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
541
- * @param {string} [nextToken] A string token returned in the response of your previous request.
655
+ * @param {OrdersV0ApiGetOrderItemsBuyerInfoRequest} requestParameters Request parameters.
542
656
  * @param {*} [options] Override http request option.
543
657
  * @throws {RequiredError}
544
658
  */
545
- getOrderItemsBuyerInfo(orderId, nextToken, options) {
546
- return localVarFp.getOrderItemsBuyerInfo(orderId, nextToken, options).then((request) => request(axios, basePath));
659
+ getOrderItemsBuyerInfo(requestParameters, options) {
660
+ return localVarFp.getOrderItemsBuyerInfo(requestParameters.orderId, requestParameters.nextToken, options).then((request) => request(axios, basePath));
547
661
  },
548
662
  /**
549
663
  * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
550
- * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
664
+ * @param {OrdersV0ApiGetOrderRegulatedInfoRequest} requestParameters Request parameters.
551
665
  * @param {*} [options] Override http request option.
552
666
  * @throws {RequiredError}
553
667
  */
554
- getOrderRegulatedInfo(orderId, options) {
555
- return localVarFp.getOrderRegulatedInfo(orderId, options).then((request) => request(axios, basePath));
668
+ getOrderRegulatedInfo(requestParameters, options) {
669
+ return localVarFp.getOrderRegulatedInfo(requestParameters.orderId, options).then((request) => request(axios, basePath));
556
670
  },
557
671
  /**
558
672
  * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
559
- * @param {Array<string>} marketplaceIds A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) for a complete list of marketplaceId values.
560
- * @param {string} [createdAfter] A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format.
561
- * @param {string} [createdBefore] A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format.
562
- * @param {string} [lastUpdatedAfter] A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format.
563
- * @param {string} [lastUpdatedBefore] A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format.
564
- * @param {Array<string>} [orderStatuses] A list of &#x60;OrderStatus&#x60; values used to filter the results. **Possible values:** - &#x60;PendingAvailability&#x60; (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.) - &#x60;Pending&#x60; (The order has been placed but payment has not been authorized.) - &#x60;Unshipped&#x60; (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped.) - &#x60;PartiallyShipped&#x60; (One or more, but not all, items in the order have been shipped.) - &#x60;Shipped&#x60; (All items in the order have been shipped.) - &#x60;InvoiceUnconfirmed&#x60; (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.) - &#x60;Canceled&#x60; (The order has been canceled.) - &#x60;Unfulfillable&#x60; (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.)
565
- * @param {Array<string>} [fulfillmentChannels] A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller).
566
- * @param {Array<string>} [paymentMethods] A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS).
567
- * @param {string} [buyerEmail] The email address of a buyer. Used to select orders that contain the specified email address.
568
- * @param {string} [sellerOrderId] An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified.
569
- * @param {number} [maxResultsPerPage] A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100.
570
- * @param {Array<string>} [easyShipShipmentStatuses] A list of &#x60;EasyShipShipmentStatus&#x60; values. Used to select Easy Ship orders with statuses that match the specified values. If &#x60;EasyShipShipmentStatus&#x60; is specified, only Amazon Easy Ship orders are returned. **Possible values:** - &#x60;PendingSchedule&#x60; (The package is awaiting the schedule for pick-up.) - &#x60;PendingPickUp&#x60; (Amazon has not yet picked up the package from the seller.) - &#x60;PendingDropOff&#x60; (The seller will deliver the package to the carrier.) - &#x60;LabelCanceled&#x60; (The seller canceled the pickup.) - &#x60;PickedUp&#x60; (Amazon has picked up the package from the seller.) - &#x60;DroppedOff&#x60; (The package is delivered to the carrier by the seller.) - &#x60;AtOriginFC&#x60; (The packaged is at the origin fulfillment center.) - &#x60;AtDestinationFC&#x60; (The package is at the destination fulfillment center.) - &#x60;Delivered&#x60; (The package has been delivered.) - &#x60;RejectedByBuyer&#x60; (The package has been rejected by the buyer.) - &#x60;Undeliverable&#x60; (The package cannot be delivered.) - &#x60;ReturningToSeller&#x60; (The package was not delivered and is being returned to the seller.) - &#x60;ReturnedToSeller&#x60; (The package was not delivered and was returned to the seller.) - &#x60;Lost&#x60; (The package is lost.) - &#x60;OutForDelivery&#x60; (The package is out for delivery.) - &#x60;Damaged&#x60; (The package was damaged by the carrier.)
571
- * @param {Array<string>} [electronicInvoiceStatuses] A list of &#x60;ElectronicInvoiceStatus&#x60; values. Used to select orders with electronic invoice statuses that match the specified values. **Possible values:** - &#x60;NotRequired&#x60; (Electronic invoice submission is not required for this order.) - &#x60;NotFound&#x60; (The electronic invoice was not submitted for this order.) - &#x60;Processing&#x60; (The electronic invoice is being processed for this order.) - &#x60;Errored&#x60; (The last submitted electronic invoice was rejected for this order.) - &#x60;Accepted&#x60; (The last submitted electronic invoice was submitted and accepted.)
572
- * @param {string} [nextToken] A string token returned in the response of your previous request.
573
- * @param {Array<string>} [amazonOrderIds] A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format.
574
- * @param {string} [actualFulfillmentSupplySourceId] Denotes the recommended sourceId where the order should be fulfilled from.
575
- * @param {boolean} [isISPU] When true, this order is marked to be picked up from a store rather than delivered.
576
- * @param {string} [storeChainStoreId] The store chain store identifier. Linked to a specific store in a store chain.
673
+ * @param {OrdersV0ApiGetOrdersRequest} requestParameters Request parameters.
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ getOrders(requestParameters, options) {
678
+ return localVarFp.getOrders(requestParameters.marketplaceIds, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.orderStatuses, requestParameters.fulfillmentChannels, requestParameters.paymentMethods, requestParameters.buyerEmail, requestParameters.sellerOrderId, requestParameters.maxResultsPerPage, requestParameters.easyShipShipmentStatuses, requestParameters.electronicInvoiceStatuses, requestParameters.nextToken, requestParameters.amazonOrderIds, requestParameters.actualFulfillmentSupplySourceId, requestParameters.isISPU, requestParameters.storeChainStoreId, requestParameters.itemApprovalTypes, requestParameters.itemApprovalStatus, options).then((request) => request(axios, basePath));
679
+ },
680
+ /**
681
+ * Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
682
+ * @param {OrdersV0ApiUpdateOrderItemsApprovalsRequest} requestParameters Request parameters.
577
683
  * @param {*} [options] Override http request option.
578
684
  * @throws {RequiredError}
579
685
  */
580
- getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options) {
581
- return localVarFp.getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options).then((request) => request(axios, basePath));
686
+ updateOrderItemsApprovals(requestParameters, options) {
687
+ return localVarFp.updateOrderItemsApprovals(requestParameters.orderId, requestParameters.payload, options).then((request) => request(axios, basePath));
582
688
  },
583
689
  /**
584
690
  * Update the shipment status for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
585
- * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
586
- * @param {UpdateShipmentStatusRequest} payload The request body for the updateShipmentStatus operation.
691
+ * @param {OrdersV0ApiUpdateShipmentStatusRequest} requestParameters Request parameters.
587
692
  * @param {*} [options] Override http request option.
588
693
  * @throws {RequiredError}
589
694
  */
590
- updateShipmentStatus(orderId, payload, options) {
591
- return localVarFp.updateShipmentStatus(orderId, payload, options).then((request) => request(axios, basePath));
695
+ updateShipmentStatus(requestParameters, options) {
696
+ return localVarFp.updateShipmentStatus(requestParameters.orderId, requestParameters.payload, options).then((request) => request(axios, basePath));
592
697
  },
593
698
  /**
594
699
  * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
595
- * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
596
- * @param {UpdateVerificationStatusRequest} payload The request body for the updateVerificationStatus operation.
700
+ * @param {OrdersV0ApiUpdateVerificationStatusRequest} requestParameters Request parameters.
597
701
  * @param {*} [options] Override http request option.
598
702
  * @throws {RequiredError}
599
703
  */
600
- updateVerificationStatus(orderId, payload, options) {
601
- return localVarFp.updateVerificationStatus(orderId, payload, options).then((request) => request(axios, basePath));
704
+ updateVerificationStatus(requestParameters, options) {
705
+ return localVarFp.updateVerificationStatus(requestParameters.orderId, requestParameters.payload, options).then((request) => request(axios, basePath));
602
706
  },
603
707
  };
604
708
  };
@@ -650,6 +754,16 @@ class OrdersV0Api extends base_1.BaseAPI {
650
754
  getOrderItems(requestParameters, options) {
651
755
  return (0, exports.OrdersV0ApiFp)(this.configuration).getOrderItems(requestParameters.orderId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
652
756
  }
757
+ /**
758
+ * Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
759
+ * @param {OrdersV0ApiGetOrderItemsApprovalsRequest} requestParameters Request parameters.
760
+ * @param {*} [options] Override http request option.
761
+ * @throws {RequiredError}
762
+ * @memberof OrdersV0Api
763
+ */
764
+ getOrderItemsApprovals(requestParameters, options) {
765
+ return (0, exports.OrdersV0ApiFp)(this.configuration).getOrderItemsApprovals(requestParameters.orderId, requestParameters.nextToken, requestParameters.itemApprovalTypes, requestParameters.itemApprovalStatus, options).then((request) => request(this.axios, this.basePath));
766
+ }
653
767
  /**
654
768
  * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
655
769
  * @param {OrdersV0ApiGetOrderItemsBuyerInfoRequest} requestParameters Request parameters.
@@ -678,7 +792,17 @@ class OrdersV0Api extends base_1.BaseAPI {
678
792
  * @memberof OrdersV0Api
679
793
  */
680
794
  getOrders(requestParameters, options) {
681
- return (0, exports.OrdersV0ApiFp)(this.configuration).getOrders(requestParameters.marketplaceIds, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.orderStatuses, requestParameters.fulfillmentChannels, requestParameters.paymentMethods, requestParameters.buyerEmail, requestParameters.sellerOrderId, requestParameters.maxResultsPerPage, requestParameters.easyShipShipmentStatuses, requestParameters.electronicInvoiceStatuses, requestParameters.nextToken, requestParameters.amazonOrderIds, requestParameters.actualFulfillmentSupplySourceId, requestParameters.isISPU, requestParameters.storeChainStoreId, options).then((request) => request(this.axios, this.basePath));
795
+ return (0, exports.OrdersV0ApiFp)(this.configuration).getOrders(requestParameters.marketplaceIds, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.orderStatuses, requestParameters.fulfillmentChannels, requestParameters.paymentMethods, requestParameters.buyerEmail, requestParameters.sellerOrderId, requestParameters.maxResultsPerPage, requestParameters.easyShipShipmentStatuses, requestParameters.electronicInvoiceStatuses, requestParameters.nextToken, requestParameters.amazonOrderIds, requestParameters.actualFulfillmentSupplySourceId, requestParameters.isISPU, requestParameters.storeChainStoreId, requestParameters.itemApprovalTypes, requestParameters.itemApprovalStatus, options).then((request) => request(this.axios, this.basePath));
796
+ }
797
+ /**
798
+ * Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
799
+ * @param {OrdersV0ApiUpdateOrderItemsApprovalsRequest} requestParameters Request parameters.
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ * @memberof OrdersV0Api
803
+ */
804
+ updateOrderItemsApprovals(requestParameters, options) {
805
+ return (0, exports.OrdersV0ApiFp)(this.configuration).updateOrderItemsApprovals(requestParameters.orderId, requestParameters.payload, options).then((request) => request(this.axios, this.basePath));
682
806
  }
683
807
  /**
684
808
  * Update the shipment status for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -15,8 +15,6 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
17
17
  const tslib_1 = require("tslib");
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
18
  const axios_1 = tslib_1.__importDefault(require("axios"));
21
19
  exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
22
20
  /**
@@ -57,10 +55,10 @@ exports.BaseAPI = BaseAPI;
57
55
  */
58
56
  class RequiredError extends Error {
59
57
  field;
60
- name = "RequiredError";
61
58
  constructor(field, msg) {
62
59
  super(msg);
63
60
  this.field = field;
61
+ this.name = "RequiredError";
64
62
  }
65
63
  }
66
64
  exports.RequiredError = RequiredError;
@@ -81,6 +81,8 @@ const setOAuthToObject = async function (object, name, scopes, configuration) {
81
81
  };
82
82
  exports.setOAuthToObject = setOAuthToObject;
83
83
  function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
84
+ if (parameter == null)
85
+ return;
84
86
  if (typeof parameter === "object") {
85
87
  if (Array.isArray(parameter)) {
86
88
  parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Orders
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Orders
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./address"), exports);
5
+ tslib_1.__exportStar(require("./approval-support-data-element"), exports);
5
6
  tslib_1.__exportStar(require("./automated-shipping-settings"), exports);
6
7
  tslib_1.__exportStar(require("./buyer-customized-info-detail"), exports);
7
8
  tslib_1.__exportStar(require("./buyer-info"), exports);
@@ -12,20 +13,31 @@ tslib_1.__exportStar(require("./easy-ship-shipment-status"), exports);
12
13
  tslib_1.__exportStar(require("./electronic-invoice-status"), exports);
13
14
  tslib_1.__exportStar(require("./fulfillment-instruction"), exports);
14
15
  tslib_1.__exportStar(require("./get-order-address-response"), exports);
16
+ tslib_1.__exportStar(require("./get-order-approvals-response"), exports);
15
17
  tslib_1.__exportStar(require("./get-order-buyer-info-response"), exports);
16
18
  tslib_1.__exportStar(require("./get-order-items-buyer-info-response"), exports);
17
19
  tslib_1.__exportStar(require("./get-order-items-response"), exports);
18
20
  tslib_1.__exportStar(require("./get-order-regulated-info-response"), exports);
19
21
  tslib_1.__exportStar(require("./get-order-response"), exports);
20
22
  tslib_1.__exportStar(require("./get-orders-response"), exports);
23
+ tslib_1.__exportStar(require("./item-approval"), exports);
24
+ tslib_1.__exportStar(require("./item-approval-action"), exports);
25
+ tslib_1.__exportStar(require("./item-approval-action-changes"), exports);
26
+ tslib_1.__exportStar(require("./item-approval-context"), exports);
27
+ tslib_1.__exportStar(require("./item-approval-status"), exports);
28
+ tslib_1.__exportStar(require("./item-approval-type"), exports);
21
29
  tslib_1.__exportStar(require("./item-buyer-info"), exports);
30
+ tslib_1.__exportStar(require("./item-identifier"), exports);
22
31
  tslib_1.__exportStar(require("./marketplace-tax-info"), exports);
23
32
  tslib_1.__exportStar(require("./model-error"), exports);
24
33
  tslib_1.__exportStar(require("./money"), exports);
25
34
  tslib_1.__exportStar(require("./order"), exports);
26
35
  tslib_1.__exportStar(require("./order-address"), exports);
36
+ tslib_1.__exportStar(require("./order-approvals-response"), exports);
27
37
  tslib_1.__exportStar(require("./order-buyer-info"), exports);
28
38
  tslib_1.__exportStar(require("./order-item"), exports);
39
+ tslib_1.__exportStar(require("./order-item-approval-request"), exports);
40
+ tslib_1.__exportStar(require("./order-item-approvals"), exports);
29
41
  tslib_1.__exportStar(require("./order-item-buyer-info"), exports);
30
42
  tslib_1.__exportStar(require("./order-items-buyer-info-list"), exports);
31
43
  tslib_1.__exportStar(require("./order-items-inner"), exports);
@@ -42,6 +54,8 @@ tslib_1.__exportStar(require("./rejection-reason"), exports);
42
54
  tslib_1.__exportStar(require("./shipment-status"), exports);
43
55
  tslib_1.__exportStar(require("./tax-classification"), exports);
44
56
  tslib_1.__exportStar(require("./tax-collection"), exports);
57
+ tslib_1.__exportStar(require("./update-items-approvals-error-response"), exports);
58
+ tslib_1.__exportStar(require("./update-order-approvals-request"), exports);
45
59
  tslib_1.__exportStar(require("./update-shipment-status-error-response"), exports);
46
60
  tslib_1.__exportStar(require("./update-shipment-status-request"), exports);
47
61
  tslib_1.__exportStar(require("./update-verification-status-error-response"), exports);
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Orders
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Orders
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ItemApprovalActionActionTypeEnum = void 0;
17
+ exports.ItemApprovalActionActionTypeEnum = {
18
+ Approve: 'APPROVE',
19
+ Decline: 'DECLINE',
20
+ ApproveWithChanges: 'APPROVE_WITH_CHANGES'
21
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Orders
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Orders
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ItemApprovalStatus = void 0;
17
+ /**
18
+ * Defines the possible status of an order item approval.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.ItemApprovalStatus = {
23
+ PendingSellingPartnerApproval: 'PENDING_SELLING_PARTNER_APPROVAL',
24
+ ProcessingSellingPartnerApproval: 'PROCESSING_SELLING_PARTNER_APPROVAL',
25
+ PendingAmazonApproval: 'PENDING_AMAZON_APPROVAL',
26
+ Approved: 'APPROVED',
27
+ ApprovedWithChanges: 'APPROVED_WITH_CHANGES',
28
+ Declined: 'DECLINED'
29
+ };
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Orders
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ItemApprovalType = void 0;
17
+ /**
18
+ * Defines the approval process types available for order items.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.ItemApprovalType = {
23
+ LeonardiApproval: 'LEONARDI_APPROVAL'
24
+ };