@sp-api-sdk/vendor-shipments-api-v1 5.3.1 → 5.4.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 (31) hide show
  1. package/dist/cjs/api-model/api/vendor-shipments-api.js +68 -4
  2. package/dist/cjs/api-model/models/index.js +5 -0
  3. package/dist/cjs/api-model/models/item-details.js +7 -1
  4. package/dist/cjs/api-model/models/package-item-details.js +0 -7
  5. package/dist/cjs/api-model/models/packed-quantity.js +20 -0
  6. package/dist/cjs/api-model/models/purchase-order-item-details.js +15 -0
  7. package/dist/cjs/api-model/models/submit-shipment-confirmation-request.js +15 -0
  8. package/dist/cjs/api-model/models/submit-shipment-confirmation-response.js +15 -0
  9. package/dist/cjs/api-model/models/submit-shipment-confirmation-result.js +15 -0
  10. package/dist/cjs/client.js +14 -0
  11. package/dist/es/api-model/api/vendor-shipments-api.js +68 -4
  12. package/dist/es/api-model/models/index.js +5 -0
  13. package/dist/es/api-model/models/item-details.js +6 -0
  14. package/dist/es/api-model/models/package-item-details.js +1 -6
  15. package/dist/es/api-model/models/packed-quantity.js +17 -0
  16. package/dist/es/api-model/models/purchase-order-item-details.js +14 -0
  17. package/dist/es/api-model/models/submit-shipment-confirmation-request.js +14 -0
  18. package/dist/es/api-model/models/submit-shipment-confirmation-response.js +14 -0
  19. package/dist/es/api-model/models/submit-shipment-confirmation-result.js +14 -0
  20. package/dist/es/client.js +14 -0
  21. package/dist/types/api-model/api/vendor-shipments-api.d.ts +47 -4
  22. package/dist/types/api-model/models/index.d.ts +5 -0
  23. package/dist/types/api-model/models/item-details.d.ts +21 -0
  24. package/dist/types/api-model/models/package-item-details.d.ts +0 -21
  25. package/dist/types/api-model/models/packed-quantity.d.ts +33 -0
  26. package/dist/types/api-model/models/purchase-order-item-details.d.ts +18 -0
  27. package/dist/types/api-model/models/regulation-references.d.ts +5 -5
  28. package/dist/types/api-model/models/submit-shipment-confirmation-request.d.ts +18 -0
  29. package/dist/types/api-model/models/submit-shipment-confirmation-response.d.ts +22 -0
  30. package/dist/types/api-model/models/submit-shipment-confirmation-result.d.ts +20 -0
  31. package/package.json +4 -4
@@ -244,7 +244,38 @@ const VendorShipmentsApiAxiosParamCreator = function (configuration) {
244
244
  };
245
245
  },
