@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
@@ -171,6 +171,34 @@ export const OrdersV0ApiAxiosParamCreator = function (configuration) {
171
171
  options: localVarRequestOptions,
172
172
  };
173
173
  },
174
+ /**
175
+ * 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.
176
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ getOrderRegulatedInfo: async (orderId, options = {}) => {
181
+ // verify required parameter 'orderId' is not null or undefined
182
+ assertParamExists('getOrderRegulatedInfo', 'orderId', orderId);
183
+ const localVarPath = `/orders/v0/orders/{orderId}/regulatedInfo`
184
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
185
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
186
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
187
+ let baseOptions;
188
+ if (configuration) {
189
+ baseOptions = configuration.baseOptions;
190
+ }
191
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
192
+ const localVarHeaderParameter = {};
193
+ const localVarQueryParameter = {};
194
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
197
+ return {
198
+ url: toPathString(localVarUrlObj),
199
+ options: localVarRequestOptions,
200
+ };
201
+ },
174
202
  /**
175
203
  * 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.
176
204
  * @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.
@@ -179,7 +207,7 @@ export const OrdersV0ApiAxiosParamCreator = function (configuration) {
179
207
  * @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.
180
208
  * @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.
181
209
  * @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.).
182
- * @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).
210
+ * @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).
183
211
  * @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).
184
212
  * @param {string} [buyerEmail] The email address of a buyer. Used to select orders that contain the specified email address.
185
213
  * @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.
@@ -298,6 +326,39 @@ export const OrdersV0ApiAxiosParamCreator = function (configuration) {
298
326
  options: localVarRequestOptions,
299
327
  };
300
328
  },
329
+ /**
330
+ * 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.
331
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
332
+ * @param {UpdateVerificationStatusRequest} payload Request to update the verification status of an order containing regulated products.
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ updateVerificationStatus: async (orderId, payload, options = {}) => {
337
+ // verify required parameter 'orderId' is not null or undefined
338
+ assertParamExists('updateVerificationStatus', 'orderId', orderId);
339
+ // verify required parameter 'payload' is not null or undefined
340
+ assertParamExists('updateVerificationStatus', 'payload', payload);
341
+ const localVarPath = `/orders/v0/orders/{orderId}/regulatedInfo`
342
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
343
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
344
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
345
+ let baseOptions;
346
+ if (configuration) {
347
+ baseOptions = configuration.baseOptions;
348
+ }
349
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
350
+ const localVarHeaderParameter = {};
351
+ const localVarQueryParameter = {};
352
+ localVarHeaderParameter['Content-Type'] = 'application/json';
353
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
355
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
356
+ localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
357
+ return {
358
+ url: toPathString(localVarUrlObj),
359
+ options: localVarRequestOptions,
360
+ };
361
+ },
301
362
  };
302
363
  };
303
364
  /**
@@ -359,6 +420,16 @@ export const OrdersV0ApiFp = function (configuration) {
359
420
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderItemsBuyerInfo(orderId, nextToken, options);
360
421
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
361
422
  },
423
+ /**
424
+ * 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.
425
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ */
429
+ async getOrderRegulatedInfo(orderId, options) {
430
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderRegulatedInfo(orderId, options);
431
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
432
+ },
362
433
  /**
363
434
  * 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.
364
435
  * @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.
@@ -367,7 +438,7 @@ export const OrdersV0ApiFp = function (configuration) {
367
438
  * @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.
368
439
  * @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.
369
440
  * @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.).
370
- * @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).
441
+ * @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).
371
442
  * @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).
372
443
  * @param {string} [buyerEmail] The email address of a buyer. Used to select orders that contain the specified email address.
373
444
  * @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.
@@ -396,6 +467,17 @@ export const OrdersV0ApiFp = function (configuration) {
396
467
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateShipmentStatus(orderId, payload, options);
397
468
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
398
469
  },
470
+ /**
471
+ * 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.
472
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
473
+ * @param {UpdateVerificationStatusRequest} payload Request to update the verification status of an order containing regulated products.
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ async updateVerificationStatus(orderId, payload, options) {
478
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateVerificationStatus(orderId, payload, options);
479
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
480
+ },
399
481
  };
400
482
  };
401
483
  /**
@@ -452,6 +534,15 @@ export const OrdersV0ApiFactory = function (configuration, basePath, axios) {
452
534
  getOrderItemsBuyerInfo(orderId, nextToken, options) {
453
535
  return localVarFp.getOrderItemsBuyerInfo(orderId, nextToken, options).then((request) => request(axios, basePath));
454
536
  },
537
+ /**
538
+ * 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.
539
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ getOrderRegulatedInfo(orderId, options) {
544
+ return localVarFp.getOrderRegulatedInfo(orderId, options).then((request) => request(axios, basePath));
545
+ },
455
546
  /**
456
547
  * 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.
457
548
  * @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.
@@ -460,7 +551,7 @@ export const OrdersV0ApiFactory = function (configuration, basePath, axios) {
460
551
  * @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.
461
552
  * @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.
462
553
  * @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.).
463
- * @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).
554
+ * @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).
464
555
  * @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).
465
556
  * @param {string} [buyerEmail] The email address of a buyer. Used to select orders that contain the specified email address.
466
557
  * @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.
@@ -487,6 +578,16 @@ export const OrdersV0ApiFactory = function (configuration, basePath, axios) {
487
578
  updateShipmentStatus(orderId, payload, options) {
488
579
  return localVarFp.updateShipmentStatus(orderId, payload, options).then((request) => request(axios, basePath));
489
580
  },
581
+ /**
582
+ * 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.
583
+ * @param {string} orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format.
584
+ * @param {UpdateVerificationStatusRequest} payload Request to update the verification status of an order containing regulated products.
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ */
588
+ updateVerificationStatus(orderId, payload, options) {
589
+ return localVarFp.updateVerificationStatus(orderId, payload, options).then((request) => request(axios, basePath));
590
+ },
490
591
  };
