@sp-api-sdk/merchant-fulfillment-api-v0 2.1.5 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/cjs/src/api-model/api/merchant-fulfillment-api.js +15 -190
  2. package/dist/cjs/src/api-model/base.js +7 -2
  3. package/dist/cjs/src/api-model/common.js +1 -1
  4. package/dist/cjs/src/api-model/configuration.js +8 -0
  5. package/dist/cjs/src/api-model/models/dangerous-goods-details.js +36 -0
  6. package/dist/cjs/src/api-model/models/index.js +2 -0
  7. package/dist/cjs/src/api-model/models/liquid-volume.js +25 -0
  8. package/dist/cjs/src/client.js +0 -21
  9. package/dist/es/src/api-model/api/merchant-fulfillment-api.js +16 -191
  10. package/dist/es/src/api-model/base.js +6 -1
  11. package/dist/es/src/api-model/common.js +1 -1
  12. package/dist/es/src/api-model/configuration.js +8 -0
  13. package/dist/es/src/api-model/models/dangerous-goods-details.js +33 -0
  14. package/dist/es/src/api-model/models/index.js +2 -0
  15. package/dist/es/src/api-model/models/liquid-volume.js +22 -0
  16. package/dist/es/src/client.js +0 -21
  17. package/dist/types/src/api-model/api/merchant-fulfillment-api.d.ts +30 -168
  18. package/dist/types/src/api-model/base.d.ts +14 -2
  19. package/dist/types/src/api-model/configuration.d.ts +8 -0
  20. package/dist/types/src/api-model/models/additional-inputs.d.ts +1 -1
  21. package/dist/types/src/api-model/models/additional-seller-input.d.ts +4 -4
  22. package/dist/types/src/api-model/models/additional-seller-inputs.d.ts +1 -1
  23. package/dist/types/src/api-model/models/available-carrier-will-pick-up-option.d.ts +2 -2
  24. package/dist/types/src/api-model/models/available-delivery-experience-option.d.ts +2 -2
  25. package/dist/types/src/api-model/models/available-shipping-service-options.d.ts +2 -2
  26. package/dist/types/src/api-model/models/cancel-shipment-response.d.ts +1 -1
  27. package/dist/types/src/api-model/models/create-shipment-request.d.ts +4 -4
  28. package/dist/types/src/api-model/models/create-shipment-response.d.ts +1 -1
  29. package/dist/types/src/api-model/models/dangerous-goods-details.d.ts +64 -0
  30. package/dist/types/src/api-model/models/file-contents.d.ts +1 -1
  31. package/dist/types/src/api-model/models/get-additional-seller-inputs-request.d.ts +1 -1
  32. package/dist/types/src/api-model/models/get-additional-seller-inputs-response.d.ts +1 -1
  33. package/dist/types/src/api-model/models/get-additional-seller-inputs-result.d.ts +2 -2
  34. package/dist/types/src/api-model/models/get-eligible-shipment-services-request.d.ts +2 -2
  35. package/dist/types/src/api-model/models/get-eligible-shipment-services-response.d.ts +1 -1
  36. package/dist/types/src/api-model/models/get-eligible-shipment-services-result.d.ts +4 -4
  37. package/dist/types/src/api-model/models/get-shipment-response.d.ts +1 -1
  38. package/dist/types/src/api-model/models/index.d.ts +2 -0
  39. package/dist/types/src/api-model/models/item-level-fields.d.ts +1 -1
  40. package/dist/types/src/api-model/models/item.d.ts +22 -2
  41. package/dist/types/src/api-model/models/label-customization.d.ts +1 -1
  42. package/dist/types/src/api-model/models/label-dimensions.d.ts +1 -1
  43. package/dist/types/src/api-model/models/label-format-option.d.ts +1 -1
  44. package/dist/types/src/api-model/models/label.d.ts +4 -4
  45. package/dist/types/src/api-model/models/length.d.ts +1 -1
  46. package/dist/types/src/api-model/models/liquid-volume.d.ts +40 -0
  47. package/dist/types/src/api-model/models/package-dimensions.d.ts +2 -2
  48. package/dist/types/src/api-model/models/seller-input-definition.d.ts +3 -3
  49. package/dist/types/src/api-model/models/shipment-request-details.d.ts +6 -6
  50. package/dist/types/src/api-model/models/shipment.d.ts +8 -8
  51. package/dist/types/src/api-model/models/shipping-offering-filter.d.ts +2 -2
  52. package/dist/types/src/api-model/models/shipping-service-options.d.ts +4 -4
  53. package/dist/types/src/api-model/models/shipping-service.d.ts +5 -5
  54. package/dist/types/src/api-model/models/weight.d.ts +1 -1
  55. package/package.json +5 -5
