@sp-api-sdk/shipping-api-v1 3.0.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,7 +31,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
31
31
  return {
32
32
  /**
33
33
  * Cancel a shipment by the given shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
34
- * @param {string} shipmentId
34
+ * @param {string} shipmentId Shipment Id to cancel a shipment
35
35
  * @param {*} [options] Override http request option.
36
36
  * @throws {RequiredError}
37
37
  */
@@ -59,7 +59,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
59
59
  },
60
60
  /**
61
61
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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 {CreateShipmentRequest} body
62
+ * @param {CreateShipmentRequest} body CreateShipmentRequest Body
63
63
  * @param {*} [options] Override http request option.
64
64
  * @throws {RequiredError}
65
65
  */
@@ -112,7 +112,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
112
112
  },
113
113
  /**
114
114
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
115
- * @param {GetRatesRequest} body
115
+ * @param {GetRatesRequest} body GetRatesRequest body
116
116
  * @param {*} [options] Override http request option.
117
117
  * @throws {RequiredError}
118
118
  */
@@ -141,7 +141,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
141
141
  },
142
142
  /**
143
143
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
144
- * @param {string} shipmentId
144
+ * @param {string} shipmentId Shipment id to return the entire shipment object
145
145
  * @param {*} [options] Override http request option.
146
146
  * @throws {RequiredError}
147
147
  */
@@ -169,7 +169,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
169
169
  },
170
170
  /**
171
171
  * Return the tracking information of a 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.
172
- * @param {string} trackingId
172
+ * @param {string} trackingId Tracking Id
173
173
  * @param {*} [options] Override http request option.
174
174
  * @throws {RequiredError}
175
175
  */
@@ -197,8 +197,8 @@ const ShippingApiAxiosParamCreator = function (configuration) {
197
197
  },
198
198
  /**
199
199
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
200
- * @param {string} shipmentId
201
- * @param {PurchaseLabelsRequest} body
200
+ * @param {string} shipmentId Shipment id for purchase shipping label
201
+ * @param {PurchaseLabelsRequest} body PurchaseShippingLabelRequest body
202
202
  * @param {*} [options] Override http request option.
203
203
  * @throws {RequiredError}
204
204
  */
@@ -230,7 +230,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
230
230
  },
231
231
  /**
232
232
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
233
- * @param {PurchaseShipmentRequest} body
233
+ * @param {PurchaseShipmentRequest} body PurchaseShipmentRequest body
234
234
  * @param {*} [options] Override http request option.
235
235
  * @throws {RequiredError}
236
236
  */
@@ -259,9 +259,9 @@ const ShippingApiAxiosParamCreator = function (configuration) {
259
259
  },
260
260
  /**
261
261
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
262
- * @param {string} shipmentId
263
- * @param {string} trackingId
264
- * @param {RetrieveShippingLabelRequest} body
262
+ * @param {string} shipmentId Shipment Id to retreive label
263
+ * @param {string} trackingId Tracking Id
264
+ * @param {RetrieveShippingLabelRequest} body RetrieveShippingLabelRequest body
265
265
  * @param {*} [options] Override http request option.
266
266
  * @throws {RequiredError}
267
267
  */
