@sp-api-sdk/orders-api-v0 1.18.7 → 1.19.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 (69) hide show
  1. package/dist/cjs/src/api-model/api/orders-v0-api.js +221 -6
  2. package/dist/cjs/src/api-model/base.js +5 -1
  3. package/dist/cjs/src/api-model/configuration.js +49 -0
  4. package/dist/cjs/src/api-model/models/approval-support-data-element.js +15 -0
  5. package/dist/cjs/src/api-model/models/confirm-shipment-error-response.js +15 -0
  6. package/dist/cjs/src/api-model/models/confirm-shipment-order-item.js +15 -0
  7. package/dist/cjs/src/api-model/models/confirm-shipment-request.js +19 -0
  8. package/dist/cjs/src/api-model/models/get-order-approvals-response.js +15 -0
  9. package/dist/cjs/src/api-model/models/index.js +18 -0
  10. package/dist/cjs/src/api-model/models/item-approval-action-changes.js +15 -0
  11. package/dist/cjs/src/api-model/models/item-approval-action.js +21 -0
  12. package/dist/cjs/src/api-model/models/item-approval-context.js +15 -0
  13. package/dist/cjs/src/api-model/models/item-approval-status.js +29 -0
  14. package/dist/cjs/src/api-model/models/item-approval-type.js +24 -0
  15. package/dist/cjs/src/api-model/models/item-approval.js +25 -0
  16. package/dist/cjs/src/api-model/models/item-identifier.js +21 -0
  17. package/dist/cjs/src/api-model/models/order-approvals-response.js +15 -0
  18. package/dist/cjs/src/api-model/models/order-item-approval-request.js +15 -0
  19. package/dist/cjs/src/api-model/models/order-item-approvals.js +15 -0
  20. package/dist/cjs/src/api-model/models/package-detail.js +15 -0
  21. package/dist/cjs/src/api-model/models/update-items-approvals-error-response.js +15 -0
  22. package/dist/cjs/src/api-model/models/update-order-approvals-request.js +15 -0
  23. package/dist/cjs/src/client.js +21 -0
  24. package/dist/es/src/api-model/api/orders-v0-api.js +221 -6
  25. package/dist/es/src/api-model/base.js +5 -1
  26. package/dist/es/src/api-model/configuration.js +49 -0
  27. package/dist/es/src/api-model/models/approval-support-data-element.js +14 -0
  28. package/dist/es/src/api-model/models/confirm-shipment-error-response.js +14 -0
  29. package/dist/es/src/api-model/models/confirm-shipment-order-item.js +14 -0
  30. package/dist/es/src/api-model/models/confirm-shipment-request.js +16 -0
  31. package/dist/es/src/api-model/models/get-order-approvals-response.js +14 -0
  32. package/dist/es/src/api-model/models/index.js +18 -0
  33. package/dist/es/src/api-model/models/item-approval-action-changes.js +14 -0
  34. package/dist/es/src/api-model/models/item-approval-action.js +18 -0
  35. package/dist/es/src/api-model/models/item-approval-context.js +14 -0
  36. package/dist/es/src/api-model/models/item-approval-status.js +26 -0
  37. package/dist/es/src/api-model/models/item-approval-type.js +21 -0
  38. package/dist/es/src/api-model/models/item-approval.js +22 -0
  39. package/dist/es/src/api-model/models/item-identifier.js +18 -0
  40. package/dist/es/src/api-model/models/order-approvals-response.js +14 -0
  41. package/dist/es/src/api-model/models/order-item-approval-request.js +14 -0
  42. package/dist/es/src/api-model/models/order-item-approvals.js +14 -0
  43. package/dist/es/src/api-model/models/package-detail.js +14 -0
  44. package/dist/es/src/api-model/models/update-items-approvals-error-response.js +14 -0
  45. package/dist/es/src/api-model/models/update-order-approvals-request.js +14 -0
  46. package/dist/es/src/client.js +21 -0
  47. package/dist/types/src/api-model/api/orders-v0-api.d.ts +197 -3
  48. package/dist/types/src/api-model/models/approval-support-data-element.d.ts +30 -0
  49. package/dist/types/src/api-model/models/confirm-shipment-error-response.d.ts +24 -0
  50. package/dist/types/src/api-model/models/confirm-shipment-order-item.d.ts +36 -0
  51. package/dist/types/src/api-model/models/confirm-shipment-request.d.ts +41 -0
  52. package/dist/types/src/api-model/models/get-order-approvals-response.d.ts +31 -0
  53. package/dist/types/src/api-model/models/index.d.ts +18 -0
  54. package/dist/types/src/api-model/models/item-approval-action-changes.d.ts +38 -0
  55. package/dist/types/src/api-model/models/item-approval-action.d.ts +43 -0
  56. package/dist/types/src/api-model/models/item-approval-context.d.ts +39 -0
  57. package/dist/types/src/api-model/models/item-approval-status.d.ts +25 -0
  58. package/dist/types/src/api-model/models/item-approval-type.d.ts +20 -0
  59. package/dist/types/src/api-model/models/item-approval.d.ts +72 -0
  60. package/dist/types/src/api-model/models/item-identifier.d.ts +36 -0
  61. package/dist/types/src/api-model/models/order-approvals-response.d.ts +31 -0
  62. package/dist/types/src/api-model/models/order-item-approval-request.d.ts +31 -0
  63. package/dist/types/src/api-model/models/order-item-approvals.d.ts +45 -0
  64. package/dist/types/src/api-model/models/order-item.d.ts +13 -0
  65. package/dist/types/src/api-model/models/order.d.ts +14 -0
  66. package/dist/types/src/api-model/models/package-detail.d.ts +67 -0
  67. package/dist/types/src/api-model/models/update-items-approvals-error-response.d.ts +24 -0
  68. package/dist/types/src/api-model/models/update-order-approvals-request.d.ts +31 -0
  69. package/package.json +3 -3
