@sp-api-sdk/shipping-api-v2 2.1.10 → 2.1.13
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.
|
@@ -49,6 +49,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
49
49
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
50
50
|
const localVarHeaderParameter = {};
|
|
51
51
|
const localVarQueryParameter = {};
|
|
52
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
52
53
|
if (xAmznShippingBusinessId != null) {
|
|
53
54
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
54
55
|
}
|
|
@@ -81,6 +82,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
81
82
|
const localVarHeaderParameter = {};
|
|
82
83
|
const localVarQueryParameter = {};
|
|
83
84
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
85
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
84
86
|
if (xAmznShippingBusinessId != null) {
|
|
85
87
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
86
88
|
}
|
|
@@ -116,6 +118,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
116
118
|
const localVarHeaderParameter = {};
|
|
117
119
|
const localVarQueryParameter = {};
|
|
118
120
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
121
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
119
122
|
if (xAmznIdempotencyKey != null) {
|
|
120
123
|
localVarHeaderParameter['x-amzn-IdempotencyKey'] = String(xAmznIdempotencyKey);
|
|
121
124
|
}
|
|
@@ -156,6 +159,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
156
159
|
const localVarHeaderParameter = {};
|
|
157
160
|
const localVarQueryParameter = {};
|
|
158
161
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
162
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
159
163
|
if (xAmznIdempotencyKey != null) {
|
|
160
164
|
localVarHeaderParameter['x-amzn-IdempotencyKey'] = String(xAmznIdempotencyKey);
|
|
161
165
|
}
|
|
@@ -206,6 +210,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
206
210
|
if (postalCode !== undefined) {
|
|
207
211
|
localVarQueryParameter['postalCode'] = postalCode;
|
|
208
212
|
}
|
|
213
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
209
214
|
if (xAmznShippingBusinessId != null) {
|
|
210
215
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
211
216
|
}
|
|
@@ -246,6 +251,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
246
251
|
if (rateId !== undefined) {
|
|
247
252
|
localVarQueryParameter['rateId'] = rateId;
|
|
248
253
|
}
|
|
254
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
249
255
|
if (xAmznShippingBusinessId != null) {
|
|
250
256
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
251
257
|
}
|
|
@@ -274,6 +280,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
274
280
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
275
281
|
const localVarHeaderParameter = {};
|
|
276
282
|
const localVarQueryParameter = {};
|
|
283
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
277
284
|
if (xAmznShippingBusinessId != null) {
|
|
278
285
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
279
286
|
}
|
|
@@ -306,6 +313,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
306
313
|
const localVarHeaderParameter = {};
|
|
307
314
|
const localVarQueryParameter = {};
|
|
308
315
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
316
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
309
317
|
if (xAmznShippingBusinessId != null) {
|
|
310
318
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
311
319
|
}
|
|
@@ -339,6 +347,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
339
347
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
340
348
|
const localVarHeaderParameter = {};
|
|
341
349
|
const localVarQueryParameter = {};
|
|
350
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
342
351
|
if (xAmznShippingBusinessId != null) {
|
|
343
352
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
344
353
|
}
|
|
@@ -371,6 +380,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
371
380
|
const localVarHeaderParameter = {};
|
|
372
381
|
const localVarQueryParameter = {};
|
|
373
382
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
383
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
374
384
|
if (xAmznShippingBusinessId != null) {
|
|
375
385
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
376
386
|
}
|
|
@@ -404,6 +414,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
404
414
|
const localVarHeaderParameter = {};
|
|
405
415
|
const localVarQueryParameter = {};
|
|
406
416
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
417
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
407
418
|
if (xAmznShippingBusinessId != null) {
|
|
408
419
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
409
420
|
}
|
|
@@ -451,6 +462,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
451
462
|
if (dpi !== undefined) {
|
|
452
463
|
localVarQueryParameter['dpi'] = dpi;
|
|
453
464
|
}
|
|
465
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
454
466
|
if (xAmznShippingBusinessId != null) {
|
|
455
467
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
456
468
|
}
|
|
@@ -491,6 +503,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
491
503
|
if (carrierId !== undefined) {
|
|
492
504
|
localVarQueryParameter['carrierId'] = carrierId;
|
|
493
505
|
}
|
|
506
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
494
507
|
if (xAmznShippingBusinessId != null) {
|
|
495
508
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
496
509
|
}
|
|
@@ -523,6 +536,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
523
536
|
const localVarHeaderParameter = {};
|
|
524
537
|
const localVarQueryParameter = {};
|
|
525
538
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
539
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
526
540
|
if (xAmznShippingBusinessId != null) {
|
|
527
541
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
528
542
|
}
|
|
@@ -560,6 +574,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
560
574
|
const localVarHeaderParameter = {};
|
|
561
575
|
const localVarQueryParameter = {};
|
|
562
576
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
577
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
563
578
|
if (xAmznShippingBusinessId != null) {
|
|
564
579
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
565
580
|
}
|
|
@@ -597,6 +612,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
597
612
|
const localVarHeaderParameter = {};
|
|
598
613
|
const localVarQueryParameter = {};
|
|
599
614
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
615
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
600
616
|
if (xAmznShippingBusinessId != null) {
|
|
601
617
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
602
618
|
}
|
|
@@ -630,6 +646,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
630
646
|
const localVarHeaderParameter = {};
|
|
631
647
|
const localVarQueryParameter = {};
|
|
632
648
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
649
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
633
650
|
if (xAmznShippingBusinessId != null) {
|
|
634
651
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
635
652
|
}
|
|
@@ -664,6 +681,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
664
681
|
const localVarHeaderParameter = {};
|
|
665
682
|
const localVarQueryParameter = {};
|
|
666
683
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
684
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
667
685
|
if (xAmznIdempotencyKey != null) {
|
|
668
686
|
localVarHeaderParameter['x-amzn-IdempotencyKey'] = String(xAmznIdempotencyKey);
|
|
669
687
|
}
|
|
@@ -700,6 +718,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
700
718
|
const localVarHeaderParameter = {};
|
|
701
719
|
const localVarQueryParameter = {};
|
|
702
720
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
721
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
703
722
|
if (xAmznShippingBusinessId != null) {
|
|
704
723
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
705
724
|
}
|
|
@@ -737,6 +756,7 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
737
756
|
const localVarHeaderParameter = {};
|
|
738
757
|
const localVarQueryParameter = {};
|
|
739
758
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
759
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
740
760
|
if (xAmznShippingBusinessId != null) {
|
|
741
761
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
742
762
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
3
|
/**
|
|
5
4
|
* Amazon Shipping API
|
|
6
5
|
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
@@ -34,6 +33,17 @@ class Configuration {
|
|
|
34
33
|
* @param scopes oauth2 scope
|
|
35
34
|
*/
|
|
36
35
|
accessToken;
|
|
36
|
+
/**
|
|
37
|
+
* parameter for aws4 signature security
|
|
38
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
39
|
+
* @param {string} options.region - aws region
|
|
40
|
+
* @param {string} options.service - name of the service.
|
|
41
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
42
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
43
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
44
|
+
* @memberof Configuration
|
|
45
|
+
*/
|
|
46
|
+
awsv4;
|
|
37
47
|
/**
|
|
38
48
|
* override base path
|
|
39
49
|
*/
|
|
@@ -59,6 +69,7 @@ class Configuration {
|
|
|
59
69
|
this.username = param.username;
|
|
60
70
|
this.password = param.password;
|
|
61
71
|
this.accessToken = param.accessToken;
|
|
72
|
+
this.awsv4 = param.awsv4;
|
|
62
73
|
this.basePath = param.basePath;
|
|
63
74
|
this.serverIndex = param.serverIndex;
|
|
64
75
|
this.baseOptions = {
|
|
@@ -43,6 +43,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
43
43
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
44
44
|
const localVarHeaderParameter = {};
|
|
45
45
|
const localVarQueryParameter = {};
|
|
46
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
46
47
|
if (xAmznShippingBusinessId != null) {
|
|
47
48
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
48
49
|
}
|
|
@@ -75,6 +76,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
75
76
|
const localVarHeaderParameter = {};
|
|
76
77
|
const localVarQueryParameter = {};
|
|
77
78
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
79
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
78
80
|
if (xAmznShippingBusinessId != null) {
|
|
79
81
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
80
82
|
}
|
|
@@ -110,6 +112,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
110
112
|
const localVarHeaderParameter = {};
|
|
111
113
|
const localVarQueryParameter = {};
|
|
112
114
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
115
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
113
116
|
if (xAmznIdempotencyKey != null) {
|
|
114
117
|
localVarHeaderParameter['x-amzn-IdempotencyKey'] = String(xAmznIdempotencyKey);
|
|
115
118
|
}
|
|
@@ -150,6 +153,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
150
153
|
const localVarHeaderParameter = {};
|
|
151
154
|
const localVarQueryParameter = {};
|
|
152
155
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
156
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
153
157
|
if (xAmznIdempotencyKey != null) {
|
|
154
158
|
localVarHeaderParameter['x-amzn-IdempotencyKey'] = String(xAmznIdempotencyKey);
|
|
155
159
|
}
|
|
@@ -200,6 +204,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
200
204
|
if (postalCode !== undefined) {
|
|
201
205
|
localVarQueryParameter['postalCode'] = postalCode;
|
|
202
206
|
}
|
|
207
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
203
208
|
if (xAmznShippingBusinessId != null) {
|
|
204
209
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
205
210
|
}
|
|
@@ -240,6 +245,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
240
245
|
if (rateId !== undefined) {
|
|
241
246
|
localVarQueryParameter['rateId'] = rateId;
|
|
242
247
|
}
|
|
248
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
243
249
|
if (xAmznShippingBusinessId != null) {
|
|
244
250
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
245
251
|
}
|
|
@@ -268,6 +274,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
268
274
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
269
275
|
const localVarHeaderParameter = {};
|
|
270
276
|
const localVarQueryParameter = {};
|
|
277
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
271
278
|
if (xAmznShippingBusinessId != null) {
|
|
272
279
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
273
280
|
}
|
|
@@ -300,6 +307,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
300
307
|
const localVarHeaderParameter = {};
|
|
301
308
|
const localVarQueryParameter = {};
|
|
302
309
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
310
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
303
311
|
if (xAmznShippingBusinessId != null) {
|
|
304
312
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
305
313
|
}
|
|
@@ -333,6 +341,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
333
341
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
334
342
|
const localVarHeaderParameter = {};
|
|
335
343
|
const localVarQueryParameter = {};
|
|
344
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
336
345
|
if (xAmznShippingBusinessId != null) {
|
|
337
346
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
338
347
|
}
|
|
@@ -365,6 +374,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
365
374
|
const localVarHeaderParameter = {};
|
|
366
375
|
const localVarQueryParameter = {};
|
|
367
376
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
377
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
368
378
|
if (xAmznShippingBusinessId != null) {
|
|
369
379
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
370
380
|
}
|
|
@@ -398,6 +408,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
398
408
|
const localVarHeaderParameter = {};
|
|
399
409
|
const localVarQueryParameter = {};
|
|
400
410
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
411
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
401
412
|
if (xAmznShippingBusinessId != null) {
|
|
402
413
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
403
414
|
}
|
|
@@ -445,6 +456,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
445
456
|
if (dpi !== undefined) {
|
|
446
457
|
localVarQueryParameter['dpi'] = dpi;
|
|
447
458
|
}
|
|
459
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
448
460
|
if (xAmznShippingBusinessId != null) {
|
|
449
461
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
450
462
|
}
|
|
@@ -485,6 +497,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
485
497
|
if (carrierId !== undefined) {
|
|
486
498
|
localVarQueryParameter['carrierId'] = carrierId;
|
|
487
499
|
}
|
|
500
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
488
501
|
if (xAmznShippingBusinessId != null) {
|
|
489
502
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
490
503
|
}
|
|
@@ -517,6 +530,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
517
530
|
const localVarHeaderParameter = {};
|
|
518
531
|
const localVarQueryParameter = {};
|
|
519
532
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
533
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
520
534
|
if (xAmznShippingBusinessId != null) {
|
|
521
535
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
522
536
|
}
|
|
@@ -554,6 +568,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
554
568
|
const localVarHeaderParameter = {};
|
|
555
569
|
const localVarQueryParameter = {};
|
|
556
570
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
571
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
557
572
|
if (xAmznShippingBusinessId != null) {
|
|
558
573
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
559
574
|
}
|
|
@@ -591,6 +606,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
591
606
|
const localVarHeaderParameter = {};
|
|
592
607
|
const localVarQueryParameter = {};
|
|
593
608
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
609
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
594
610
|
if (xAmznShippingBusinessId != null) {
|
|
595
611
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
596
612
|
}
|
|
@@ -624,6 +640,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
624
640
|
const localVarHeaderParameter = {};
|
|
625
641
|
const localVarQueryParameter = {};
|
|
626
642
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
643
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
627
644
|
if (xAmznShippingBusinessId != null) {
|
|
628
645
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
629
646
|
}
|
|
@@ -658,6 +675,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
658
675
|
const localVarHeaderParameter = {};
|
|
659
676
|
const localVarQueryParameter = {};
|
|
660
677
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
678
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
661
679
|
if (xAmznIdempotencyKey != null) {
|
|
662
680
|
localVarHeaderParameter['x-amzn-IdempotencyKey'] = String(xAmznIdempotencyKey);
|
|
663
681
|
}
|
|
@@ -694,6 +712,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
694
712
|
const localVarHeaderParameter = {};
|
|
695
713
|
const localVarQueryParameter = {};
|
|
696
714
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
715
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
697
716
|
if (xAmznShippingBusinessId != null) {
|
|
698
717
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
699
718
|
}
|
|
@@ -731,6 +750,7 @@ export const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
731
750
|
const localVarHeaderParameter = {};
|
|
732
751
|
const localVarQueryParameter = {};
|
|
733
752
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
753
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
734
754
|
if (xAmznShippingBusinessId != null) {
|
|
735
755
|
localVarHeaderParameter['x-amzn-shipping-business-id'] = String(xAmznShippingBusinessId);
|
|
736
756
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Amazon Shipping API
|
|
5
4
|
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
@@ -31,6 +30,17 @@ export class Configuration {
|
|
|
31
30
|
* @param scopes oauth2 scope
|
|
32
31
|
*/
|
|
33
32
|
accessToken;
|
|
33
|
+
/**
|
|
34
|
+
* parameter for aws4 signature security
|
|
35
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
36
|
+
* @param {string} options.region - aws region
|
|
37
|
+
* @param {string} options.service - name of the service.
|
|
38
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
39
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
40
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
41
|
+
* @memberof Configuration
|
|
42
|
+
*/
|
|
43
|
+
awsv4;
|
|
34
44
|
/**
|
|
35
45
|
* override base path
|
|
36
46
|
*/
|
|
@@ -56,6 +66,7 @@ export class Configuration {
|
|
|
56
66
|
this.username = param.username;
|
|
57
67
|
this.password = param.password;
|
|
58
68
|
this.accessToken = param.accessToken;
|
|
69
|
+
this.awsv4 = param.awsv4;
|
|
59
70
|
this.basePath = param.basePath;
|
|
60
71
|
this.serverIndex = param.serverIndex;
|
|
61
72
|
this.baseOptions = {
|
|
@@ -9,11 +9,23 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
12
23
|
export interface ConfigurationParameters {
|
|
13
24
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
25
|
username?: string;
|
|
15
26
|
password?: string;
|
|
16
27
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
17
29
|
basePath?: string;
|
|
18
30
|
serverIndex?: number;
|
|
19
31
|
baseOptions?: any;
|
|
@@ -39,6 +51,17 @@ export declare class Configuration {
|
|
|
39
51
|
* @param scopes oauth2 scope
|
|
40
52
|
*/
|
|
41
53
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
|
+
/**
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
62
|
+
* @memberof Configuration
|
|
63
|
+
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
42
65
|
/**
|
|
43
66
|
* override base path
|
|
44
67
|
*/
|
|
@@ -72,3 +95,4 @@ export declare class Configuration {
|
|
|
72
95
|
*/
|
|
73
96
|
isJsonMime(mime: string): boolean;
|
|
74
97
|
}
|
|
98
|
+
export {};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/shipping-api-v2",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.",
|
|
5
|
-
"version": "2.1.
|
|
5
|
+
"version": "2.1.13",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.24",
|
|
22
22
|
"axios": "^1.13.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"shipping api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b3fe13460a11917282a12b5bdbcfaf565b9b773e"
|
|
44
44
|
}
|