@@ -306,7 +306,7 @@ const ShippingApiFp = function (configuration) {
306
306
  return {
307
307
  /**
308
308
  * Cancel a shipment by the given shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
309
- * @param {string} shipmentId
309
+ * @param {string} shipmentId Shipment Id to cancel a shipment
310
310
  * @param {*} [options] Override http request option.
311
311
  * @throws {RequiredError}
312
312
  */
@@ -318,7 +318,7 @@ const ShippingApiFp = function (configuration) {
318
318
  },
319
319
  /**
320
320
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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).
321
- * @param {CreateShipmentRequest} body
321
+ * @param {CreateShipmentRequest} body CreateShipmentRequest Body
322
322
  * @param {*} [options] Override http request option.
323
323
  * @throws {RequiredError}
324
324
  */
@@ -341,7 +341,7 @@ const ShippingApiFp = function (configuration) {
341
341
  },
342
342
  /**
343
343
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
344
- * @param {GetRatesRequest} body
344
+ * @param {GetRatesRequest} body GetRatesRequest body
345
345
  * @param {*} [options] Override http request option.
346
346
  * @throws {RequiredError}
347
347
  */
@@ -353,7 +353,7 @@ const ShippingApiFp = function (configuration) {
353
353
  },
354
354
  /**
355
355
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
356
- * @param {string} shipmentId
356
+ * @param {string} shipmentId Shipment id to return the entire shipment object
357
357
  * @param {*} [options] Override http request option.
358
358
  * @throws {RequiredError}
359
359
  */
@@ -365,7 +365,7 @@ const ShippingApiFp = function (configuration) {
365
365
  },
366
366
  /**
367
367
  * Return the tracking information of a 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.
368
- * @param {string} trackingId
368
+ * @param {string} trackingId Tracking Id
369
369
  * @param {*} [options] Override http request option.
370
370
  * @throws {RequiredError}
371
371
  */
@@ -377,8 +377,8 @@ const ShippingApiFp = function (configuration) {
377
377
  },
378
378
  /**
379
379
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
380
- * @param {string} shipmentId
381
- * @param {PurchaseLabelsRequest} body
380
+ * @param {string} shipmentId Shipment id for purchase shipping label
381
+ * @param {PurchaseLabelsRequest} body PurchaseShippingLabelRequest body
382
382
  * @param {*} [options] Override http request option.
383
383
  * @throws {RequiredError}
384
384
  */
@@ -390,7 +390,7 @@ const ShippingApiFp = function (configuration) {
390
390
  },
391
391
  /**
392
392
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
393
- * @param {PurchaseShipmentRequest} body
393
+ * @param {PurchaseShipmentRequest} body PurchaseShipmentRequest body
394
394
  * @param {*} [options] Override http request option.
395
395
  * @throws {RequiredError}
396
396
  */
@@ -402,9 +402,9 @@ const ShippingApiFp = function (configuration) {
402
402
  },
403
403
  /**
404
404
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
405
- * @param {string} shipmentId
406
- * @param {string} trackingId
407
- * @param {RetrieveShippingLabelRequest} body
405
+ * @param {string} shipmentId Shipment Id to retreive label
406
+ * @param {string} trackingId Tracking Id
407
+ * @param {RetrieveShippingLabelRequest} body RetrieveShippingLabelRequest body
408
408
  * @param {*} [options] Override http request option.
409
409
  * @throws {RequiredError}
410
410
  */
@@ -79,11 +79,10 @@ class Configuration {
79
79
  this.basePath = param.basePath;
80
80
  this.serverIndex = param.serverIndex;
81
81
  this.baseOptions = {
82
+ ...param.baseOptions,
82
83
  headers: {
83
84
  ...param.baseOptions?.headers,
84
- 'User-Agent': "OpenAPI-Generator/typescript-axios"
85
85
  },
86
- ...param.baseOptions
87
86
  };
88
87
  this.formDataCtor = param.formDataCtor;
89
88
  }
@@ -25,7 +25,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
25
25
  return {
26
26
  /**
27
27
  * Cancel a shipment by the given shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
28
- * @param {string} shipmentId
28
+ * @param {string} shipmentId Shipment Id to cancel a shipment
29
29
  * @param {*} [options] Override http request option.
30
30
  * @throws {RequiredError}
31
31
  */
@@ -53,7 +53,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
53
53
  },
54
54
  /**
55
55
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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).
56
- * @param {CreateShipmentRequest} body
56
+ * @param {CreateShipmentRequest} body CreateShipmentRequest Body
57
57
  * @param {*} [options] Override http request option.
58
58
  * @throws {RequiredError}
59
59
  */
@@ -106,7 +106,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
106
106
  },
107
107
  /**
108
108
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
109
- * @param {GetRatesRequest} body
109
+ * @param {GetRatesRequest} body GetRatesRequest body
110
110
  * @param {*} [options] Override http request option.
111
111
  * @throws {RequiredError}
112
112
  */
@@ -135,7 +135,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
135
135
  },
136
136
  /**
137
137
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
138
- * @param {string} shipmentId
138
+ * @param {string} shipmentId Shipment id to return the entire shipment object
139
139
  * @param {*} [options] Override http request option.
140
140
  * @throws {RequiredError}
141
141
  */
@@ -163,7 +163,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
163
163
  },
