@sp-api-sdk/external-fulfillment-shipments-api-2024-09-11 1.2.9 → 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.
Files changed (76) hide show
  1. package/dist/cjs/api-model/api/external-fulfillment-shipments-api.js +17 -17
  2. package/dist/cjs/api-model/configuration.js +2 -2
  3. package/dist/cjs/api-model/models/cancellation.js +1 -1
  4. package/dist/cjs/api-model/models/charge.js +1 -1
  5. package/dist/cjs/api-model/models/custom-attribute-type.js +1 -1
  6. package/dist/cjs/api-model/models/dimension.js +2 -1
  7. package/dist/cjs/api-model/models/distance.js +20 -0
  8. package/dist/cjs/api-model/models/document.js +1 -1
  9. package/dist/cjs/api-model/models/geocodes.js +15 -0
  10. package/dist/cjs/api-model/models/handover-location.js +15 -0
  11. package/dist/cjs/api-model/models/index.js +3 -0
  12. package/dist/cjs/api-model/models/invoice-requirement.js +2 -2
  13. package/dist/cjs/api-model/models/line-item-with-reason.js +1 -1
  14. package/dist/cjs/api-model/models/marketplace-attributes.js +1 -1
  15. package/dist/cjs/api-model/models/package-status.js +1 -1
  16. package/dist/cjs/api-model/models/package-sub-status.js +1 -1
  17. package/dist/cjs/api-model/models/package.js +2 -2
  18. package/dist/cjs/api-model/models/packing-slip-requirement.js +2 -2
  19. package/dist/cjs/api-model/models/party-identification-info.js +1 -1
  20. package/dist/cjs/api-model/models/piece-type.js +1 -1
  21. package/dist/cjs/api-model/models/presence-status.js +1 -1
  22. package/dist/cjs/api-model/models/priority.js +1 -1
  23. package/dist/cjs/api-model/models/requirement-level.js +1 -1
  24. package/dist/cjs/api-model/models/shipment-info.js +7 -3
  25. package/dist/cjs/api-model/models/shipment.js +2 -2
  26. package/dist/cjs/api-model/models/shipping-info.js +1 -1
  27. package/dist/cjs/api-model/models/shipping-options.js +1 -1
  28. package/dist/cjs/api-model/models/status.js +1 -1
  29. package/dist/cjs/api-model/models/tax-registration-info.js +1 -1
  30. package/dist/cjs/api-model/models/tax.js +1 -1
  31. package/dist/cjs/api-model/models/time-window.js +1 -1
  32. package/dist/cjs/api-model/models/weight.js +3 -1
  33. package/dist/es/api-model/api/external-fulfillment-shipments-api.js +17 -17
  34. package/dist/es/api-model/configuration.js +2 -2
  35. package/dist/es/api-model/models/cancellation.js +1 -1
  36. package/dist/es/api-model/models/charge.js +1 -1
  37. package/dist/es/api-model/models/custom-attribute-type.js +1 -1
  38. package/dist/es/api-model/models/dimension.js +2 -1
  39. package/dist/es/api-model/models/distance.js +17 -0
  40. package/dist/es/api-model/models/document.js +1 -1
  41. package/dist/es/api-model/models/geocodes.js +14 -0
  42. package/dist/es/api-model/models/handover-location.js +14 -0
  43. package/dist/es/api-model/models/index.js +3 -0
  44. package/dist/es/api-model/models/invoice-requirement.js +2 -2
  45. package/dist/es/api-model/models/line-item-with-reason.js +1 -1
  46. package/dist/es/api-model/models/marketplace-attributes.js +1 -1
  47. package/dist/es/api-model/models/package-status.js +1 -1
  48. package/dist/es/api-model/models/package-sub-status.js +1 -1
  49. package/dist/es/api-model/models/package.js +2 -2
  50. package/dist/es/api-model/models/packing-slip-requirement.js +2 -2
  51. package/dist/es/api-model/models/party-identification-info.js +1 -1
  52. package/dist/es/api-model/models/piece-type.js +1 -1
  53. package/dist/es/api-model/models/presence-status.js +1 -1
  54. package/dist/es/api-model/models/priority.js +1 -1
  55. package/dist/es/api-model/models/requirement-level.js +1 -1
  56. package/dist/es/api-model/models/shipment-info.js +6 -2
  57. package/dist/es/api-model/models/shipment.js +2 -2
  58. package/dist/es/api-model/models/shipping-info.js +1 -1
  59. package/dist/es/api-model/models/shipping-options.js +1 -1
  60. package/dist/es/api-model/models/status.js +1 -1
  61. package/dist/es/api-model/models/tax-registration-info.js +1 -1
  62. package/dist/es/api-model/models/tax.js +1 -1
  63. package/dist/es/api-model/models/time-window.js +1 -1
  64. package/dist/es/api-model/models/weight.js +3 -1
  65. package/dist/types/api-model/api/external-fulfillment-shipments-api.d.ts +3 -3
  66. package/dist/types/api-model/models/address.d.ts +3 -1
  67. package/dist/types/api-model/models/dimension.d.ts +1 -0
  68. package/dist/types/api-model/models/distance.d.ts +29 -0
  69. package/dist/types/api-model/models/geocodes.d.ts +28 -0
  70. package/dist/types/api-model/models/handover-location.d.ts +24 -0
  71. package/dist/types/api-model/models/index.d.ts +3 -0
  72. package/dist/types/api-model/models/ship-label-metadata.d.ts +2 -0
  73. package/dist/types/api-model/models/shipment-info.d.ts +9 -0
  74. package/dist/types/api-model/models/shipping-options.d.ts +2 -0
  75. package/dist/types/api-model/models/weight.d.ts +2 -0
  76. 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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)))
