@sp-api-sdk/orders-api-v0 1.10.0 → 1.11.2

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 (41) hide show
  1. package/dist/cjs/src/api-model/api/orders-v0-api.js +124 -3
  2. package/dist/cjs/src/api-model/models/buyer-requested-cancel.js +15 -0
  3. package/dist/cjs/src/api-model/models/get-order-regulated-info-response.js +15 -0
  4. package/dist/cjs/src/api-model/models/index.js +10 -0
  5. package/dist/cjs/src/api-model/models/order-regulated-info.js +15 -0
  6. package/dist/cjs/src/api-model/models/regulated-information-field.js +25 -0
  7. package/dist/cjs/src/api-model/models/regulated-information.js +15 -0
  8. package/dist/cjs/src/api-model/models/regulated-order-verification-status.js +28 -0
  9. package/dist/cjs/src/api-model/models/rejection-reason.js +15 -0
  10. package/dist/cjs/src/api-model/models/update-verification-status-error-response.js +15 -0
  11. package/dist/cjs/src/api-model/models/update-verification-status-request-body.js +25 -0
  12. package/dist/cjs/src/api-model/models/update-verification-status-request.js +15 -0
  13. package/dist/cjs/src/client.js +12 -0
  14. package/dist/es/src/api-model/api/orders-v0-api.js +124 -3
  15. package/dist/es/src/api-model/models/buyer-requested-cancel.js +14 -0
  16. package/dist/es/src/api-model/models/get-order-regulated-info-response.js +14 -0
  17. package/dist/es/src/api-model/models/index.js +10 -0
  18. package/dist/es/src/api-model/models/order-regulated-info.js +14 -0
  19. package/dist/es/src/api-model/models/regulated-information-field.js +22 -0
  20. package/dist/es/src/api-model/models/regulated-information.js +14 -0
  21. package/dist/es/src/api-model/models/regulated-order-verification-status.js +25 -0
  22. package/dist/es/src/api-model/models/rejection-reason.js +14 -0
  23. package/dist/es/src/api-model/models/update-verification-status-error-response.js +14 -0
  24. package/dist/es/src/api-model/models/update-verification-status-request-body.js +22 -0
  25. package/dist/es/src/api-model/models/update-verification-status-request.js +14 -0
  26. package/dist/es/src/client.js +12 -0
  27. package/dist/types/src/api-model/api/orders-v0-api.d.ts +99 -4
  28. package/dist/types/src/api-model/models/buyer-requested-cancel.d.ts +30 -0
  29. package/dist/types/src/api-model/models/get-order-regulated-info-response.d.ts +31 -0
  30. package/dist/types/src/api-model/models/index.d.ts +10 -0
  31. package/dist/types/src/api-model/models/order-item.d.ts +7 -0
  32. package/dist/types/src/api-model/models/order-regulated-info.d.ts +44 -0
  33. package/dist/types/src/api-model/models/order.d.ts +6 -0
  34. package/dist/types/src/api-model/models/regulated-information-field.d.ts +50 -0
  35. package/dist/types/src/api-model/models/regulated-information.d.ts +25 -0
  36. package/dist/types/src/api-model/models/regulated-order-verification-status.d.ts +66 -0
  37. package/dist/types/src/api-model/models/rejection-reason.d.ts +30 -0
  38. package/dist/types/src/api-model/models/update-verification-status-error-response.d.ts +24 -0
  39. package/dist/types/src/api-model/models/update-verification-status-request-body.d.ts +44 -0
  40. package/dist/types/src/api-model/models/update-verification-status-request.d.ts +25 -0
  41. package/package.json +5 -5
@@ -175,6 +175,34 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
175
175
  options: localVarRequestOptions,
176
176
  };
177
177
  },