491
592
  };
492
593
  /**
@@ -546,6 +647,16 @@ export class OrdersV0Api extends BaseAPI {
546
647
  getOrderItemsBuyerInfo(requestParameters, options) {
547
648
  return OrdersV0ApiFp(this.configuration).getOrderItemsBuyerInfo(requestParameters.orderId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
548
649
  }
650
+ /**
651
+ * 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.
652
+ * @param {OrdersV0ApiGetOrderRegulatedInfoRequest} requestParameters Request parameters.
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ * @memberof OrdersV0Api
656
+ */
657
+ getOrderRegulatedInfo(requestParameters, options) {
658
+ return OrdersV0ApiFp(this.configuration).getOrderRegulatedInfo(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
659
+ }
549
660
  /**
550
661
  * 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.
551
662
  * @param {OrdersV0ApiGetOrdersRequest} requestParameters Request parameters.
@@ -566,4 +677,14 @@ export class OrdersV0Api extends BaseAPI {
566
677
  updateShipmentStatus(requestParameters, options) {
567
678
  return OrdersV0ApiFp(this.configuration).updateShipmentStatus(requestParameters.orderId, requestParameters.payload, options).then((request) => request(this.axios, this.basePath));
568
679
  }
680
+ /**
681
+ * 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.
682
+ * @param {OrdersV0ApiUpdateVerificationStatusRequest} requestParameters Request parameters.
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ * @memberof OrdersV0Api
686
+ */
687
+ updateVerificationStatus(requestParameters, options) {
688
+ return OrdersV0ApiFp(this.configuration).updateVerificationStatus(requestParameters.orderId, requestParameters.payload, options).then((request) => request(this.axios, this.basePath));
689
+ }
569
690
  }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -2,6 +2,7 @@ export * from './address';
2
2
  export * from './automated-shipping-settings';
3
3
  export * from './buyer-customized-info-detail';
4
4
  export * from './buyer-info';
5
+ export * from './buyer-requested-cancel';
5
6
  export * from './buyer-tax-info';