@@ -57,35 +57,6 @@ const MerchantFulfillmentApiAxiosParamCreator = function (configuration) {
57
57
  options: localVarRequestOptions,
58
58
  };
59
59
  },
60
- /**
61
- * Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
62
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
63
- * @param {*} [options] Override http request option.
64
- * @deprecated
65
- * @throws {RequiredError}
66
- */
67
- cancelShipmentOld: async (shipmentId, options = {}) => {
68
- // verify required parameter 'shipmentId' is not null or undefined
69
- (0, common_1.assertParamExists)('cancelShipmentOld', 'shipmentId', shipmentId);
70
- const localVarPath = `/mfn/v0/shipments/{shipmentId}/cancel`
71
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
72
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
73
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
74
- let baseOptions;
75
- if (configuration) {
76
- baseOptions = configuration.baseOptions;
77
- }
78
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
79
- const localVarHeaderParameter = {};
80
- const localVarQueryParameter = {};
81
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
82
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
83
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
84
- return {
85
- url: (0, common_1.toPathString)(localVarUrlObj),
86
- options: localVarRequestOptions,
87
- };
88
- },
89
60
  /**
90
61
  * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
91
62
  * @param {CreateShipmentRequest} body
@@ -144,36 +115,6 @@ const MerchantFulfillmentApiAxiosParamCreator = function (configuration) {
144
115
  options: localVarRequestOptions,
145
116
  };
146
117
  },
147
- /**
148
- * Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
149
- * @param {GetAdditionalSellerInputsRequest} body
150
- * @param {*} [options] Override http request option.
151
- * @deprecated
152
- * @throws {RequiredError}
153
- */
154
- getAdditionalSellerInputsOld: async (body, options = {}) => {
155
- // verify required parameter 'body' is not null or undefined
156
- (0, common_1.assertParamExists)('getAdditionalSellerInputsOld', 'body', body);
157
- const localVarPath = `/mfn/v0/sellerInputs`;
158
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
159
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
160
- let baseOptions;
161
- if (configuration) {
162
- baseOptions = configuration.baseOptions;
163
- }
164
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
165
- const localVarHeaderParameter = {};
166
- const localVarQueryParameter = {};
167
- localVarHeaderParameter['Content-Type'] = 'application/json';
168
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
169
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
170
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
171
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
172
- return {
173
- url: (0, common_1.toPathString)(localVarUrlObj),
174
- options: localVarRequestOptions,
175
- };
176
- },
177
118
  /**
178
119
  * Returns a list of shipping service offers that satisfy the specified shipment request details. **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 than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
179
120
  * @param {GetEligibleShipmentServicesRequest} body
@@ -203,36 +144,6 @@ const MerchantFulfillmentApiAxiosParamCreator = function (configuration) {
203
144
  options: localVarRequestOptions,
204
145
  };
205
146
  },
206
- /**
207
- * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
208
- * @param {GetEligibleShipmentServicesRequest} body
209
- * @param {*} [options] Override http request option.
210
- * @deprecated
211
- * @throws {RequiredError}
212
- */
213
- getEligibleShipmentServicesOld: async (body, options = {}) => {
214
- // verify required parameter 'body' is not null or undefined
215
- (0, common_1.assertParamExists)('getEligibleShipmentServicesOld', 'body', body);
216
- const localVarPath = `/mfn/v0/eligibleServices`;
217
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
218
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
219
- let baseOptions;
220
- if (configuration) {
221
- baseOptions = configuration.baseOptions;
222
- }
223
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
224
- const localVarHeaderParameter = {};
225
- const localVarQueryParameter = {};
226
- localVarHeaderParameter['Content-Type'] = 'application/json';
227
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
228
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
229
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
230
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
231
- return {
232
- url: (0, common_1.toPathString)(localVarUrlObj),
233
- options: localVarRequestOptions,
234
- };
235
- },
236
147
  /**
237
148
  * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
238
149
  * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.
@@ -279,18 +190,9 @@ const MerchantFulfillmentApiFp = function (configuration) {
279
190
  */