178
+ /**
179
+ * Returns regulated information for the order indicated by the specified order ID. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
180
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ getOrderRegulatedInfo: async (orderId, options = {}) => {
185
+ // verify required parameter 'orderId' is not null or undefined
186
+ (0, common_1.assertParamExists)('getOrderRegulatedInfo', 'orderId', orderId);
187
+ const localVarPath = `/orders/v0/orders/{orderId}/regulatedInfo`
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, common_1.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
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
199
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
200
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
201
+ return {
202
+ url: (0, common_1.toPathString)(localVarUrlObj),
203
+ options: localVarRequestOptions,
204
+ };
205
+ },
178
206
  /**
179
207
  * 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 Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
180
208
  * @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.
@@ -183,7 +211,7 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
183
211
  * @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.
184
212
  * @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.
185
213
  * @param {Array<string>} [orderStatuses] A list of OrderStatus values used to filter the results. Possible values: PendingAvailability (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.); Pending (The order has been placed but payment has not been authorized); Unshipped (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped); PartiallyShipped (One or more, but not all, items in the order have been shipped); Shipped (All items in the order have been shipped); InvoiceUnconfirmed (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.); Canceled (The order has been canceled); and Unfulfillable (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.).
186
- * @param {Array<string>} [fulfillmentChannels] A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller).
214
+ * @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).
187
215
  * @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).
188
216
  * @param {string} [buyerEmail] The email address of a buyer. Used to select orders that contain the specified email address.
189
217
  * @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.
@@ -302,6 +330,39 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
302
330
  options: localVarRequestOptions,
303
331
  };
304
332
  },
333
+ /**
334
+ * Updates (approves or rejects) the verification status of an order containing regulated products. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
335
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
336
+ * @param {UpdateVerificationStatusRequest} payload Request to update the verification status of an order containing regulated products.
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ */
340
+ updateVerificationStatus: async (orderId, payload, options = {}) => {
341
+ // verify required parameter 'orderId' is not null or undefined
342
+ (0, common_1.assertParamExists)('updateVerificationStatus', 'orderId', orderId);
343
+ // verify required parameter 'payload' is not null or undefined
344
+ (0, common_1.assertParamExists)('updateVerificationStatus', 'payload', payload);
345
+ const localVarPath = `/orders/v0/orders/{orderId}/regulatedInfo`
346
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
347
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
348
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
349
+ let baseOptions;
350
+ if (configuration) {
351
+ baseOptions = configuration.baseOptions;
352
+ }
353
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
354
+ const localVarHeaderParameter = {};
355
+ const localVarQueryParameter = {};
356
+ localVarHeaderParameter['Content-Type'] = 'application/json';
357
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
358
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
359
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
360
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
361
+ return {
362
+ url: (0, common_1.toPathString)(localVarUrlObj),
363
+ options: localVarRequestOptions,
364
+ };
365
+ },
305
366
  };
306
367
  };
307
368
  exports.OrdersV0ApiAxiosParamCreator = OrdersV0ApiAxiosParamCreator;
@@ -364,6 +425,16 @@ const OrdersV0ApiFp = function (configuration) {
364
425
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderItemsBuyerInfo(orderId, nextToken, options);
365
426
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
366
427
  },
