@sp-api-sdk/vendor-shipments-api-v1 5.0.6 → 5.1.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.
- package/dist/cjs/api-model/api/vendor-shipments-api.js +65 -2
- package/dist/cjs/api-model/models/index.js +3 -0
- package/dist/cjs/api-model/models/package-item-details.js +7 -0
- package/dist/cjs/api-model/models/regulation-references.js +15 -0
- package/dist/cjs/api-model/models/submit-shipment-confirmation-request.js +15 -0
- package/dist/cjs/api-model/models/submit-shipment-confirmation-response.js +15 -0
- package/dist/cjs/client.js +7 -0
- package/dist/es/api-model/api/vendor-shipments-api.js +65 -2
- package/dist/es/api-model/models/index.js +3 -0
- package/dist/es/api-model/models/package-item-details.js +6 -1
- package/dist/es/api-model/models/regulation-references.js +14 -0
- package/dist/es/api-model/models/submit-shipment-confirmation-request.js +14 -0
- package/dist/es/api-model/models/submit-shipment-confirmation-response.js +14 -0
- package/dist/es/client.js +7 -0
- package/dist/types/api-model/api/vendor-shipments-api.d.ts +46 -3
- package/dist/types/api-model/models/index.d.ts +3 -0
- package/dist/types/api-model/models/package-item-details.d.ts +21 -0
- package/dist/types/api-model/models/regulation-references.d.ts +32 -0
- package/dist/types/api-model/models/submit-shipment-confirmation-request.d.ts +18 -0
- package/dist/types/api-model/models/submit-shipment-confirmation-response.d.ts +22 -0
- package/package.json +4 -4
|
@@ -43,7 +43,7 @@ const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
43
43
|
* @param {string} [shippedBefore] Get Shipment Details by passing Shipped Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
44
44
|
* @param {string} [shippedAfter] Get Shipment Details by passing Shipped Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
45
45
|
* @param {string} [estimatedDeliveryBefore] Get Shipment Details by passing Estimated Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
46
|
-
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date
|
|
46
|
+
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
47
47
|
* @param {string} [shipmentDeliveryBefore] Get Shipment Details by passing Shipment Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
48
48
|
* @param {string} [shipmentDeliveryAfter] Get Shipment Details by passing Shipment Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
49
49
|
* @param {string} [requestedPickUpBefore] Get Shipment Details by passing Before Requested pickup date. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -241,6 +241,36 @@ const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
241
241
|
options: localVarRequestOptions,
|
|
242
242
|
};
|
|
243
243
|
},
|
|
244
|
+
/**
|
|
245
|
+
* 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).
|
|
246
|
+
* @summary SubmitShipmentConfirmation
|
|
247
|
+
* @param {SubmitShipmentConfirmationRequest} body A request to submit shipment confirmation.
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
submitShipmentConfirmation: async (body, options = {}) => {
|
|
252
|
+
// verify required parameter 'body' is not null or undefined
|
|
253
|
+
(0, common_1.assertParamExists)('submitShipmentConfirmation', 'body', body);
|
|
254
|
+
const localVarPath = `/vendor/shipping/v1/shipmentConfirmation`;
|
|
255
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
256
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
257
|
+
let baseOptions;
|
|
258
|
+
if (configuration) {
|
|
259
|
+
baseOptions = configuration.baseOptions;
|
|
260
|
+
}
|
|
261
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
262
|
+
const localVarHeaderParameter = {};
|
|
263
|
+
const localVarQueryParameter = {};
|
|
264
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
265
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
267
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
268
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
269
|
+
return {
|
|
270
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
271
|
+
options: localVarRequestOptions,
|
|
272
|
+
};
|
|
273
|
+
},
|
|
244
274
|
/**
|
|
245
275
|
* 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).
|
|
246
276
|
* @summary SubmitShipmentConfirmations
|
|
@@ -325,7 +355,7 @@ const VendorShipmentsApiFp = function (configuration) {
|
|
|
325
355
|
* @param {string} [shippedBefore] Get Shipment Details by passing Shipped Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
326
356
|
* @param {string} [shippedAfter] Get Shipment Details by passing Shipped Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
327
357
|
* @param {string} [estimatedDeliveryBefore] Get Shipment Details by passing Estimated Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
328
|
-
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date
|
|
358
|
+
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
329
359
|
* @param {string} [shipmentDeliveryBefore] Get Shipment Details by passing Shipment Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
330
360
|
* @param {string} [shipmentDeliveryAfter] Get Shipment Details by passing Shipment Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
331
361
|
* @param {string} [requestedPickUpBefore] Get Shipment Details by passing Before Requested pickup date. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -365,6 +395,19 @@ const VendorShipmentsApiFp = function (configuration) {
|
|
|
365
395
|
const localVarOperationServerBasePath = base_1.operationServerMap['VendorShipmentsApi.getShipmentLabels']?.[localVarOperationServerIndex]?.url;
|
|
366
396
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
367
397
|
},
|
|
398
|
+
/**
|
|
399
|
+
* 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).
|
|
400
|
+
* @summary SubmitShipmentConfirmation
|
|
401
|
+
* @param {SubmitShipmentConfirmationRequest} body A request to submit shipment confirmation.
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
*/
|
|
405
|
+
async submitShipmentConfirmation(body, options) {
|
|
406
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipmentConfirmation(body, options);
|
|
407
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
408
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VendorShipmentsApi.submitShipmentConfirmation']?.[localVarOperationServerIndex]?.url;
|
|
409
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
410
|
+
},
|
|
368
411
|
/**
|
|
369
412
|
* 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).
|
|
370
413
|
* @summary SubmitShipmentConfirmations
|
|
@@ -419,6 +462,16 @@ const VendorShipmentsApiFactory = function (configuration, basePath, axios) {
|
|
|
419
462
|
getShipmentLabels(requestParameters = {}, options) {
|
|
420
463
|
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));
|
|
421
464
|
},
|
|
465
|
+
/**
|
|
466
|
+
* 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).
|
|
467
|
+
* @summary SubmitShipmentConfirmation
|
|
468
|
+
* @param {VendorShipmentsApiSubmitShipmentConfirmationRequest} requestParameters Request parameters.
|
|
469
|
+
* @param {*} [options] Override http request option.
|
|
470
|
+
* @throws {RequiredError}
|
|
471
|
+
*/
|
|
472
|
+
submitShipmentConfirmation(requestParameters, options) {
|
|
473
|
+
return localVarFp.submitShipmentConfirmation(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
474
|
+
},
|
|
422
475
|
/**
|
|
423
476
|
* 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).
|
|
424
477
|
* @summary SubmitShipmentConfirmations
|
|
@@ -465,6 +518,16 @@ class VendorShipmentsApi extends base_1.BaseAPI {
|
|
|
465
518
|
getShipmentLabels(requestParameters = {}, options) {
|
|
466
519
|
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));
|
|
467
520
|
}
|
|
521
|
+
/**
|
|
522
|
+
* 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).
|
|
523
|
+
* @summary SubmitShipmentConfirmation
|
|
524
|
+
* @param {VendorShipmentsApiSubmitShipmentConfirmationRequest} requestParameters Request parameters.
|
|
525
|
+
* @param {*} [options] Override http request option.
|
|
526
|
+
* @throws {RequiredError}
|
|
527
|
+
*/
|
|
528
|
+
submitShipmentConfirmation(requestParameters, options) {
|
|
529
|
+
return (0, exports.VendorShipmentsApiFp)(this.configuration).submitShipmentConfirmation(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
530
|
+
}
|
|
468
531
|
/**
|
|
469
532
|
* 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).
|
|
470
533
|
* @summary SubmitShipmentConfirmations
|
|
@@ -46,6 +46,7 @@ __exportStar(require("./party-identification"), exports);
|
|
|
46
46
|
__exportStar(require("./purchase-order-item-details"), exports);
|
|
47
47
|
__exportStar(require("./purchase-order-items"), exports);
|
|
48
48
|
__exportStar(require("./purchase-orders"), exports);
|
|
49
|
+
__exportStar(require("./regulation-references"), exports);
|
|
49
50
|
__exportStar(require("./route"), exports);
|
|
50
51
|
__exportStar(require("./shipment"), exports);
|
|
51
52
|
__exportStar(require("./shipment-confirmation"), exports);
|
|
@@ -54,6 +55,8 @@ __exportStar(require("./shipment-information"), exports);
|
|
|
54
55
|
__exportStar(require("./shipment-measurements"), exports);
|
|
55
56
|
__exportStar(require("./shipment-status-details"), exports);
|
|
56
57
|
__exportStar(require("./stop"), exports);
|
|
58
|
+
__exportStar(require("./submit-shipment-confirmation-request"), exports);
|
|
59
|
+
__exportStar(require("./submit-shipment-confirmation-response"), exports);
|
|
57
60
|
__exportStar(require("./submit-shipment-confirmations-request"), exports);
|
|
58
61
|
__exportStar(require("./submit-shipment-confirmations-response"), exports);
|
|
59
62
|
__exportStar(require("./submit-shipments"), exports);
|
|
@@ -13,3 +13,10 @@
|
|
|
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,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 });
|
package/dist/cjs/client.js
CHANGED
|
@@ -11,6 +11,13 @@ exports.clientRateLimits = [
|
|
|
11
11
|
rate: 10,
|
|
12
12
|
burst: 10,
|
|
13
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
|
+
},
|
|
14
21
|
{
|
|
15
22
|
method: 'post',
|
|
16
23
|
// eslint-disable-next-line prefer-regex-literals
|
|
@@ -37,7 +37,7 @@ export const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
37
37
|
* @param {string} [shippedBefore] Get Shipment Details by passing Shipped Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
38
38
|
* @param {string} [shippedAfter] Get Shipment Details by passing Shipped Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
39
39
|
* @param {string} [estimatedDeliveryBefore] Get Shipment Details by passing Estimated Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
40
|
-
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date
|
|
40
|
+
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
41
41
|
* @param {string} [shipmentDeliveryBefore] Get Shipment Details by passing Shipment Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
42
42
|
* @param {string} [shipmentDeliveryAfter] Get Shipment Details by passing Shipment Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
43
43
|
* @param {string} [requestedPickUpBefore] Get Shipment Details by passing Before Requested pickup date. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -235,6 +235,36 @@ export const VendorShipmentsApiAxiosParamCreator = function (configuration) {
|
|
|
235
235
|
options: localVarRequestOptions,
|
|
236
236
|
};
|
|
237
237
|
},
|
|
238
|
+
/**
|
|
239
|
+
* 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).
|
|
240
|
+
* @summary SubmitShipmentConfirmation
|
|
241
|
+
* @param {SubmitShipmentConfirmationRequest} body A request to submit shipment confirmation.
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
*/
|
|
245
|
+
submitShipmentConfirmation: async (body, options = {}) => {
|
|
246
|
+
// verify required parameter 'body' is not null or undefined
|
|
247
|
+
assertParamExists('submitShipmentConfirmation', 'body', body);
|
|
248
|
+
const localVarPath = `/vendor/shipping/v1/shipmentConfirmation`;
|
|
249
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
250
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
251
|
+
let baseOptions;
|
|
252
|
+
if (configuration) {
|
|
253
|
+
baseOptions = configuration.baseOptions;
|
|
254
|
+
}
|
|
255
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
256
|
+
const localVarHeaderParameter = {};
|
|
257
|
+
const localVarQueryParameter = {};
|
|
258
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
259
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
260
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
261
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
262
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
263
|
+
return {
|
|
264
|
+
url: toPathString(localVarUrlObj),
|
|
265
|
+
options: localVarRequestOptions,
|
|
266
|
+
};
|
|
267
|
+
},
|
|
238
268
|
/**
|
|
239
269
|
* 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).
|
|
240
270
|
* @summary SubmitShipmentConfirmations
|
|
@@ -318,7 +348,7 @@ export const VendorShipmentsApiFp = function (configuration) {
|
|
|
318
348
|
* @param {string} [shippedBefore] Get Shipment Details by passing Shipped Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
319
349
|
* @param {string} [shippedAfter] Get Shipment Details by passing Shipped Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
320
350
|
* @param {string} [estimatedDeliveryBefore] Get Shipment Details by passing Estimated Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
321
|
-
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date
|
|
351
|
+
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
322
352
|
* @param {string} [shipmentDeliveryBefore] Get Shipment Details by passing Shipment Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
323
353
|
* @param {string} [shipmentDeliveryAfter] Get Shipment Details by passing Shipment Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
324
354
|
* @param {string} [requestedPickUpBefore] Get Shipment Details by passing Before Requested pickup date. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -358,6 +388,19 @@ export const VendorShipmentsApiFp = function (configuration) {
|
|
|
358
388
|
const localVarOperationServerBasePath = operationServerMap['VendorShipmentsApi.getShipmentLabels']?.[localVarOperationServerIndex]?.url;
|
|
359
389
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
360
390
|
},
|
|
391
|
+
/**
|
|
392
|
+
* 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).
|
|
393
|
+
* @summary SubmitShipmentConfirmation
|
|
394
|
+
* @param {SubmitShipmentConfirmationRequest} body A request to submit shipment confirmation.
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
async submitShipmentConfirmation(body, options) {
|
|
399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.submitShipmentConfirmation(body, options);
|
|
400
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
401
|
+
const localVarOperationServerBasePath = operationServerMap['VendorShipmentsApi.submitShipmentConfirmation']?.[localVarOperationServerIndex]?.url;
|
|
402
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
403
|
+
},
|
|
361
404
|
/**
|
|
362
405
|
* 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).
|
|
363
406
|
* @summary SubmitShipmentConfirmations
|
|
@@ -411,6 +454,16 @@ export const VendorShipmentsApiFactory = function (configuration, basePath, axio
|
|
|
411
454
|
getShipmentLabels(requestParameters = {}, options) {
|
|
412
455
|
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));
|
|
413
456
|
},
|
|
457
|
+
/**
|
|
458
|
+
* 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).
|
|
459
|
+
* @summary SubmitShipmentConfirmation
|
|
460
|
+
* @param {VendorShipmentsApiSubmitShipmentConfirmationRequest} requestParameters Request parameters.
|
|
461
|
+
* @param {*} [options] Override http request option.
|
|
462
|
+
* @throws {RequiredError}
|
|
463
|
+
*/
|
|
464
|
+
submitShipmentConfirmation(requestParameters, options) {
|
|
465
|
+
return localVarFp.submitShipmentConfirmation(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
466
|
+
},
|
|
414
467
|
/**
|
|
415
468
|
* 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).
|
|
416
469
|
* @summary SubmitShipmentConfirmations
|
|
@@ -456,6 +509,16 @@ export class VendorShipmentsApi extends BaseAPI {
|
|
|
456
509
|
getShipmentLabels(requestParameters = {}, options) {
|
|
457
510
|
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));
|
|
458
511
|
}
|
|
512
|
+
/**
|
|
513
|
+
* 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).
|
|
514
|
+
* @summary SubmitShipmentConfirmation
|
|
515
|
+
* @param {VendorShipmentsApiSubmitShipmentConfirmationRequest} requestParameters Request parameters.
|
|
516
|
+
* @param {*} [options] Override http request option.
|
|
517
|
+
* @throws {RequiredError}
|
|
518
|
+
*/
|
|
519
|
+
submitShipmentConfirmation(requestParameters, options) {
|
|
520
|
+
return VendorShipmentsApiFp(this.configuration).submitShipmentConfirmation(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
521
|
+
}
|
|
459
522
|
/**
|
|
460
523
|
* 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).
|
|
461
524
|
* @summary SubmitShipmentConfirmations
|
|
@@ -30,6 +30,7 @@ export * from './party-identification';
|
|
|
30
30
|
export * from './purchase-order-item-details';
|
|
31
31
|
export * from './purchase-order-items';
|
|
32
32
|
export * from './purchase-orders';
|
|
33
|
+
export * from './regulation-references';
|
|
33
34
|
export * from './route';
|
|
34
35
|
export * from './shipment';
|
|
35
36
|
export * from './shipment-confirmation';
|
|
@@ -38,6 +39,8 @@ export * from './shipment-information';
|
|
|
38
39
|
export * from './shipment-measurements';
|
|
39
40
|
export * from './shipment-status-details';
|
|
40
41
|
export * from './stop';
|
|
42
|
+
export * from './submit-shipment-confirmation-request';
|
|
43
|
+
export * from './submit-shipment-confirmation-response';
|
|
41
44
|
export * from './submit-shipment-confirmations-request';
|
|
42
45
|
export * from './submit-shipment-confirmations-response';
|
|
43
46
|
export * from './submit-shipments';
|
|
@@ -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
|
@@ -8,6 +8,13 @@ export const clientRateLimits = [
|
|
|
8
8
|
rate: 10,
|
|
9
9
|
burst: 10,
|
|
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
|
+
},
|
|
11
18
|
{
|
|
12
19
|
method: 'post',
|
|
13
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';
|
|
@@ -37,7 +39,7 @@ export declare const VendorShipmentsApiAxiosParamCreator: (configuration?: Confi
|
|
|
37
39
|
* @param {string} [shippedBefore] Get Shipment Details by passing Shipped Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
38
40
|
* @param {string} [shippedAfter] Get Shipment Details by passing Shipped Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
39
41
|
* @param {string} [estimatedDeliveryBefore] Get Shipment Details by passing Estimated Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
40
|
-
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date
|
|
42
|
+
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
41
43
|
* @param {string} [shipmentDeliveryBefore] Get Shipment Details by passing Shipment Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
42
44
|
* @param {string} [shipmentDeliveryAfter] Get Shipment Details by passing Shipment Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
43
45
|
* @param {string} [requestedPickUpBefore] Get Shipment Details by passing Before Requested pickup date. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -67,6 +69,14 @@ export declare const VendorShipmentsApiAxiosParamCreator: (configuration?: Confi
|
|
|
67
69
|
* @throws {RequiredError}
|
|
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>;
|
|
72
|
+
/**
|
|
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>;
|
|
70
80
|
/**
|
|
71
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
|
|
@@ -103,7 +113,7 @@ export declare const VendorShipmentsApiFp: (configuration?: Configuration) => {
|
|
|
103
113
|
* @param {string} [shippedBefore] Get Shipment Details by passing Shipped Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
104
114
|
* @param {string} [shippedAfter] Get Shipment Details by passing Shipped Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
105
115
|
* @param {string} [estimatedDeliveryBefore] Get Shipment Details by passing Estimated Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
106
|
-
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date
|
|
116
|
+
* @param {string} [estimatedDeliveryAfter] Get Shipment Details by passing Estimated Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
107
117
|
* @param {string} [shipmentDeliveryBefore] Get Shipment Details by passing Shipment Delivery Date Before. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
108
118
|
* @param {string} [shipmentDeliveryAfter] Get Shipment Details by passing Shipment Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
109
119
|
* @param {string} [requestedPickUpBefore] Get Shipment Details by passing Before Requested pickup date. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
@@ -133,6 +143,14 @@ export declare const VendorShipmentsApiFp: (configuration?: Configuration) => {
|
|
|
133
143
|
* @throws {RequiredError}
|
|
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>>;
|
|
146
|
+
/**
|
|
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>>;
|
|
136
154
|
/**
|
|
137
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
|
|
@@ -169,6 +187,14 @@ export declare const VendorShipmentsApiFactory: (configuration?: Configuration,
|
|
|
169
187
|
* @throws {RequiredError}
|
|
170
188
|
*/
|
|
171
189
|
getShipmentLabels(requestParameters?: VendorShipmentsApiGetShipmentLabelsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetShipmentLabels>;
|
|
190
|
+
/**
|
|
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>;
|
|
172
198
|
/**
|
|
173
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
|
|
@@ -239,7 +265,7 @@ export interface VendorShipmentsApiGetShipmentDetailsRequest {
|
|
|
239
265
|
*/
|
|
240
266
|
readonly estimatedDeliveryBefore?: string;
|
|
241
267
|
/**
|
|
242
|
-
* Get Shipment Details by passing Estimated Delivery Date
|
|
268
|
+
* Get Shipment Details by passing Estimated Delivery Date After. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
243
269
|
*/
|
|
244
270
|
readonly estimatedDeliveryAfter?: string;
|
|
245
271
|
/**
|
|
@@ -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
|
*/
|
|
@@ -361,6 +396,14 @@ export declare class VendorShipmentsApi extends BaseAPI {
|
|
|
361
396
|
* @throws {RequiredError}
|
|
362
397
|
*/
|
|
363
398
|
getShipmentLabels(requestParameters?: VendorShipmentsApiGetShipmentLabelsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentLabels, any, {}>>;
|
|
399
|
+
/**
|
|
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, {}>>;
|
|
364
407
|
/**
|
|
365
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
|
|
@@ -30,6 +30,7 @@ export * from './party-identification';
|
|
|
30
30
|
export * from './purchase-order-item-details';
|
|
31
31
|
export * from './purchase-order-items';
|
|
32
32
|
export * from './purchase-orders';
|
|
33
|
+
export * from './regulation-references';
|
|
33
34
|
export * from './route';
|
|
34
35
|
export * from './shipment';
|
|
35
36
|
export * from './shipment-confirmation';
|
|
@@ -38,6 +39,8 @@ export * from './shipment-information';
|
|
|
38
39
|
export * from './shipment-measurements';
|
|
39
40
|
export * from './shipment-status-details';
|
|
40
41
|
export * from './stop';
|
|
42
|
+
export * from './submit-shipment-confirmation-request';
|
|
43
|
+
export * from './submit-shipment-confirmation-response';
|
|
41
44
|
export * from './submit-shipment-confirmations-request';
|
|
42
45
|
export * from './submit-shipment-confirmations-response';
|
|
43
46
|
export * from './submit-shipments';
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Expiry } from './expiry';
|
|
13
|
+
import type { RegulationReferences } from './regulation-references';
|
|
13
14
|
/**
|
|
14
15
|
* Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate.
|
|
15
16
|
*/
|
|
@@ -22,5 +23,25 @@ export interface PackageItemDetails {
|
|
|
22
23
|
* 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.
|
|
23
24
|
*/
|
|
24
25
|
'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;
|
|
25
39
|
'expiry'?: Expiry;
|
|
26
40
|
}
|
|
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,32 @@
|
|
|
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
|
+
* 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.
|
|
14
|
+
*/
|
|
15
|
+
export interface RegulationReferences {
|
|
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.
|
|
18
|
+
*/
|
|
19
|
+
'dueDiligenceReference'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The EUDR Due Diligence Verification number provided by EU Commision associated with submitted DDR.
|
|
22
|
+
*/
|
|
23
|
+
'dueDiligenceVerification'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The EUDR Due Diligence Information for EUDR that was already pre-loaded in Vendor Central within Amazon compliance collection experience.
|
|
26
|
+
*/
|
|
27
|
+
'dueDiligenceInformation'?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The Due Diligence exemption code for EUDR products indicating the item is exempt from due diligence requirements.
|
|
30
|
+
*/
|
|
31
|
+
'dueDiligenceExemptionCode'?: string;
|
|
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 { TransactionReference } from './transaction-reference';
|
|
13
|
+
/**
|
|
14
|
+
* The ASN was submitted successfully
|
|
15
|
+
*/
|
|
16
|
+
export interface SubmitShipmentConfirmationResponse {
|
|
17
|
+
'payload'?: TransactionReference;
|
|
18
|
+
/**
|
|
19
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
20
|
+
*/
|
|
21
|
+
'errors'?: Array<Error>;
|
|
22
|
+
}
|
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.0
|
|
5
|
+
"version": "5.1.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.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.21",
|
|
22
|
+
"axios": "^1.13.2"
|
|
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": "
|
|
43
|
+
"gitHead": "3a1ed2407423d0d3b294a0fdc7d9bba38ad2c845"
|
|
44
44
|
}
|