@sp-api-sdk/merchant-fulfillment-api-v0 1.11.8 → 1.11.10

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.
@@ -358,75 +358,75 @@ const MerchantFulfillmentApiFactory = function (configuration, basePath, axios)
358
358
  return {
359
359
  /**
360
360
  * Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
361
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
361
+ * @param {MerchantFulfillmentApiCancelShipmentRequest} requestParameters Request parameters.
362
362
  * @param {*} [options] Override http request option.
363
363
  * @throws {RequiredError}
364
364
  */
365
- cancelShipment(shipmentId, options) {
366
- return localVarFp.cancelShipment(shipmentId, options).then((request) => request(axios, basePath));
365
+ cancelShipment(requestParameters, options) {
366
+ return localVarFp.cancelShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
367
367
  },
368
368
  /**
369
369
  * Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
370
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
370
+ * @param {MerchantFulfillmentApiCancelShipmentOldRequest} requestParameters Request parameters.
371
371
  * @param {*} [options] Override http request option.
372
372
  * @throws {RequiredError}
373
373
  */
374
- cancelShipmentOld(shipmentId, options) {
375
- return localVarFp.cancelShipmentOld(shipmentId, options).then((request) => request(axios, basePath));
374
+ cancelShipmentOld(requestParameters, options) {
375
+ return localVarFp.cancelShipmentOld(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
376
376
  },
377
377
  /**
378
378
  * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
379
- * @param {CreateShipmentRequest} body
379
+ * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
380
380
  * @param {*} [options] Override http request option.
381
381
  * @throws {RequiredError}
382
382
  */
383
- createShipment(body, options) {
384
- return localVarFp.createShipment(body, options).then((request) => request(axios, basePath));
383
+ createShipment(requestParameters, options) {
384
+ return localVarFp.createShipment(requestParameters.body, options).then((request) => request(axios, basePath));
385
385
  },
386
386
  /**
387
387
  * 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
388
- * @param {GetAdditionalSellerInputsRequest} body
388
+ * @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.
389
389
  * @param {*} [options] Override http request option.
390
390
  * @throws {RequiredError}
391
391
  */
392
- getAdditionalSellerInputs(body, options) {
393
- return localVarFp.getAdditionalSellerInputs(body, options).then((request) => request(axios, basePath));
392
+ getAdditionalSellerInputs(requestParameters, options) {
393
+ return localVarFp.getAdditionalSellerInputs(requestParameters.body, options).then((request) => request(axios, basePath));
394
394
  },
395
395
  /**
396
396
  * 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
397
- * @param {GetAdditionalSellerInputsRequest} body
397
+ * @param {MerchantFulfillmentApiGetAdditionalSellerInputsOldRequest} requestParameters Request parameters.
398
398
  * @param {*} [options] Override http request option.
399
399
  * @throws {RequiredError}
400
400
  */
401
- getAdditionalSellerInputsOld(body, options) {
402
- return localVarFp.getAdditionalSellerInputsOld(body, options).then((request) => request(axios, basePath));
401
+ getAdditionalSellerInputsOld(requestParameters, options) {
402
+ return localVarFp.getAdditionalSellerInputsOld(requestParameters.body, options).then((request) => request(axios, basePath));
403
403
  },
404
404
  /**
405
405
  * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
406
- * @param {GetEligibleShipmentServicesRequest} body
406
+ * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
407
407
  * @param {*} [options] Override http request option.
408
408
  * @throws {RequiredError}
409
409
  */
410
- getEligibleShipmentServices(body, options) {
411
- return localVarFp.getEligibleShipmentServices(body, options).then((request) => request(axios, basePath));
410
+ getEligibleShipmentServices(requestParameters, options) {
411
+ return localVarFp.getEligibleShipmentServices(requestParameters.body, options).then((request) => request(axios, basePath));
412
412
  },
413
413
  /**
414
414
  * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
415
- * @param {GetEligibleShipmentServicesRequest} body
415
+ * @param {MerchantFulfillmentApiGetEligibleShipmentServicesOldRequest} requestParameters Request parameters.
416
416
  * @param {*} [options] Override http request option.
417
417
  * @throws {RequiredError}
418
418
  */
419
- getEligibleShipmentServicesOld(body, options) {
420
- return localVarFp.getEligibleShipmentServicesOld(body, options).then((request) => request(axios, basePath));
419
+ getEligibleShipmentServicesOld(requestParameters, options) {
420
+ return localVarFp.getEligibleShipmentServicesOld(requestParameters.body, options).then((request) => request(axios, basePath));
421
421
  },
422
422
  /**
423
423
  * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
424
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.
424
+ * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
425
425
  * @param {*} [options] Override http request option.
426
426
  * @throws {RequiredError}
427
427
  */
428
- getShipment(shipmentId, options) {
429
- return localVarFp.getShipment(shipmentId, options).then((request) => request(axios, basePath));
428
+ getShipment(requestParameters, options) {
429
+ return localVarFp.getShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
430
430
  },
431
431
  };
432
432
  };
@@ -15,8 +15,6 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
17
17
  const tslib_1 = require("tslib");
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
18
  const axios_1 = tslib_1.__importDefault(require("axios"));
21
19
  exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
22
20
  /**
@@ -57,10 +55,10 @@ exports.BaseAPI = BaseAPI;
57
55
  */
58
56
  class RequiredError extends Error {
59
57
  field;
60
- name = "RequiredError";
61
58
  constructor(field, msg) {
62
59
  super(msg);
63
60
  this.field = field;
61
+ this.name = "RequiredError";
64
62
  }
65
63
  }
66
64
  exports.RequiredError = RequiredError;
@@ -81,6 +81,8 @@ const setOAuthToObject = async function (object, name, scopes, configuration) {
81
81
  };
82
82
  exports.setOAuthToObject = setOAuthToObject;
83
83
  function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
84
+ if (parameter == null)
85
+ return;
84
86
  if (typeof parameter === "object") {
85
87
  if (Array.isArray(parameter)) {
86
88
  parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
@@ -352,75 +352,75 @@ export const MerchantFulfillmentApiFactory = function (configuration, basePath,
352
352
  return {
353
353
  /**
354
354
  * Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
355
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
355
+ * @param {MerchantFulfillmentApiCancelShipmentRequest} requestParameters Request parameters.
356
356
  * @param {*} [options] Override http request option.
357
357
  * @throws {RequiredError}
358
358
  */
359
- cancelShipment(shipmentId, options) {
360
- return localVarFp.cancelShipment(shipmentId, options).then((request) => request(axios, basePath));
359
+ cancelShipment(requestParameters, options) {
360
+ return localVarFp.cancelShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
361
361
  },
362
362
  /**
363
363
  * Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
364
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
364
+ * @param {MerchantFulfillmentApiCancelShipmentOldRequest} requestParameters Request parameters.
365
365
  * @param {*} [options] Override http request option.
366
366
  * @throws {RequiredError}
367
367
  */
368
- cancelShipmentOld(shipmentId, options) {
369
- return localVarFp.cancelShipmentOld(shipmentId, options).then((request) => request(axios, basePath));
368
+ cancelShipmentOld(requestParameters, options) {
369
+ return localVarFp.cancelShipmentOld(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
370
370
  },
371
371
  /**
372
372
  * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
373
- * @param {CreateShipmentRequest} body
373
+ * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
374
374
  * @param {*} [options] Override http request option.
375
375
  * @throws {RequiredError}
376
376
  */
377
- createShipment(body, options) {
378
- return localVarFp.createShipment(body, options).then((request) => request(axios, basePath));
377
+ createShipment(requestParameters, options) {
378
+ return localVarFp.createShipment(requestParameters.body, options).then((request) => request(axios, basePath));
379
379
  },
380
380
  /**
381
381
  * 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
382
- * @param {GetAdditionalSellerInputsRequest} body
382
+ * @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.
383
383
  * @param {*} [options] Override http request option.
384
384
  * @throws {RequiredError}
385
385
  */
386
- getAdditionalSellerInputs(body, options) {
387
- return localVarFp.getAdditionalSellerInputs(body, options).then((request) => request(axios, basePath));
386
+ getAdditionalSellerInputs(requestParameters, options) {
387
+ return localVarFp.getAdditionalSellerInputs(requestParameters.body, options).then((request) => request(axios, basePath));
388
388
  },
389
389
  /**
390
390
  * 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
391
- * @param {GetAdditionalSellerInputsRequest} body
391
+ * @param {MerchantFulfillmentApiGetAdditionalSellerInputsOldRequest} requestParameters Request parameters.
392
392
  * @param {*} [options] Override http request option.
393
393
  * @throws {RequiredError}
394
394
  */
395
- getAdditionalSellerInputsOld(body, options) {
396
- return localVarFp.getAdditionalSellerInputsOld(body, options).then((request) => request(axios, basePath));
395
+ getAdditionalSellerInputsOld(requestParameters, options) {
396
+ return localVarFp.getAdditionalSellerInputsOld(requestParameters.body, options).then((request) => request(axios, basePath));
397
397
  },
398
398
  /**
399
399
  * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
400
- * @param {GetEligibleShipmentServicesRequest} body
400
+ * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
401
401
  * @param {*} [options] Override http request option.
402
402
  * @throws {RequiredError}
403
403
  */
404
- getEligibleShipmentServices(body, options) {
405
- return localVarFp.getEligibleShipmentServices(body, options).then((request) => request(axios, basePath));
404
+ getEligibleShipmentServices(requestParameters, options) {
405
+ return localVarFp.getEligibleShipmentServices(requestParameters.body, options).then((request) => request(axios, basePath));
406
406
  },
407
407
  /**
408
408
  * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
409
- * @param {GetEligibleShipmentServicesRequest} body
409
+ * @param {MerchantFulfillmentApiGetEligibleShipmentServicesOldRequest} requestParameters Request parameters.
410
410
  * @param {*} [options] Override http request option.
411
411
  * @throws {RequiredError}
412
412
  */
413
- getEligibleShipmentServicesOld(body, options) {
414
- return localVarFp.getEligibleShipmentServicesOld(body, options).then((request) => request(axios, basePath));
413
+ getEligibleShipmentServicesOld(requestParameters, options) {
414
+ return localVarFp.getEligibleShipmentServicesOld(requestParameters.body, options).then((request) => request(axios, basePath));
415
415
  },
416
416
  /**
417
417
  * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
418
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.
418
+ * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
419
419
  * @param {*} [options] Override http request option.
420
420
  * @throws {RequiredError}
421
421
  */
422
- getShipment(shipmentId, options) {
423
- return localVarFp.getShipment(shipmentId, options).then((request) => request(axios, basePath));
422
+ getShipment(requestParameters, options) {
423
+ return localVarFp.getShipment(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
424
424
  },
425
425
  };
426
426
  };
@@ -11,8 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- // Some imports not used depending on template conditions
15
- // @ts-ignore
16
14
  import globalAxios from 'axios';
17
15
  export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
18
16
  /**
@@ -52,9 +50,9 @@ export class BaseAPI {
52
50
  */
53
51
  export class RequiredError extends Error {
54
52
  field;
55
- name = "RequiredError";
56
53
  constructor(field, msg) {
57
54
  super(msg);
58
55
  this.field = field;
56
+ this.name = "RequiredError";
59
57
  }
60
58
  }
@@ -73,6 +73,8 @@ export const setOAuthToObject = async function (object, name, scopes, configurat
73
73
  }
74
74
  };
75
75
  function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
76
+ if (parameter == null)
77
+ return;
76
78
  if (typeof parameter === "object") {
77
79
  if (Array.isArray(parameter)) {
78
80
  parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
- import { Configuration } from '../configuration';
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CancelShipmentResponse } from '../models';
16
16
  import { CreateShipmentRequest } from '../models';
@@ -151,60 +151,60 @@ export declare const MerchantFulfillmentApiFp: (configuration?: Configuration) =
151
151
  export declare const MerchantFulfillmentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
152
152
  /**
153
153
  * Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
154
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
154
+ * @param {MerchantFulfillmentApiCancelShipmentRequest} requestParameters Request parameters.
155
155
  * @param {*} [options] Override http request option.
156
156
  * @throws {RequiredError}
157
157
  */
158
- cancelShipment(shipmentId: string, options?: any): AxiosPromise<CancelShipmentResponse>;
158
+ cancelShipment(requestParameters: MerchantFulfillmentApiCancelShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<CancelShipmentResponse>;
159
159
  /**
160
160
  * Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
161
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment to cancel.
161
+ * @param {MerchantFulfillmentApiCancelShipmentOldRequest} requestParameters Request parameters.
162
162
  * @param {*} [options] Override http request option.
163
163
  * @throws {RequiredError}
164
164
  */
165
- cancelShipmentOld(shipmentId: string, options?: any): AxiosPromise<CancelShipmentResponse>;
165
+ cancelShipmentOld(requestParameters: MerchantFulfillmentApiCancelShipmentOldRequest, options?: AxiosRequestConfig): AxiosPromise<CancelShipmentResponse>;
166
166
  /**
167
167
  * Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
168
- * @param {CreateShipmentRequest} body
168
+ * @param {MerchantFulfillmentApiCreateShipmentRequest} requestParameters Request parameters.
169
169
  * @param {*} [options] Override http request option.
170
170
  * @throws {RequiredError}
171
171
  */
172
- createShipment(body: CreateShipmentRequest, options?: any): AxiosPromise<CreateShipmentResponse>;
172
+ createShipment(requestParameters: MerchantFulfillmentApiCreateShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<CreateShipmentResponse>;
173
173
  /**
174
174
  * 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
175
- * @param {GetAdditionalSellerInputsRequest} body
175
+ * @param {MerchantFulfillmentApiGetAdditionalSellerInputsRequest} requestParameters Request parameters.
176
176
  * @param {*} [options] Override http request option.
177
177
  * @throws {RequiredError}
178
178
  */
179
- getAdditionalSellerInputs(body: GetAdditionalSellerInputsRequest, options?: any): AxiosPromise<GetAdditionalSellerInputsResponse>;
179
+ getAdditionalSellerInputs(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsRequest, options?: AxiosRequestConfig): AxiosPromise<GetAdditionalSellerInputsResponse>;
180
180
  /**
181
181
  * 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 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
182
- * @param {GetAdditionalSellerInputsRequest} body
182
+ * @param {MerchantFulfillmentApiGetAdditionalSellerInputsOldRequest} requestParameters Request parameters.
183
183
  * @param {*} [options] Override http request option.
184
184
  * @throws {RequiredError}
185
185
  */
186
- getAdditionalSellerInputsOld(body: GetAdditionalSellerInputsRequest, options?: any): AxiosPromise<GetAdditionalSellerInputsResponse>;
186
+ getAdditionalSellerInputsOld(requestParameters: MerchantFulfillmentApiGetAdditionalSellerInputsOldRequest, options?: AxiosRequestConfig): AxiosPromise<GetAdditionalSellerInputsResponse>;
187
187
  /**
188
188
  * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
189
- * @param {GetEligibleShipmentServicesRequest} body
189
+ * @param {MerchantFulfillmentApiGetEligibleShipmentServicesRequest} requestParameters Request parameters.
190
190
  * @param {*} [options] Override http request option.
191
191
  * @throws {RequiredError}
192
192
  */
193
- getEligibleShipmentServices(body: GetEligibleShipmentServicesRequest, options?: any): AxiosPromise<GetEligibleShipmentServicesResponse>;
193
+ getEligibleShipmentServices(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesRequest, options?: AxiosRequestConfig): AxiosPromise<GetEligibleShipmentServicesResponse>;
194
194
  /**
195
195
  * Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
196
- * @param {GetEligibleShipmentServicesRequest} body
196
+ * @param {MerchantFulfillmentApiGetEligibleShipmentServicesOldRequest} requestParameters Request parameters.
197
197
  * @param {*} [options] Override http request option.
198
198
  * @throws {RequiredError}
199
199
  */
200
- getEligibleShipmentServicesOld(body: GetEligibleShipmentServicesRequest, options?: any): AxiosPromise<GetEligibleShipmentServicesResponse>;
200
+ getEligibleShipmentServicesOld(requestParameters: MerchantFulfillmentApiGetEligibleShipmentServicesOldRequest, options?: AxiosRequestConfig): AxiosPromise<GetEligibleShipmentServicesResponse>;
201
201
  /**
202
202
  * Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
203
- * @param {string} shipmentId The Amazon-defined shipment identifier for the shipment.
203
+ * @param {MerchantFulfillmentApiGetShipmentRequest} requestParameters Request parameters.
204
204
  * @param {*} [options] Override http request option.
205
205
  * @throws {RequiredError}
206
206
  */
207
- getShipment(shipmentId: string, options?: any): AxiosPromise<GetShipmentResponse>;
207
+ getShipment(requestParameters: MerchantFulfillmentApiGetShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<GetShipmentResponse>;
208
208
  };
209
209
  /**
210
210
  * Request parameters for cancelShipment operation in MerchantFulfillmentApi.
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Configuration } from "./configuration";
13
- import { AxiosInstance, AxiosRequestConfig } from 'axios';
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
15
  /**
16
16
  *
@@ -50,6 +50,5 @@ export declare class BaseAPI {
50
50
  */
51
51
  export declare class RequiredError extends Error {
52
52
  field: string;
53
- name: "RequiredError";
54
53
  constructor(field: string, msg?: string);
55
54
  }
@@ -10,9 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /// <reference types="node" />
13
- import { Configuration } from "./configuration";
14
- import { RequestArgs } from "./base";
15
- import { AxiosInstance, AxiosResponse } from 'axios';
13
+ import type { Configuration } from "./configuration";
14
+ import type { RequestArgs } from "./base";
15
+ import type { AxiosInstance, AxiosResponse } from 'axios';
16
16
  /**
17
17
  *
18
18
  * @export
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/merchant-fulfillment-api-v0",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@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": "1.11.8",
5
+ "version": "1.11.10",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "test": "jest"
27
27
  },
28
28
  "dependencies": {
29
- "@sp-api-sdk/common": "^1.9.20",
29
+ "@sp-api-sdk/common": "^1.9.22",
30
30
  "axios": "^0.27.2"
31
31
  },
32
32
  "repository": {
@@ -51,5 +51,5 @@
51
51
  "typedoc": {
52
52
  "entryPoint": "./index.ts"
53
53
  },
54
- "gitHead": "e8ea8ef5b7745f2c4413bd7dd8eefa1b31cee128"
54
+ "gitHead": "19982f06cbbd770bfc7b9f1bc8a42f59b57baead"
55
55
  }