@@ -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
+ };
@@ -0,0 +1,25 @@
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.ItemApprovalApprovalActionProcessStatusEnum = exports.ItemApprovalActorEnum = void 0;
17
+ exports.ItemApprovalActorEnum = {
18
+ SellingPartner: 'SELLING_PARTNER',
19
+ Amazon: 'AMAZON'
20
+ };
21
+ exports.ItemApprovalApprovalActionProcessStatusEnum = {
22
+ Processing: 'PROCESSING',
23
+ Success: 'SUCCESS',
24
+ Error: 'ERROR'
25
+ };
@@ -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.ItemIdentifierIdentifierTypeEnum = void 0;
17
+ exports.ItemIdentifierIdentifierTypeEnum = {
18
+ Asin: 'ASIN',
19
+ SellerSku: 'SELLER_SKU',
20
+ ExternalId: 'EXTERNAL_ID'
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,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 });
@@ -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 });
@@ -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 });
@@ -67,6 +67,27 @@ exports.clientRateLimits = [
67
67
  rate: 0.5,
68
68
  burst: 30,
69
69
  },
70
+ {
71
+ method: 'get',
72
+ // eslint-disable-next-line prefer-regex-literals
73
+ urlRegex: new RegExp('^/orders/v0/orders/[^/]*/approvals$'),
74
+ rate: 0.5,
75
+ burst: 30,
76
+ },
77
+ {
78
+ method: 'post',
79
+ // eslint-disable-next-line prefer-regex-literals
80
+ urlRegex: new RegExp('^/orders/v0/orders/[^/]*/approvals$'),
81
+ rate: 5,
82
+ burst: 15,
83
+ },
84
+ {
85
+ method: 'post',
86
+ // eslint-disable-next-line prefer-regex-literals
87
+ urlRegex: new RegExp('^/orders/v0/orders/[^/]*/shipmentConfirmation$'),
88
+ rate: 2,
89
+ burst: 10,
90
+ },
70
91
  ];
