@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.
Files changed (77) hide show
  1. package/dist/cjs/api-model/api/shipping-api.js +274 -29
  2. package/dist/cjs/api-model/configuration.js +1 -2
  3. package/dist/cjs/api-model/models/carrier-account.js +15 -0
  4. package/dist/cjs/api-model/models/claim-reason.js +28 -0
  5. package/dist/cjs/api-model/models/create-claim-request.js +15 -0
  6. package/dist/cjs/api-model/models/create-claim-response.js +15 -0
  7. package/dist/cjs/api-model/models/detail-codes.js +53 -0
  8. package/dist/cjs/api-model/models/event-code.js +4 -1
  9. package/dist/cjs/api-model/models/goods-owner.js +15 -0
  10. package/dist/cjs/api-model/models/index.js +13 -0
  11. package/dist/cjs/api-model/models/label-attribute.js +26 -0
  12. package/dist/cjs/api-model/models/ndr-action.js +26 -0
  13. package/dist/cjs/api-model/models/ndr-request-data.js +15 -0
  14. package/dist/cjs/api-model/models/rate-item-id.js +6 -1
  15. package/dist/cjs/api-model/models/requested-label-customization.js +15 -0
  16. package/dist/cjs/api-model/models/settlement-type.js +25 -0
  17. package/dist/cjs/api-model/models/status.js +2 -1
  18. package/dist/cjs/api-model/models/submit-ndr-feedback-request.js +15 -0
  19. package/dist/cjs/api-model/models/tracking-detail-codes.js +15 -0
  20. package/dist/cjs/client.js +21 -0
  21. package/dist/es/api-model/api/shipping-api.js +273 -28
  22. package/dist/es/api-model/configuration.js +1 -2
  23. package/dist/es/api-model/models/carrier-account.js +14 -0
  24. package/dist/es/api-model/models/claim-reason.js +25 -0
  25. package/dist/es/api-model/models/create-claim-request.js +14 -0
  26. package/dist/es/api-model/models/create-claim-response.js +14 -0
  27. package/dist/es/api-model/models/detail-codes.js +50 -0
  28. package/dist/es/api-model/models/event-code.js +4 -1
  29. package/dist/es/api-model/models/goods-owner.js +14 -0
  30. package/dist/es/api-model/models/index.js +13 -0
  31. package/dist/es/api-model/models/label-attribute.js +23 -0
  32. package/dist/es/api-model/models/ndr-action.js +23 -0
  33. package/dist/es/api-model/models/ndr-request-data.js +14 -0
  34. package/dist/es/api-model/models/rate-item-id.js +6 -1
  35. package/dist/es/api-model/models/requested-label-customization.js +14 -0
  36. package/dist/es/api-model/models/settlement-type.js +22 -0
  37. package/dist/es/api-model/models/status.js +2 -1
  38. package/dist/es/api-model/models/submit-ndr-feedback-request.js +14 -0
  39. package/dist/es/api-model/models/tracking-detail-codes.js +14 -0
  40. package/dist/es/client.js +21 -0
  41. package/dist/types/api-model/api/shipping-api.d.ts +251 -42
  42. package/dist/types/api-model/common.d.ts +1 -1
  43. package/dist/types/api-model/models/access-point-details.d.ts +1 -1
  44. package/dist/types/api-model/models/access-point.d.ts +2 -2
  45. package/dist/types/api-model/models/active-account.d.ts +1 -1
  46. package/dist/types/api-model/models/benefits.d.ts +1 -1
  47. package/dist/types/api-model/models/carrier-account.d.ts +30 -0
  48. package/dist/types/api-model/models/claim-reason.d.ts +24 -0
  49. package/dist/types/api-model/models/create-claim-request.d.ts +57 -0
  50. package/dist/types/api-model/models/create-claim-response.d.ts +24 -0
  51. package/dist/types/api-model/models/detail-codes.d.ts +49 -0
  52. package/dist/types/api-model/models/error-list.d.ts +1 -1
  53. package/dist/types/api-model/models/event-code.d.ts +3 -0
  54. package/dist/types/api-model/models/event.d.ts +7 -0
  55. package/dist/types/api-model/models/excluded-benefit.d.ts +5 -5
  56. package/dist/types/api-model/models/get-rates-request.d.ts +7 -0
  57. package/dist/types/api-model/models/get-shipment-documents-result.d.ts +7 -0
  58. package/dist/types/api-model/models/goods-owner.d.ts +24 -0
  59. package/dist/types/api-model/models/index.d.ts +13 -0
  60. package/dist/types/api-model/models/label-attribute.d.ts +22 -0
  61. package/dist/types/api-model/models/link-carrier-account-response.d.ts +6 -0
  62. package/dist/types/api-model/models/ndr-action.d.ts +22 -0
  63. package/dist/types/api-model/models/ndr-request-data.d.ts +30 -0
  64. package/dist/types/api-model/models/one-click-shipment-request.d.ts +7 -0
  65. package/dist/types/api-model/models/operating-hours.d.ts +1 -1
  66. package/dist/types/api-model/models/purchase-shipment-result.d.ts +7 -0
  67. package/dist/types/api-model/models/rate-item-id.d.ts +5 -0
  68. package/dist/types/api-model/models/requested-document-specification.d.ts +7 -0
  69. package/dist/types/api-model/models/requested-label-customization.d.ts +25 -0
  70. package/dist/types/api-model/models/settlement-type.d.ts +21 -0
  71. package/dist/types/api-model/models/status.d.ts +1 -0
  72. package/dist/types/api-model/models/submit-ndr-feedback-request.d.ts +38 -0
  73. package/dist/types/api-model/models/time-of-day.d.ts +3 -3
  74. package/dist/types/api-model/models/tracking-detail-codes.d.ts +31 -0
  75. package/dist/types/api-model/models/tracking-summary.d.ts +7 -0
  76. package/dist/types/api-model/models/unlink-carrier-account-request.d.ts +6 -0
  77. package/package.json +4 -4