246
246
  /**
247
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
247
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
248
+ * @summary SubmitShipmentConfirmation
249
+ * @param {SubmitShipmentConfirmationRequest} body A request to submit shipment confirmation.
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ submitShipmentConfirmation: async (body, options = {}) => {
254
+ // verify required parameter 'body' is not null or undefined
255
+ (0, common_1.assertParamExists)('submitShipmentConfirmation', 'body', body);
256
+ const localVarPath = `/vendor/shipping/v1/shipmentConfirmation`;
257
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
258
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
259
+ let baseOptions;
260
+ if (configuration) {
261
+ baseOptions = configuration.baseOptions;
262
+ }
263
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
264
+ const localVarHeaderParameter = {};
265
+ const localVarQueryParameter = {};
266
+ localVarHeaderParameter['Content-Type'] = 'application/json';
267
+ localVarHeaderParameter['Accept'] = 'application/json';
268
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
270
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
271
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
272
+ return {
273
+ url: (0, common_1.toPathString)(localVarUrlObj),
274
+ options: localVarRequestOptions,
275
+ };
276
+ },
277
+ /**
278
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
248
279
  * @summary SubmitShipmentConfirmations
249
280
  * @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
250
281
  * @param {*} [options] Override http request option.
@@ -370,7 +401,20 @@ const VendorShipmentsApiFp = function (configuration) {
370
401
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
371
402
  },
372
403
  /**
373
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
404
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
405
+ * @summary SubmitShipmentConfirmation
406
+ * @param {SubmitShipmentConfirmationRequest} body A request to submit shipment confirmation.
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ async submitShipmentConfirmation(body, options) {
411
+ const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipmentConfirmation(body, options);
412
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
413
+ const localVarOperationServerBasePath = base_1.operationServerMap['VendorShipmentsApi.submitShipmentConfirmation']?.[localVarOperationServerIndex]?.url;
414
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
415
+ },
416
+ /**
417
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
374
418
  * @summary SubmitShipmentConfirmations
375
419
  * @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
376
420
  * @param {*} [options] Override http request option.
@@ -424,7 +468,17 @@ const VendorShipmentsApiFactory = function (configuration, basePath, axios) {
424
468
  return localVarFp.getShipmentLabels(requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.labelCreatedAfter, requestParameters.labelCreatedBefore, requestParameters.buyerReferenceNumber, requestParameters.vendorShipmentIdentifier, requestParameters.sellerWarehouseCode, options).then((request) => request(axios, basePath));
425
469
  },
426
470
  /**
427
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
471
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
472
+ * @summary SubmitShipmentConfirmation
473
+ * @param {VendorShipmentsApiSubmitShipmentConfirmationRequest} requestParameters Request parameters.
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ submitShipmentConfirmation(requestParameters, options) {
478
+ return localVarFp.submitShipmentConfirmation(requestParameters.body, options).then((request) => request(axios, basePath));
479
+ },
480
+ /**
481
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
428
482
  * @summary SubmitShipmentConfirmations
429
483
  * @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
430
484
  * @param {*} [options] Override http request option.
@@ -470,7 +524,17 @@ class VendorShipmentsApi extends base_1.BaseAPI {
470
524
  return (0, exports.VendorShipmentsApiFp)(this.configuration).getShipmentLabels(requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.labelCreatedAfter, requestParameters.labelCreatedBefore, requestParameters.buyerReferenceNumber, requestParameters.vendorShipmentIdentifier, requestParameters.sellerWarehouseCode, options).then((request) => request(this.axios, this.basePath));
471
525
  }
472
526
  /**
473
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
527
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
528
+ * @summary SubmitShipmentConfirmation
529
+ * @param {VendorShipmentsApiSubmitShipmentConfirmationRequest} requestParameters Request parameters.
530
+ * @param {*} [options] Override http request option.
531
+ * @throws {RequiredError}
532
+ */
533
+ submitShipmentConfirmation(requestParameters, options) {
534
+ return (0, exports.VendorShipmentsApiFp)(this.configuration).submitShipmentConfirmation(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
535
+ }
536
+ /**
537
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
474
538
  * @summary SubmitShipmentConfirmations
475
539
  * @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
476
540
  * @param {*} [options] Override http request option.
@@ -39,9 +39,11 @@ __exportStar(require("./model-error"), exports);
39
39
  __exportStar(require("./money"), exports);
40
40
  __exportStar(require("./package-item-details"), exports);
41
41
  __exportStar(require("./packed-items"), exports);
42
+ __exportStar(require("./packed-quantity"), exports);
42
43
  __exportStar(require("./pagination"), exports);
43
44
  __exportStar(require("./pallet"), exports);
44
45
  __exportStar(require("./party-identification"), exports);
46
+ __exportStar(require("./purchase-order-item-details"), exports);
45
47
  __exportStar(require("./purchase-order-items"), exports);
46
48
  __exportStar(require("./purchase-orders"), exports);
47
49
  __exportStar(require("./regulation-references"), exports);
@@ -53,6 +55,9 @@ __exportStar(require("./shipment-information"), exports);
53
55
  __exportStar(require("./shipment-measurements"), exports);
54
56
  __exportStar(require("./shipment-status-details"), exports);
55
57
  __exportStar(require("./stop"), exports);
58
+ __exportStar(require("./submit-shipment-confirmation-request"), exports);
59
+ __exportStar(require("./submit-shipment-confirmation-response"), exports);
60
+ __exportStar(require("./submit-shipment-confirmation-result"), exports);
56
61
  __exportStar(require("./submit-shipment-confirmations-request"), exports);
57
62
  __exportStar(require("./submit-shipment-confirmations-response"), exports);
58
63
  __exportStar(require("./submit-shipments"), exports);
@@ -13,7 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ItemDetailsHandlingCodeEnum = void 0;
16
+ exports.ItemDetailsHandlingCodeEnum = exports.ItemDetailsLotNumberSourceTypeEnum = void 0;
17
+ exports.ItemDetailsLotNumberSourceTypeEnum = {
18
+ Gln: 'GLN',
19
+ Ffrn: 'FFRN',
20
+ UsdaE: 'USDA_E',
21
+ Url: 'URL'
22
+ };
17
23
  exports.ItemDetailsHandlingCodeEnum = {
18
24
  Oversized: 'Oversized',
19
25
  Fragile: 'Fragile',
@@ -13,10 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PackageItemDetailsLotNumberSourceTypeEnum = void 0;
17
- exports.PackageItemDetailsLotNumberSourceTypeEnum = {
18
- Gln: 'GLN',
19
- Ffrn: 'FFRN',
20
- UsdaE: 'USDA_E',
21
- Url: 'URL'
22
- };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Retail Procurement Shipments
6
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
7
+ *
8
+ * The version of the OpenAPI document: v1
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.PackedQuantityUnitOfMeasureEnum = void 0;
17
+ exports.PackedQuantityUnitOfMeasureEnum = {
18
+ Cases: 'Cases',
19
+ Eaches: 'Eaches'
20
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Retail Procurement Shipments
6
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
7
+ *
8
+ * The version of the OpenAPI document: v1
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 Retail Procurement Shipments
6
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
7
+ *
8
+ * The version of the OpenAPI document: v1
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 Retail Procurement Shipments
6
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
7
+ *
8
+ * The version of the OpenAPI document: v1
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 Retail Procurement Shipments
6
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
7
+ *
8
+ * The version of the OpenAPI document: v1
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 });
@@ -4,6 +4,20 @@ exports.VendorShipmentsApiClient = exports.clientRateLimits = void 0;
4
4
  const common_1 = require("@sp-api-sdk/common");
5
5
  const api_model_1 = require("./api-model");
6
6
  exports.clientRateLimits = [
7
+ {
8
+ method: 'post',
9
+ // eslint-disable-next-line prefer-regex-literals
10
+ urlRegex: new RegExp('^/vendor/shipping/v1/shipmentConfirmations$'),
11
+ rate: 10,
12
+ burst: 10,
13
+ },
14
+ {
15
+ method: 'post',
16
+ // eslint-disable-next-line prefer-regex-literals
17
+ urlRegex: new RegExp('^/vendor/shipping/v1/shipmentConfirmation$'),
18
+ rate: 10,
19
+ burst: 10,
20
+ },
7
21
  {
8
22
  method: 'post',
9
23
  // eslint-disable-next-line prefer-regex-literals
@@ -238,7 +238,38 @@ export const VendorShipmentsApiAxiosParamCreator = function (configuration) {
238
238
  };
239
239
  },
240
240
  /**
241
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
241
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
242
+ * @summary SubmitShipmentConfirmation
243
+ * @param {SubmitShipmentConfirmationRequest} body A request to submit shipment confirmation.
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ */
247
+ submitShipmentConfirmation: async (body, options = {}) => {
248
+ // verify required parameter 'body' is not null or undefined
249
+ assertParamExists('submitShipmentConfirmation', 'body', body);
250
+ const localVarPath = `/vendor/shipping/v1/shipmentConfirmation`;
251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
253
+ let baseOptions;
254
+ if (configuration) {
255
+ baseOptions = configuration.baseOptions;
256
+ }
257
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
258
+ const localVarHeaderParameter = {};
259
+ const localVarQueryParameter = {};
260
+ localVarHeaderParameter['Content-Type'] = 'application/json';
261
+ localVarHeaderParameter['Accept'] = 'application/json';
262
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
263
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
264
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
265
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
266
+ return {
267
+ url: toPathString(localVarUrlObj),
268
+ options: localVarRequestOptions,
269
+ };
270
+ },
271
+ /**
272
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
242
273
  * @summary SubmitShipmentConfirmations
243
274
  * @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
244
275
  * @param {*} [options] Override http request option.
@@ -363,7 +394,20 @@ export const VendorShipmentsApiFp = function (configuration) {
363
394
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
364
395
  },
365
396
  /**
366
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
397
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
398
+ * @summary SubmitShipmentConfirmation
399
+ * @param {SubmitShipmentConfirmationRequest} body A request to submit shipment confirmation.
400
+ * @param {*} [options] Override http request option.
401
+ * @throws {RequiredError}
402
+ */
403
+ async submitShipmentConfirmation(body, options) {
404
+ const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipmentConfirmation(body, options);
405
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
406
+ const localVarOperationServerBasePath = operationServerMap['VendorShipmentsApi.submitShipmentConfirmation']?.[localVarOperationServerIndex]?.url;
407
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
408
+ },
409
+ /**
410
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
367
411
  * @summary SubmitShipmentConfirmations
368
412
  * @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
369
413
  * @param {*} [options] Override http request option.
@@ -416,7 +460,17 @@ export const VendorShipmentsApiFactory = function (configuration, basePath, axio
416
460
  return localVarFp.getShipmentLabels(requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.labelCreatedAfter, requestParameters.labelCreatedBefore, requestParameters.buyerReferenceNumber, requestParameters.vendorShipmentIdentifier, requestParameters.sellerWarehouseCode, options).then((request) => request(axios, basePath));
417
461
  },
418
462
  /**
419
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
463
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
464
+ * @summary SubmitShipmentConfirmation
465
+ * @param {VendorShipmentsApiSubmitShipmentConfirmationRequest} requestParameters Request parameters.
466
+ * @param {*} [options] Override http request option.
467
+ * @throws {RequiredError}
468
+ */
469
+ submitShipmentConfirmation(requestParameters, options) {
470
+ return localVarFp.submitShipmentConfirmation(requestParameters.body, options).then((request) => request(axios, basePath));
471
+ },
472
+ /**
473
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
420
474
  * @summary SubmitShipmentConfirmations
421
475
  * @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
422
476
  * @param {*} [options] Override http request option.
@@ -461,7 +515,17 @@ export class VendorShipmentsApi extends BaseAPI {
461
515
  return VendorShipmentsApiFp(this.configuration).getShipmentLabels(requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.labelCreatedAfter, requestParameters.labelCreatedBefore, requestParameters.buyerReferenceNumber, requestParameters.vendorShipmentIdentifier, requestParameters.sellerWarehouseCode, options).then((request) => request(this.axios, this.basePath));
462
516
  }
463
517
  /**
464
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
518
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
519
+ * @summary SubmitShipmentConfirmation
520
+ * @param {VendorShipmentsApiSubmitShipmentConfirmationRequest} requestParameters Request parameters.
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ submitShipmentConfirmation(requestParameters, options) {
525
+ return VendorShipmentsApiFp(this.configuration).submitShipmentConfirmation(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
526
+ }
527
+ /**
528
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
465
529
  * @summary SubmitShipmentConfirmations
466
530
  * @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
467
531
  * @param {*} [options] Override http request option.
@@ -23,9 +23,11 @@ export * from './model-error';
23
23
  export * from './money';
24
24
  export * from './package-item-details';
25
25
  export * from './packed-items';
26
+ export * from './packed-quantity';
26
27
  export * from './pagination';
27
28
  export * from './pallet';
28
29
  export * from './party-identification';
30
+ export * from './purchase-order-item-details';
29
31
  export * from './purchase-order-items';
30
32
  export * from './purchase-orders';
31
33
  export * from './regulation-references';
@@ -37,6 +39,9 @@ export * from './shipment-information';
37
39
  export * from './shipment-measurements';
38
40
  export * from './shipment-status-details';
39
41
  export * from './stop';
42
+ export * from './submit-shipment-confirmation-request';
43
+ export * from './submit-shipment-confirmation-response';
44
+ export * from './submit-shipment-confirmation-result';
40
45
  export * from './submit-shipment-confirmations-request';
41
46
  export * from './submit-shipment-confirmations-response';
42
47
  export * from './submit-shipments';
@@ -11,6 +11,12 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ export const ItemDetailsLotNumberSourceTypeEnum = {
15
+ Gln: 'GLN',
16
+ Ffrn: 'FFRN',
17
+ UsdaE: 'USDA_E',
18
+ Url: 'URL'
19
+ };
14
20
  export const ItemDetailsHandlingCodeEnum = {
15
21
  Oversized: 'Oversized',
16
22
  Fragile: 'Fragile',
@@ -11,9 +11,4 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export const PackageItemDetailsLotNumberSourceTypeEnum = {
15
- Gln: 'GLN',
16
- Ffrn: 'FFRN',
17
- UsdaE: 'USDA_E',
18
- Url: 'URL'
19
- };
14
+ export {};
@@ -0,0 +1,17 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
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 const PackedQuantityUnitOfMeasureEnum = {
15
+ Cases: 'Cases',
16
+ Eaches: 'Eaches'
17
+ };
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
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 Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
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 Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
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 Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
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 {};
package/dist/es/client.js CHANGED
@@ -1,6 +1,20 @@
1
1
  import { createAxiosInstance } from '@sp-api-sdk/common';
2
2
  import { Configuration, VendorShipmentsApi } from './api-model';
3
3
  export const clientRateLimits = [
4
+ {
5
+ method: 'post',
6
+ // eslint-disable-next-line prefer-regex-literals
7
+ urlRegex: new RegExp('^/vendor/shipping/v1/shipmentConfirmations$'),
8
+ rate: 10,
9
+ burst: 10,
10
+ },
11
+ {
12
+ method: 'post',
13
+ // eslint-disable-next-line prefer-regex-literals
14
+ urlRegex: new RegExp('^/vendor/shipping/v1/shipmentConfirmation$'),
15
+ rate: 10,
16
+ burst: 10,
17
+ },
4
18
  {
5
19
  method: 'post',
6
20
  // eslint-disable-next-line prefer-regex-literals
@@ -15,6 +15,8 @@ import globalAxios from 'axios';
15
15
  import { type RequestArgs, BaseAPI } from '../base';
16
16
  import type { GetShipmentDetailsResponse } from '../models';
17
17
  import type { GetShipmentLabels } from '../models';
18
+ import type { SubmitShipmentConfirmationRequest } from '../models';
19
+ import type { SubmitShipmentConfirmationResponse } from '../models';
18
20
  import type { SubmitShipmentConfirmationsRequest } from '../models';
19
21
  import type { SubmitShipmentConfirmationsResponse } from '../models';
20
22
  import type { SubmitShipments } from '../models';
@@ -68,7 +70,15 @@ export declare const VendorShipmentsApiAxiosParamCreator: (configuration?: Confi
68
70
  */
69
71
  getShipmentLabels: (limit?: number, sortOrder?: GetShipmentLabelsSortOrderEnum, nextToken?: string, labelCreatedAfter?: string, labelCreatedBefore?: string, buyerReferenceNumber?: string, vendorShipmentIdentifier?: string, sellerWarehouseCode?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
70
72
  /**
71
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
73
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
74
+ * @summary SubmitShipmentConfirmation
75
+ * @param {SubmitShipmentConfirmationRequest} body A request to submit shipment confirmation.
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ submitShipmentConfirmation: (body: SubmitShipmentConfirmationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
80
+ /**
81
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
72
82
  * @summary SubmitShipmentConfirmations
73
83
  * @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
74
84
  * @param {*} [options] Override http request option.
@@ -134,7 +144,15 @@ export declare const VendorShipmentsApiFp: (configuration?: Configuration) => {
134
144
  */
135
145
  getShipmentLabels(limit?: number, sortOrder?: GetShipmentLabelsSortOrderEnum, nextToken?: string, labelCreatedAfter?: string, labelCreatedBefore?: string, buyerReferenceNumber?: string, vendorShipmentIdentifier?: string, sellerWarehouseCode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetShipmentLabels>>;
136
146
  /**
137
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
147
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
148
+ * @summary SubmitShipmentConfirmation
149
+ * @param {SubmitShipmentConfirmationRequest} body A request to submit shipment confirmation.
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ submitShipmentConfirmation(body: SubmitShipmentConfirmationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitShipmentConfirmationResponse>>;
154
+ /**
155
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
138
156
  * @summary SubmitShipmentConfirmations
139
157
  * @param {SubmitShipmentConfirmationsRequest} body A request to submit shipment confirmation.
140
158
  * @param {*} [options] Override http request option.
@@ -170,7 +188,15 @@ export declare const VendorShipmentsApiFactory: (configuration?: Configuration,
170
188
  */
171
189
  getShipmentLabels(requestParameters?: VendorShipmentsApiGetShipmentLabelsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetShipmentLabels>;
172
190
  /**
173
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
191
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
192
+ * @summary SubmitShipmentConfirmation
193
+ * @param {VendorShipmentsApiSubmitShipmentConfirmationRequest} requestParameters Request parameters.
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ submitShipmentConfirmation(requestParameters: VendorShipmentsApiSubmitShipmentConfirmationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubmitShipmentConfirmationResponse>;
198
+ /**
199
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
174
200
  * @summary SubmitShipmentConfirmations
175
201
  * @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
176
202
  * @param {*} [options] Override http request option.
@@ -324,6 +350,15 @@ export interface VendorShipmentsApiGetShipmentLabelsRequest {
324
350
  */
325
351
  readonly sellerWarehouseCode?: string;
326
352
  }
353
+ /**
354
+ * Request parameters for submitShipmentConfirmation operation in VendorShipmentsApi.
355
+ */
356
+ export interface VendorShipmentsApiSubmitShipmentConfirmationRequest {
357
+ /**
358
+ * A request to submit shipment confirmation.
359
+ */
360
+ readonly body: SubmitShipmentConfirmationRequest;
361
+ }
327
362
  /**
328
363
  * Request parameters for submitShipmentConfirmations operation in VendorShipmentsApi.
329
364
  */
@@ -362,7 +397,15 @@ export declare class VendorShipmentsApi extends BaseAPI {
362
397
  */
363
398
  getShipmentLabels(requestParameters?: VendorShipmentsApiGetShipmentLabelsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentLabels, any, {}>>;
364
399
  /**
365
- * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | --- | --- | | 10 | 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 than 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).
400
+ * Submits one shipment confirmation for vendor orders and get response immediately. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
401
+ * @summary SubmitShipmentConfirmation
402
+ * @param {VendorShipmentsApiSubmitShipmentConfirmationRequest} requestParameters Request parameters.
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ */
406
+ submitShipmentConfirmation(requestParameters: VendorShipmentsApiSubmitShipmentConfirmationRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitShipmentConfirmationResponse, any, {}>>;
407
+ /**
408
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 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 than 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).
366
409
  * @summary SubmitShipmentConfirmations
367
410
  * @param {VendorShipmentsApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
368
411
  * @param {*} [options] Override http request option.
@@ -23,9 +23,11 @@ export * from './model-error';
23
23
  export * from './money';
24
24
  export * from './package-item-details';
25
25
  export * from './packed-items';
26
+ export * from './packed-quantity';
26
27
  export * from './pagination';
27
28
  export * from './pallet';
28
29
  export * from './party-identification';
30
+ export * from './purchase-order-item-details';
29
31
  export * from './purchase-order-items';
30
32
  export * from './purchase-orders';
31
33
  export * from './regulation-references';
@@ -37,6 +39,9 @@ export * from './shipment-information';
37
39
  export * from './shipment-measurements';
38
40
  export * from './shipment-status-details';
39
41
  export * from './stop';
42
+ export * from './submit-shipment-confirmation-request';
43
+ export * from './submit-shipment-confirmation-response';
44
+ export * from './submit-shipment-confirmation-result';
40
45
  export * from './submit-shipment-confirmations-request';
41
46
  export * from './submit-shipment-confirmations-response';
42
47
  export * from './submit-shipments';
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { Expiry } from './expiry';
13
13
  import type { Money } from './money';
14
+ import type { RegulationReferences } from './regulation-references';
14
15
  /**
15
16
  * Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate.
16
17
  */
@@ -23,6 +24,19 @@ export interface ItemDetails {
23
24
  * The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items.
24
25
  */
25
26
  'lotNumber'?: string;
27
+ /**
28
+ * The location identifier where the product receives a traceability lot number. Provide this field for products subject to the FDA Food Safety Modernization Act (FSMA) Section 204. When you provide `lotNumberSourceReference`, you must also specify the corresponding `lotNumberSourceType` field.
29
+ */
30
+ 'lotNumberSourceReference'?: string;
31
+ /**
32
+ * The identifier type used for the lot number source. Provide this field when you specify `lotNumberSourceReference`.
33
+ */
34
+ 'lotNumberSourceType'?: ItemDetailsLotNumberSourceTypeEnum;
35
+ /**
36
+ * The two-character country code for the country where the product was manufactured or originates. Use ISO 3166-1 alpha-2 format.
37
+ */
38
+ 'countryOfOrigin'?: string;
39
+ 'regulationReferences'?: RegulationReferences;
26
40
  'expiry'?: Expiry;
27
41
  'maximumRetailPrice'?: Money;
28
42
  /**
@@ -30,6 +44,13 @@ export interface ItemDetails {
30
44
  */
31
45
  'handlingCode'?: ItemDetailsHandlingCodeEnum;
32
46
  }
47
+ export declare const ItemDetailsLotNumberSourceTypeEnum: {
48
+ readonly Gln: "GLN";
49
+ readonly Ffrn: "FFRN";
50
+ readonly UsdaE: "USDA_E";
51
+ readonly Url: "URL";
52
+ };
53
+ export type ItemDetailsLotNumberSourceTypeEnum = typeof ItemDetailsLotNumberSourceTypeEnum[keyof typeof ItemDetailsLotNumberSourceTypeEnum];
33
54
  export declare const ItemDetailsHandlingCodeEnum: {
34
55
  readonly Oversized: "Oversized";
35
56
  readonly Fragile: "Fragile";
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Expiry } from './expiry';
13
- import type { RegulationReferences } from './regulation-references';
14
13
  /**
15
14
  * Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate.
16
15
  */
@@ -23,25 +22,5 @@ export interface PackageItemDetails {
23
22
  * The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items.
24
23
  */
25
24
  'lotNumber'?: string;
26
- /**
27
- * This is a reference to the lot number source location meaning the place where the product was assigned a traceability lot number. This is mandatory for goods in scope of the FDA Food Safety Modernization Act (FSMA 204). If provided, lotNumberSourceType must also be specified.
28
- */
29
- 'lotNumberSourceReference'?: string;
30
- /**
31
- * The type of reference for the lot number source. Must be provided when lotNumberSourceReference is specified.
32
- */
33
- 'lotNumberSourceType'?: PackageItemDetailsLotNumberSourceTypeEnum;
34
- /**
35
- * The two digit country code in ISO 3166-1 alpha-2 format representing the country where the product was manufactured or originated.
36
- */
37
- 'countryOfOrigin'?: string;
38
- 'regulationReferences'?: RegulationReferences;
39
25
  'expiry'?: Expiry;
40
26
  }
41
- export declare const PackageItemDetailsLotNumberSourceTypeEnum: {
42
- readonly Gln: "GLN";
43
- readonly Ffrn: "FFRN";
44
- readonly UsdaE: "USDA_E";
45
- readonly Url: "URL";
46
- };
47
- export type PackageItemDetailsLotNumberSourceTypeEnum = typeof PackageItemDetailsLotNumberSourceTypeEnum[keyof typeof PackageItemDetailsLotNumberSourceTypeEnum];
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Details of item quantity.
14
+ */
15
+ export interface PackedQuantity {
16
+ /**
17
+ * Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level.
18
+ */
19
+ 'amount': number;
20
+ /**
21
+ * Unit of measure for the shipped quantity.
22
+ */
23
+ 'unitOfMeasure': PackedQuantityUnitOfMeasureEnum;
24
+ /**
25
+ * The case size, in the event that we ordered using cases. Otherwise, 1.
26
+ */
27
+ 'unitSize'?: number;
28
+ }
29
+ export declare const PackedQuantityUnitOfMeasureEnum: {
30
+ readonly Cases: "Cases";
31
+ readonly Eaches: "Eaches";
32
+ };
33
+ export type PackedQuantityUnitOfMeasureEnum = typeof PackedQuantityUnitOfMeasureEnum[keyof typeof PackedQuantityUnitOfMeasureEnum];
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Money } from './money';
13
+ /**
14
+ * Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate.
15
+ */
16
+ export interface PurchaseOrderItemDetails {
17
+ 'maximumRetailPrice'?: Money;
18
+ }
@@ -10,23 +10,23 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Container for regulatory compliance information, for instance EU Due Diligence Regulation (EUDR) requirements. Includes reference numbers, verification codes, compliance information, and exemption codes necessary for documenting regulatory compliance for shipments.
13
+ * Regulatory requirements and compliance information for the item, including reference numbers, verification codes, and exemption codes. Use this field to specify applicable regulations such as EU Deforestation Regulation (EUDR).
14
14
  */
15
15
  export interface RegulationReferences {
16
16
  /**
17
- * The EUDR Due Diligence Reference number from vendor\'s upstream Due Dilligence Statement (DDS) submitted to EU Commison portal or provided to Onix.
17
+ * The reference number from the vendor\'s EUDR Due Diligence Statement (DDS) submitted to the EU Commission portal or provided to Amazon through ONIX feed.
18
18
  */
19
19
  'dueDiligenceReference'?: string;
20
20
  /**
21
- * The EUDR Due Diligence Verification number provided by EU Commision associated with submitted DDR.
21
+ * The EUDR Due Diligence verification number provided by the EU Commission for the submitted DDS.
22
22
  */
23
23
  'dueDiligenceVerification'?: string;
24
24
  /**
25
- * The EUDR Due Diligence Information for EUDR that was already pre-loaded in Vendor Central within Amazon compliance collection experience.
25
+ * The EUDR Due Diligence information pre-loaded in Vendor Central.
26
26
  */
27
27
  'dueDiligenceInformation'?: string;
28
28
  /**
29
- * The Due Diligence exemption code for EUDR products indicating the item is exempt from due diligence requirements.
29
+ * The exemption code for EUDR products exempt from due diligence requirements.
30
30
  */
31
31
  'dueDiligenceExemptionCode'?: string;
32
32
  }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ShipmentConfirmation } from './shipment-confirmation';
13
+ /**
14
+ * The request schema for the SubmitShipmentConfirmation operation.
15
+ */
16
+ export interface SubmitShipmentConfirmationRequest {
17
+ 'shipmentConfirmation': ShipmentConfirmation;
18
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SubmitShipmentConfirmationResult } from './submit-shipment-confirmation-result';
13
+ /**
14
+ * The response schema for the SubmitShipmentConfirmation operation.
15
+ */
16
+ export interface SubmitShipmentConfirmationResponse {
17
+ 'payload'?: SubmitShipmentConfirmationResult;
18
+ /**
19
+ * A list of error responses returned when a request is unsuccessful.
20
+ */
21
+ 'errors'?: Array<Error>;
22
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Result payload for successful ASN submission.
14
+ */
15
+ export interface SubmitShipmentConfirmationResult {
16
+ /**
17
+ * Success message for the operation SubmitShipmentConfirmation
18
+ */
19
+ 'message'?: string;
20
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/vendor-shipments-api-v1",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.",
5
- "version": "5.3.1",
5
+ "version": "5.4.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.26",
22
- "axios": "^1.13.2"
21
+ "@sp-api-sdk/common": "2.1.27",
22
+ "axios": "^1.13.4"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "vendor shipments api"
42
42
  ],
43
- "gitHead": "650fb0a15023db11b60d7de2c61a4592c2523d28"
43
+ "gitHead": "9719d5934bed9715406acc691a8334148345a588"
44
44
  }