6
7
  export * from './buyer-tax-information';
7
8
  export * from './fulfillment-instruction';
@@ -9,6 +10,7 @@ export * from './get-order-address-response';
9
10
  export * from './get-order-buyer-info-response';
10
11
  export * from './get-order-items-buyer-info-response';
11
12
  export * from './get-order-items-response';
13
+ export * from './get-order-regulated-info-response';
12
14
  export * from './get-order-response';
13
15
  export * from './get-orders-response';
14
16
  export * from './item-buyer-info';
@@ -22,12 +24,20 @@ export * from './order-item';
22
24
  export * from './order-item-buyer-info';
23
25
  export * from './order-items-buyer-info-list';
24
26
  export * from './order-items-list';
27
+ export * from './order-regulated-info';
25
28
  export * from './orders-list';
26
29
  export * from './payment-execution-detail-item';
27
30
  export * from './points-granted-detail';
28
31
  export * from './product-info-detail';
32
+ export * from './regulated-information';
33
+ export * from './regulated-information-field';
34
+ export * from './regulated-order-verification-status';
35
+ export * from './rejection-reason';
29
36
  export * from './shipment-status';
30
37
  export * from './tax-classification';
31
38
  export * from './tax-collection';
32
39
  export * from './update-shipment-status-error-response';
33
40
  export * from './update-shipment-status-request';
41
+ export * from './update-verification-status-error-response';
42
+ export * from './update-verification-status-request';
43
+ export * from './update-verification-status-request-body';
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var RegulatedInformationFieldFieldTypeEnum;
19
+ (function (RegulatedInformationFieldFieldTypeEnum) {
20
+ RegulatedInformationFieldFieldTypeEnum["Text"] = "Text";
21
+ RegulatedInformationFieldFieldTypeEnum["FileAttachment"] = "FileAttachment";
22
+ })(RegulatedInformationFieldFieldTypeEnum || (RegulatedInformationFieldFieldTypeEnum = {}));
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var RegulatedOrderVerificationStatusStatusEnum;
19
+ (function (RegulatedOrderVerificationStatusStatusEnum) {
20
+ RegulatedOrderVerificationStatusStatusEnum["Pending"] = "Pending";
21
+ RegulatedOrderVerificationStatusStatusEnum["Approved"] = "Approved";
22
+ RegulatedOrderVerificationStatusStatusEnum["Rejected"] = "Rejected";
23
+ RegulatedOrderVerificationStatusStatusEnum["Expired"] = "Expired";
24
+ RegulatedOrderVerificationStatusStatusEnum["Cancelled"] = "Cancelled";
25
+ })(RegulatedOrderVerificationStatusStatusEnum || (RegulatedOrderVerificationStatusStatusEnum = {}));
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var UpdateVerificationStatusRequestBodyStatusEnum;
19
+ (function (UpdateVerificationStatusRequestBodyStatusEnum) {
20
+ UpdateVerificationStatusRequestBodyStatusEnum["Approved"] = "Approved";
21
+ UpdateVerificationStatusRequestBodyStatusEnum["Rejected"] = "Rejected";
22
+ })(UpdateVerificationStatusRequestBodyStatusEnum || (UpdateVerificationStatusRequestBodyStatusEnum = {}));
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -39,6 +39,18 @@ export const clientRateLimits = [
39
39
  rate: 0.0055,
40
40
  burst: 20,
41
41
  },
42
+ {
43
+ method: 'get',
44
+ urlRegex: new RegExp('^/orders/v0/orders/[^/]*/regulatedInfo$'),
45
+ rate: 0.0055,
46
+ burst: 20,
47
+ },
48
+ {
49
+ method: 'patch',
50
+ urlRegex: new RegExp('^/orders/v0/orders/[^/]*/regulatedInfo$'),
51
+ rate: 0.0055,
52
+ burst: 20,
53
+ },
42
54
  ];
43
55
  export class OrdersApiClient extends OrdersV0Api {
44
56
  constructor(parameters) {