@@ -55,9 +55,42 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
55
55
  options: localVarRequestOptions,
56
56
  };
57
57
  },
58
+ /**
59
+ * 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).
60
+ * @param {CreateClaimRequest} body Request body for the createClaim operation
61
+ * @param {CreateClaimXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ createClaim: async (body, xAmznShippingBusinessId, options = {}) => {
66
+ // verify required parameter 'body' is not null or undefined
67
+ assertParamExists('createClaim', 'body', body);
68
+ const localVarPath = `/shipping/v2/claims`;
69
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
70
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71
+ let baseOptions;
72
+ if (configuration) {
73
+ baseOptions = configuration.baseOptions;
74
+ }
75
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
76
+ const localVarHeaderParameter = {};
77
+ const localVarQueryParameter = {};
78
+ localVarHeaderParameter['Content-Type'] = 'application/json';
79
+ if (xAmznShippingBusinessId != null) {
80
+ localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
81
+ }
82
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
85
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
86
+ return {
87
+ url: toPathString(localVarUrlObj),
88
+ options: localVarRequestOptions,
89
+ };
90
+ },
58
91
  /**
59
92
  * 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).
60
- * @param {DirectPurchaseRequest} body
93
+ * @param {DirectPurchaseRequest} body DirectPurchaseRequest body
61
94
  * @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
62
95
  * @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.
63
96
  * @param {DirectPurchaseShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
@@ -98,7 +131,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
98
131
  },
99
132
  /**
100
133
  * 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).
101
- * @param {GenerateCollectionFormRequest} body
134
+ * @param {GenerateCollectionFormRequest} body GenerateCollectionFormRequest body
102
135
  * @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
103
136
  * @param {GenerateCollectionFormXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
104
137
  * @param {*} [options] Override http request option.
@@ -135,9 +168,9 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
135
168
  },
136
169
  /**
137
170
  * 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).
138
- * @param {Array<GetAccessPointsAccessPointTypesEnum>} accessPointTypes
139
- * @param {string} countryCode
140
- * @param {string} postalCode
171
+ * @param {Array<GetAccessPointsAccessPointTypesEnum>} accessPointTypes Access point types
172
+ * @param {string} countryCode Country code for access point
173
+ * @param {string} postalCode postal code for access point
141
174
  * @param {GetAccessPointsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
142
175
  * @param {*} [options] Override http request option.
143
176
  * @throws {RequiredError}
@@ -249,7 +282,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
249
282
  },
250
283
  /**
251
284
  * 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).
252
- * @param {GetCarrierAccountsRequest} body
285
+ * @param {GetCarrierAccountsRequest} body GetCarrierAccountsRequest body
253
286
  * @param {GetCarrierAccountsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
254
287
  * @param {*} [options] Override http request option.
255
288
  * @throws {RequiredError}
@@ -314,7 +347,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
314
347
  },
315
348
  /**
316
349
  * 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).
317
- * @param {GetCollectionFormHistoryRequest} body
350
+ * @param {GetCollectionFormHistoryRequest} body GetCollectionFormHistoryRequest body
318
351
  * @param {GetCollectionFormHistoryXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
319
352
  * @param {*} [options] Override http request option.
320
353
  * @throws {RequiredError}
@@ -347,7 +380,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
347
380
  },
348
381
  /**
349
382
  * 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).
350
- * @param {GetRatesRequest} body
383
+ * @param {GetRatesRequest} body GetRatesRequest body
351
384
  * @param {GetRatesXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
352
385
  * @param {*} [options] Override http request option.
353
386
  * @throws {RequiredError}
@@ -466,7 +499,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
466
499
  },
467
500
  /**
468
501
  * 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).
469
- * @param {GetUnmanifestedShipmentsRequest} body
502
+ * @param {GetUnmanifestedShipmentsRequest} body GetUmanifestedShipmentsRequest body
470
503
  * @param {GetUnmanifestedShipmentsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
471
504
  * @param {*} [options] Override http request option.
472
505
  * @throws {RequiredError}
@@ -499,8 +532,8 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
499
532
  },
500
533
  /**
501
534
  * 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).
502
- * @param {string} carrierId The unique identifier associated with the carrier account.
503
- * @param {LinkCarrierAccountRequest} body
535
+ * @param {string} carrierId An identifier for the carrier with which the seller\&#39;s account is being linked.
536
+ * @param {LinkCarrierAccountRequest} body LinkCarrierAccountRequest body
504
537
  * @param {LinkCarrierAccountXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
505
538
  * @param {*} [options] Override http request option.
506
539
  * @throws {RequiredError}
@@ -534,9 +567,46 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
534
567
  options: localVarRequestOptions,
535
568
  };
536
569
  },
570
+ /**
571
+ * 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).
572
+ * @param {string} carrierId An identifier for the carrier with which the seller\&#39;s account is being linked.
573
+ * @param {LinkCarrierAccountRequest} body LinkCarrierAccountRequest body
574
+ * @param {LinkCarrierAccount0XAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ */
578
+ linkCarrierAccount_1: async (carrierId, body, xAmznShippingBusinessId, options = {}) => {
579
+ // verify required parameter 'carrierId' is not null or undefined
580
+ assertParamExists('linkCarrierAccount_1', 'carrierId', carrierId);
581
+ // verify required parameter 'body' is not null or undefined
582
+ assertParamExists('linkCarrierAccount_1', 'body', body);
583
+ const localVarPath = `/shipping/v2/carrierAccounts/{carrierId}`
584
+ .replace(`{${"carrierId"}}`, encodeURIComponent(String(carrierId)));
585
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
586
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
587
+ let baseOptions;
588
+ if (configuration) {
589
+ baseOptions = configuration.baseOptions;
590
+ }
591
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
592
+ const localVarHeaderParameter = {};
593
+ const localVarQueryParameter = {};
594
+ localVarHeaderParameter['Content-Type'] = 'application/json';
595
+ if (xAmznShippingBusinessId != null) {
596
+ localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
597
+ }
598
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
599
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
600
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
601
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
602
+ return {
603
+ url: toPathString(localVarUrlObj),
604
+ options: localVarRequestOptions,
605
+ };
606
+ },
537
607
  /**
538
608
  * 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).
539
- * @param {OneClickShipmentRequest} body
609
+ * @param {OneClickShipmentRequest} body OneClickShipmentRequest body
540
610
  * @param {OneClickShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
541
611
  * @param {*} [options] Override http request option.
542
612
  * @throws {RequiredError}
@@ -569,7 +639,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
569
639
  },
570
640
  /**
571
641
  * 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).
572
- * @param {PurchaseShipmentRequest} body
642
+ * @param {PurchaseShipmentRequest} body PurchaseShipmentRequest body
573
643
  * @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
574
644
  * @param {PurchaseShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
575
645
  * @param {*} [options] Override http request option.
@@ -604,10 +674,43 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
604
674
  options: localVarRequestOptions,
605
675
  };
606
676
  },
677
+ /**
678
+ * 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).
679
+ * @param {SubmitNdrFeedbackRequest} body Request body for ndrFeedback operation
680
+ * @param {SubmitNdrFeedbackXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
681
+ * @param {*} [options] Override http request option.
682
+ * @throws {RequiredError}
683
+ */
684
+ submitNdrFeedback: async (body, xAmznShippingBusinessId, options = {}) => {
685
+ // verify required parameter 'body' is not null or undefined
686
+ assertParamExists('submitNdrFeedback', 'body', body);
687
+ const localVarPath = `/shipping/v2/ndrFeedback`;
688
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
689
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
690
+ let baseOptions;
691
+ if (configuration) {
692
+ baseOptions = configuration.baseOptions;
693
+ }
694
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
695
+ const localVarHeaderParameter = {};
696
+ const localVarQueryParameter = {};
697
+ localVarHeaderParameter['Content-Type'] = 'application/json';
698
+ if (xAmznShippingBusinessId != null) {
699
+ localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
700
+ }
701
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
702
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
703
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
704
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
705
+ return {
706
+ url: toPathString(localVarUrlObj),
707
+ options: localVarRequestOptions,
708
+ };
709
+ },
607
710
  /**
608
711
  * 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).
609
712
  * @param {string} carrierId carrier Id to unlink with merchant.
610
- * @param {UnlinkCarrierAccountRequest} body
713
+ * @param {UnlinkCarrierAccountRequest} body UnlinkCarrierAccountRequest body
611
714
  * @param {UnlinkCarrierAccountXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
612
715
  * @param {*} [options] Override http request option.
613
716
  * @throws {RequiredError}
@@ -663,9 +766,22 @@ export const ShippingApiFp = function (configuration) {
663
766
  const localVarOperationServerBasePath = operationServerMap['ShippingApi.cancelShipment']?.[localVarOperationServerIndex]?.url;
664
767
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
665
768
  },
769
+ /**
770
+ * 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).
771
+ * @param {CreateClaimRequest} body Request body for the createClaim operation
772
+ * @param {CreateClaimXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
773
+ * @param {*} [options] Override http request option.
774
+ * @throws {RequiredError}
775
+ */
776
+ async createClaim(body, xAmznShippingBusinessId, options) {
777
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createClaim(body, xAmznShippingBusinessId, options);
778
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
779
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.createClaim']?.[localVarOperationServerIndex]?.url;
780
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
781
+ },
666
782
  /**
667
783
  * 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).
668
- * @param {DirectPurchaseRequest} body
784
+ * @param {DirectPurchaseRequest} body DirectPurchaseRequest body
669
785
  * @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
670
786
  * @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.
671
787
  * @param {DirectPurchaseShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
@@ -680,7 +796,7 @@ export const ShippingApiFp = function (configuration) {
680
796
  },
681
797
  /**
682
798
  * 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).
683
- * @param {GenerateCollectionFormRequest} body
799
+ * @param {GenerateCollectionFormRequest} body GenerateCollectionFormRequest body
684
800
  * @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
685
801
  * @param {GenerateCollectionFormXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
686
802
  * @param {*} [options] Override http request option.
@@ -694,9 +810,9 @@ export const ShippingApiFp = function (configuration) {
694
810
  },
695
811
  /**
696
812
  * 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).
697
- * @param {Array<GetAccessPointsAccessPointTypesEnum>} accessPointTypes
698
- * @param {string} countryCode
699
- * @param {string} postalCode
813
+ * @param {Array<GetAccessPointsAccessPointTypesEnum>} accessPointTypes Access point types
814
+ * @param {string} countryCode Country code for access point
815
+ * @param {string} postalCode postal code for access point
700
816
  * @param {GetAccessPointsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
701
817
  * @param {*} [options] Override http request option.
702
818
  * @throws {RequiredError}
@@ -735,7 +851,7 @@ export const ShippingApiFp = function (configuration) {
735
851
  },
736
852
  /**
737
853
  * 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).
738
- * @param {GetCarrierAccountsRequest} body
854
+ * @param {GetCarrierAccountsRequest} body GetCarrierAccountsRequest body
739
855
  * @param {GetCarrierAccountsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
740
856
  * @param {*} [options] Override http request option.
741
857
  * @throws {RequiredError}
@@ -761,7 +877,7 @@ export const ShippingApiFp = function (configuration) {
761
877
  },
762
878
  /**
763
879
  * 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).
764
- * @param {GetCollectionFormHistoryRequest} body
880
+ * @param {GetCollectionFormHistoryRequest} body GetCollectionFormHistoryRequest body
765
881
  * @param {GetCollectionFormHistoryXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
766
882
  * @param {*} [options] Override http request option.
767
883
  * @throws {RequiredError}
@@ -774,7 +890,7 @@ export const ShippingApiFp = function (configuration) {
774
890
  },
775
891
  /**
776
892
  * 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).
777
- * @param {GetRatesRequest} body
893
+ * @param {GetRatesRequest} body GetRatesRequest body
778
894
  * @param {GetRatesXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
779
895
  * @param {*} [options] Override http request option.
780
896
  * @throws {RequiredError}
@@ -817,7 +933,7 @@ export const ShippingApiFp = function (configuration) {
817
933
  },
818
934
  /**
819
935
  * 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).
820
- * @param {GetUnmanifestedShipmentsRequest} body
936
+ * @param {GetUnmanifestedShipmentsRequest} body GetUmanifestedShipmentsRequest body
821
937
  * @param {GetUnmanifestedShipmentsXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
822
938
  * @param {*} [options] Override http request option.
823
939
  * @throws {RequiredError}
@@ -830,8 +946,8 @@ export const ShippingApiFp = function (configuration) {
830
946
  },
831
947
  /**
832
948
  * 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).
833
- * @param {string} carrierId The unique identifier associated with the carrier account.
834
- * @param {LinkCarrierAccountRequest} body
949
+ * @param {string} carrierId An identifier for the carrier with which the seller\&#39;s account is being linked.
950
+ * @param {LinkCarrierAccountRequest} body LinkCarrierAccountRequest body
835
951
  * @param {LinkCarrierAccountXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
836
952
  * @param {*} [options] Override http request option.
837
953
  * @throws {RequiredError}
@@ -842,9 +958,23 @@ export const ShippingApiFp = function (configuration) {
842
958
  const localVarOperationServerBasePath = operationServerMap['ShippingApi.linkCarrierAccount']?.[localVarOperationServerIndex]?.url;
843
959
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
844
960
  },
961
+ /**
962
+ * 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).
963
+ * @param {string} carrierId An identifier for the carrier with which the seller\&#39;s account is being linked.
964
+ * @param {LinkCarrierAccountRequest} body LinkCarrierAccountRequest body
965
+ * @param {LinkCarrierAccount0XAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
966
+ * @param {*} [options] Override http request option.
967
+ * @throws {RequiredError}
968
+ */
969
+ async linkCarrierAccount_1(carrierId, body, xAmznShippingBusinessId, options) {
970
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkCarrierAccount_1(carrierId, body, xAmznShippingBusinessId, options);
971
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
972
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.linkCarrierAccount_1']?.[localVarOperationServerIndex]?.url;
973
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
974
+ },
845
975
  /**
846
976
  * 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).
847
- * @param {OneClickShipmentRequest} body
977
+ * @param {OneClickShipmentRequest} body OneClickShipmentRequest body
848
978
  * @param {OneClickShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
849
979
  * @param {*} [options] Override http request option.
850
980
  * @throws {RequiredError}
@@ -857,7 +987,7 @@ export const ShippingApiFp = function (configuration) {
857
987
  },
858
988
  /**
859
989
  * 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).
860
- * @param {PurchaseShipmentRequest} body
990
+ * @param {PurchaseShipmentRequest} body PurchaseShipmentRequest body
861
991
  * @param {string} [xAmznIdempotencyKey] A unique value which the server uses to recognize subsequent retries of the same request.
862
992
  * @param {PurchaseShipmentXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
863
993
  * @param {*} [options] Override http request option.
@@ -869,10 +999,23 @@ export const ShippingApiFp = function (configuration) {
869
999
  const localVarOperationServerBasePath = operationServerMap['ShippingApi.purchaseShipment']?.[localVarOperationServerIndex]?.url;
870
1000
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
871
1001
  },
1002
+ /**
1003
+ * 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).
1004
+ * @param {SubmitNdrFeedbackRequest} body Request body for ndrFeedback operation
1005
+ * @param {SubmitNdrFeedbackXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
1006
+ * @param {*} [options] Override http request option.
1007
+ * @throws {RequiredError}
1008
+ */
1009
+ async submitNdrFeedback(body, xAmznShippingBusinessId, options) {
1010
+ const localVarAxiosArgs = await localVarAxiosParamCreator.submitNdrFeedback(body, xAmznShippingBusinessId, options);
1011
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1012
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.submitNdrFeedback']?.[localVarOperationServerIndex]?.url;
1013
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1014
+ },
872
1015
  /**
873
1016
  * 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).
874
1017
  * @param {string} carrierId carrier Id to unlink with merchant.
875
- * @param {UnlinkCarrierAccountRequest} body
1018
+ * @param {UnlinkCarrierAccountRequest} body UnlinkCarrierAccountRequest body
876
1019
  * @param {UnlinkCarrierAccountXAmznShippingBusinessIdEnum} [xAmznShippingBusinessId] Amazon shipping business to assume for this request. The default is AmazonShipping_UK.
877
1020
  * @param {*} [options] Override http request option.
878
1021
  * @throws {RequiredError}
@@ -901,6 +1044,15 @@ export const ShippingApiFactory = function (configuration, basePath, axios) {
901
1044
  cancelShipment(requestParameters, options) {
902
1045
  return localVarFp.cancelShipment(requestParameters.shipmentId, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
903
1046
  },
1047
+ /**
1048
+ * 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).
1049
+ * @param {ShippingApiCreateClaimRequest} requestParameters Request parameters.
1050
+ * @param {*} [options] Override http request option.
1051
+ * @throws {RequiredError}
1052
+ */
1053
+ createClaim(requestParameters, options) {
1054
+ return localVarFp.createClaim(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
1055
+ },
904
1056
  /**
905
1057
  * 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).
906
1058
  * @param {ShippingApiDirectPurchaseShipmentRequest} requestParameters Request parameters.
@@ -1018,6 +1170,15 @@ export const ShippingApiFactory = function (configuration, basePath, axios) {
1018
1170
  linkCarrierAccount(requestParameters, options) {
1019
1171
  return localVarFp.linkCarrierAccount(requestParameters.carrierId, requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
1020
1172
  },
1173
+ /**
1174
+ * 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).
1175
+ * @param {ShippingApiLinkCarrierAccount0Request} requestParameters Request parameters.
1176
+ * @param {*} [options] Override http request option.
1177
+ * @throws {RequiredError}
1178
+ */
1179
+ linkCarrierAccount_1(requestParameters, options) {
1180
+ return localVarFp.linkCarrierAccount_1(requestParameters.carrierId, requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
1181
+ },
1021
1182
  /**
1022
1183
  * 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).
1023
1184
  * @param {ShippingApiOneClickShipmentRequest} requestParameters Request parameters.
@@ -1036,6 +1197,15 @@ export const ShippingApiFactory = function (configuration, basePath, axios) {
1036
1197
  purchaseShipment(requestParameters, options) {
1037
1198
  return localVarFp.purchaseShipment(requestParameters.body, requestParameters.xAmznIdempotencyKey, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
1038
1199
  },
1200
+ /**
1201
+ * 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).
1202
+ * @param {ShippingApiSubmitNdrFeedbackRequest} requestParameters Request parameters.
1203
+ * @param {*} [options] Override http request option.
1204
+ * @throws {RequiredError}
1205
+ */
1206
+ submitNdrFeedback(requestParameters, options) {
1207
+ return localVarFp.submitNdrFeedback(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(axios, basePath));
1208
+ },
1039
1209
  /**
1040
1210
  * 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).
1041
1211
  * @param {ShippingApiUnlinkCarrierAccountRequest} requestParameters Request parameters.
@@ -1064,6 +1234,16 @@ export class ShippingApi extends BaseAPI {
1064
1234
  cancelShipment(requestParameters, options) {
1065
1235
  return ShippingApiFp(this.configuration).cancelShipment(requestParameters.shipmentId, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
1066
1236
  }
1237
+ /**
1238
+ * 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).
1239
+ * @param {ShippingApiCreateClaimRequest} requestParameters Request parameters.
1240
+ * @param {*} [options] Override http request option.
1241
+ * @throws {RequiredError}
1242
+ * @memberof ShippingApi
1243
+ */
1244
+ createClaim(requestParameters, options) {
1245
+ return ShippingApiFp(this.configuration).createClaim(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
1246
+ }
1067
1247
  /**
1068
1248
  * 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).
1069
1249
  * @param {ShippingApiDirectPurchaseShipmentRequest} requestParameters Request parameters.
@@ -1194,6 +1374,16 @@ export class ShippingApi extends BaseAPI {
1194
1374
  linkCarrierAccount(requestParameters, options) {
1195
1375
  return ShippingApiFp(this.configuration).linkCarrierAccount(requestParameters.carrierId, requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
1196
1376
  }
1377
+ /**
1378
+ * 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).
1379
+ * @param {ShippingApiLinkCarrierAccount0Request} requestParameters Request parameters.
1380
+ * @param {*} [options] Override http request option.
1381
+ * @throws {RequiredError}
1382
+ * @memberof ShippingApi
1383
+ */
1384
+ linkCarrierAccount_1(requestParameters, options) {
1385
+ return ShippingApiFp(this.configuration).linkCarrierAccount_1(requestParameters.carrierId, requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
1386
+ }
1197
1387
  /**
1198
1388
  * 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).
1199
1389
  * @param {ShippingApiOneClickShipmentRequest} requestParameters Request parameters.
@@ -1214,6 +1404,16 @@ export class ShippingApi extends BaseAPI {
1214
1404
  purchaseShipment(requestParameters, options) {
1215
1405
  return ShippingApiFp(this.configuration).purchaseShipment(requestParameters.body, requestParameters.xAmznIdempotencyKey, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
1216
1406
  }
1407
+ /**
1408
+ * 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).
1409
+ * @param {ShippingApiSubmitNdrFeedbackRequest} requestParameters Request parameters.
1410
+ * @param {*} [options] Override http request option.
1411
+ * @throws {RequiredError}
1412
+ * @memberof ShippingApi
1413
+ */
1414
+ submitNdrFeedback(requestParameters, options) {
1415
+ return ShippingApiFp(this.configuration).submitNdrFeedback(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
1416
+ }
1217
1417
  /**
1218
1418
  * 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).
1219
1419
  * @param {ShippingApiUnlinkCarrierAccountRequest} requestParameters Request parameters.
@@ -1240,6 +1440,21 @@ export const CancelShipmentXAmznShippingBusinessIdEnum = {
1240
1440
  AmazonShippingFr: 'AmazonShipping_FR',
1241
1441
  AmazonShippingJp: 'AmazonShipping_JP'
1242
1442
  };
1443
+ /**
1444
+ * @export
1445
+ */
1446
+ export const CreateClaimXAmznShippingBusinessIdEnum = {
1447
+ AmazonShippingUs: 'AmazonShipping_US',
1448
+ AmazonShippingIn: 'AmazonShipping_IN',
1449
+ AmazonShippingUk: 'AmazonShipping_UK',
1450
+ AmazonShippingUae: 'AmazonShipping_UAE',
1451
+ AmazonShippingSa: 'AmazonShipping_SA',
1452
+ AmazonShippingEg: 'AmazonShipping_EG',
1453
+ AmazonShippingIt: 'AmazonShipping_IT',
1454
+ AmazonShippingEs: 'AmazonShipping_ES',
1455
+ AmazonShippingFr: 'AmazonShipping_FR',
1456
+ AmazonShippingJp: 'AmazonShipping_JP'
1457
+ };
1243
1458
  /**
1244
1459
  * @export
1245
1460
  */
@@ -1448,6 +1663,21 @@ export const LinkCarrierAccountXAmznShippingBusinessIdEnum = {
1448
1663
  AmazonShippingFr: 'AmazonShipping_FR',
1449
1664
  AmazonShippingJp: 'AmazonShipping_JP'
1450
1665
  };
1666
+ /**
1667
+ * @export
1668
+ */
1669
+ export const LinkCarrierAccount0XAmznShippingBusinessIdEnum = {
1670
+ AmazonShippingUs: 'AmazonShipping_US',
1671
+ AmazonShippingIn: 'AmazonShipping_IN',
1672
+ AmazonShippingUk: 'AmazonShipping_UK',
1673
+ AmazonShippingUae: 'AmazonShipping_UAE',
1674
+ AmazonShippingSa: 'AmazonShipping_SA',
1675
+ AmazonShippingEg: 'AmazonShipping_EG',
1676
+ AmazonShippingIt: 'AmazonShipping_IT',
1677
+ AmazonShippingEs: 'AmazonShipping_ES',
1678
+ AmazonShippingFr: 'AmazonShipping_FR',
1679
+ AmazonShippingJp: 'AmazonShipping_JP'
1680
+ };
1451
1681
  /**
1452
1682
  * @export
1453
1683
  */
@@ -1478,6 +1708,21 @@ export const PurchaseShipmentXAmznShippingBusinessIdEnum = {
1478
1708
  AmazonShippingFr: 'AmazonShipping_FR',
1479
1709
  AmazonShippingJp: 'AmazonShipping_JP'
1480
1710
  };
1711
+ /**
1712
+ * @export
1713
+ */
1714
+ export const SubmitNdrFeedbackXAmznShippingBusinessIdEnum = {
1715
+ AmazonShippingUs: 'AmazonShipping_US',
1716
+ AmazonShippingIn: 'AmazonShipping_IN',
1717
+ AmazonShippingUk: 'AmazonShipping_UK',
1718
+ AmazonShippingUae: 'AmazonShipping_UAE',
1719
+ AmazonShippingSa: 'AmazonShipping_SA',
1720
+ AmazonShippingEg: 'AmazonShipping_EG',
1721
+ AmazonShippingIt: 'AmazonShipping_IT',
1722
+ AmazonShippingEs: 'AmazonShipping_ES',
1723
+ AmazonShippingFr: 'AmazonShipping_FR',
1724
+ AmazonShippingJp: 'AmazonShipping_JP'
1725
+ };
1481
1726
  /**
1482
1727
  * @export
1483
1728
  */
@@ -76,11 +76,10 @@ export class Configuration {
76
76
  this.basePath = param.basePath;
77
77
  this.serverIndex = param.serverIndex;
78
78
  this.baseOptions = {
79
+ ...param.baseOptions,
79
80
  headers: {
80
81
  ...param.baseOptions?.headers,
81
- 'User-Agent': "OpenAPI-Generator/typescript-axios"
82
82
  },
83
- ...param.baseOptions
84
83
  };
85
84
  this.formDataCtor = param.formDataCtor;
86
85
  }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Amazon Shipping API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ * Contact: swa-api-core@amazon.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Amazon Shipping API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ * Contact: swa-api-core@amazon.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * The reason for which shipper is filing the claim for a particular shipment.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export const ClaimReason = {
20
+ LostInTransit: 'LOST_IN_TRANSIT',
21
+ DamagedInTransit: 'DAMAGED_IN_TRANSIT',
22
+ DeliveredNotReceived: 'DELIVERED_NOT_RECEIVED',
23
+ ItemMissingSwitcheroo: 'ITEM_MISSING_SWITCHEROO',
24
+ CodAbuse: 'COD_ABUSE'
25
+ };