428
+ /**
429
+ * Returns regulated information for the order indicated by the specified order ID. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
430
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
431
+ * @param {*} [options] Override http request option.
432
+ * @throws {RequiredError}
433
+ */
434
+ async getOrderRegulatedInfo(orderId, options) {
435
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderRegulatedInfo(orderId, options);
436
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
437
+ },
367
438
  /**
368
439
  * 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 Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
369
440
  * @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.
@@ -372,7 +443,7 @@ const OrdersV0ApiFp = function (configuration) {
372
443
  * @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.
373
444
  * @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.
374
445
  * @param {Array<string>} [orderStatuses] A list of OrderStatus values used to filter the results. Possible values: PendingAvailability (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.); Pending (The order has been placed but payment has not been authorized); Unshipped (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped); PartiallyShipped (One or more, but not all, items in the order have been shipped); Shipped (All items in the order have been shipped); InvoiceUnconfirmed (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.); Canceled (The order has been canceled); and Unfulfillable (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.).
375
- * @param {Array<string>} [fulfillmentChannels] A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller).
446
+ * @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).
376
447
  * @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).
377
448
  * @param {string} [buyerEmail] The email address of a buyer. Used to select orders that contain the specified email address.
378
449
  * @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.
@@ -401,6 +472,17 @@ const OrdersV0ApiFp = function (configuration) {
401
472
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateShipmentStatus(orderId, payload, options);
402
473
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
403
474
  },
475
+ /**
476
+ * Updates (approves or rejects) the verification status of an order containing regulated products. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
477
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
478
+ * @param {UpdateVerificationStatusRequest} payload Request to update the verification status of an order containing regulated products.
479
+ * @param {*} [options] Override http request option.
480
+ * @throws {RequiredError}
481
+ */
482
+ async updateVerificationStatus(orderId, payload, options) {
483
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateVerificationStatus(orderId, payload, options);
484
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
485
+ },
404
486
  };
405
487
  };
406
488
  exports.OrdersV0ApiFp = OrdersV0ApiFp;
@@ -458,6 +540,15 @@ const OrdersV0ApiFactory = function (configuration, basePath, axios) {
458
540
  getOrderItemsBuyerInfo(orderId, nextToken, options) {
459
541
  return localVarFp.getOrderItemsBuyerInfo(orderId, nextToken, options).then((request) => request(axios, basePath));
460
542
  },
543
+ /**
544
+ * Returns regulated information for the order indicated by the specified order ID. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
545
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ getOrderRegulatedInfo(orderId, options) {
550
+ return localVarFp.getOrderRegulatedInfo(orderId, options).then((request) => request(axios, basePath));
551
+ },
461
552
  /**
462
553
  * 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 Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
463
554
  * @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.
@@ -466,7 +557,7 @@ const OrdersV0ApiFactory = function (configuration, basePath, axios) {
466
557
  * @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.
467
558
  * @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.
468
559
  * @param {Array<string>} [orderStatuses] A list of OrderStatus values used to filter the results. Possible values: PendingAvailability (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.); Pending (The order has been placed but payment has not been authorized); Unshipped (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped); PartiallyShipped (One or more, but not all, items in the order have been shipped); Shipped (All items in the order have been shipped); InvoiceUnconfirmed (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.); Canceled (The order has been canceled); and Unfulfillable (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.).
469
- * @param {Array<string>} [fulfillmentChannels] A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller).
560
+ * @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).
470
561
  * @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).
471
562
  * @param {string} [buyerEmail] The email address of a buyer. Used to select orders that contain the specified email address.
472
563
  * @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.
@@ -493,6 +584,16 @@ const OrdersV0ApiFactory = function (configuration, basePath, axios) {
493
584
  updateShipmentStatus(orderId, payload, options) {
494
585
  return localVarFp.updateShipmentStatus(orderId, payload, options).then((request) => request(axios, basePath));
495
586
  },
587
+ /**
588
+ * Updates (approves or rejects) the verification status of an order containing regulated products. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
589
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
590
+ * @param {UpdateVerificationStatusRequest} payload Request to update the verification status of an order containing regulated products.
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ */
594
+ updateVerificationStatus(orderId, payload, options) {
595
+ return localVarFp.updateVerificationStatus(orderId, payload, options).then((request) => request(axios, basePath));
596
+ },
496
597
  };
497
598
  };
498
599
  exports.OrdersV0ApiFactory = OrdersV0ApiFactory;