280
191
  async cancelShipment(shipmentId, options) {
281
192
  const localVarAxiosArgs = await localVarAxiosParamCreator.cancelShipment(shipmentId, options);
282
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
283
- },
284
- /**
285
- * Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
286
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
287
- * @param {*} [options] Override http request option.
288
- * @deprecated
289
- * @throws {RequiredError}
290
- */
291
- async cancelShipmentOld(shipmentId, options) {
292
- const localVarAxiosArgs = await localVarAxiosParamCreator.cancelShipmentOld(shipmentId, options);
293
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
193
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
194
+ const localVarOperationServerBasePath = base_1.operationServerMap['MerchantFulfillmentApi.cancelShipment']?.[localVarOperationServerIndex]?.url;
195
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
294
196
  },
295
197
  /**
296
198
  * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -300,7 +202,9 @@ const MerchantFulfillmentApiFp = function (configuration) {
300
202
  */
301
203
  async createShipment(body, options) {
302
204
  const localVarAxiosArgs = await localVarAxiosParamCreator.createShipment(body, options);
303
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
205
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
206
+ const localVarOperationServerBasePath = base_1.operationServerMap['MerchantFulfillmentApi.createShipment']?.[localVarOperationServerIndex]?.url;
207
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
304
208
  },
305
209
  /**
306
210
  * Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -310,18 +214,9 @@ const MerchantFulfillmentApiFp = function (configuration) {
310
214
  */
311
215
  async getAdditionalSellerInputs(body, options) {
312
216
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAdditionalSellerInputs(body, options);
313
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
314
- },
315
- /**
316
- * Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
317
- * @param {GetAdditionalSellerInputsRequest} body
318
- * @param {*} [options] Override http request option.
319
- * @deprecated
320
- * @throws {RequiredError}
321
- */
322
- async getAdditionalSellerInputsOld(body, options) {
323
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAdditionalSellerInputsOld(body, options);
324
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
217
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
218
+ const localVarOperationServerBasePath = base_1.operationServerMap['MerchantFulfillmentApi.getAdditionalSellerInputs']?.[localVarOperationServerIndex]?.url;
219
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
325
220
  },
326
221
  /**
327
222
  * Returns a list of shipping service offers that satisfy the specified shipment request details. **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 than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -331,18 +226,9 @@ const MerchantFulfillmentApiFp = function (configuration) {
331
226
  */
332
227
  async getEligibleShipmentServices(body, options) {
333
228
  const localVarAxiosArgs = await localVarAxiosParamCreator.getEligibleShipmentServices(body, options);
334
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
335
- },
336
- /**
337
- * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
338
- * @param {GetEligibleShipmentServicesRequest} body
339
- * @param {*} [options] Override http request option.
340
- * @deprecated
341
- * @throws {RequiredError}
342
- */
343
- async getEligibleShipmentServicesOld(body, options) {
344
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEligibleShipmentServicesOld(body, options);
345
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
229
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
230
+ const localVarOperationServerBasePath = base_1.operationServerMap['MerchantFulfillmentApi.getEligibleShipmentServices']?.[localVarOperationServerIndex]?.url;
231
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
346
232
  },
347
233
  /**
348
234
  * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -352,7 +238,9 @@ const MerchantFulfillmentApiFp = function (configuration) {
352
238
  */
