@sp-api-sdk/merchant-fulfillment-api-v0 2.2.0 → 2.3.1

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 (44) hide show
  1. package/dist/cjs/src/api-model/api/merchant-fulfillment-api.js +15 -5
  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/es/src/api-model/api/merchant-fulfillment-api.js +16 -6
  6. package/dist/es/src/api-model/base.js +6 -1
  7. package/dist/es/src/api-model/common.js +1 -1
  8. package/dist/es/src/api-model/configuration.js +8 -0
  9. package/dist/types/src/api-model/api/merchant-fulfillment-api.d.ts +30 -30
  10. package/dist/types/src/api-model/base.d.ts +14 -2
  11. package/dist/types/src/api-model/configuration.d.ts +8 -0
  12. package/dist/types/src/api-model/models/additional-inputs.d.ts +1 -1
  13. package/dist/types/src/api-model/models/additional-seller-input.d.ts +4 -4
  14. package/dist/types/src/api-model/models/additional-seller-inputs.d.ts +1 -1
  15. package/dist/types/src/api-model/models/available-carrier-will-pick-up-option.d.ts +2 -2
  16. package/dist/types/src/api-model/models/available-delivery-experience-option.d.ts +2 -2
  17. package/dist/types/src/api-model/models/available-shipping-service-options.d.ts +2 -2
  18. package/dist/types/src/api-model/models/cancel-shipment-response.d.ts +1 -1
  19. package/dist/types/src/api-model/models/create-shipment-request.d.ts +4 -4
  20. package/dist/types/src/api-model/models/create-shipment-response.d.ts +1 -1
  21. package/dist/types/src/api-model/models/file-contents.d.ts +1 -1
  22. package/dist/types/src/api-model/models/get-additional-seller-inputs-request.d.ts +1 -1
  23. package/dist/types/src/api-model/models/get-additional-seller-inputs-response.d.ts +1 -1
  24. package/dist/types/src/api-model/models/get-additional-seller-inputs-result.d.ts +2 -2
  25. package/dist/types/src/api-model/models/get-eligible-shipment-services-request.d.ts +2 -2
  26. package/dist/types/src/api-model/models/get-eligible-shipment-services-response.d.ts +1 -1
  27. package/dist/types/src/api-model/models/get-eligible-shipment-services-result.d.ts +4 -4
  28. package/dist/types/src/api-model/models/get-shipment-response.d.ts +1 -1
  29. package/dist/types/src/api-model/models/item-level-fields.d.ts +1 -1
  30. package/dist/types/src/api-model/models/item.d.ts +4 -4
  31. package/dist/types/src/api-model/models/label-customization.d.ts +1 -1
  32. package/dist/types/src/api-model/models/label-dimensions.d.ts +1 -1
  33. package/dist/types/src/api-model/models/label-format-option.d.ts +1 -1
  34. package/dist/types/src/api-model/models/label.d.ts +4 -4
  35. package/dist/types/src/api-model/models/length.d.ts +1 -1
  36. package/dist/types/src/api-model/models/package-dimensions.d.ts +2 -2
  37. package/dist/types/src/api-model/models/seller-input-definition.d.ts +3 -3
  38. package/dist/types/src/api-model/models/shipment-request-details.d.ts +6 -6
  39. package/dist/types/src/api-model/models/shipment.d.ts +8 -8
  40. package/dist/types/src/api-model/models/shipping-offering-filter.d.ts +2 -2
  41. package/dist/types/src/api-model/models/shipping-service-options.d.ts +4 -4
  42. package/dist/types/src/api-model/models/shipping-service.d.ts +5 -5
  43. package/dist/types/src/api-model/models/weight.d.ts +1 -1
  44. package/package.json +4 -4
@@ -190,7 +190,9 @@ const MerchantFulfillmentApiFp = function (configuration) {
190
190
  */
191
191
  async cancelShipment(shipmentId, options) {
192
192
  const localVarAxiosArgs = await localVarAxiosParamCreator.cancelShipment(shipmentId, options);
193
- 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);
194
196
  },
195
197
  /**
196
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).
@@ -200,7 +202,9 @@ const MerchantFulfillmentApiFp = function (configuration) {
200
202
  */
