@sp-api-sdk/external-fulfillment-shipments-api-2024-09-11 1.2.8 → 1.3.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/external-fulfillment-shipments-api.js +17 -17
- package/dist/cjs/api-model/common.js +1 -0
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/cancellation.js +1 -1
- package/dist/cjs/api-model/models/charge.js +1 -1
- package/dist/cjs/api-model/models/custom-attribute-type.js +1 -1
- package/dist/cjs/api-model/models/dimension.js +2 -1
- package/dist/cjs/api-model/models/distance.js +20 -0
- package/dist/cjs/api-model/models/document.js +1 -1
- package/dist/cjs/api-model/models/geocodes.js +15 -0
- package/dist/cjs/api-model/models/handover-location.js +15 -0
- package/dist/cjs/api-model/models/index.js +3 -0
- package/dist/cjs/api-model/models/invoice-requirement.js +2 -2
- package/dist/cjs/api-model/models/line-item-with-reason.js +1 -1
- package/dist/cjs/api-model/models/marketplace-attributes.js +1 -1
- package/dist/cjs/api-model/models/package-status.js +1 -1
- package/dist/cjs/api-model/models/package-sub-status.js +1 -1
- package/dist/cjs/api-model/models/package.js +2 -2
- package/dist/cjs/api-model/models/packing-slip-requirement.js +2 -2
- package/dist/cjs/api-model/models/party-identification-info.js +1 -1
- package/dist/cjs/api-model/models/piece-type.js +1 -1
- package/dist/cjs/api-model/models/presence-status.js +1 -1
- package/dist/cjs/api-model/models/priority.js +1 -1
- package/dist/cjs/api-model/models/requirement-level.js +1 -1
- package/dist/cjs/api-model/models/shipment-info.js +7 -3
- package/dist/cjs/api-model/models/shipment.js +2 -2
- package/dist/cjs/api-model/models/shipping-info.js +1 -1
- package/dist/cjs/api-model/models/shipping-options.js +1 -1
- package/dist/cjs/api-model/models/status.js +1 -1
- package/dist/cjs/api-model/models/tax-registration-info.js +1 -1
- package/dist/cjs/api-model/models/tax.js +1 -1
- package/dist/cjs/api-model/models/time-window.js +1 -1
- package/dist/cjs/api-model/models/weight.js +3 -1
- package/dist/es/api-model/api/external-fulfillment-shipments-api.js +17 -17
- package/dist/es/api-model/common.js +1 -0
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/cancellation.js +1 -1
- package/dist/es/api-model/models/charge.js +1 -1
- package/dist/es/api-model/models/custom-attribute-type.js +1 -1
- package/dist/es/api-model/models/dimension.js +2 -1
- package/dist/es/api-model/models/distance.js +17 -0
- package/dist/es/api-model/models/document.js +1 -1
- package/dist/es/api-model/models/geocodes.js +14 -0
- package/dist/es/api-model/models/handover-location.js +14 -0
- package/dist/es/api-model/models/index.js +3 -0
- package/dist/es/api-model/models/invoice-requirement.js +2 -2
- package/dist/es/api-model/models/line-item-with-reason.js +1 -1
- package/dist/es/api-model/models/marketplace-attributes.js +1 -1
- package/dist/es/api-model/models/package-status.js +1 -1
- package/dist/es/api-model/models/package-sub-status.js +1 -1
- package/dist/es/api-model/models/package.js +2 -2
- package/dist/es/api-model/models/packing-slip-requirement.js +2 -2
- package/dist/es/api-model/models/party-identification-info.js +1 -1
- package/dist/es/api-model/models/piece-type.js +1 -1
- package/dist/es/api-model/models/presence-status.js +1 -1
- package/dist/es/api-model/models/priority.js +1 -1
- package/dist/es/api-model/models/requirement-level.js +1 -1
- package/dist/es/api-model/models/shipment-info.js +6 -2
- package/dist/es/api-model/models/shipment.js +2 -2
- package/dist/es/api-model/models/shipping-info.js +1 -1
- package/dist/es/api-model/models/shipping-options.js +1 -1
- package/dist/es/api-model/models/status.js +1 -1
- package/dist/es/api-model/models/tax-registration-info.js +1 -1
- package/dist/es/api-model/models/tax.js +1 -1
- package/dist/es/api-model/models/time-window.js +1 -1
- package/dist/es/api-model/models/weight.js +3 -1
- package/dist/types/api-model/api/external-fulfillment-shipments-api.d.ts +3 -3
- package/dist/types/api-model/common.d.ts +1 -1
- package/dist/types/api-model/models/address.d.ts +3 -1
- package/dist/types/api-model/models/dimension.d.ts +1 -0
- package/dist/types/api-model/models/distance.d.ts +29 -0
- package/dist/types/api-model/models/geocodes.d.ts +28 -0
- package/dist/types/api-model/models/handover-location.d.ts +24 -0
- package/dist/types/api-model/models/index.d.ts +3 -0
- package/dist/types/api-model/models/ship-label-metadata.d.ts +2 -0
- package/dist/types/api-model/models/shipment-info.d.ts +9 -0
- package/dist/types/api-model/models/shipping-options.d.ts +2 -0
- package/dist/types/api-model/models/weight.d.ts +2 -0
- package/package.json +4 -4
|
@@ -41,7 +41,7 @@ const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (configuration
|
|
|
41
41
|
// verify required parameter 'body' is not null or undefined
|
|
42
42
|
(0, common_1.assertParamExists)('createPackages', 'body', body);
|
|
43
43
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages`
|
|
44
|
-
.replace(
|
|
44
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
45
45
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
46
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
47
47
|
let baseOptions;
|
|
@@ -72,7 +72,7 @@ const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (configuration
|
|
|
72
72
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
73
73
|
(0, common_1.assertParamExists)('generateInvoice', 'shipmentId', shipmentId);
|
|
74
74
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/invoice`
|
|
75
|
-
.replace(
|
|
75
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
76
76
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77
77
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
78
78
|
let baseOptions;
|
|
@@ -106,7 +106,7 @@ const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (configuration
|
|
|
106
106
|
// verify required parameter 'operation' is not null or undefined
|
|
107
107
|
(0, common_1.assertParamExists)('generateShipLabels', 'operation', operation);
|
|
108
108
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/shipLabels`
|
|
109
|
-
.replace(
|
|
109
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
110
110
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
111
111
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
112
112
|
let baseOptions;
|
|
@@ -143,7 +143,7 @@ const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (configuration
|
|
|
143
143
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
144
144
|
(0, common_1.assertParamExists)('getShipment', 'shipmentId', shipmentId);
|
|
145
145
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}`
|
|
146
|
-
.replace(
|
|
146
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
147
147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
148
148
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
149
149
|
let baseOptions;
|
|
@@ -164,7 +164,7 @@ const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (configuration
|
|
|
164
164
|
},
|
|
165
165
|
/**
|
|
166
166
|
* Get a list of shipments created for the seller in the status you specify. Shipments can be further filtered based on the fulfillment node or the time of the shipments\' last update.
|
|
167
|
-
* @param {GetShipmentsStatusEnum} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `ACCEPTED`.
|
|
167
|
+
* @param {GetShipmentsStatusEnum} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `CREATED` or `ACCEPTED`.
|
|
168
168
|
* @param {string} [locationId] The Amazon channel location identifier for the shipments you want to retrieve.
|
|
169
169
|
* @param {string} [marketplaceId] The marketplace ID associated with the location. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
170
170
|
* @param {string} [channelName] The channel name associated with the location.
|
|
@@ -239,7 +239,7 @@ const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (configuration
|
|
|
239
239
|
// verify required parameter 'operation' is not null or undefined
|
|
240
240
|
(0, common_1.assertParamExists)('processShipment', 'operation', operation);
|
|
241
241
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}`
|
|
242
|
-
.replace(
|
|
242
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
243
243
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
244
244
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
245
245
|
let baseOptions;
|
|
@@ -273,7 +273,7 @@ const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (configuration
|
|
|
273
273
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
274
274
|
(0, common_1.assertParamExists)('retrieveInvoice', 'shipmentId', shipmentId);
|
|
275
275
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/invoice`
|
|
276
|
-
.replace(
|
|
276
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
277
277
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
278
278
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
279
279
|
let baseOptions;
|
|
@@ -305,7 +305,7 @@ const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (configuration
|
|
|
305
305
|
// verify required parameter 'packageId' is not null or undefined
|
|
306
306
|
(0, common_1.assertParamExists)('retrieveShippingOptions', 'packageId', packageId);
|
|
307
307
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/shippingOptions`
|
|
308
|
-
.replace(
|
|
308
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
309
309
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
310
310
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
311
311
|
let baseOptions;
|
|
@@ -343,8 +343,8 @@ const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (configuration
|
|
|
343
343
|
// verify required parameter 'body' is not null or undefined
|
|
344
344
|
(0, common_1.assertParamExists)('updatePackage', 'body', body);
|
|
345
345
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages/{packageId}`
|
|
346
|
-
.replace(
|
|
347
|
-
.replace(
|
|
346
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)))
|
|
347
|
+
.replace('{packageId}', encodeURIComponent(String(packageId)));
|
|
348
348
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
349
349
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
350
350
|
let baseOptions;
|
|
@@ -380,8 +380,8 @@ const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (configuration
|
|
|
380
380
|
// verify required parameter 'packageId' is not null or undefined
|
|
381
381
|
(0, common_1.assertParamExists)('updatePackageStatus', 'packageId', packageId);
|
|
382
382
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages/{packageId}`
|
|
383
|
-
.replace(
|
|
384
|
-
.replace(
|
|
383
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)))
|
|
384
|
+
.replace('{packageId}', encodeURIComponent(String(packageId)));
|
|
385
385
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
386
386
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
387
387
|
let baseOptions;
|
|
@@ -468,7 +468,7 @@ const ExternalFulfillmentShipmentsApiFp = function (configuration) {
|
|
|
468
468
|
},
|
|
469
469
|
/**
|
|
470
470
|
* Get a list of shipments created for the seller in the status you specify. Shipments can be further filtered based on the fulfillment node or the time of the shipments\' last update.
|
|
471
|
-
* @param {GetShipmentsStatusEnum} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `ACCEPTED`.
|
|
471
|
+
* @param {GetShipmentsStatusEnum} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `CREATED` or `ACCEPTED`.
|
|
472
472
|
* @param {string} [locationId] The Amazon channel location identifier for the shipments you want to retrieve.
|
|
473
473
|
* @param {string} [marketplaceId] The marketplace ID associated with the location. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
474
474
|
* @param {string} [channelName] The channel name associated with the location.
|
|
@@ -753,7 +753,7 @@ class ExternalFulfillmentShipmentsApi extends base_1.BaseAPI {
|
|
|
753
753
|
exports.ExternalFulfillmentShipmentsApi = ExternalFulfillmentShipmentsApi;
|
|
754
754
|
exports.GenerateShipLabelsOperationEnum = {
|
|
755
755
|
Generate: 'GENERATE',
|
|
756
|
-
Regenerate: 'REGENERATE'
|
|
756
|
+
Regenerate: 'REGENERATE',
|
|
757
757
|
};
|
|
758
758
|
exports.GetShipmentsStatusEnum = {
|
|
759
759
|
Created: 'CREATED',
|
|
@@ -765,12 +765,12 @@ exports.GetShipmentsStatusEnum = {
|
|
|
765
765
|
ShiplabelGenerated: 'SHIPLABEL_GENERATED',
|
|
766
766
|
Cancelled: 'CANCELLED',
|
|
767
767
|
Shipped: 'SHIPPED',
|
|
768
|
-
Delivered: 'DELIVERED'
|
|
768
|
+
Delivered: 'DELIVERED',
|
|
769
769
|
};
|
|
770
770
|
exports.ProcessShipmentOperationEnum = {
|
|
771
771
|
Confirm: 'CONFIRM',
|
|
772
|
-
Reject: 'REJECT'
|
|
772
|
+
Reject: 'REJECT',
|
|
773
773
|
};
|
|
774
774
|
exports.UpdatePackageStatusStatusEnum = {
|
|
775
|
-
Shipped: 'SHIPPED'
|
|
775
|
+
Shipped: 'SHIPPED',
|
|
776
776
|
};
|
|
@@ -90,6 +90,7 @@ exports.setSearchParams = setSearchParams;
|
|
|
90
90
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
91
91
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
92
92
|
*/
|
|
93
|
+
// @ts-ignore
|
|
93
94
|
const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
94
95
|
if (value instanceof Set) {
|
|
95
96
|
return Array.from(value);
|
|
@@ -91,8 +91,8 @@ class Configuration {
|
|
|
91
91
|
* @return True if the given MIME is JSON, false otherwise.
|
|
92
92
|
*/
|
|
93
93
|
isJsonMime(mime) {
|
|
94
|
-
const jsonMime =
|
|
95
|
-
return mime !== null &&
|
|
94
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
95
|
+
return mime !== null && jsonMime.test(mime);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
exports.Configuration = Configuration;
|
|
@@ -17,5 +17,5 @@ exports.CancellationCancellationTypeEnum = void 0;
|
|
|
17
17
|
exports.CancellationCancellationTypeEnum = {
|
|
18
18
|
SellerRejected: 'SELLER_REJECTED',
|
|
19
19
|
MarketplaceCancelled: 'MARKETPLACE_CANCELLED',
|
|
20
|
-
SystemCancelled: 'SYSTEM_CANCELLED'
|
|
20
|
+
SystemCancelled: 'SYSTEM_CANCELLED',
|
|
21
21
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* The Selling Partner API for Amazon External Fulfillment Shipments Processing
|
|
6
|
+
* You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
9
|
+
* Contact: marketplaceapitest@amazon.com
|
|
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.DistanceDistanceUnitEnum = void 0;
|
|
17
|
+
exports.DistanceDistanceUnitEnum = {
|
|
18
|
+
Mi: 'MI',
|
|
19
|
+
Km: 'KM',
|
|
20
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* The Selling Partner API for Amazon External Fulfillment Shipments Processing
|
|
6
|
+
* You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
9
|
+
* Contact: marketplaceapitest@amazon.com
|
|
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
|
+
* The Selling Partner API for Amazon External Fulfillment Shipments Processing
|
|
6
|
+
* You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
9
|
+
* Contact: marketplaceapitest@amazon.com
|
|
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 });
|
|
@@ -24,10 +24,13 @@ __exportStar(require("./courier-supported-attributes"), exports);
|
|
|
24
24
|
__exportStar(require("./custom-attribute"), exports);
|
|
25
25
|
__exportStar(require("./custom-attribute-type"), exports);
|
|
26
26
|
__exportStar(require("./dimension"), exports);
|
|
27
|
+
__exportStar(require("./distance"), exports);
|
|
27
28
|
__exportStar(require("./document"), exports);
|
|
28
29
|
__exportStar(require("./document-v2"), exports);
|
|
29
30
|
__exportStar(require("./error-list"), exports);
|
|
31
|
+
__exportStar(require("./geocodes"), exports);
|
|
30
32
|
__exportStar(require("./gift-attributes"), exports);
|
|
33
|
+
__exportStar(require("./handover-location"), exports);
|
|
31
34
|
__exportStar(require("./invoice-info"), exports);
|
|
32
35
|
__exportStar(require("./invoice-requirement"), exports);
|
|
33
36
|
__exportStar(require("./invoice-response"), exports);
|
|
@@ -16,10 +16,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.InvoiceRequirementStatusEnum = exports.InvoiceRequirementRequirementEnum = void 0;
|
|
17
17
|
exports.InvoiceRequirementRequirementEnum = {
|
|
18
18
|
Required: 'REQUIRED',
|
|
19
|
-
NotRequired: 'NOT_REQUIRED'
|
|
19
|
+
NotRequired: 'NOT_REQUIRED',
|
|
20
20
|
};
|
|
21
21
|
exports.InvoiceRequirementStatusEnum = {
|
|
22
22
|
Pending: 'PENDING',
|
|
23
23
|
Available: 'AVAILABLE',
|
|
24
|
-
NotAvailable: 'NOT_AVAILABLE'
|
|
24
|
+
NotAvailable: 'NOT_AVAILABLE',
|
|
25
25
|
};
|
|
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.LineItemWithReasonReasonEnum = void 0;
|
|
17
17
|
exports.LineItemWithReasonReasonEnum = {
|
|
18
18
|
OutOfStock: 'OUT_OF_STOCK',
|
|
19
|
-
CustomerRequested: 'CUSTOMER_REQUESTED'
|
|
19
|
+
CustomerRequested: 'CUSTOMER_REQUESTED',
|
|
20
20
|
};
|
|
@@ -21,9 +21,9 @@ exports.PackageStatusEnum = {
|
|
|
21
21
|
ShiplabelGenerated: 'SHIPLABEL_GENERATED',
|
|
22
22
|
Shipped: 'SHIPPED',
|
|
23
23
|
Delivered: 'DELIVERED',
|
|
24
|
-
Cancelled: 'CANCELLED'
|
|
24
|
+
Cancelled: 'CANCELLED',
|
|
25
25
|
};
|
|
26
26
|
exports.PackagePackageHandlingRequirementsEnum = {
|
|
27
27
|
Normal: 'NORMAL',
|
|
28
|
-
Fragile: 'FRAGILE'
|
|
28
|
+
Fragile: 'FRAGILE',
|
|
29
29
|
};
|
|
@@ -16,9 +16,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.PackingSlipRequirementStatusEnum = exports.PackingSlipRequirementRequirementEnum = void 0;
|
|
17
17
|
exports.PackingSlipRequirementRequirementEnum = {
|
|
18
18
|
Required: 'REQUIRED',
|
|
19
|
-
NotRequired: 'NOT_REQUIRED'
|
|
19
|
+
NotRequired: 'NOT_REQUIRED',
|
|
20
20
|
};
|
|
21
21
|
exports.PackingSlipRequirementStatusEnum = {
|
|
22
22
|
Generated: 'GENERATED',
|
|
23
|
-
NotGenerated: 'NOT_GENERATED'
|
|
23
|
+
NotGenerated: 'NOT_GENERATED',
|
|
24
24
|
};
|
|
@@ -13,13 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ShipmentInfoProcessingSourceEnum = exports.ShipmentInfoShipmentTypeEnum = void 0;
|
|
16
|
+
exports.ShipmentInfoPaymentMethodEnum = exports.ShipmentInfoProcessingSourceEnum = exports.ShipmentInfoShipmentTypeEnum = void 0;
|
|
17
17
|
exports.ShipmentInfoShipmentTypeEnum = {
|
|
18
18
|
New: 'NEW',
|
|
19
19
|
Exchange: 'EXCHANGE',
|
|
20
|
-
Replacement: 'REPLACEMENT'
|
|
20
|
+
Replacement: 'REPLACEMENT',
|
|
21
21
|
};
|
|
22
22
|
exports.ShipmentInfoProcessingSourceEnum = {
|
|
23
23
|
ExternalPlatform: 'EXTERNAL_PLATFORM',
|
|
24
|
-
InternalPlatform: 'INTERNAL_PLATFORM'
|
|
24
|
+
InternalPlatform: 'INTERNAL_PLATFORM',
|
|
25
|
+
};
|
|
26
|
+
exports.ShipmentInfoPaymentMethodEnum = {
|
|
27
|
+
CashOnDelivery: 'CASH_ON_DELIVERY',
|
|
28
|
+
Prepaid: 'PREPAID',
|
|
25
29
|
};
|
|
@@ -24,7 +24,7 @@ exports.ShipmentStatusEnum = {
|
|
|
24
24
|
ShiplabelGenerated: 'SHIPLABEL_GENERATED',
|
|
25
25
|
Cancelled: 'CANCELLED',
|
|
26
26
|
Shipped: 'SHIPPED',
|
|
27
|
-
Delivered: 'DELIVERED'
|
|
27
|
+
Delivered: 'DELIVERED',
|
|
28
28
|
};
|
|
29
29
|
exports.ShipmentSubStatusEnum = {
|
|
30
30
|
PendingSchedule: 'PENDING_SCHEDULE',
|
|
@@ -40,5 +40,5 @@ exports.ShipmentSubStatusEnum = {
|
|
|
40
40
|
Undeliverable: 'UNDELIVERABLE',
|
|
41
41
|
Lost: 'LOST',
|
|
42
42
|
OutForDelivery: 'OUT_FOR_DELIVERY',
|
|
43
|
-
Damaged: 'DAMAGED'
|
|
43
|
+
Damaged: 'DAMAGED',
|
|
44
44
|
};
|
|
@@ -35,7 +35,7 @@ export const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (config
|
|
|
35
35
|
// verify required parameter 'body' is not null or undefined
|
|
36
36
|
assertParamExists('createPackages', 'body', body);
|
|
37
37
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages`
|
|
38
|
-
.replace(
|
|
38
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
39
39
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40
40
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41
41
|
let baseOptions;
|
|
@@ -66,7 +66,7 @@ export const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (config
|
|
|
66
66
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
67
67
|
assertParamExists('generateInvoice', 'shipmentId', shipmentId);
|
|
68
68
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/invoice`
|
|
69
|
-
.replace(
|
|
69
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
70
70
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
71
71
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
72
72
|
let baseOptions;
|
|
@@ -100,7 +100,7 @@ export const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (config
|
|
|
100
100
|
// verify required parameter 'operation' is not null or undefined
|
|
101
101
|
assertParamExists('generateShipLabels', 'operation', operation);
|
|
102
102
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/shipLabels`
|
|
103
|
-
.replace(
|
|
103
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
104
104
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
105
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
106
|
let baseOptions;
|
|
@@ -137,7 +137,7 @@ export const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (config
|
|
|
137
137
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
138
138
|
assertParamExists('getShipment', 'shipmentId', shipmentId);
|
|
139
139
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}`
|
|
140
|
-
.replace(
|
|
140
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
141
141
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
142
142
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
143
143
|
let baseOptions;
|
|
@@ -158,7 +158,7 @@ export const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (config
|
|
|
158
158
|
},
|
|
159
159
|
/**
|
|
160
160
|
* Get a list of shipments created for the seller in the status you specify. Shipments can be further filtered based on the fulfillment node or the time of the shipments\' last update.
|
|
161
|
-
* @param {GetShipmentsStatusEnum} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `ACCEPTED`.
|
|
161
|
+
* @param {GetShipmentsStatusEnum} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `CREATED` or `ACCEPTED`.
|
|
162
162
|
* @param {string} [locationId] The Amazon channel location identifier for the shipments you want to retrieve.
|
|
163
163
|
* @param {string} [marketplaceId] The marketplace ID associated with the location. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
164
164
|
* @param {string} [channelName] The channel name associated with the location.
|
|
@@ -233,7 +233,7 @@ export const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (config
|
|
|
233
233
|
// verify required parameter 'operation' is not null or undefined
|
|
234
234
|
assertParamExists('processShipment', 'operation', operation);
|
|
235
235
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}`
|
|
236
|
-
.replace(
|
|
236
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
237
237
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
238
238
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
239
239
|
let baseOptions;
|
|
@@ -267,7 +267,7 @@ export const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (config
|
|
|
267
267
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
268
268
|
assertParamExists('retrieveInvoice', 'shipmentId', shipmentId);
|
|
269
269
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/invoice`
|
|
270
|
-
.replace(
|
|
270
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
271
271
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
272
272
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
273
273
|
let baseOptions;
|
|
@@ -299,7 +299,7 @@ export const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (config
|
|
|
299
299
|
// verify required parameter 'packageId' is not null or undefined
|
|
300
300
|
assertParamExists('retrieveShippingOptions', 'packageId', packageId);
|
|
301
301
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/shippingOptions`
|
|
302
|
-
.replace(
|
|
302
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
303
303
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
304
304
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
305
305
|
let baseOptions;
|
|
@@ -337,8 +337,8 @@ export const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (config
|
|
|
337
337
|
// verify required parameter 'body' is not null or undefined
|
|
338
338
|
assertParamExists('updatePackage', 'body', body);
|
|
339
339
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages/{packageId}`
|
|
340
|
-
.replace(
|
|
341
|
-
.replace(
|
|
340
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)))
|
|
341
|
+
.replace('{packageId}', encodeURIComponent(String(packageId)));
|
|
342
342
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
343
343
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
344
344
|
let baseOptions;
|
|
@@ -374,8 +374,8 @@ export const ExternalFulfillmentShipmentsApiAxiosParamCreator = function (config
|
|
|
374
374
|
// verify required parameter 'packageId' is not null or undefined
|
|
375
375
|
assertParamExists('updatePackageStatus', 'packageId', packageId);
|
|
376
376
|
const localVarPath = `/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages/{packageId}`
|
|
377
|
-
.replace(
|
|
378
|
-
.replace(
|
|
377
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)))
|
|
378
|
+
.replace('{packageId}', encodeURIComponent(String(packageId)));
|
|
379
379
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
380
380
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
381
381
|
let baseOptions;
|
|
@@ -461,7 +461,7 @@ export const ExternalFulfillmentShipmentsApiFp = function (configuration) {
|
|
|
461
461
|
},
|
|
462
462
|
/**
|
|
463
463
|
* Get a list of shipments created for the seller in the status you specify. Shipments can be further filtered based on the fulfillment node or the time of the shipments\' last update.
|
|
464
|
-
* @param {GetShipmentsStatusEnum} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `ACCEPTED`.
|
|
464
|
+
* @param {GetShipmentsStatusEnum} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `CREATED` or `ACCEPTED`.
|
|
465
465
|
* @param {string} [locationId] The Amazon channel location identifier for the shipments you want to retrieve.
|
|
466
466
|
* @param {string} [marketplaceId] The marketplace ID associated with the location. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
467
467
|
* @param {string} [channelName] The channel name associated with the location.
|
|
@@ -743,7 +743,7 @@ export class ExternalFulfillmentShipmentsApi extends BaseAPI {
|
|
|
743
743
|
}
|
|
744
744
|
export const GenerateShipLabelsOperationEnum = {
|
|
745
745
|
Generate: 'GENERATE',
|
|
746
|
-
Regenerate: 'REGENERATE'
|
|
746
|
+
Regenerate: 'REGENERATE',
|
|
747
747
|
};
|
|
748
748
|
export const GetShipmentsStatusEnum = {
|
|
749
749
|
Created: 'CREATED',
|
|
@@ -755,12 +755,12 @@ export const GetShipmentsStatusEnum = {
|
|
|
755
755
|
ShiplabelGenerated: 'SHIPLABEL_GENERATED',
|
|
756
756
|
Cancelled: 'CANCELLED',
|
|
757
757
|
Shipped: 'SHIPPED',
|
|
758
|
-
Delivered: 'DELIVERED'
|
|
758
|
+
Delivered: 'DELIVERED',
|
|
759
759
|
};
|
|
760
760
|
export const ProcessShipmentOperationEnum = {
|
|
761
761
|
Confirm: 'CONFIRM',
|
|
762
|
-
Reject: 'REJECT'
|
|
762
|
+
Reject: 'REJECT',
|
|
763
763
|
};
|
|
764
764
|
export const UpdatePackageStatusStatusEnum = {
|
|
765
|
-
Shipped: 'SHIPPED'
|
|
765
|
+
Shipped: 'SHIPPED',
|
|
766
766
|
};
|
|
@@ -81,6 +81,7 @@ export const setSearchParams = function (url, ...objects) {
|
|
|
81
81
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
82
82
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
83
83
|
*/
|
|
84
|
+
// @ts-ignore
|
|
84
85
|
export const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
85
86
|
if (value instanceof Set) {
|
|
86
87
|
return Array.from(value);
|
|
@@ -88,7 +88,7 @@ export class Configuration {
|
|
|
88
88
|
* @return True if the given MIME is JSON, false otherwise.
|
|
89
89
|
*/
|
|
90
90
|
isJsonMime(mime) {
|
|
91
|
-
const jsonMime =
|
|
92
|
-
return mime !== null &&
|
|
91
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
92
|
+
return mime !== null && jsonMime.test(mime);
|
|
93
93
|
}
|
|
94
94
|
}
|