353
239
  async getShipment(shipmentId, options) {
354
240
  const localVarAxiosArgs = await localVarAxiosParamCreator.getShipment(shipmentId, options);
355
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
241
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
242
+ const localVarOperationServerBasePath = base_1.operationServerMap['MerchantFulfillmentApi.getShipment']?.[localVarOperationServerIndex]?.url;
243
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
356
244
  },
357
245
  };
358
246
  };
@@ -373,16 +261,6 @@ const MerchantFulfillmentApiFactory = function (configuration, basePath, axios)
373
261
  cancelShipment(requestParameters, options) {
374
262
  return localVarFp.cancelShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
375
263
  },
376
- /**
377
- * Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
378
- * @param {MerchantFulfillmentApiCancelShipmentOldRequest} requestParameters Request parameters.
379
- * @param {*} [options] Override http request option.
380
- * @deprecated
381
- * @throws {RequiredError}
382
- */
383
- cancelShipmentOld(requestParameters, options) {
384
- return localVarFp.cancelShipmentOld(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
385
- },
386
264
  /**
387
265
  * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
388
266
  * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
@@ -401,16 +279,6 @@ const MerchantFulfillmentApiFactory = function (configuration, basePath, axios)
401
279
  getAdditionalSellerInputs(requestParameters, options) {
402
280
  return localVarFp.getAdditionalSellerInputs(requestParameters.body, options).then((request) => request(axios, basePath));
403
281
  },
404
- /**
405
- * Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
406
- * @param {MerchantFulfillmentApiGetAdditionalSellerInputsOldRequest} requestParameters Request parameters.
407
- * @param {*} [options] Override http request option.
408
- * @deprecated
409
- * @throws {RequiredError}
410
- */
411
- getAdditionalSellerInputsOld(requestParameters, options) {
412
- return localVarFp.getAdditionalSellerInputsOld(requestParameters.body, options).then((request) => request(axios, basePath));
413
- },
414
282
  /**
415
283
  * Returns a list of shipping service offers that satisfy the specified shipment request details. **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 than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
416
284
  * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
@@ -420,16 +288,6 @@ const MerchantFulfillmentApiFactory = function (configuration, basePath, axios)
420
288
  getEligibleShipmentServices(requestParameters, options) {
421
289
  return localVarFp.getEligibleShipmentServices(requestParameters.body, options).then((request) => request(axios, basePath));
422
290
  },
423
- /**
424
- * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
425
- * @param {MerchantFulfillmentApiGetEligibleShipmentServicesOldRequest} requestParameters Request parameters.
426
- * @param {*} [options] Override http request option.
427
- * @deprecated
428
- * @throws {RequiredError}
429
- */
430
- getEligibleShipmentServicesOld(requestParameters, options) {
431
- return localVarFp.getEligibleShipmentServicesOld(requestParameters.body, options).then((request) => request(axios, basePath));
432
- },
433
291
  /**
434
292
  * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
435
293
  * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
@@ -459,17 +317,6 @@ class MerchantFulfillmentApi extends base_1.BaseAPI {
459
317
  cancelShipment(requestParameters, options) {
460
318
  return (0, exports.MerchantFulfillmentApiFp)(this.configuration).cancelShipment(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
461
319
  }
462
- /**
463
- * Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
464
- * @param {MerchantFulfillmentApiCancelShipmentOldRequest} requestParameters Request parameters.
465
- * @param {*} [options] Override http request option.
466
- * @deprecated
467
- * @throws {RequiredError}
468
- * @memberof MerchantFulfillmentApi
469
- */
470
- cancelShipmentOld(requestParameters, options) {
471
- return (0, exports.MerchantFulfillmentApiFp)(this.configuration).cancelShipmentOld(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
472
- }
473
320
  /**
474
321
  * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
475
322
  * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
@@ -490,17 +337,6 @@ class MerchantFulfillmentApi extends base_1.BaseAPI {
490
337
  getAdditionalSellerInputs(requestParameters, options) {
491
338
  return (0, exports.MerchantFulfillmentApiFp)(this.configuration).getAdditionalSellerInputs(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
492
339
  }
493
- /**
494
- * Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
495
- * @param {MerchantFulfillmentApiGetAdditionalSellerInputsOldRequest} requestParameters Request parameters.
496
- * @param {*} [options] Override http request option.
497
- * @deprecated
498
- * @throws {RequiredError}
499
- * @memberof MerchantFulfillmentApi
500
- */
501
- getAdditionalSellerInputsOld(requestParameters, options) {
502
- return (0, exports.MerchantFulfillmentApiFp)(this.configuration).getAdditionalSellerInputsOld(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
503
- }
504
340
  /**
505
341
  * Returns a list of shipping service offers that satisfy the specified shipment request details. **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 than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
506
342
  * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
@@ -511,17 +347,6 @@ class MerchantFulfillmentApi extends base_1.BaseAPI {
511
347
  getEligibleShipmentServices(requestParameters, options) {
512
348
  return (0, exports.MerchantFulfillmentApiFp)(this.configuration).getEligibleShipmentServices(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
513
349
  }
514
- /**
515
- * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
516
- * @param {MerchantFulfillmentApiGetEligibleShipmentServicesOldRequest} requestParameters Request parameters.
517
- * @param {*} [options] Override http request option.
518
- * @deprecated
519
- * @throws {RequiredError}
520
- * @memberof MerchantFulfillmentApi
521
- */
522
- getEligibleShipmentServicesOld(requestParameters, options) {
523
- return (0, exports.MerchantFulfillmentApiFp)(this.configuration).getEligibleShipmentServicesOld(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
524
- }
525
350
  /**
526
351
  * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
527
352
  * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
@@ -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.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
19
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
21
  exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
22
22
  /**
@@ -43,7 +43,7 @@ class BaseAPI {
43
43
  this.axios = axios;
44
44
  if (configuration) {
45
45
  this.configuration = configuration;
46
- this.basePath = configuration.basePath || this.basePath;
46
+ this.basePath = configuration.basePath ?? basePath;
47
47
  }
48
48
  }
49
49
  }
@@ -64,3 +64,8 @@ class RequiredError extends Error {
64
64
  }
65
65
  }
66
66
  exports.RequiredError = RequiredError;
67
+ /**
68
+ *
69
+ * @export
70
+ */
71
+ exports.operationServerMap = {};
@@ -138,7 +138,7 @@ exports.toPathString = toPathString;
138
138
  */
139
139
  const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
140
140
  return (axios = globalAxios, basePath = BASE_PATH) => {
141
- const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
141
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
142
142
  return axios.request(axiosRequestArgs);
143
143
  };
144
144
  };
@@ -49,6 +49,13 @@ class Configuration {
49
49
  * @memberof Configuration
50
50
  */
51
51
  basePath;
52
+ /**
53
+ * override server index
54
+ *
55
+ * @type {number}
56
+ * @memberof Configuration
57
+ */
58
+ serverIndex;
52
59
  /**
53
60
  * base options for axios calls
54
61
  *
@@ -70,6 +77,7 @@ class Configuration {
70
77
  this.password = param.password;
71
78
  this.accessToken = param.accessToken;
72
79
  this.basePath = param.basePath;
80
+ this.serverIndex = param.serverIndex;
73
81
  this.baseOptions = param.baseOptions;
74
82
  this.formDataCtor = param.formDataCtor;
75
83
  }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Merchant Fulfillment
6
+ * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DangerousGoodsDetailsPackingInstructionEnum = exports.DangerousGoodsDetailsPackingGroupEnum = void 0;
17
+ exports.DangerousGoodsDetailsPackingGroupEnum = {
18
+ I: 'I',
19
+ Ii: 'II',
20
+ Iii: 'III'
21
+ };
22
+ exports.DangerousGoodsDetailsPackingInstructionEnum = {
23
+ Pi965SectionIa: 'PI965_SECTION_IA',
24
+ Pi965SectionIb: 'PI965_SECTION_IB',
25
+ Pi965SectionIi: 'PI965_SECTION_II',
26
+ Pi966SectionI: 'PI966_SECTION_I',
27
+ Pi966SectionIi: 'PI966_SECTION_II',
28
+ Pi967SectionI: 'PI967_SECTION_I',
29
+ Pi967SectionIi: 'PI967_SECTION_II',
30
+ Pi968SectionIa: 'PI968_SECTION_IA',
31
+ Pi968SectionIb: 'PI968_SECTION_IB',
32
+ Pi969SectionI: 'PI969_SECTION_I',
33
+ Pi969SectionIi: 'PI969_SECTION_II',
34
+ Pi970SectionI: 'PI970_SECTION_I',
35
+ Pi970SectionIi: 'PI970_SECTION_II'
36
+ };
@@ -27,6 +27,7 @@ __exportStar(require("./constraint"), exports);
27
27
  __exportStar(require("./create-shipment-request"), exports);
28
28
  __exportStar(require("./create-shipment-response"), exports);
29
29
  __exportStar(require("./currency-amount"), exports);
30
+ __exportStar(require("./dangerous-goods-details"), exports);
30
31
  __exportStar(require("./delivery-experience-option"), exports);
31
32
  __exportStar(require("./delivery-experience-type"), exports);
32
33
  __exportStar(require("./file-contents"), exports);
@@ -49,6 +50,7 @@ __exportStar(require("./label-format"), exports);
49
50
  __exportStar(require("./label-format-option"), exports);
50
51
  __exportStar(require("./label-format-option-request"), exports);
51
52
  __exportStar(require("./length"), exports);
53
+ __exportStar(require("./liquid-volume"), exports);
52
54
  __exportStar(require("./model-error"), exports);
53
55
  __exportStar(require("./package-dimensions"), exports);
54
56
  __exportStar(require("./predefined-package-dimensions"), exports);
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Merchant Fulfillment
6
+ * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.LiquidVolumeUnitEnum = void 0;
17
+ exports.LiquidVolumeUnitEnum = {
18
+ Ml: 'ML',
19
+ L: 'L',
20
+ FlOz: 'FL_OZ',
21
+ Gal: 'GAL',
22
+ Pt: 'PT',
23
+ Qt: 'QT',
24
+ C: 'C'
25
+ };
@@ -4,13 +4,6 @@ exports.MerchantFulfillmentApiClient = exports.clientRateLimits = void 0;
4
4
  const common_1 = require("@sp-api-sdk/common");
5
5
  const api_model_1 = require("./api-model");
6
6
  exports.clientRateLimits = [
7
- {
8
- method: 'post',
9
- // eslint-disable-next-line prefer-regex-literals
10
- urlRegex: new RegExp('^/mfn/v0/eligibleServices$'),
11
- rate: 1,
12
- burst: 1,
13
- },
14
7
  {
15
8
  method: 'post',
16
9
  // eslint-disable-next-line prefer-regex-literals
@@ -32,13 +25,6 @@ exports.clientRateLimits = [
32
25
  rate: 1,
33
26
  burst: 1,
34
27
  },
35
- {
36
- method: 'put',
37
- // eslint-disable-next-line prefer-regex-literals
38
- urlRegex: new RegExp('^/mfn/v0/shipments/[^/]*/cancel$'),
39
- rate: 1,
40
- burst: 1,
41
- },
42
28
  {
43
29
  method: 'post',
44
30
  // eslint-disable-next-line prefer-regex-literals
@@ -46,13 +32,6 @@ exports.clientRateLimits = [
46
32
  rate: 1,
47
33
  burst: 1,
48
34
  },
49
- {
50
- method: 'post',
51
- // eslint-disable-next-line prefer-regex-literals
52
- urlRegex: new RegExp('^/mfn/v0/sellerInputs$'),
53
- rate: 1,
54
- burst: 1,
55
- },
56
35
  {
57
36
  method: 'post',
58
37
  // eslint-disable-next-line prefer-regex-literals