71
92
  class OrdersApiClient extends api_model_1.OrdersV0Api {
72
93
  constructor(configuration) {
@@ -23,6 +23,39 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from '../base';
23
23
  */
24
24
  export const OrdersV0ApiAxiosParamCreator = function (configuration) {
25
25
  return {
26
+ /**
27
+ * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
28
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
29
+ * @param {ConfirmShipmentRequest} payload Request body of confirmShipment.
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ confirmShipment: async (orderId, payload, options = {}) => {
34
+ // verify required parameter 'orderId' is not null or undefined
35
+ assertParamExists('confirmShipment', 'orderId', orderId);
36
+ // verify required parameter 'payload' is not null or undefined
37
+ assertParamExists('confirmShipment', 'payload', payload);
38
+ const localVarPath = `/orders/v0/orders/{orderId}/shipmentConfirmation`
39
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
40
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42
+ let baseOptions;
43
+ if (configuration) {
44
+ baseOptions = configuration.baseOptions;
45
+ }
46
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
47
+ const localVarHeaderParameter = {};
48
+ const localVarQueryParameter = {};
49
+ localVarHeaderParameter['Content-Type'] = 'application/json';
50
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
51
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
53
+ localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
54
+ return {
55
+ url: toPathString(localVarUrlObj),
56
+ options: localVarRequestOptions,
57
+ };
58
+ },
26
59
  /**
27
60
  * 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).
28
61
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -139,6 +172,46 @@ export const OrdersV0ApiAxiosParamCreator = function (configuration) {
139
172
  options: localVarRequestOptions,
140
173
  };
141
174
  },
175
+ /**
176
+ * 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.
177
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628.
178
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
179
+ * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return approvals for items which approval type is contained in the specified approval types.
180
+ * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return approvals that contain items which approval status is contained in the specified approval status.
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ getOrderItemsApprovals: async (orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options = {}) => {
185
+ // verify required parameter 'orderId' is not null or undefined
186
+ assertParamExists('getOrderItemsApprovals', 'orderId', orderId);
187
+ const localVarPath = `/orders/v0/orders/{orderId}/approvals`
188
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
189
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
190
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
191
+ let baseOptions;
192
+ if (configuration) {
193
+ baseOptions = configuration.baseOptions;
194
+ }
195
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
196
+ const localVarHeaderParameter = {};
197
+ const localVarQueryParameter = {};
198
+ if (nextToken !== undefined) {
199
+ localVarQueryParameter['NextToken'] = nextToken;
200
+ }
201
+ if (itemApprovalTypes) {
202
+ localVarQueryParameter['ItemApprovalTypes'] = itemApprovalTypes.join(COLLECTION_FORMATS.csv);
203
+ }
204
+ if (itemApprovalStatus) {
205
+ localVarQueryParameter['ItemApprovalStatus'] = itemApprovalStatus.join(COLLECTION_FORMATS.csv);
206
+ }
207
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
208
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
209
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
210
+ return {
211
+ url: toPathString(localVarUrlObj),
212
+ options: localVarRequestOptions,
213
+ };
214
+ },
142
215
  /**
143
216
  * 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).
144
217
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -219,10 +292,12 @@ export const OrdersV0ApiAxiosParamCreator = function (configuration) {
219
292
  * @param {string} [actualFulfillmentSupplySourceId] Denotes the recommended sourceId where the order should be fulfilled from.
220
293
  * @param {boolean} [isISPU] When true, this order is marked to be picked up from a store rather than delivered.
221
294
  * @param {string} [storeChainStoreId] The store chain store identifier. Linked to a specific store in a store chain.
295
+ * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return orders that contain items which approval type is contained in the specified approval types.
296
+ * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return orders that contain items which approval status is contained in the specified approval status.
222
297
  * @param {*} [options] Override http request option.
223
298
  * @throws {RequiredError}
224
299
  */
225
- getOrders: async (marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options = {}) => {
300
+ getOrders: async (marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options = {}) => {
226
301
  // verify required parameter 'marketplaceIds' is not null or undefined
227
302
  assertParamExists('getOrders', 'marketplaceIds', marketplaceIds);
228
303
  const localVarPath = `/orders/v0/orders`;
@@ -289,9 +364,48 @@ export const OrdersV0ApiAxiosParamCreator = function (configuration) {
289
364
  if (storeChainStoreId !== undefined) {
290
365
  localVarQueryParameter['StoreChainStoreId'] = storeChainStoreId;
291
366
  }
367
+ if (itemApprovalTypes) {
368
+ localVarQueryParameter['ItemApprovalTypes'] = itemApprovalTypes.join(COLLECTION_FORMATS.csv);
369
+ }
370
+ if (itemApprovalStatus) {
371
+ localVarQueryParameter['ItemApprovalStatus'] = itemApprovalStatus.join(COLLECTION_FORMATS.csv);
372
+ }
373
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
374
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
375
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
376
+ return {
377
+ url: toPathString(localVarUrlObj),
378
+ options: localVarRequestOptions,
379
+ };
380
+ },
381
+ /**
382
+ * 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).
383
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
384
+ * @param {UpdateOrderApprovalsRequest} payload The request body for the updateOrderItemsApprovals operation.
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ updateOrderItemsApprovals: async (orderId, payload, options = {}) => {
389
+ // verify required parameter 'orderId' is not null or undefined
390
+ assertParamExists('updateOrderItemsApprovals', 'orderId', orderId);
391
+ // verify required parameter 'payload' is not null or undefined
392
+ assertParamExists('updateOrderItemsApprovals', 'payload', payload);
393
+ const localVarPath = `/orders/v0/orders/{orderId}/approvals`
394
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
395
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
396
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
397
+ let baseOptions;
398
+ if (configuration) {
399
+ baseOptions = configuration.baseOptions;
400
+ }
401
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
402
+ const localVarHeaderParameter = {};
403
+ const localVarQueryParameter = {};
404
+ localVarHeaderParameter['Content-Type'] = 'application/json';
292
405
  setSearchParams(localVarUrlObj, localVarQueryParameter);
293
406
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
294
407
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
408
+ localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
295
409
  return {
296
410
  url: toPathString(localVarUrlObj),
297
411
  options: localVarRequestOptions,
@@ -372,6 +486,17 @@ export const OrdersV0ApiAxiosParamCreator = function (configuration) {
372
486
  export const OrdersV0ApiFp = function (configuration) {
373
487
  const localVarAxiosParamCreator = OrdersV0ApiAxiosParamCreator(configuration);
374
488
  return {
489
+ /**
490
+ * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
491
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
492
+ * @param {ConfirmShipmentRequest} payload Request body of confirmShipment.
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ async confirmShipment(orderId, payload, options) {
497
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmShipment(orderId, payload, options);
498
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
499
+ },
375
500
  /**
376
501
  * 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).
377
502
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -413,6 +538,19 @@ export const OrdersV0ApiFp = function (configuration) {
413
538
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderItems(orderId, nextToken, options);
414
539
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
415
540
  },
541
+ /**
542
+ * 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.
543
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628.
544
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
545
+ * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return approvals for items which approval type is contained in the specified approval types.
546
+ * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return approvals that contain items which approval status is contained in the specified approval status.
547
+ * @param {*} [options] Override http request option.
548
+ * @throws {RequiredError}
549
+ */
550
+ async getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options) {
551
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options);
552
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
553
+ },
416
554
  /**
417
555
  * 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).
418
556
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -454,11 +592,24 @@ export const OrdersV0ApiFp = function (configuration) {
454
592
  * @param {string} [actualFulfillmentSupplySourceId] Denotes the recommended sourceId where the order should be fulfilled from.
455
593
  * @param {boolean} [isISPU] When true, this order is marked to be picked up from a store rather than delivered.
456
594
  * @param {string} [storeChainStoreId] The store chain store identifier. Linked to a specific store in a store chain.
595
+ * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return orders that contain items which approval type is contained in the specified approval types.
596
+ * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return orders that contain items which approval status is contained in the specified approval status.
457
597
  * @param {*} [options] Override http request option.
458
598
  * @throws {RequiredError}
459
599
  */
460
- async getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options) {
461
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options);
600
+ async getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options) {
601
+ 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);
602
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
603
+ },
604
+ /**
605
+ * 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).
606
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
607
+ * @param {UpdateOrderApprovalsRequest} payload The request body for the updateOrderItemsApprovals operation.
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ */
611
+ async updateOrderItemsApprovals(orderId, payload, options) {
612
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrderItemsApprovals(orderId, payload, options);
462
613
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
463
614
  },
464
615
  /**
@@ -492,6 +643,16 @@ export const OrdersV0ApiFp = function (configuration) {
492
643
  export const OrdersV0ApiFactory = function (configuration, basePath, axios) {
493
644
  const localVarFp = OrdersV0ApiFp(configuration);
494
645
  return {
646
+ /**
647
+ * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
648
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
649
+ * @param {ConfirmShipmentRequest} payload Request body of confirmShipment.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ confirmShipment(orderId, payload, options) {
654
+ return localVarFp.confirmShipment(orderId, payload, options).then((request) => request(axios, basePath));
655
+ },
495
656
  /**
496
657
  * 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).
497
658
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -529,6 +690,18 @@ export const OrdersV0ApiFactory = function (configuration, basePath, axios) {
529
690
  getOrderItems(orderId, nextToken, options) {
530
691
  return localVarFp.getOrderItems(orderId, nextToken, options).then((request) => request(axios, basePath));
531
692
  },
693
+ /**
694
+ * 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.
695
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628.
696
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
697
+ * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return approvals for items which approval type is contained in the specified approval types.
698
+ * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return approvals that contain items which approval status is contained in the specified approval status.
699
+ * @param {*} [options] Override http request option.
700
+ * @throws {RequiredError}
701
+ */
702
+ getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options) {
703
+ return localVarFp.getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options).then((request) => request(axios, basePath));
704
+ },
532
705
  /**
533
706
  * 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).
534
707
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -568,11 +741,23 @@ export const OrdersV0ApiFactory = function (configuration, basePath, axios) {
568
741
  * @param {string} [actualFulfillmentSupplySourceId] Denotes the recommended sourceId where the order should be fulfilled from.
569
742
  * @param {boolean} [isISPU] When true, this order is marked to be picked up from a store rather than delivered.
570
743
  * @param {string} [storeChainStoreId] The store chain store identifier. Linked to a specific store in a store chain.
744
+ * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return orders that contain items which approval type is contained in the specified approval types.
745
+ * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return orders that contain items which approval status is contained in the specified approval status.
571
746
  * @param {*} [options] Override http request option.
572
747
  * @throws {RequiredError}
573
748
  */