201
203
  async createShipment(body, options) {
202
204
  const localVarAxiosArgs = await localVarAxiosParamCreator.createShipment(body, options);
203
- 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);
204
208
  },
205
209
  /**
206
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).
@@ -210,7 +214,9 @@ const MerchantFulfillmentApiFp = function (configuration) {
210
214
  */
211
215
  async getAdditionalSellerInputs(body, options) {
212
216
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAdditionalSellerInputs(body, options);
213
- 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);
214
220
  },
215
221
  /**
216
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).
@@ -220,7 +226,9 @@ const MerchantFulfillmentApiFp = function (configuration) {
220
226
  */
221
227
  async getEligibleShipmentServices(body, options) {
222
228
  const localVarAxiosArgs = await localVarAxiosParamCreator.getEligibleShipmentServices(body, options);
223
- 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);
224
232
  },
225
233
  /**
226
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).
@@ -230,7 +238,9 @@ const MerchantFulfillmentApiFp = function (configuration) {
230
238
  */
231
239
  async getShipment(shipmentId, options) {
232
240
  const localVarAxiosArgs = await localVarAxiosParamCreator.getShipment(shipmentId, options);
233
- 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);
234
244
  },
235
245
  };
236
246
  };
@@ -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
  }
@@ -16,7 +16,7 @@ import globalAxios from 'axios';
16
16
  // @ts-ignore
17
17
  import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
18
18
  // @ts-ignore
19
- import { BASE_PATH, BaseAPI } from '../base';
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
20
  /**
21
21
  * MerchantFulfillmentApi - axios parameter creator
22
22
  * @export
@@ -183,7 +183,9 @@ export const MerchantFulfillmentApiFp = function (configuration) {
183
183
  */
184
184
  async cancelShipment(shipmentId, options) {
185
185
  const localVarAxiosArgs = await localVarAxiosParamCreator.cancelShipment(shipmentId, options);
186
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
186
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
187
+ const localVarOperationServerBasePath = operationServerMap['MerchantFulfillmentApi.cancelShipment']?.[localVarOperationServerIndex]?.url;
188
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
187
189
  },
188
190
  /**
189
191
  * 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).
@@ -193,7 +195,9 @@ export const MerchantFulfillmentApiFp = function (configuration) {
193
195
  */
194
196
  async createShipment(body, options) {
195
197
  const localVarAxiosArgs = await localVarAxiosParamCreator.createShipment(body, options);
196
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
198
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
199
+ const localVarOperationServerBasePath = operationServerMap['MerchantFulfillmentApi.createShipment']?.[localVarOperationServerIndex]?.url;
200
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
197
201
  },
198
202
  /**
199
203
  * 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).
@@ -203,7 +207,9 @@ export const MerchantFulfillmentApiFp = function (configuration) {
203
207
  */
204
208
  async getAdditionalSellerInputs(body, options) {
205
209
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAdditionalSellerInputs(body, options);
206
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
210
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
211
+ const localVarOperationServerBasePath = operationServerMap['MerchantFulfillmentApi.getAdditionalSellerInputs']?.[localVarOperationServerIndex]?.url;
212
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
207
213
  },
208
214
  /**
209
215
  * 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).
@@ -213,7 +219,9 @@ export const MerchantFulfillmentApiFp = function (configuration) {
213
219
  */
214
220
  async getEligibleShipmentServices(body, options) {
215
221
  const localVarAxiosArgs = await localVarAxiosParamCreator.getEligibleShipmentServices(body, options);
216
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
222
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
223
+ const localVarOperationServerBasePath = operationServerMap['MerchantFulfillmentApi.getEligibleShipmentServices']?.[localVarOperationServerIndex]?.url;
224
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
217
225
  },
218
226
  /**
219
227
  * 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).
@@ -223,7 +231,9 @@ export const MerchantFulfillmentApiFp = function (configuration) {
223
231
  */
224
232
  async getShipment(shipmentId, options) {
225
233
  const localVarAxiosArgs = await localVarAxiosParamCreator.getShipment(shipmentId, options);
226
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
234
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
235
+ const localVarOperationServerBasePath = operationServerMap['MerchantFulfillmentApi.getShipment']?.[localVarOperationServerIndex]?.url;
236
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
227
237
  },