347
- .replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)))
384
- .replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
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
  };
@@ -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 = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
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
  };
@@ -19,5 +19,5 @@ exports.ChargeChargeTypeEnum = {
19
19
  Shipping: 'SHIPPING',
20
20
  GiftWrap: 'GIFT_WRAP',
21
21
  Total: 'TOTAL',
22
- Other: 'OTHER'
22
+ Other: 'OTHER',
23
23
  };
@@ -22,5 +22,5 @@ exports.CustomAttributeType = {
22
22
  Boolean: 'BOOLEAN',
23
23
  Integer: 'INTEGER',
24
24
  Double: 'DOUBLE',
25
- JsonString: 'JSON_STRING'
25
+ JsonString: 'JSON_STRING',
26
26
  };
@@ -16,5 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DimensionDimensionUnitEnum = void 0;
17
17
  exports.DimensionDimensionUnitEnum = {
18
18
  Cm: 'CM',
19
- M: 'M'
19
+ M: 'M',
20
+ In: 'IN',
20
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
+ };
@@ -18,5 +18,5 @@ exports.DocumentFormatEnum = {
18
18
  Zpl: 'ZPL',
19
19
  Pdf: 'PDF',
20
20
  Png: 'PNG',
21
- PlainText: 'PLAIN_TEXT'
21
+ PlainText: 'PLAIN_TEXT',
22
22
  };
@@ -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
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.MarketplaceAttributesCustomAttributesEnum = void 0;
17
17
  exports.MarketplaceAttributesCustomAttributesEnum = {
18
18
  Prime: 'PRIME',
19
- Fasttrack: 'FASTTRACK'
19
+ Fasttrack: 'FASTTRACK',
20
20
  };
@@ -23,5 +23,5 @@ exports.PackageStatus = {
23
23
  InvoiceGenerated: 'INVOICE_GENERATED',
24
24
  ShiplabelGenerated: 'SHIPLABEL_GENERATED',
25
25
  Shipped: 'SHIPPED',
26
- Delivered: 'DELIVERED'
26
+ Delivered: 'DELIVERED',
27
27
  };
@@ -21,5 +21,5 @@ exports.PackageSubStatus = {
21
21
  OutForDelivery: 'OUT_FOR_DELIVERY',
22
22
  Delivered: 'DELIVERED',
23
23
  NotDelivered: 'NOT_DELIVERED',
24
- Undeliverable: 'UNDELIVERABLE'
24
+ Undeliverable: 'UNDELIVERABLE',
25
25
  };
@@ -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
  };
@@ -18,5 +18,5 @@ exports.PartyIdentificationInfoPartyTypeEnum = {
18
18
  BillToParty: 'BILL_TO_PARTY',
19
19
  ShipToParty: 'SHIP_TO_PARTY',
20
20
  ShipFromParty: 'SHIP_FROM_PARTY',
21
- SellingParty: 'SELLING_PARTY'
21
+ SellingParty: 'SELLING_PARTY',
22
22
  };
