@sp-api-sdk/shipping-api-v2 2.0.1 → 2.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/shipping-api.js +274 -29
- package/dist/cjs/api-model/configuration.js +1 -2
- package/dist/cjs/api-model/models/carrier-account.js +15 -0
- package/dist/cjs/api-model/models/claim-reason.js +28 -0
- package/dist/cjs/api-model/models/create-claim-request.js +15 -0
- package/dist/cjs/api-model/models/create-claim-response.js +15 -0
- package/dist/cjs/api-model/models/detail-codes.js +53 -0
- package/dist/cjs/api-model/models/event-code.js +4 -1
- package/dist/cjs/api-model/models/goods-owner.js +15 -0
- package/dist/cjs/api-model/models/index.js +13 -0
- package/dist/cjs/api-model/models/label-attribute.js +26 -0
- package/dist/cjs/api-model/models/ndr-action.js +26 -0
- package/dist/cjs/api-model/models/ndr-request-data.js +15 -0
- package/dist/cjs/api-model/models/rate-item-id.js +6 -1
- package/dist/cjs/api-model/models/requested-label-customization.js +15 -0
- package/dist/cjs/api-model/models/settlement-type.js +25 -0
- package/dist/cjs/api-model/models/status.js +2 -1
- package/dist/cjs/api-model/models/submit-ndr-feedback-request.js +15 -0
- package/dist/cjs/api-model/models/tracking-detail-codes.js +15 -0
- package/dist/cjs/client.js +21 -0
- package/dist/es/api-model/api/shipping-api.js +273 -28
- package/dist/es/api-model/configuration.js +1 -2
- package/dist/es/api-model/models/carrier-account.js +14 -0
- package/dist/es/api-model/models/claim-reason.js +25 -0
- package/dist/es/api-model/models/create-claim-request.js +14 -0
- package/dist/es/api-model/models/create-claim-response.js +14 -0
- package/dist/es/api-model/models/detail-codes.js +50 -0
- package/dist/es/api-model/models/event-code.js +4 -1
- package/dist/es/api-model/models/goods-owner.js +14 -0
- package/dist/es/api-model/models/index.js +13 -0
- package/dist/es/api-model/models/label-attribute.js +23 -0
- package/dist/es/api-model/models/ndr-action.js +23 -0
- package/dist/es/api-model/models/ndr-request-data.js +14 -0
- package/dist/es/api-model/models/rate-item-id.js +6 -1
- package/dist/es/api-model/models/requested-label-customization.js +14 -0
- package/dist/es/api-model/models/settlement-type.js +22 -0
- package/dist/es/api-model/models/status.js +2 -1
- package/dist/es/api-model/models/submit-ndr-feedback-request.js +14 -0
- package/dist/es/api-model/models/tracking-detail-codes.js +14 -0
- package/dist/es/client.js +21 -0
- package/dist/types/api-model/api/shipping-api.d.ts +251 -42
- package/dist/types/api-model/common.d.ts +1 -1
- package/dist/types/api-model/models/access-point-details.d.ts +1 -1
- package/dist/types/api-model/models/access-point.d.ts +2 -2
- package/dist/types/api-model/models/active-account.d.ts +1 -1
- package/dist/types/api-model/models/benefits.d.ts +1 -1
- package/dist/types/api-model/models/carrier-account.d.ts +30 -0
- package/dist/types/api-model/models/claim-reason.d.ts +24 -0
- package/dist/types/api-model/models/create-claim-request.d.ts +57 -0
- package/dist/types/api-model/models/create-claim-response.d.ts +24 -0
- package/dist/types/api-model/models/detail-codes.d.ts +49 -0
- package/dist/types/api-model/models/error-list.d.ts +1 -1
- package/dist/types/api-model/models/event-code.d.ts +3 -0
- package/dist/types/api-model/models/event.d.ts +7 -0
- package/dist/types/api-model/models/excluded-benefit.d.ts +5 -5
- package/dist/types/api-model/models/get-rates-request.d.ts +7 -0
- package/dist/types/api-model/models/get-shipment-documents-result.d.ts +7 -0
- package/dist/types/api-model/models/goods-owner.d.ts +24 -0
- package/dist/types/api-model/models/index.d.ts +13 -0
- package/dist/types/api-model/models/label-attribute.d.ts +22 -0
- package/dist/types/api-model/models/link-carrier-account-response.d.ts +6 -0
- package/dist/types/api-model/models/ndr-action.d.ts +22 -0
- package/dist/types/api-model/models/ndr-request-data.d.ts +30 -0
- package/dist/types/api-model/models/one-click-shipment-request.d.ts +7 -0
- package/dist/types/api-model/models/operating-hours.d.ts +1 -1
- package/dist/types/api-model/models/purchase-shipment-result.d.ts +7 -0
- package/dist/types/api-model/models/rate-item-id.d.ts +5 -0
- package/dist/types/api-model/models/requested-document-specification.d.ts +7 -0
- package/dist/types/api-model/models/requested-label-customization.d.ts +25 -0
- package/dist/types/api-model/models/settlement-type.d.ts +21 -0
- package/dist/types/api-model/models/status.d.ts +1 -0
- package/dist/types/api-model/models/submit-ndr-feedback-request.d.ts +38 -0
- package/dist/types/api-model/models/time-of-day.d.ts +3 -3
- package/dist/types/api-model/models/tracking-detail-codes.d.ts +31 -0
- package/dist/types/api-model/models/tracking-summary.d.ts +7 -0
- package/dist/types/api-model/models/unlink-carrier-account-request.d.ts +6 -0
- package/package.json +4 -4
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.UnlinkCarrierAccountXAmznShippingBusinessIdEnum = exports.PurchaseShipmentXAmznShippingBusinessIdEnum = exports.OneClickShipmentXAmznShippingBusinessIdEnum = exports.LinkCarrierAccountXAmznShippingBusinessIdEnum = exports.GetUnmanifestedShipmentsXAmznShippingBusinessIdEnum = exports.GetTrackingXAmznShippingBusinessIdEnum = exports.GetShipmentDocumentsXAmznShippingBusinessIdEnum = exports.GetRatesXAmznShippingBusinessIdEnum = exports.GetCollectionFormHistoryXAmznShippingBusinessIdEnum = exports.GetCollectionFormXAmznShippingBusinessIdEnum = exports.GetCarrierAccountsXAmznShippingBusinessIdEnum = exports.GetCarrierAccountFormInputsXAmznShippingBusinessIdEnum = exports.GetAdditionalInputsXAmznShippingBusinessIdEnum = exports.GetAccessPointsXAmznShippingBusinessIdEnum = exports.GetAccessPointsAccessPointTypesEnum = exports.GenerateCollectionFormXAmznShippingBusinessIdEnum = exports.DirectPurchaseShipmentXAmznShippingBusinessIdEnum = exports.CancelShipmentXAmznShippingBusinessIdEnum = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.UnlinkCarrierAccountXAmznShippingBusinessIdEnum = exports.SubmitNdrFeedbackXAmznShippingBusinessIdEnum = exports.PurchaseShipmentXAmznShippingBusinessIdEnum = exports.OneClickShipmentXAmznShippingBusinessIdEnum = exports.LinkCarrierAccount0XAmznShippingBusinessIdEnum = exports.LinkCarrierAccountXAmznShippingBusinessIdEnum = exports.GetUnmanifestedShipmentsXAmznShippingBusinessIdEnum = exports.GetTrackingXAmznShippingBusinessIdEnum = exports.GetShipmentDocumentsXAmznShippingBusinessIdEnum = exports.GetRatesXAmznShippingBusinessIdEnum = exports.GetCollectionFormHistoryXAmznShippingBusinessIdEnum = exports.GetCollectionFormXAmznShippingBusinessIdEnum = exports.GetCarrierAccountsXAmznShippingBusinessIdEnum = exports.GetCarrierAccountFormInputsXAmznShippingBusinessIdEnum = exports.GetAdditionalInputsXAmznShippingBusinessIdEnum = exports.GetAccessPointsXAmznShippingBusinessIdEnum = exports.GetAccessPointsAccessPointTypesEnum = exports.GenerateCollectionFormXAmznShippingBusinessIdEnum = exports.DirectPurchaseShipmentXAmznShippingBusinessIdEnum = exports.CreateClaimXAmznShippingBusinessIdEnum = exports.CancelShipmentXAmznShippingBusinessIdEnum = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -61,9 +61,42 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
61
61
|
options: localVarRequestOptions,
|
|
62
62
|
};
|
|
63
63
|
},
|
|
64
|
+
/**
|
|
65
|
+
* This API will be used to create claim for single eligible shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
66
|
+
* @param {CreateClaimRequest} body Request body for the createClaim operation
|
|
67
|
+
* @param {CreateClaimXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
createClaim: async (body, xAmznShippingBusinessId, options = {}) => {
|
|
72
|
+
// verify required parameter 'body' is not null or undefined
|
|
73
|
+
(0, common_1.assertParamExists)('createClaim', 'body', body);
|
|
74
|
+
const localVarPath = `/shipping/v2/claims`;
|
|
75
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
76
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
77
|
+
let baseOptions;
|
|
78
|
+
if (configuration) {
|
|
79
|
+
baseOptions = configuration.baseOptions;
|
|
80
|
+
}
|
|
81
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
82
|
+
const localVarHeaderParameter = {};
|
|
83
|
+
const localVarQueryParameter = {};
|
|
84
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
85
|
+
if (xAmznShippingBusinessId != null) {
|
|
86
|
+
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
87
|
+
}
|
|
88
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
89
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
91
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
92
|
+
return {
|
|
93
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
94
|
+
options: localVarRequestOptions,
|
|
95
|
+
};
|
|
96
|
+
},
|
|
64
97
|
/**
|
|
65
98
|
* Purchases the shipping service for a shipment using the best fit service offering. Returns purchase related details and documents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
66
|
-
* @param {DirectPurchaseRequest} body
|
|
99
|
+
* @param {DirectPurchaseRequest} body DirectPurchaseRequest body
|
|
67
100
|
* @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
|
|
68
101
|
* @param {string} [locale] The IETF Language Tag. Note that this only supports the primary language subtag with one secondary language subtag (i.e. en-US, fr-CA). The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary language subtags.
|
|
69
102
|
* @param {DirectPurchaseShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
@@ -104,7 +137,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
104
137
|
},
|
|
105
138
|
/**
|
|
106
139
|
* This API Call to generate the collection form. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
107
|
-
* @param {GenerateCollectionFormRequest} body
|
|
140
|
+
* @param {GenerateCollectionFormRequest} body GenerateCollectionFormRequest body
|
|
108
141
|
* @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
|
|
109
142
|
* @param {GenerateCollectionFormXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
110
143
|
* @param {*} [options] Override http request option.
|
|
@@ -141,9 +174,9 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
141
174
|
},
|
|
142
175
|
/**
|
|
143
176
|
* Returns a list of access points in proximity of input postal code. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
144
|
-
* @param {Array<GetAccessPointsAccessPointTypesEnum>} accessPointTypes
|
|
145
|
-
* @param {string} countryCode
|
|
146
|
-
* @param {string} postalCode
|
|
177
|
+
* @param {Array<GetAccessPointsAccessPointTypesEnum>} accessPointTypes Access point types
|
|
178
|
+
* @param {string} countryCode Country code for access point
|
|
179
|
+
* @param {string} postalCode postal code for access point
|
|
147
180
|
* @param {GetAccessPointsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
148
181
|
* @param {*} [options] Override http request option.
|
|
149
182
|
* @throws {RequiredError}
|
|
@@ -255,7 +288,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
255
288
|
},
|
|
256
289
|
/**
|
|
257
290
|
* This API will return Get all carrier accounts for a merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
258
|
-
* @param {GetCarrierAccountsRequest} body
|
|
291
|
+
* @param {GetCarrierAccountsRequest} body GetCarrierAccountsRequest body
|
|
259
292
|
* @param {GetCarrierAccountsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
260
293
|
* @param {*} [options] Override http request option.
|
|
261
294
|
* @throws {RequiredError}
|
|
@@ -320,7 +353,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
320
353
|
},
|
|
321
354
|
/**
|
|
322
355
|
* This API Call to get the history of the previously generated collection forms. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
323
|
-
* @param {GetCollectionFormHistoryRequest} body
|
|
356
|
+
* @param {GetCollectionFormHistoryRequest} body GetCollectionFormHistoryRequest body
|
|
324
357
|
* @param {GetCollectionFormHistoryXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
325
358
|
* @param {*} [options] Override http request option.
|
|
326
359
|
* @throws {RequiredError}
|
|
@@ -353,7 +386,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
353
386
|
},
|
|
354
387
|
/**
|
|
355
388
|
* Returns the available shipping service offerings. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
356
|
-
* @param {GetRatesRequest} body
|
|
389
|
+
* @param {GetRatesRequest} body GetRatesRequest body
|
|
357
390
|
* @param {GetRatesXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
358
391
|
* @param {*} [options] Override http request option.
|
|
359
392
|
* @throws {RequiredError}
|
|
@@ -472,7 +505,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
472
505
|
},
|
|
473
506
|
/**
|
|
474
507
|
* This API Get all unmanifested carriers with shipment locations. Any locations which has unmanifested shipments with an eligible carrier for manifesting shall be returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
475
|
-
* @param {GetUnmanifestedShipmentsRequest} body
|
|
508
|
+
* @param {GetUnmanifestedShipmentsRequest} body GetUmanifestedShipmentsRequest body
|
|
476
509
|
* @param {GetUnmanifestedShipmentsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
477
510
|
* @param {*} [options] Override http request option.
|
|
478
511
|
* @throws {RequiredError}
|
|
@@ -505,8 +538,8 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
505
538
|
},
|
|
506
539
|
/**
|
|
507
540
|
* This API associates/links the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
508
|
-
* @param {string} carrierId
|
|
509
|
-
* @param {LinkCarrierAccountRequest} body
|
|
541
|
+
* @param {string} carrierId An identifier for the carrier with which the seller\'s account is being linked.
|
|
542
|
+
* @param {LinkCarrierAccountRequest} body LinkCarrierAccountRequest body
|
|
510
543
|
* @param {LinkCarrierAccountXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
511
544
|
* @param {*} [options] Override http request option.
|
|
512
545
|
* @throws {RequiredError}
|
|
@@ -540,9 +573,46 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
540
573
|
options: localVarRequestOptions,
|
|
541
574
|
};
|
|
542
575
|
},
|
|
576
|
+
/**
|
|
577
|
+
* This API associates/links the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 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 then 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).
|
|
578
|
+
* @param {string} carrierId An identifier for the carrier with which the seller\'s account is being linked.
|
|
579
|
+
* @param {LinkCarrierAccountRequest} body LinkCarrierAccountRequest body
|
|
580
|
+
* @param {LinkCarrierAccount0XAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
581
|
+
* @param {*} [options] Override http request option.
|
|
582
|
+
* @throws {RequiredError}
|
|
583
|
+
*/
|
|
584
|
+
linkCarrierAccount_1: async (carrierId, body, xAmznShippingBusinessId, options = {}) => {
|
|
585
|
+
// verify required parameter 'carrierId' is not null or undefined
|
|
586
|
+
(0, common_1.assertParamExists)('linkCarrierAccount_1', 'carrierId', carrierId);
|
|
587
|
+
// verify required parameter 'body' is not null or undefined
|
|
588
|
+
(0, common_1.assertParamExists)('linkCarrierAccount_1', 'body', body);
|
|
589
|
+
const localVarPath = `/shipping/v2/carrierAccounts/{carrierId}`
|
|
590
|
+
.replace(`{${"carrierId"}}`, encodeURIComponent(String(carrierId)));
|
|
591
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
592
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
593
|
+
let baseOptions;
|
|
594
|
+
if (configuration) {
|
|
595
|
+
baseOptions = configuration.baseOptions;
|
|
596
|
+
}
|
|
597
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
598
|
+
const localVarHeaderParameter = {};
|
|
599
|
+
const localVarQueryParameter = {};
|
|
600
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
601
|
+
if (xAmznShippingBusinessId != null) {
|
|
602
|
+
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
603
|
+
}
|
|
604
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
605
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
606
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
607
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
608
|
+
return {
|
|
609
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
610
|
+
options: localVarRequestOptions,
|
|
611
|
+
};
|
|
612
|
+
},
|
|
543
613
|
/**
|
|
544
614
|
* Purchases a shipping service identifier and returns purchase-related details and documents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
545
|
-
* @param {OneClickShipmentRequest} body
|
|
615
|
+
* @param {OneClickShipmentRequest} body OneClickShipmentRequest body
|
|
546
616
|
* @param {OneClickShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
547
617
|
* @param {*} [options] Override http request option.
|
|
548
618
|
* @throws {RequiredError}
|
|
@@ -575,7 +645,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
575
645
|
},
|
|
576
646
|
/**
|
|
577
647
|
* Purchases a shipping service and returns purchase related details and documents. Note: You must complete the purchase within 10 minutes of rate creation by the shipping service provider. If you make the request after the 10 minutes have expired, you will receive an error response with the error code equal to \"TOKEN_EXPIRED\". If you receive this error response, you must get the rates for the shipment again. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
578
|
-
* @param {PurchaseShipmentRequest} body
|
|
648
|
+
* @param {PurchaseShipmentRequest} body PurchaseShipmentRequest body
|
|
579
649
|
* @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
|
|
580
650
|
* @param {PurchaseShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
581
651
|
* @param {*} [options] Override http request option.
|
|
@@ -610,10 +680,43 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
610
680
|
options: localVarRequestOptions,
|
|
611
681
|
};
|
|
612
682
|
},
|
|
683
|
+
/**
|
|
684
|
+
* This API submits the NDR (Non-delivery Report) Feedback for any eligible shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
685
|
+
* @param {SubmitNdrFeedbackRequest} body Request body for ndrFeedback operation
|
|
686
|
+
* @param {SubmitNdrFeedbackXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
*/
|
|
690
|
+
submitNdrFeedback: async (body, xAmznShippingBusinessId, options = {}) => {
|
|
691
|
+
// verify required parameter 'body' is not null or undefined
|
|
692
|
+
(0, common_1.assertParamExists)('submitNdrFeedback', 'body', body);
|
|
693
|
+
const localVarPath = `/shipping/v2/ndrFeedback`;
|
|
694
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
695
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
696
|
+
let baseOptions;
|
|
697
|
+
if (configuration) {
|
|
698
|
+
baseOptions = configuration.baseOptions;
|
|
699
|
+
}
|
|
700
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
701
|
+
const localVarHeaderParameter = {};
|
|
702
|
+
const localVarQueryParameter = {};
|
|
703
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
704
|
+
if (xAmznShippingBusinessId != null) {
|
|
705
|
+
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
706
|
+
}
|
|
707
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
708
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
709
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
710
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
711
|
+
return {
|
|
712
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
713
|
+
options: localVarRequestOptions,
|
|
714
|
+
};
|
|
715
|
+
},
|
|
613
716
|
/**
|
|
614
717
|
* This API Unlink the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
615
718
|
* @param {string} carrierId carrier Id to unlink with merchant.
|
|
616
|
-
* @param {UnlinkCarrierAccountRequest} body
|
|
719
|
+
* @param {UnlinkCarrierAccountRequest} body UnlinkCarrierAccountRequest body
|
|
617
720
|
* @param {UnlinkCarrierAccountXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
618
721
|
* @param {*} [options] Override http request option.
|
|
619
722
|
* @throws {RequiredError}
|
|
@@ -670,9 +773,22 @@ const ShippingApiFp = function (configuration) {
|
|
|
670
773
|
const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.cancelShipment']?.[localVarOperationServerIndex]?.url;
|
|
671
774
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
672
775
|
},
|
|
776
|
+
/**
|
|
777
|
+
* This API will be used to create claim for single eligible shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
778
|
+
* @param {CreateClaimRequest} body Request body for the createClaim operation
|
|
779
|
+
* @param {CreateClaimXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
780
|
+
* @param {*} [options] Override http request option.
|
|
781
|
+
* @throws {RequiredError}
|
|
782
|
+
*/
|
|
783
|
+
async createClaim(body, xAmznShippingBusinessId, options) {
|
|
784
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClaim(body, xAmznShippingBusinessId, options);
|
|
785
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
786
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.createClaim']?.[localVarOperationServerIndex]?.url;
|
|
787
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
788
|
+
},
|
|
673
789
|
/**
|
|
674
790
|
* Purchases the shipping service for a shipment using the best fit service offering. Returns purchase related details and documents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
675
|
-
* @param {DirectPurchaseRequest} body
|
|
791
|
+
* @param {DirectPurchaseRequest} body DirectPurchaseRequest body
|
|
676
792
|
* @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
|
|
677
793
|
* @param {string} [locale] The IETF Language Tag. Note that this only supports the primary language subtag with one secondary language subtag (i.e. en-US, fr-CA). The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary language subtags.
|
|
678
794
|
* @param {DirectPurchaseShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
@@ -687,7 +803,7 @@ const ShippingApiFp = function (configuration) {
|
|
|
687
803
|
},
|
|
688
804
|
/**
|
|
689
805
|
* This API Call to generate the collection form. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
690
|
-
* @param {GenerateCollectionFormRequest} body
|
|
806
|
+
* @param {GenerateCollectionFormRequest} body GenerateCollectionFormRequest body
|
|
691
807
|
* @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
|
|
692
808
|
* @param {GenerateCollectionFormXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
693
809
|
* @param {*} [options] Override http request option.
|
|
@@ -701,9 +817,9 @@ const ShippingApiFp = function (configuration) {
|
|
|
701
817
|
},
|
|
702
818
|
/**
|
|
703
819
|
* Returns a list of access points in proximity of input postal code. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
704
|
-
* @param {Array<GetAccessPointsAccessPointTypesEnum>} accessPointTypes
|
|
705
|
-
* @param {string} countryCode
|
|
706
|
-
* @param {string} postalCode
|
|
820
|
+
* @param {Array<GetAccessPointsAccessPointTypesEnum>} accessPointTypes Access point types
|
|
821
|
+
* @param {string} countryCode Country code for access point
|
|
822
|
+
* @param {string} postalCode postal code for access point
|
|
707
823
|
* @param {GetAccessPointsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
708
824
|
* @param {*} [options] Override http request option.
|
|
709
825
|
* @throws {RequiredError}
|
|
@@ -742,7 +858,7 @@ const ShippingApiFp = function (configuration) {
|
|
|
742
858
|
},
|
|
743
859
|
/**
|
|
744
860
|
* This API will return Get all carrier accounts for a merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
745
|
-
* @param {GetCarrierAccountsRequest} body
|
|
861
|
+
* @param {GetCarrierAccountsRequest} body GetCarrierAccountsRequest body
|
|
746
862
|
* @param {GetCarrierAccountsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
747
863
|
* @param {*} [options] Override http request option.
|
|
748
864
|
* @throws {RequiredError}
|
|
@@ -768,7 +884,7 @@ const ShippingApiFp = function (configuration) {
|
|
|
768
884
|
},
|
|
769
885
|
/**
|
|
770
886
|
* This API Call to get the history of the previously generated collection forms. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
771
|
-
* @param {GetCollectionFormHistoryRequest} body
|
|
887
|
+
* @param {GetCollectionFormHistoryRequest} body GetCollectionFormHistoryRequest body
|
|
772
888
|
* @param {GetCollectionFormHistoryXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
773
889
|
* @param {*} [options] Override http request option.
|
|
774
890
|
* @throws {RequiredError}
|
|
@@ -781,7 +897,7 @@ const ShippingApiFp = function (configuration) {
|
|
|
781
897
|
},
|
|
782
898
|
/**
|
|
783
899
|
* Returns the available shipping service offerings. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
784
|
-
* @param {GetRatesRequest} body
|
|
900
|
+
* @param {GetRatesRequest} body GetRatesRequest body
|
|
785
901
|
* @param {GetRatesXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
786
902
|
* @param {*} [options] Override http request option.
|
|
787
903
|
* @throws {RequiredError}
|
|
@@ -824,7 +940,7 @@ const ShippingApiFp = function (configuration) {
|
|
|
824
940
|
},
|
|
825
941
|
/**
|
|
826
942
|
* This API Get all unmanifested carriers with shipment locations. Any locations which has unmanifested shipments with an eligible carrier for manifesting shall be returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
827
|
-
* @param {GetUnmanifestedShipmentsRequest} body
|
|
943
|
+
* @param {GetUnmanifestedShipmentsRequest} body GetUmanifestedShipmentsRequest body
|
|
828
944
|
* @param {GetUnmanifestedShipmentsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
829
945
|
* @param {*} [options] Override http request option.
|
|
830
946
|
* @throws {RequiredError}
|
|
@@ -837,8 +953,8 @@ const ShippingApiFp = function (configuration) {
|
|
|
837
953
|
},
|
|
838
954
|
/**
|
|
839
955
|
* This API associates/links the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
840
|
-
* @param {string} carrierId
|
|
841
|
-
* @param {LinkCarrierAccountRequest} body
|
|
956
|
+
* @param {string} carrierId An identifier for the carrier with which the seller\'s account is being linked.
|
|
957
|
+
* @param {LinkCarrierAccountRequest} body LinkCarrierAccountRequest body
|
|
842
958
|
* @param {LinkCarrierAccountXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
843
959
|
* @param {*} [options] Override http request option.
|
|
844
960
|
* @throws {RequiredError}
|
|
@@ -849,9 +965,23 @@ const ShippingApiFp = function (configuration) {
|
|
|
849
965
|
const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.linkCarrierAccount']?.[localVarOperationServerIndex]?.url;
|
|
850
966
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
851
967
|
},
|
|
968
|
+
/**
|
|
969
|
+
* This API associates/links the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 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 then 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).
|
|
970
|
+
* @param {string} carrierId An identifier for the carrier with which the seller\'s account is being linked.
|
|
971
|
+
* @param {LinkCarrierAccountRequest} body LinkCarrierAccountRequest body
|
|
972
|
+
* @param {LinkCarrierAccount0XAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
973
|
+
* @param {*} [options] Override http request option.
|
|
974
|
+
* @throws {RequiredError}
|
|
975
|
+
*/
|
|
976
|
+
async linkCarrierAccount_1(carrierId, body, xAmznShippingBusinessId, options) {
|
|
977
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.linkCarrierAccount_1(carrierId, body, xAmznShippingBusinessId, options);
|
|
978
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
979
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.linkCarrierAccount_1']?.[localVarOperationServerIndex]?.url;
|
|
980
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
981
|
+
},
|
|
852
982
|
/**
|
|
853
983
|
* Purchases a shipping service identifier and returns purchase-related details and documents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
854
|
-
* @param {OneClickShipmentRequest} body
|
|
984
|
+
* @param {OneClickShipmentRequest} body OneClickShipmentRequest body
|
|
855
985
|
* @param {OneClickShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
856
986
|
* @param {*} [options] Override http request option.
|
|
857
987
|
* @throws {RequiredError}
|
|
@@ -864,7 +994,7 @@ const ShippingApiFp = function (configuration) {
|
|
|
864
994
|
},
|
|
865
995
|
/**
|
|
866
996
|
* Purchases a shipping service and returns purchase related details and documents. Note: You must complete the purchase within 10 minutes of rate creation by the shipping service provider. If you make the request after the 10 minutes have expired, you will receive an error response with the error code equal to \"TOKEN_EXPIRED\". If you receive this error response, you must get the rates for the shipment again. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
867
|
-
* @param {PurchaseShipmentRequest} body
|
|
997
|
+
* @param {PurchaseShipmentRequest} body PurchaseShipmentRequest body
|
|
868
998
|
* @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
|
|
869
999
|
* @param {PurchaseShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
870
1000
|
* @param {*} [options] Override http request option.
|
|
@@ -876,10 +1006,23 @@ const ShippingApiFp = function (configuration) {
|
|
|
876
1006
|
const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.purchaseShipment']?.[localVarOperationServerIndex]?.url;
|
|
877
1007
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
878
1008
|
},
|
|
1009
|
+
/**
|
|
1010
|
+
* This API submits the NDR (Non-delivery Report) Feedback for any eligible shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
1011
|
+
* @param {SubmitNdrFeedbackRequest} body Request body for ndrFeedback operation
|
|
1012
|
+
* @param {SubmitNdrFeedbackXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
1013
|
+
* @param {*} [options] Override http request option.
|
|
1014
|
+
* @throws {RequiredError}
|
|
1015
|
+
*/
|
|
1016
|
+
async submitNdrFeedback(body, xAmznShippingBusinessId, options) {
|
|
1017
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.submitNdrFeedback(body, xAmznShippingBusinessId, options);
|
|
1018
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1019
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.submitNdrFeedback']?.[localVarOperationServerIndex]?.url;
|
|
1020
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1021
|
+
},
|
|
879
1022
|
/**
|
|
880
1023
|
* This API Unlink the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
881
1024
|
* @param {string} carrierId carrier Id to unlink with merchant.
|
|
882
|
-
* @param {UnlinkCarrierAccountRequest} body
|
|
1025
|
+
* @param {UnlinkCarrierAccountRequest} body UnlinkCarrierAccountRequest body
|
|
883
1026
|
* @param {UnlinkCarrierAccountXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
|
|
884
1027
|
* @param {*} [options] Override http request option.
|
|
885
1028
|
* @throws {RequiredError}
|
|
@@ -909,6 +1052,15 @@ const ShippingApiFactory = function (configuration, basePath, axios) {
|
|
|
909
1052
|
cancelShipment(requestParameters, options) {
|
|
910
1053
|
return localVarFp.cancelShipment(requestParameters.shipmentId, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
|
|
911
1054
|
},
|
|
1055
|
+
/**
|
|
1056
|
+
* This API will be used to create claim for single eligible shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
1057
|
+
* @param {ShippingApiCreateClaimRequest} requestParameters Request parameters.
|
|
1058
|
+
* @param {*} [options] Override http request option.
|
|
1059
|
+
* @throws {RequiredError}
|
|
1060
|
+
*/
|
|
1061
|
+
createClaim(requestParameters, options) {
|
|
1062
|
+
return localVarFp.createClaim(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
|
|
1063
|
+
},
|
|
912
1064
|
/**
|
|
913
1065
|
* Purchases the shipping service for a shipment using the best fit service offering. Returns purchase related details and documents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
914
1066
|
* @param {ShippingApiDirectPurchaseShipmentRequest} requestParameters Request parameters.
|
|
@@ -1026,6 +1178,15 @@ const ShippingApiFactory = function (configuration, basePath, axios) {
|
|
|
1026
1178
|
linkCarrierAccount(requestParameters, options) {
|
|
1027
1179
|
return localVarFp.linkCarrierAccount(requestParameters.carrierId, requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
|
|
1028
1180
|
},
|
|
1181
|
+
/**
|
|
1182
|
+
* This API associates/links the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 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 then 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).
|
|
1183
|
+
* @param {ShippingApiLinkCarrierAccount0Request} requestParameters Request parameters.
|
|
1184
|
+
* @param {*} [options] Override http request option.
|
|
1185
|
+
* @throws {RequiredError}
|
|
1186
|
+
*/
|
|
1187
|
+
linkCarrierAccount_1(requestParameters, options) {
|
|
1188
|
+
return localVarFp.linkCarrierAccount_1(requestParameters.carrierId, requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
|
|
1189
|
+
},
|
|
1029
1190
|
/**
|
|
1030
1191
|
* Purchases a shipping service identifier and returns purchase-related details and documents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
1031
1192
|
* @param {ShippingApiOneClickShipmentRequest} requestParameters Request parameters.
|
|
@@ -1044,6 +1205,15 @@ const ShippingApiFactory = function (configuration, basePath, axios) {
|
|
|
1044
1205
|
purchaseShipment(requestParameters, options) {
|
|
1045
1206
|
return localVarFp.purchaseShipment(requestParameters.body, requestParameters.xAmznIdempotencyKey, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
|
|
1046
1207
|
},
|
|
1208
|
+
/**
|
|
1209
|
+
* This API submits the NDR (Non-delivery Report) Feedback for any eligible shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
1210
|
+
* @param {ShippingApiSubmitNdrFeedbackRequest} requestParameters Request parameters.
|
|
1211
|
+
* @param {*} [options] Override http request option.
|
|
1212
|
+
* @throws {RequiredError}
|
|
1213
|
+
*/
|
|
1214
|
+
submitNdrFeedback(requestParameters, options) {
|
|
1215
|
+
return localVarFp.submitNdrFeedback(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
|
|
1216
|
+
},
|
|
1047
1217
|
/**
|
|
1048
1218
|
* This API Unlink the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
1049
1219
|
* @param {ShippingApiUnlinkCarrierAccountRequest} requestParameters Request parameters.
|
|
@@ -1073,6 +1243,16 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1073
1243
|
cancelShipment(requestParameters, options) {
|
|
1074
1244
|
return (0, exports.ShippingApiFp)(this.configuration).cancelShipment(requestParameters.shipmentId, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
1075
1245
|
}
|
|
1246
|
+
/**
|
|
1247
|
+
* This API will be used to create claim for single eligible shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
1248
|
+
* @param {ShippingApiCreateClaimRequest} requestParameters Request parameters.
|
|
1249
|
+
* @param {*} [options] Override http request option.
|
|
1250
|
+
* @throws {RequiredError}
|
|
1251
|
+
* @memberof ShippingApi
|
|
1252
|
+
*/
|
|
1253
|
+
createClaim(requestParameters, options) {
|
|
1254
|
+
return (0, exports.ShippingApiFp)(this.configuration).createClaim(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
1255
|
+
}
|
|
1076
1256
|
/**
|
|
1077
1257
|
* Purchases the shipping service for a shipment using the best fit service offering. Returns purchase related details and documents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
1078
1258
|
* @param {ShippingApiDirectPurchaseShipmentRequest} requestParameters Request parameters.
|
|
@@ -1203,6 +1383,16 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1203
1383
|
linkCarrierAccount(requestParameters, options) {
|
|
1204
1384
|
return (0, exports.ShippingApiFp)(this.configuration).linkCarrierAccount(requestParameters.carrierId, requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
1205
1385
|
}
|
|
1386
|
+
/**
|
|
1387
|
+
* This API associates/links the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 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 then 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).
|
|
1388
|
+
* @param {ShippingApiLinkCarrierAccount0Request} requestParameters Request parameters.
|
|
1389
|
+
* @param {*} [options] Override http request option.
|
|
1390
|
+
* @throws {RequiredError}
|
|
1391
|
+
* @memberof ShippingApi
|
|
1392
|
+
*/
|
|
1393
|
+
linkCarrierAccount_1(requestParameters, options) {
|
|
1394
|
+
return (0, exports.ShippingApiFp)(this.configuration).linkCarrierAccount_1(requestParameters.carrierId, requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
1395
|
+
}
|
|
1206
1396
|
/**
|
|
1207
1397
|
* Purchases a shipping service identifier and returns purchase-related details and documents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
1208
1398
|
* @param {ShippingApiOneClickShipmentRequest} requestParameters Request parameters.
|
|
@@ -1223,6 +1413,16 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1223
1413
|
purchaseShipment(requestParameters, options) {
|
|
1224
1414
|
return (0, exports.ShippingApiFp)(this.configuration).purchaseShipment(requestParameters.body, requestParameters.xAmznIdempotencyKey, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
1225
1415
|
}
|
|
1416
|
+
/**
|
|
1417
|
+
* This API submits the NDR (Non-delivery Report) Feedback for any eligible shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
1418
|
+
* @param {ShippingApiSubmitNdrFeedbackRequest} requestParameters Request parameters.
|
|
1419
|
+
* @param {*} [options] Override http request option.
|
|
1420
|
+
* @throws {RequiredError}
|
|
1421
|
+
* @memberof ShippingApi
|
|
1422
|
+
*/
|
|
1423
|
+
submitNdrFeedback(requestParameters, options) {
|
|
1424
|
+
return (0, exports.ShippingApiFp)(this.configuration).submitNdrFeedback(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
1425
|
+
}
|
|
1226
1426
|
/**
|
|
1227
1427
|
* This API Unlink the specified carrier account with the merchant. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 80 | 100 | 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 then 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).
|
|
1228
1428
|
* @param {ShippingApiUnlinkCarrierAccountRequest} requestParameters Request parameters.
|
|
@@ -1250,6 +1450,21 @@ exports.CancelShipmentXAmznShippingBusinessIdEnum = {
|
|
|
1250
1450
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1251
1451
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1252
1452
|
};
|
|
1453
|
+
/**
|
|
1454
|
+
* @export
|
|
1455
|
+
*/
|
|
1456
|
+
exports.CreateClaimXAmznShippingBusinessIdEnum = {
|
|
1457
|
+
AmazonShippingUs: 'AmazonShipping_US',
|
|
1458
|
+
AmazonShippingIn: 'AmazonShipping_IN',
|
|
1459
|
+
AmazonShippingUk: 'AmazonShipping_UK',
|
|
1460
|
+
AmazonShippingUae: 'AmazonShipping_UAE',
|
|
1461
|
+
AmazonShippingSa: 'AmazonShipping_SA',
|
|
1462
|
+
AmazonShippingEg: 'AmazonShipping_EG',
|
|
1463
|
+
AmazonShippingIt: 'AmazonShipping_IT',
|
|
1464
|
+
AmazonShippingEs: 'AmazonShipping_ES',
|
|
1465
|
+
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1466
|
+
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1467
|
+
};
|
|
1253
1468
|
/**
|
|
1254
1469
|
* @export
|
|
1255
1470
|
*/
|
|
@@ -1458,6 +1673,21 @@ exports.LinkCarrierAccountXAmznShippingBusinessIdEnum = {
|
|
|
1458
1673
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1459
1674
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1460
1675
|
};
|
|
1676
|
+
/**
|
|
1677
|
+
* @export
|
|
1678
|
+
*/
|
|
1679
|
+
exports.LinkCarrierAccount0XAmznShippingBusinessIdEnum = {
|
|
1680
|
+
AmazonShippingUs: 'AmazonShipping_US',
|
|
1681
|
+
AmazonShippingIn: 'AmazonShipping_IN',
|
|
1682
|
+
AmazonShippingUk: 'AmazonShipping_UK',
|
|
1683
|
+
AmazonShippingUae: 'AmazonShipping_UAE',
|
|
1684
|
+
AmazonShippingSa: 'AmazonShipping_SA',
|
|
1685
|
+
AmazonShippingEg: 'AmazonShipping_EG',
|
|
1686
|
+
AmazonShippingIt: 'AmazonShipping_IT',
|
|
1687
|
+
AmazonShippingEs: 'AmazonShipping_ES',
|
|
1688
|
+
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1689
|
+
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1690
|
+
};
|
|
1461
1691
|
/**
|
|
1462
1692
|
* @export
|
|
1463
1693
|
*/
|
|
@@ -1488,6 +1718,21 @@ exports.PurchaseShipmentXAmznShippingBusinessIdEnum = {
|
|
|
1488
1718
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1489
1719
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1490
1720
|
};
|
|
1721
|
+
/**
|
|
1722
|
+
* @export
|
|
1723
|
+
*/
|
|
1724
|
+
exports.SubmitNdrFeedbackXAmznShippingBusinessIdEnum = {
|
|
1725
|
+
AmazonShippingUs: 'AmazonShipping_US',
|
|
1726
|
+
AmazonShippingIn: 'AmazonShipping_IN',
|
|
1727
|
+
AmazonShippingUk: 'AmazonShipping_UK',
|
|
1728
|
+
AmazonShippingUae: 'AmazonShipping_UAE',
|
|
1729
|
+
AmazonShippingSa: 'AmazonShipping_SA',
|
|
1730
|
+
AmazonShippingEg: 'AmazonShipping_EG',
|
|
1731
|
+
AmazonShippingIt: 'AmazonShipping_IT',
|
|
1732
|
+
AmazonShippingEs: 'AmazonShipping_ES',
|
|
1733
|
+
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1734
|
+
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1735
|
+
};
|
|
1491
1736
|
/**
|
|
1492
1737
|
* @export
|
|
1493
1738
|
*/
|
|
@@ -79,11 +79,10 @@ class Configuration {
|
|
|
79
79
|
this.basePath = param.basePath;
|
|
80
80
|
this.serverIndex = param.serverIndex;
|
|
81
81
|
this.baseOptions = {
|
|
82
|
+
...param.baseOptions,
|
|
82
83
|
headers: {
|
|
83
84
|
...param.baseOptions?.headers,
|
|
84
|
-
'User-Agent': "OpenAPI-Generator/typescript-axios"
|
|
85
85
|
},
|
|
86
|
-
...param.baseOptions
|
|
87
86
|
};
|
|
88
87
|
this.formDataCtor = param.formDataCtor;
|
|
89
88
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@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 });
|