164
164
  /**
165
165
  * Return the tracking information of a 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.
166
- * @param {string} trackingId
166
+ * @param {string} trackingId Tracking Id
167
167
  * @param {*} [options] Override http request option.
168
168
  * @throws {RequiredError}
169
169
  */
@@ -191,8 +191,8 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
191
191
  },
192
192
  /**
193
193
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
194
- * @param {string} shipmentId
195
- * @param {PurchaseLabelsRequest} body
194
+ * @param {string} shipmentId Shipment id for purchase shipping label
195
+ * @param {PurchaseLabelsRequest} body PurchaseShippingLabelRequest body
196
196
  * @param {*} [options] Override http request option.
197
197
  * @throws {RequiredError}
198
198
  */
@@ -224,7 +224,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
224
224
  },
225
225
  /**
226
226
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
227
- * @param {PurchaseShipmentRequest} body
227
+ * @param {PurchaseShipmentRequest} body PurchaseShipmentRequest body
228
228
  * @param {*} [options] Override http request option.
229
229
  * @throws {RequiredError}
230
230
  */
@@ -253,9 +253,9 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
253
253
  },
254
254
  /**
255
255
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
256
- * @param {string} shipmentId
257
- * @param {string} trackingId
258
- * @param {RetrieveShippingLabelRequest} body
256
+ * @param {string} shipmentId Shipment Id to retreive label
257
+ * @param {string} trackingId Tracking Id
258
+ * @param {RetrieveShippingLabelRequest} body RetrieveShippingLabelRequest body
259
259
  * @param {*} [options] Override http request option.
260
260
  * @throws {RequiredError}
261
261
  */