@@ -19,5 +19,5 @@ exports.PieceType = void 0;
19
19
  */
20
20
  exports.PieceType = {
21
21
  Single: 'SINGLE',
22
- Multiple: 'MULTIPLE'
22
+ Multiple: 'MULTIPLE',
23
23
  };
@@ -19,5 +19,5 @@ exports.PresenceStatus = void 0;
19
19
  */
20
20
  exports.PresenceStatus = {
21
21
  Absent: 'ABSENT',
22
- Present: 'PRESENT'
22
+ Present: 'PRESENT',
23
23
  };
@@ -19,5 +19,5 @@ exports.Priority = void 0;
19
19
  */
20
20
  exports.Priority = {
21
21
  High: 'HIGH',
22
- Low: 'LOW'
22
+ Low: 'LOW',
23
23
  };
@@ -19,5 +19,5 @@ exports.RequirementLevel = void 0;
19
19
  */
20
20
  exports.RequirementLevel = {
21
21
  Required: 'REQUIRED',
22
- Disallowed: 'DISALLOWED'
22
+ Disallowed: 'DISALLOWED',
23
23
  };
@@ -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
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ShippingInfoShippingTypeEnum = void 0;
17
17
  exports.ShippingInfoShippingTypeEnum = {
18
18
  Marketplace: 'MARKETPLACE',
19
- Self: 'SELF'
19
+ Self: 'SELF',
20
20
  };
@@ -18,5 +18,5 @@ exports.ShippingOptionsShipByEnum = {
18
18
  Marketplace: 'MARKETPLACE',
19
19
  Seller: 'SELLER',
20
20
  ThirdPartyCarrier: 'THIRD_PARTY_CARRIER',
21
- Other: 'OTHER'
21
+ Other: 'OTHER',
22
22
  };
@@ -19,5 +19,5 @@ exports.Status = void 0;
19
19
  */
20
20
  exports.Status = {
21
21
  Success: 'SUCCESS',
22
- Failure: 'FAILURE'
22
+ Failure: 'FAILURE',
23
23
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.TaxRegistrationInfoTypeEnum = void 0;
17
17
  exports.TaxRegistrationInfoTypeEnum = {
18
18
  Vat: 'VAT',
19
- Gst: 'GST'
19
+ Gst: 'GST',
20
20
  };
@@ -23,5 +23,5 @@ exports.TaxTypeEnum = {
23
23
  Utgst: 'UTGST',
24
24
  Cess: 'CESS',
25
25
  Other: 'OTHER',
26
- Total: 'TOTAL'
26
+ Total: 'TOTAL',
27
27
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.TimeWindowHandoverMethodEnum = void 0;
17
17
  exports.TimeWindowHandoverMethodEnum = {
18
18
  Pickup: 'PICKUP',
19
- Dropoff: 'DROPOFF'
19
+ Dropoff: 'DROPOFF',
20
20
  };
@@ -16,5 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.WeightWeightUnitEnum = void 0;
17
17
  exports.WeightWeightUnitEnum = {
18
18
  G: 'G',
19
- Kg: 'KG'
19
+ Kg: 'KG',
20
+ Lb: 'LB',
21
+ Oz: 'OZ',
20
22
  };
@@ -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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)))
341
- .replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
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(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)))
378
- .replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
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
  };
@@ -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 = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
91
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
92
+ return mime !== null && jsonMime.test(mime);
93
93
  }
94
94
  }
@@ -14,5 +14,5 @@
14
14
  export const CancellationCancellationTypeEnum = {
15
15
  SellerRejected: 'SELLER_REJECTED',
16
16
  MarketplaceCancelled: 'MARKETPLACE_CANCELLED',
17
- SystemCancelled: 'SYSTEM_CANCELLED'
17
+ SystemCancelled: 'SYSTEM_CANCELLED',
18
18
  };
@@ -16,5 +16,5 @@ export const ChargeChargeTypeEnum = {
16
16
  Shipping: 'SHIPPING',
17
17
  GiftWrap: 'GIFT_WRAP',
18
18
  Total: 'TOTAL',
19
- Other: 'OTHER'
19
+ Other: 'OTHER',
20
20
  };