@@ -553,6 +654,16 @@ class OrdersV0Api extends base_1.BaseAPI {
553
654
  getOrderItemsBuyerInfo(requestParameters, options) {
554
655
  return (0, exports.OrdersV0ApiFp)(this.configuration).getOrderItemsBuyerInfo(requestParameters.orderId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
555
656
  }
657
+ /**
658
+ * Returns regulated information for the order indicated by the specified order ID. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
659
+ * @param {OrdersV0ApiGetOrderRegulatedInfoRequest} requestParameters Request parameters.
660
+ * @param {*} [options] Override http request option.
661
+ * @throws {RequiredError}
662
+ * @memberof OrdersV0Api
663
+ */
664
+ getOrderRegulatedInfo(requestParameters, options) {
665
+ return (0, exports.OrdersV0ApiFp)(this.configuration).getOrderRegulatedInfo(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
666
+ }
556
667
  /**
557
668
  * 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 Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
558
669
  * @param {OrdersV0ApiGetOrdersRequest} requestParameters Request parameters.
@@ -573,5 +684,15 @@ class OrdersV0Api extends base_1.BaseAPI {
573
684
  updateShipmentStatus(requestParameters, options) {
574
685
  return (0, exports.OrdersV0ApiFp)(this.configuration).updateShipmentStatus(requestParameters.orderId, requestParameters.payload, options).then((request) => request(this.axios, this.basePath));
575
686
  }
687
+ /**
688
+ * Updates (approves or rejects) the verification status of an order containing regulated products. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.0055 | 20 | |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.
689
+ * @param {OrdersV0ApiUpdateVerificationStatusRequest} requestParameters Request parameters.
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ * @memberof OrdersV0Api
693
+ */
694
+ updateVerificationStatus(requestParameters, options) {
695
+ return (0, exports.OrdersV0ApiFp)(this.configuration).updateVerificationStatus(requestParameters.orderId, requestParameters.payload, options).then((request) => request(this.axios, this.basePath));
696
+ }
576
697
  }
577
698
  exports.OrdersV0Api = OrdersV0Api;
@@ -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 });
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./address"), exports);
5
5
  tslib_1.__exportStar(require("./automated-shipping-settings"), exports);
6
6
  tslib_1.__exportStar(require("./buyer-customized-info-detail"), exports);
7
7
  tslib_1.__exportStar(require("./buyer-info"), exports);
8
+ tslib_1.__exportStar(require("./buyer-requested-cancel"), exports);
8
9
  tslib_1.__exportStar(require("./buyer-tax-info"), exports);
9
10
  tslib_1.__exportStar(require("./buyer-tax-information"), exports);
10
11
  tslib_1.__exportStar(require("./fulfillment-instruction"), exports);
@@ -12,6 +13,7 @@ tslib_1.__exportStar(require("./get-order-address-response"), exports);
12
13
  tslib_1.__exportStar(require("./get-order-buyer-info-response"), exports);
13
14
  tslib_1.__exportStar(require("./get-order-items-buyer-info-response"), exports);
14
15
  tslib_1.__exportStar(require("./get-order-items-response"), exports);
16
+ tslib_1.__exportStar(require("./get-order-regulated-info-response"), exports);
15
17
  tslib_1.__exportStar(require("./get-order-response"), exports);
16
18
  tslib_1.__exportStar(require("./get-orders-response"), exports);
17
19
  tslib_1.__exportStar(require("./item-buyer-info"), exports);
@@ -25,12 +27,20 @@ tslib_1.__exportStar(require("./order-item"), exports);
25
27
  tslib_1.__exportStar(require("./order-item-buyer-info"), exports);
26
28
  tslib_1.__exportStar(require("./order-items-buyer-info-list"), exports);
27
29
  tslib_1.__exportStar(require("./order-items-list"), exports);
30
+ tslib_1.__exportStar(require("./order-regulated-info"), exports);
28
31
  tslib_1.__exportStar(require("./orders-list"), exports);
29
32
  tslib_1.__exportStar(require("./payment-execution-detail-item"), exports);
30
33
  tslib_1.__exportStar(require("./points-granted-detail"), exports);
31
34
  tslib_1.__exportStar(require("./product-info-detail"), exports);