228
238
  };
229
239
  };
@@ -37,7 +37,7 @@ export class BaseAPI {
37
37
  this.axios = axios;
38
38
  if (configuration) {
39
39
  this.configuration = configuration;
40
- this.basePath = configuration.basePath || this.basePath;
40
+ this.basePath = configuration.basePath ?? basePath;
41
41
  }
42
42
  }
43
43
  }
@@ -56,3 +56,8 @@ export class RequiredError extends Error {
56
56
  this.name = "RequiredError";
57
57
  }
58
58
  }
59
+ /**
60
+ *
61
+ * @export
62
+ */
63
+ export const operationServerMap = {};
@@ -127,7 +127,7 @@ export const toPathString = function (url) {
127
127
  */
128
128
  export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
129
129
  return (axios = globalAxios, basePath = BASE_PATH) => {
130
- const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
130
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
131
131
  return axios.request(axiosRequestArgs);
132
132
  };
133
133
  };
@@ -46,6 +46,13 @@ export class Configuration {
46
46
  * @memberof Configuration
47
47
  */
48
48
  basePath;
49
+ /**
50
+ * override server index
51
+ *
52
+ * @type {number}
53
+ * @memberof Configuration
54
+ */
55
+ serverIndex;
49
56
  /**
50
57
  * base options for axios calls
51
58
  *
@@ -67,6 +74,7 @@ export class Configuration {
67
74
  this.password = param.password;
68
75
  this.accessToken = param.accessToken;
69
76
  this.basePath = param.basePath;
77
+ this.serverIndex = param.serverIndex;
70
78
  this.baseOptions = param.baseOptions;
71
79
  this.formDataCtor = param.formDataCtor;
72
80
  }
@@ -10,17 +10,17 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Configuration } from '../configuration';
13
- import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import globalAxios from 'axios';
15
- import { RequestArgs, BaseAPI } from '../base';
16
- import { CancelShipmentResponse } from '../models';
17
- import { CreateShipmentRequest } from '../models';
18
- import { CreateShipmentResponse } from '../models';
19
- import { GetAdditionalSellerInputsRequest } from '../models';
20
- import { GetAdditionalSellerInputsResponse } from '../models';
21
- import { GetEligibleShipmentServicesRequest } from '../models';
22
- import { GetEligibleShipmentServicesResponse } from '../models';
23
- import { GetShipmentResponse } from '../models';
15
+ import { type RequestArgs, BaseAPI } from '../base';
16
+ import type { CancelShipmentResponse } from '../models';
17
+ import type { CreateShipmentRequest } from '../models';
18
+ import type { CreateShipmentResponse } from '../models';
19
+ import type { GetAdditionalSellerInputsRequest } from '../models';
20
+ import type { GetAdditionalSellerInputsResponse } from '../models';
21
+ import type { GetEligibleShipmentServicesRequest } from '../models';
22
+ import type { GetEligibleShipmentServicesResponse } from '../models';
23
+ import type { GetShipmentResponse } from '../models';
24
24
  /**
25
25
  * MerchantFulfillmentApi - axios parameter creator
26
26
  * @export
@@ -32,35 +32,35 @@ export declare const MerchantFulfillmentApiAxiosParamCreator: (configuration?: C
32
32
  * @param {*} [options] Override http request option.
33
33
  * @throws {RequiredError}
34
34
  */
35
- cancelShipment: (shipmentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ cancelShipment: (shipmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
36
36
  /**
37
37
  * 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).
38
38
  * @param {CreateShipmentRequest} body
39
39
  * @param {*} [options] Override http request option.
40
40
  * @throws {RequiredError}
41
41
  */
42
- createShipment: (body: CreateShipmentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ createShipment: (body: CreateShipmentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
43
43
  /**
44
44
  * 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).
45
45
  * @param {GetAdditionalSellerInputsRequest} body
46
46
  * @param {*} [options] Override http request option.
47
47
  * @throws {RequiredError}
48
48
  */
49
- getAdditionalSellerInputs: (body: GetAdditionalSellerInputsRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
49
+ getAdditionalSellerInputs: (body: GetAdditionalSellerInputsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
50
50
  /**
51
51
  * 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).
52
52
  * @param {GetEligibleShipmentServicesRequest} body
53
53
  * @param {*} [options] Override http request option.
54
54
  * @throws {RequiredError}
55
55
  */
56
- getEligibleShipmentServices: (body: GetEligibleShipmentServicesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
56
+ getEligibleShipmentServices: (body: GetEligibleShipmentServicesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
57
57
  /**
58
58
  * 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).
59
59
  * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.
60
60
  * @param {*} [options] Override http request option.
61
61
  * @throws {RequiredError}
62
62
  */
63
- getShipment: (shipmentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
63
+ getShipment: (shipmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
64
64
  };
65
65
  /**
66
66
  * MerchantFulfillmentApi - functional programming interface
@@ -73,35 +73,35 @@ export declare const MerchantFulfillmentApiFp: (configuration?: Configuration) =
73
73
  * @param {*} [options] Override http request option.
74
74
  * @throws {RequiredError}
75
75
  */
76
- cancelShipment(shipmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelShipmentResponse>>;
76
+ cancelShipment(shipmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelShipmentResponse>>;
77
77
  /**
78
78
  * 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).
79
79
  * @param {CreateShipmentRequest} body
80
80
  * @param {*} [options] Override http request option.
81
81
  * @throws {RequiredError}
82
82
  */
83
- createShipment(body: CreateShipmentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateShipmentResponse>>;
83
+ createShipment(body: CreateShipmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateShipmentResponse>>;
84
84
  /**
85
85
  * 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).
86
86
  * @param {GetAdditionalSellerInputsRequest} body
87
87
  * @param {*} [options] Override http request option.
88
88
  * @throws {RequiredError}
89
89
  */
90
- getAdditionalSellerInputs(body: GetAdditionalSellerInputsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAdditionalSellerInputsResponse>>;
90
+ getAdditionalSellerInputs(body: GetAdditionalSellerInputsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAdditionalSellerInputsResponse>>;
91
91
  /**
92
92
  * 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).
93
93
  * @param {GetEligibleShipmentServicesRequest} body
94
94
  * @param {*} [options] Override http request option.
95
95
  * @throws {RequiredError}
96
96
  */
97
- getEligibleShipmentServices(body: GetEligibleShipmentServicesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEligibleShipmentServicesResponse>>;
97
+ getEligibleShipmentServices(body: GetEligibleShipmentServicesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEligibleShipmentServicesResponse>>;
98
98
  /**
99
99
  * 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).
100
100
  * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.
101
101
  * @param {*} [options] Override http request option.
102
102
  * @throws {RequiredError}
103
103
  */
104
- getShipment(shipmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetShipmentResponse>>;
104
+ getShipment(shipmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetShipmentResponse>>;
105
105
  };
106
106
  /**
107
107
  * MerchantFulfillmentApi - factory interface
@@ -114,35 +114,35 @@ export declare const MerchantFulfillmentApiFactory: (configuration?: Configurati
114
114
  * @param {*} [options] Override http request option.
115
115
  * @throws {RequiredError}
116
116
  */
117
- cancelShipment(requestParameters: MerchantFulfillmentApiCancelShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<CancelShipmentResponse>;
117
+ cancelShipment(requestParameters: MerchantFulfillmentApiCancelShipmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelShipmentResponse>;
118
118
  /**
119
119
  * 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).
120
120
  * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
121
121
  * @param {*} [options] Override http request option.
122
122
  * @throws {RequiredError}
123
123
  */
124
- createShipment(requestParameters: MerchantFulfillmentApiCreateShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<CreateShipmentResponse>;
124
+ createShipment(requestParameters: MerchantFulfillmentApiCreateShipmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateShipmentResponse>;
125
125
  /**
126
126
  * 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).
127
127
  * @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.
128
128
  * @param {*} [options] Override http request option.
129
129
  * @throws {RequiredError}
130
130
  */
131
- getAdditionalSellerInputs(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsRequest, options?: AxiosRequestConfig): AxiosPromise<GetAdditionalSellerInputsResponse>;
131
+ getAdditionalSellerInputs(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAdditionalSellerInputsResponse>;
132
132
  /**
133
133
  * 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).
134
134
  * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
135
135
  * @param {*} [options] Override http request option.
136
136
  * @throws {RequiredError}
137
137
  */
138
- getEligibleShipmentServices(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesRequest, options?: AxiosRequestConfig): AxiosPromise<GetEligibleShipmentServicesResponse>;
138
+ getEligibleShipmentServices(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetEligibleShipmentServicesResponse>;
139
139
  /**
140
140
  * 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).
141
141
  * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
142
142
  * @param {*} [options] Override http request option.
143
143
  * @throws {RequiredError}
144
144
  */
145
- getShipment(requestParameters: MerchantFulfillmentApiGetShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<GetShipmentResponse>;
145
+ getShipment(requestParameters: MerchantFulfillmentApiGetShipmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetShipmentResponse>;
146
146
  };
147
147
  /**
148
148
  * Request parameters for cancelShipment operation in MerchantFulfillmentApi.
@@ -223,7 +223,7 @@ export declare class MerchantFulfillmentApi extends BaseAPI {
223
223
  * @throws {RequiredError}
224
224
  * @memberof MerchantFulfillmentApi
225
225
  */
226
- cancelShipment(requestParameters: MerchantFulfillmentApiCancelShipmentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<CancelShipmentResponse, any>>;
226
+ cancelShipment(requestParameters: MerchantFulfillmentApiCancelShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CancelShipmentResponse, any>>;
227
227
  /**
228
228
  * 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).
229
229
  * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
@@ -231,7 +231,7 @@ export declare class MerchantFulfillmentApi extends BaseAPI {
231
231
  * @throws {RequiredError}
232
232
  * @memberof MerchantFulfillmentApi
233
233
  */
234
- createShipment(requestParameters: MerchantFulfillmentApiCreateShipmentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateShipmentResponse, any>>;
234
+ createShipment(requestParameters: MerchantFulfillmentApiCreateShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateShipmentResponse, any>>;
235
235
  /**
236
236
  * 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).
237
237
  * @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.
@@ -239,7 +239,7 @@ export declare class MerchantFulfillmentApi extends BaseAPI {
239
239
  * @throws {RequiredError}
240
240
  * @memberof MerchantFulfillmentApi
241
241
  */
242
- getAdditionalSellerInputs(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetAdditionalSellerInputsResponse, any>>;
242
+ getAdditionalSellerInputs(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetAdditionalSellerInputsResponse, any>>;
243
243
  /**
244
244
  * 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).
245
245
  * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
@@ -247,7 +247,7 @@ export declare class MerchantFulfillmentApi extends BaseAPI {
247
247
  * @throws {RequiredError}
248
248
  * @memberof MerchantFulfillmentApi
249
249
  */
250
- getEligibleShipmentServices(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetEligibleShipmentServicesResponse, any>>;
250
+ getEligibleShipmentServices(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetEligibleShipmentServicesResponse, any>>;
251
251
  /**
252
252
  * 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).
253
253
  * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
@@ -255,5 +255,5 @@ export declare class MerchantFulfillmentApi extends BaseAPI {
255
255
  * @throws {RequiredError}
256
256
  * @memberof MerchantFulfillmentApi
257
257
  */
258
- getShipment(requestParameters: MerchantFulfillmentApiGetShipmentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentResponse, any>>;
258
+ getShipment(requestParameters: MerchantFulfillmentApiGetShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentResponse, any>>;
259
259
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Configuration } from './configuration';
13
- import type { AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
15
  /**
16
16
  *
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
29
29
  */
30
30
  export interface RequestArgs {
31
31
  url: string;
32
- options: AxiosRequestConfig;
32
+ options: RawAxiosRequestConfig;
33
33
  }
34
34
  /**
35
35
  *
@@ -52,3 +52,15 @@ export declare class RequiredError extends Error {
52
52
  field: string;
53
53
  constructor(field: string, msg?: string);
54
54
  }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
@@ -15,6 +15,7 @@ export interface ConfigurationParameters {
15
15
  password?: string;
16
16
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
17
  basePath?: string;
18
+ serverIndex?: number;
18
19
  baseOptions?: any;
19
20
  formDataCtor?: new () => any;
20
21
  }
@@ -53,6 +54,13 @@ export declare class Configuration {
53
54
  * @memberof Configuration
54
55
  */
55
56
  basePath?: string;
57
+ /**
58
+ * override server index
59
+ *
60
+ * @type {number}
61
+ * @memberof Configuration
62
+ */
63
+ serverIndex?: number;
56
64
  /**
57
65
  * base options for axios calls
58
66
  *
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { SellerInputDefinition } from './seller-input-definition';
12
+ import type { SellerInputDefinition } from './seller-input-definition';
13
13
  /**
14
14
  * Maps the additional seller input to the definition. The key to the map is the field name.
15
15
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Address } from './address';
13
- import { CurrencyAmount } from './currency-amount';
14
- import { Length } from './length';
15
- import { Weight } from './weight';
12
+ import type { Address } from './address';
13
+ import type { CurrencyAmount } from './currency-amount';
14
+ import type { Length } from './length';
15
+ import type { Weight } from './weight';
16
16
  /**
17
17
  * Additional information required to purchase shipping.
18
18
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AdditionalSellerInput } from './additional-seller-input';
12
+ import type { AdditionalSellerInput } from './additional-seller-input';
13
13
  /**
14
14
  * An additional set of seller inputs required to purchase shipping.
15
15
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CarrierWillPickUpOption } from './carrier-will-pick-up-option';
13
- import { CurrencyAmount } from './currency-amount';
12
+ import type { CarrierWillPickUpOption } from './carrier-will-pick-up-option';
13
+ import type { CurrencyAmount } from './currency-amount';
14
14
  /**
15
15
  * Indicates whether the carrier will pick up the package, and what fee is charged, if any.
16
16
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CurrencyAmount } from './currency-amount';
13
- import { DeliveryExperienceOption } from './delivery-experience-option';
12
+ import type { CurrencyAmount } from './currency-amount';
13
+ import type { DeliveryExperienceOption } from './delivery-experience-option';
14
14
  /**
15
15
  * The available delivery confirmation options, and the fee charged, if any.
16
16
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AvailableCarrierWillPickUpOption } from './available-carrier-will-pick-up-option';
13
- import { AvailableDeliveryExperienceOption } from './available-delivery-experience-option';
12
+ import type { AvailableCarrierWillPickUpOption } from './available-carrier-will-pick-up-option';
13
+ import type { AvailableDeliveryExperienceOption } from './available-delivery-experience-option';
14
14
  /**
15
15
  * The available shipping service options.
16
16
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Shipment } from './shipment';
12
+ import type { Shipment } from './shipment';
13
13
  /**
14
14
  * Response schema.
15
15
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AdditionalSellerInputs } from './additional-seller-inputs';
13
- import { HazmatType } from './hazmat-type';
14
- import { LabelFormatOptionRequest } from './label-format-option-request';
15
- import { ShipmentRequestDetails } from './shipment-request-details';
12
+ import type { AdditionalSellerInputs } from './additional-seller-inputs';
13
+ import type { HazmatType } from './hazmat-type';
14
+ import type { LabelFormatOptionRequest } from './label-format-option-request';
15
+ import type { ShipmentRequestDetails } from './shipment-request-details';
16
16
  /**
17
17
  * Request schema.
18
18
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Shipment } from './shipment';
12
+ import type { Shipment } from './shipment';
13
13
  /**
14
14
  * Response schema.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { FileType } from './file-type';
12
+ import type { FileType } from './file-type';
13
13
  /**
14
14
  * The document data and checksum.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Address } from './address';
12
+ import type { Address } from './address';
13
13
  /**
14
14
  * Request schema.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { GetAdditionalSellerInputsResult } from './get-additional-seller-inputs-result';
12
+ import type { GetAdditionalSellerInputsResult } from './get-additional-seller-inputs-result';
13
13
  /**
14
14
  * Response schema.
15
15
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AdditionalInputs } from './additional-inputs';
13
- import { ItemLevelFields } from './item-level-fields';
12
+ import type { AdditionalInputs } from './additional-inputs';
13
+ import type { ItemLevelFields } from './item-level-fields';
14
14
  /**
15
15
  * The payload for the getAdditionalSellerInputs operation.
16
16
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ShipmentRequestDetails } from './shipment-request-details';
13
- import { ShippingOfferingFilter } from './shipping-offering-filter';
12
+ import type { ShipmentRequestDetails } from './shipment-request-details';
13
+ import type { ShippingOfferingFilter } from './shipping-offering-filter';
14
14
  /**
15
15
  * Request schema.
16
16
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { GetEligibleShipmentServicesResult } from './get-eligible-shipment-services-result';
12
+ import type { GetEligibleShipmentServicesResult } from './get-eligible-shipment-services-result';
13
13
  /**
14
14
  * Response schema.
15
15
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { RejectedShippingService } from './rejected-shipping-service';
13
- import { ShippingService } from './shipping-service';
14
- import { TemporarilyUnavailableCarrier } from './temporarily-unavailable-carrier';
15
- import { TermsAndConditionsNotAcceptedCarrier } from './terms-and-conditions-not-accepted-carrier';
12
+ import type { RejectedShippingService } from './rejected-shipping-service';
13
+ import type { ShippingService } from './shipping-service';
14
+ import type { TemporarilyUnavailableCarrier } from './temporarily-unavailable-carrier';
15
+ import type { TermsAndConditionsNotAcceptedCarrier } from './terms-and-conditions-not-accepted-carrier';
16
16
  /**
17
17
  * The payload for the getEligibleShipmentServices operation.
18
18
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Shipment } from './shipment';
12
+ import type { Shipment } from './shipment';
13
13
  /**
14
14
  * Response schema.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AdditionalInputs } from './additional-inputs';
12
+ import type { AdditionalInputs } from './additional-inputs';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AdditionalSellerInputs } from './additional-seller-inputs';
13
- import { DangerousGoodsDetails } from './dangerous-goods-details';
14
- import { LiquidVolume } from './liquid-volume';
15
- import { Weight } from './weight';
12
+ import type { AdditionalSellerInputs } from './additional-seller-inputs';
13
+ import type { DangerousGoodsDetails } from './dangerous-goods-details';
14
+ import type { LiquidVolume } from './liquid-volume';
15
+ import type { Weight } from './weight';
16
16
  /**
17
17
  * An Amazon order item identifier and a quantity.
18
18
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { StandardIdForLabel } from './standard-id-for-label';
12
+ import type { StandardIdForLabel } from './standard-id-for-label';
13
13
  /**
14
14
  * Custom text for shipping labels.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { UnitOfLength } from './unit-of-length';
12
+ import type { UnitOfLength } from './unit-of-length';
13
13
  /**
14
14
  * Dimensions for printing a shipping label.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { LabelFormat } from './label-format';
12
+ import type { LabelFormat } from './label-format';
13
13
  /**
14
14
  * The label format details and whether to include a packing slip.
15
15
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { FileContents } from './file-contents';
13
- import { LabelDimensions } from './label-dimensions';
14
- import { LabelFormat } from './label-format';
15
- import { StandardIdForLabel } from './standard-id-for-label';
12
+ import type { FileContents } from './file-contents';
13
+ import type { LabelDimensions } from './label-dimensions';
14
+ import type { LabelFormat } from './label-format';
15
+ import type { StandardIdForLabel } from './standard-id-for-label';
16
16
  /**
17
17
  * Data for creating a shipping label and dimensions for printing the label.
18
18
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { UnitOfLength } from './unit-of-length';
12
+ import type { UnitOfLength } from './unit-of-length';
13
13
  /**
14
14
  * The length.
15
15
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { PredefinedPackageDimensions } from './predefined-package-dimensions';
13
- import { UnitOfLength } from './unit-of-length';
12
+ import type { PredefinedPackageDimensions } from './predefined-package-dimensions';
13
+ import type { UnitOfLength } from './unit-of-length';
14
14
  /**
15
15
  * The dimensions of a package contained in a shipment.
16
16
  * @export
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AdditionalSellerInput } from './additional-seller-input';
13
- import { Constraint } from './constraint';
14
- import { InputTargetType } from './input-target-type';
12
+ import type { AdditionalSellerInput } from './additional-seller-input';
13
+ import type { Constraint } from './constraint';
14
+ import type { InputTargetType } from './input-target-type';
15
15
  /**
16
16
  * Specifies characteristics that apply to a seller input.
17
17
  * @export
@@ -9,12 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Address } from './address';
13
- import { Item } from './item';
14
- import { LabelCustomization } from './label-customization';
15
- import { PackageDimensions } from './package-dimensions';
16
- import { ShippingServiceOptions } from './shipping-service-options';
17
- import { Weight } from './weight';
12
+ import type { Address } from './address';
13
+ import type { Item } from './item';
14
+ import type { LabelCustomization } from './label-customization';
15
+ import type { PackageDimensions } from './package-dimensions';
16
+ import type { ShippingServiceOptions } from './shipping-service-options';
17
+ import type { Weight } from './weight';
18
18
  /**
19
19
  * Shipment information required for requesting shipping service offers or for creating a shipment.
20
20
  * @export
@@ -9,14 +9,14 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Address } from './address';
13
- import { CurrencyAmount } from './currency-amount';
14
- import { Item } from './item';
15
- import { Label } from './label';
16
- import { PackageDimensions } from './package-dimensions';
17
- import { ShipmentStatus } from './shipment-status';
18
- import { ShippingService } from './shipping-service';
19
- import { Weight } from './weight';
12
+ import type { Address } from './address';
13
+ import type { CurrencyAmount } from './currency-amount';
14
+ import type { Item } from './item';
15
+ import type { Label } from './label';
16
+ import type { PackageDimensions } from './package-dimensions';
17
+ import type { ShipmentStatus } from './shipment-status';
18
+ import type { ShippingService } from './shipping-service';
19
+ import type { Weight } from './weight';
20
20
  /**
21
21
  * The details of a shipment, including the shipment status.
22
22
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CarrierWillPickUpOption } from './carrier-will-pick-up-option';
13
- import { DeliveryExperienceOption } from './delivery-experience-option';
12
+ import type { CarrierWillPickUpOption } from './carrier-will-pick-up-option';
13
+ import type { DeliveryExperienceOption } from './delivery-experience-option';
14
14
  /**
15
15
  * Filter for use when requesting eligible shipping services.
16
16
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CarrierWillPickUpOption } from './carrier-will-pick-up-option';
13
- import { CurrencyAmount } from './currency-amount';
14
- import { DeliveryExperienceType } from './delivery-experience-type';
15
- import { LabelFormat } from './label-format';
12
+ import type { CarrierWillPickUpOption } from './carrier-will-pick-up-option';
13
+ import type { CurrencyAmount } from './currency-amount';
14
+ import type { DeliveryExperienceType } from './delivery-experience-type';
15
+ import type { LabelFormat } from './label-format';
16
16
  /**
17
17
  * Extra services provided by a carrier.
18
18
  * @export
@@ -9,11 +9,11 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AvailableShippingServiceOptions } from './available-shipping-service-options';
13
- import { CurrencyAmount } from './currency-amount';
14
- import { LabelFormat } from './label-format';
15
- import { LabelFormatOption } from './label-format-option';
16
- import { ShippingServiceOptions } from './shipping-service-options';
12
+ import type { AvailableShippingServiceOptions } from './available-shipping-service-options';
13
+ import type { CurrencyAmount } from './currency-amount';
14
+ import type { LabelFormat } from './label-format';
15
+ import type { LabelFormatOption } from './label-format-option';
16
+ import type { ShippingServiceOptions } from './shipping-service-options';
17
17
  /**
18
18
  * A shipping service offer made by a carrier.
19
19
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { UnitOfWeight } from './unit-of-weight';
12
+ import type { UnitOfWeight } from './unit-of-weight';
13
13
  /**
14
14
  * The weight.
15
15
  * @export
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/merchant-fulfillment-api-v0",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "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.",
5
- "version": "2.2.0",
5
+ "version": "2.3.1",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.0.7",
22
- "axios": "^1.6.8"
21
+ "@sp-api-sdk/common": "2.0.9",
22
+ "axios": "^1.7.2"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "merchant fulfillment api"
42
42
  ],
43
- "gitHead": "556cf5234c43b36ddaffa12f795a925b1c7fc63b"
43
+ "gitHead": "cce8c720364baf071322463e8e3ed29c322cc93a"
44
44
  }