574
- getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options) {
575
- 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));
749
+ getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options) {
750
+ return localVarFp.getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options).then((request) => request(axios, basePath));
751
+ },
752
+ /**
753
+ * 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).
754
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
755
+ * @param {UpdateOrderApprovalsRequest} payload The request body for the updateOrderItemsApprovals operation.
756
+ * @param {*} [options] Override http request option.
757
+ * @throws {RequiredError}
758
+ */
759
+ updateOrderItemsApprovals(orderId, payload, options) {
760
+ return localVarFp.updateOrderItemsApprovals(orderId, payload, options).then((request) => request(axios, basePath));
576
761
  },
577
762
  /**
578
763
  * 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).
@@ -603,6 +788,16 @@ export const OrdersV0ApiFactory = function (configuration, basePath, axios) {
603
788
  * @extends {BaseAPI}
604
789
  */
605
790
  export class OrdersV0Api extends BaseAPI {
791
+ /**
792
+ * 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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
793
+ * @param {OrdersV0ApiConfirmShipmentRequest} requestParameters Request parameters.
794
+ * @param {*} [options] Override http request option.
795
+ * @throws {RequiredError}
796
+ * @memberof OrdersV0Api
797
+ */
798
+ confirmShipment(requestParameters, options) {
799
+ return OrdersV0ApiFp(this.configuration).confirmShipment(requestParameters.orderId, requestParameters.payload, options).then((request) => request(this.axios, this.basePath));
800
+ }
606
801
  /**
607
802
  * 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).
608
803
  * @param {OrdersV0ApiGetOrderRequest} requestParameters Request parameters.
@@ -643,6 +838,16 @@ export class OrdersV0Api extends BaseAPI {
643
838
  getOrderItems(requestParameters, options) {
644
839
  return OrdersV0ApiFp(this.configuration).getOrderItems(requestParameters.orderId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
645
840
  }
841
+ /**
842
+ * 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.
843
+ * @param {OrdersV0ApiGetOrderItemsApprovalsRequest} requestParameters Request parameters.
844
+ * @param {*} [options] Override http request option.
845
+ * @throws {RequiredError}
846
+ * @memberof OrdersV0Api
847
+ */
848
+ getOrderItemsApprovals(requestParameters, options) {
849
+ return OrdersV0ApiFp(this.configuration).getOrderItemsApprovals(requestParameters.orderId, requestParameters.nextToken, requestParameters.itemApprovalTypes, requestParameters.itemApprovalStatus, options).then((request) => request(this.axios, this.basePath));
850
+ }
646
851
  /**
647
852
  * 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).
648
853
  * @param {OrdersV0ApiGetOrderItemsBuyerInfoRequest} requestParameters Request parameters.
@@ -671,7 +876,17 @@ export class OrdersV0Api extends BaseAPI {
671
876
  * @memberof OrdersV0Api
672
877
  */
673
878
  getOrders(requestParameters, options) {
674
- return 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));
879
+ return 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));
880
+ }
881
+ /**
882
+ * 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).
883
+ * @param {OrdersV0ApiUpdateOrderItemsApprovalsRequest} requestParameters Request parameters.
884
+ * @param {*} [options] Override http request option.
885
+ * @throws {RequiredError}
886
+ * @memberof OrdersV0Api
887
+ */
888
+ updateOrderItemsApprovals(requestParameters, options) {
889
+ return OrdersV0ApiFp(this.configuration).updateOrderItemsApprovals(requestParameters.orderId, requestParameters.payload, options).then((request) => request(this.axios, this.basePath));
675
890
  }
676
891
  /**
677
892
  * 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).
@@ -31,6 +31,9 @@ export const COLLECTION_FORMATS = {
31
31
  * @class BaseAPI
32
32
  */
33
33
  export class BaseAPI {
34
+ basePath;
35
+ axios;
36
+ configuration;
34
37
  constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
35
38
  this.basePath = basePath;
36
39
  this.axios = axios;
@@ -48,9 +51,10 @@ export class BaseAPI {
48
51
  * @extends {Error}
49
52
  */
50
53
  export class RequiredError extends Error {
54
+ field;
55
+ name = "RequiredError";
51
56
  constructor(field, msg) {
52
57
  super(msg);
53
58
  this.field = field;
54
- this.name = "RequiredError";
55
59
  }
56
60
  }