35
+ tslib_1.__exportStar(require("./regulated-information"), exports);
36
+ tslib_1.__exportStar(require("./regulated-information-field"), exports);
37
+ tslib_1.__exportStar(require("./regulated-order-verification-status"), exports);
38
+ tslib_1.__exportStar(require("./rejection-reason"), exports);
32
39
  tslib_1.__exportStar(require("./shipment-status"), exports);
33
40
  tslib_1.__exportStar(require("./tax-classification"), exports);
34
41
  tslib_1.__exportStar(require("./tax-collection"), exports);
35
42
  tslib_1.__exportStar(require("./update-shipment-status-error-response"), exports);
36
43
  tslib_1.__exportStar(require("./update-shipment-status-request"), exports);
44
+ tslib_1.__exportStar(require("./update-verification-status-error-response"), exports);
45
+ tslib_1.__exportStar(require("./update-verification-status-request"), exports);
46
+ tslib_1.__exportStar(require("./update-verification-status-request-body"), 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,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.RegulatedInformationFieldFieldTypeEnum = void 0;
17
+ /**
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var RegulatedInformationFieldFieldTypeEnum;
22
+ (function (RegulatedInformationFieldFieldTypeEnum) {
23
+ RegulatedInformationFieldFieldTypeEnum["Text"] = "Text";
24
+ RegulatedInformationFieldFieldTypeEnum["FileAttachment"] = "FileAttachment";
25
+ })(RegulatedInformationFieldFieldTypeEnum = exports.RegulatedInformationFieldFieldTypeEnum || (exports.RegulatedInformationFieldFieldTypeEnum = {}));
@@ -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,28 @@
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.RegulatedOrderVerificationStatusStatusEnum = void 0;
17
+ /**
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var RegulatedOrderVerificationStatusStatusEnum;
22
+ (function (RegulatedOrderVerificationStatusStatusEnum) {
23
+ RegulatedOrderVerificationStatusStatusEnum["Pending"] = "Pending";
24
+ RegulatedOrderVerificationStatusStatusEnum["Approved"] = "Approved";
25
+ RegulatedOrderVerificationStatusStatusEnum["Rejected"] = "Rejected";
26
+ RegulatedOrderVerificationStatusStatusEnum["Expired"] = "Expired";
27
+ RegulatedOrderVerificationStatusStatusEnum["Cancelled"] = "Cancelled";
28
+ })(RegulatedOrderVerificationStatusStatusEnum = exports.RegulatedOrderVerificationStatusStatusEnum || (exports.RegulatedOrderVerificationStatusStatusEnum = {}));
@@ -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,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.UpdateVerificationStatusRequestBodyStatusEnum = void 0;
17
+ /**
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var UpdateVerificationStatusRequestBodyStatusEnum;
22
+ (function (UpdateVerificationStatusRequestBodyStatusEnum) {
23
+ UpdateVerificationStatusRequestBodyStatusEnum["Approved"] = "Approved";
24
+ UpdateVerificationStatusRequestBodyStatusEnum["Rejected"] = "Rejected";
25
+ })(UpdateVerificationStatusRequestBodyStatusEnum = exports.UpdateVerificationStatusRequestBodyStatusEnum || (exports.UpdateVerificationStatusRequestBodyStatusEnum = {}));
@@ -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 });
@@ -42,6 +42,18 @@ exports.clientRateLimits = [
42
42
  rate: 0.0055,
43
43
  burst: 20,
44
44
  },
45
+ {
46
+ method: 'get',
47
+ urlRegex: new RegExp('^/orders/v0/orders/[^/]*/regulatedInfo$'),
48
+ rate: 0.0055,
49
+ burst: 20,
50
+ },
51
+ {
52
+ method: 'patch',
53
+ urlRegex: new RegExp('^/orders/v0/orders/[^/]*/regulatedInfo$'),
54
+ rate: 0.0055,
55
+ burst: 20,
56
+ },
45
57
  ];
46
58
  class OrdersApiClient extends api_model_1.OrdersV0Api {
47
59
  constructor(parameters) {