@@ -299,7 +299,7 @@ export const ShippingApiFp = function (configuration) {
299
299
  return {
300
300
  /**
301
301
  * Cancel a shipment by the given shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
302
- * @param {string} shipmentId
302
+ * @param {string} shipmentId Shipment Id to cancel a shipment
303
303
  * @param {*} [options] Override http request option.
304
304
  * @throws {RequiredError}
305
305
  */
@@ -311,7 +311,7 @@ export const ShippingApiFp = function (configuration) {
311
311
  },
312
312
  /**
313
313
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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).
314
- * @param {CreateShipmentRequest} body
314
+ * @param {CreateShipmentRequest} body CreateShipmentRequest Body
315
315
  * @param {*} [options] Override http request option.
316
316
  * @throws {RequiredError}
317
317
  */
@@ -334,7 +334,7 @@ export const ShippingApiFp = function (configuration) {
334
334
  },
335
335
  /**
336
336
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
337
- * @param {GetRatesRequest} body
337
+ * @param {GetRatesRequest} body GetRatesRequest body
338
338
  * @param {*} [options] Override http request option.
339
339
  * @throws {RequiredError}
340
340
  */
@@ -346,7 +346,7 @@ export const ShippingApiFp = function (configuration) {
346
346
  },
347
347
  /**
348
348
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
349
- * @param {string} shipmentId
349
+ * @param {string} shipmentId Shipment id to return the entire shipment object
350
350
  * @param {*} [options] Override http request option.
351
351
  * @throws {RequiredError}
352
352
  */
@@ -358,7 +358,7 @@ export const ShippingApiFp = function (configuration) {
358
358
  },
359
359
  /**
360
360
  * Return the tracking information of a 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.
361
- * @param {string} trackingId
361
+ * @param {string} trackingId Tracking Id
362
362
  * @param {*} [options] Override http request option.
363
363
  * @throws {RequiredError}
364
364
  */
@@ -370,8 +370,8 @@ export const ShippingApiFp = function (configuration) {
370
370
  },
371
371
  /**
372
372
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
373
- * @param {string} shipmentId
374
- * @param {PurchaseLabelsRequest} body
373
+ * @param {string} shipmentId Shipment id for purchase shipping label
374
+ * @param {PurchaseLabelsRequest} body PurchaseShippingLabelRequest body
375
375
  * @param {*} [options] Override http request option.
376
376
  * @throws {RequiredError}
377
377
  */
@@ -383,7 +383,7 @@ export const ShippingApiFp = function (configuration) {
383
383
  },
384
384
  /**
385
385
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
386
- * @param {PurchaseShipmentRequest} body
386
+ * @param {PurchaseShipmentRequest} body PurchaseShipmentRequest body
387
387
  * @param {*} [options] Override http request option.
388
388
  * @throws {RequiredError}
389
389
  */
@@ -395,9 +395,9 @@ export const ShippingApiFp = function (configuration) {
395
395
  },
396
396
  /**
397
397
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
398
- * @param {string} shipmentId
399
- * @param {string} trackingId
400
- * @param {RetrieveShippingLabelRequest} body
398
+ * @param {string} shipmentId Shipment Id to retreive label
399
+ * @param {string} trackingId Tracking Id
400
+ * @param {RetrieveShippingLabelRequest} body RetrieveShippingLabelRequest body
401
401
  * @param {*} [options] Override http request option.
402
402
  * @throws {RequiredError}
403
403
  */
@@ -76,11 +76,10 @@ export class Configuration {
76
76
  this.basePath = param.basePath;
77
77
  this.serverIndex = param.serverIndex;
78
78
  this.baseOptions = {
79
+ ...param.baseOptions,
79
80
  headers: {
80
81
  ...param.baseOptions?.headers,
81
- 'User-Agent': "OpenAPI-Generator/typescript-axios"
82
82
  },
83
- ...param.baseOptions
84
83
  };
85
84
  this.formDataCtor = param.formDataCtor;
86
85
  }
@@ -34,14 +34,14 @@ import type { RetrieveShippingLabelResponse } from '../models';
34
34
  export declare const ShippingApiAxiosParamCreator: (configuration?: Configuration) => {
35
35
  /**
36
36
  * Cancel a shipment by the given shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
37
- * @param {string} shipmentId
37
+ * @param {string} shipmentId Shipment Id to cancel a shipment
38
38
  * @param {*} [options] Override http request option.
39
39
  * @throws {RequiredError}
40
40
  */
41
41
  cancelShipment: (shipmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
42
42
  /**
43
43
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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).
44
- * @param {CreateShipmentRequest} body
44
+ * @param {CreateShipmentRequest} body CreateShipmentRequest Body
45
45
  * @param {*} [options] Override http request option.
46
46
  * @throws {RequiredError}
47
47
  */
@@ -54,45 +54,45 @@ export declare const ShippingApiAxiosParamCreator: (configuration?: Configuratio
54
54
  getAccount: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
55
55
  /**
56
56
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
57
- * @param {GetRatesRequest} body
57
+ * @param {GetRatesRequest} body GetRatesRequest body
58
58
  * @param {*} [options] Override http request option.
59
59
  * @throws {RequiredError}
60
60
  */
61
61
  getRates: (body: GetRatesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
62
62
  /**
63
63
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
64
- * @param {string} shipmentId
64
+ * @param {string} shipmentId Shipment id to return the entire shipment object
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
67
67
  */
68
68
  getShipment: (shipmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
69
69
  /**
70
70
  * Return the tracking information of a 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.
71
- * @param {string} trackingId
71
+ * @param {string} trackingId Tracking Id
72
72
  * @param {*} [options] Override http request option.
73
73
  * @throws {RequiredError}
74
74
  */
75
75
  getTrackingInformation: (trackingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
76
76
  /**
77
77
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
78
- * @param {string} shipmentId
79
- * @param {PurchaseLabelsRequest} body
78
+ * @param {string} shipmentId Shipment id for purchase shipping label
79
+ * @param {PurchaseLabelsRequest} body PurchaseShippingLabelRequest body
80
80
  * @param {*} [options] Override http request option.
81
81
  * @throws {RequiredError}
82
82
  */
83
83
  purchaseLabels: (shipmentId: string, body: PurchaseLabelsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
84
84
  /**
85
85
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
86
- * @param {PurchaseShipmentRequest} body
86
+ * @param {PurchaseShipmentRequest} body PurchaseShipmentRequest body
87
87
  * @param {*} [options] Override http request option.
88
88
  * @throws {RequiredError}
89
89
  */
90
90
  purchaseShipment: (body: PurchaseShipmentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
91
91
  /**
92
92
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
93
- * @param {string} shipmentId
94
- * @param {string} trackingId
95
- * @param {RetrieveShippingLabelRequest} body
93
+ * @param {string} shipmentId Shipment Id to retreive label
94
+ * @param {string} trackingId Tracking Id
95
+ * @param {RetrieveShippingLabelRequest} body RetrieveShippingLabelRequest body
96
96
  * @param {*} [options] Override http request option.
97
97
  * @throws {RequiredError}
98
98
  */
@@ -105,14 +105,14 @@ export declare const ShippingApiAxiosParamCreator: (configuration?: Configuratio
105
105
  export declare const ShippingApiFp: (configuration?: Configuration) => {
106
106
  /**
107
107
  * Cancel a shipment by the given shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
108
- * @param {string} shipmentId
108
+ * @param {string} shipmentId Shipment Id to cancel a shipment
109
109
  * @param {*} [options] Override http request option.
110
110
  * @throws {RequiredError}
111
111
  */
112
112
  cancelShipment(shipmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelShipmentResponse>>;
113
113
  /**
114
114
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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).
115
- * @param {CreateShipmentRequest} body
115
+ * @param {CreateShipmentRequest} body CreateShipmentRequest Body
116
116
  * @param {*} [options] Override http request option.
117
117
  * @throws {RequiredError}
118
118
  */
@@ -125,45 +125,45 @@ export declare const ShippingApiFp: (configuration?: Configuration) => {
125
125
  getAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponse>>;
126
126
  /**
127
127
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
128
- * @param {GetRatesRequest} body
128
+ * @param {GetRatesRequest} body GetRatesRequest body
129
129
  * @param {*} [options] Override http request option.
130
130
  * @throws {RequiredError}
131
131
  */
132
132
  getRates(body: GetRatesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRatesResponse>>;
133
133
  /**
134
134
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
135
- * @param {string} shipmentId
135
+ * @param {string} shipmentId Shipment id to return the entire shipment object
136
136
  * @param {*} [options] Override http request option.
137
137
  * @throws {RequiredError}
138
138
  */
139
139
  getShipment(shipmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetShipmentResponse>>;
140
140
  /**
141
141
  * Return the tracking information of a 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.
142
- * @param {string} trackingId
142
+ * @param {string} trackingId Tracking Id
143
143
  * @param {*} [options] Override http request option.
144
144
  * @throws {RequiredError}
145
145
  */
146
146
  getTrackingInformation(trackingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTrackingInformationResponse>>;
147
147
  /**
148
148
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
149
- * @param {string} shipmentId
150
- * @param {PurchaseLabelsRequest} body
149
+ * @param {string} shipmentId Shipment id for purchase shipping label
150
+ * @param {PurchaseLabelsRequest} body PurchaseShippingLabelRequest body
151
151
  * @param {*} [options] Override http request option.
152
152
  * @throws {RequiredError}
153
153
  */
154
154
  purchaseLabels(shipmentId: string, body: PurchaseLabelsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PurchaseLabelsResponse>>;
155
155
  /**
156
156
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
157
- * @param {PurchaseShipmentRequest} body
157
+ * @param {PurchaseShipmentRequest} body PurchaseShipmentRequest body
158
158
  * @param {*} [options] Override http request option.
159
159
  * @throws {RequiredError}
160
160
  */
161
161
  purchaseShipment(body: PurchaseShipmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PurchaseShipmentResponse>>;
162
162
  /**
163
163
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
164
- * @param {string} shipmentId
165
- * @param {string} trackingId
166
- * @param {RetrieveShippingLabelRequest} body
164
+ * @param {string} shipmentId Shipment Id to retreive label
165
+ * @param {string} trackingId Tracking Id
166
+ * @param {RetrieveShippingLabelRequest} body RetrieveShippingLabelRequest body
167
167
  * @param {*} [options] Override http request option.
168
168
  * @throws {RequiredError}
169
169
  */
@@ -244,7 +244,7 @@ export declare const ShippingApiFactory: (configuration?: Configuration, basePat
244
244
  */
245
245
  export interface ShippingApiCancelShipmentRequest {
246
246
  /**
247
- *
247
+ * Shipment Id to cancel a shipment
248
248
  * @type {string}
249
249
  * @memberof ShippingApiCancelShipment
250
250
  */
@@ -257,7 +257,7 @@ export interface ShippingApiCancelShipmentRequest {
257
257
  */
258
258
  export interface ShippingApiCreateShipmentRequest {
259
259
  /**
260
- *
260
+ * CreateShipmentRequest Body
261
261
  * @type {CreateShipmentRequest}
262
262
  * @memberof ShippingApiCreateShipment
263
263
  */
@@ -270,7 +270,7 @@ export interface ShippingApiCreateShipmentRequest {
270
270
  */
271
271
  export interface ShippingApiGetRatesRequest {
272
272
  /**
273
- *
273
+ * GetRatesRequest body
274
274
  * @type {GetRatesRequest}
275
275
  * @memberof ShippingApiGetRates
276
276
  */
@@ -283,7 +283,7 @@ export interface ShippingApiGetRatesRequest {
283
283
  */
284
284
  export interface ShippingApiGetShipmentRequest {
285
285
  /**
286
- *
286
+ * Shipment id to return the entire shipment object
287
287
  * @type {string}
288
288
  * @memberof ShippingApiGetShipment
289
289
  */
@@ -296,7 +296,7 @@ export interface ShippingApiGetShipmentRequest {
296
296
  */
297
297
  export interface ShippingApiGetTrackingInformationRequest {
298
298
  /**
299
- *
299
+ * Tracking Id
300
300
  * @type {string}
301
301
  * @memberof ShippingApiGetTrackingInformation
302
302
  */
@@ -309,13 +309,13 @@ export interface ShippingApiGetTrackingInformationRequest {
309
309
  */
310
310
  export interface ShippingApiPurchaseLabelsRequest {
311
311
  /**
312
- *
312
+ * Shipment id for purchase shipping label
313
313
  * @type {string}
314
314
  * @memberof ShippingApiPurchaseLabels
315
315
  */
316
316
  readonly shipmentId: string;
317
317
  /**
318
- *
318
+ * PurchaseShippingLabelRequest body
319
319
  * @type {PurchaseLabelsRequest}
320
320
  * @memberof ShippingApiPurchaseLabels
321
321
  */
@@ -328,7 +328,7 @@ export interface ShippingApiPurchaseLabelsRequest {
328
328
  */
329
329
  export interface ShippingApiPurchaseShipmentRequest {
330
330
  /**
331
- *
331
+ * PurchaseShipmentRequest body
332
332
  * @type {PurchaseShipmentRequest}
333
333
  * @memberof ShippingApiPurchaseShipment
334
334
  */
@@ -341,19 +341,19 @@ export interface ShippingApiPurchaseShipmentRequest {
341
341
  */
342
342
  export interface ShippingApiRetrieveShippingLabelRequest {
343
343
  /**
344
- *
344
+ * Shipment Id to retreive label
345
345
  * @type {string}
346
346
  * @memberof ShippingApiRetrieveShippingLabel
347
347
  */
348
348
  readonly shipmentId: string;
349
349
  /**
350
- *
350
+ * Tracking Id
351
351
  * @type {string}
352
352
  * @memberof ShippingApiRetrieveShippingLabel
353
353
  */
354
354
  readonly trackingId: string;
355
355
  /**
356
- *
356
+ * RetrieveShippingLabelRequest body
357
357
  * @type {RetrieveShippingLabelRequest}
358
358
  * @memberof ShippingApiRetrieveShippingLabel
359
359
  */
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -16,13 +16,13 @@
16
16
  */
17
17
  export interface ModelError {
18
18
  /**
19
- * An error code that identifies the type of error that occured.
19
+ * An error code that identifies the type of error that occurred.
20
20
  * @type {string}
21
21
  * @memberof ModelError
22
22
  */
23
23
  'code': string;
24
24
  /**
25
- * A message that describes the error condition in a human-readable form.
25
+ * A message that describes the error condition.
26
26
  * @type {string}
27
27
  * @memberof ModelError
28
28
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/shipping-api-v1",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "Provides programmatic access to Amazon Shipping APIs. Note: If you are new to the Amazon Shipping API, refer to the latest version of Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site.",
5
- "version": "3.0.1",
5
+ "version": "3.1.0",
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.1.10",
22
- "axios": "^1.7.9"
21
+ "@sp-api-sdk/common": "2.1.11",
22
+ "axios": "^1.8.1"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "shipping api"
42
42
  ],
43
- "gitHead": "4098c9f3375b3b56212baa3bf21c18dd987baab2"
43
+ "gitHead": "b5799742765e819f70161d2ac1905d8e570de8c0"
44
44
  }