@sp-api-sdk/amazon-warehousing-and-distribution-api-2024-05-09 5.1.0 → 5.2.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.
- package/README.md +4 -5
- package/dist/index.cjs +2265 -1928
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1821 -2220
- package/dist/index.d.ts +1821 -2220
- package/dist/index.js +2207 -1857
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/dist/index.js
CHANGED
|
@@ -1,1912 +1,2262 @@
|
|
|
1
|
-
// src/client.ts
|
|
2
1
|
import { createAxiosInstance } from "@sp-api-sdk/common";
|
|
3
|
-
|
|
4
|
-
// src/api-model/api/amazon-warehousing-and-distribution-api.ts
|
|
5
|
-
import globalAxios2 from "axios";
|
|
6
|
-
|
|
7
|
-
// src/api-model/base.ts
|
|
8
2
|
import globalAxios from "axios";
|
|
9
|
-
|
|
3
|
+
//#region src/api-model/base.ts
|
|
4
|
+
const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
10
5
|
var BaseAPI = class {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
basePath;
|
|
7
|
+
axios;
|
|
8
|
+
configuration;
|
|
9
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
10
|
+
this.basePath = basePath;
|
|
11
|
+
this.axios = axios;
|
|
12
|
+
if (configuration) {
|
|
13
|
+
this.configuration = configuration;
|
|
14
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
22
17
|
};
|
|
23
18
|
var RequiredError = class extends Error {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
field;
|
|
20
|
+
constructor(field, msg) {
|
|
21
|
+
super(msg);
|
|
22
|
+
this.field = field;
|
|
23
|
+
this.name = "RequiredError";
|
|
24
|
+
}
|
|
30
25
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
const operationServerMap = {};
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/api-model/common.ts
|
|
29
|
+
const DUMMY_BASE_URL = "https://example.com";
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
*/
|
|
34
|
+
const assertParamExists = function(functionName, paramName, paramValue) {
|
|
35
|
+
if (paramValue === null || paramValue === void 0) throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
39
36
|
};
|
|
40
37
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Object.keys(parameter).forEach(
|
|
47
|
-
(currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
} else {
|
|
51
|
-
if (urlSearchParams.has(key)) {
|
|
52
|
-
urlSearchParams.append(key, parameter);
|
|
53
|
-
} else {
|
|
54
|
-
urlSearchParams.set(key, parameter);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
38
|
+
if (parameter == null) return;
|
|
39
|
+
if (typeof parameter === "object") if (Array.isArray(parameter) || parameter instanceof Set) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
40
|
+
else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
|
|
41
|
+
else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
|
|
42
|
+
else urlSearchParams.set(key, parameter);
|
|
57
43
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
44
|
+
const setSearchParams = function(url, ...objects) {
|
|
45
|
+
const searchParams = new URLSearchParams(url.search);
|
|
46
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
47
|
+
url.search = searchParams.toString();
|
|
62
48
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
49
|
+
/**
|
|
50
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
51
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
52
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
53
|
+
*/
|
|
54
|
+
const replaceWithSerializableTypeIfNeeded = function(key, value) {
|
|
55
|
+
if (value instanceof Set) return Array.from(value);
|
|
56
|
+
else return value;
|
|
69
57
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
58
|
+
const serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
59
|
+
const nonString = typeof value !== "string";
|
|
60
|
+
return (nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString) ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
74
61
|
};
|
|
75
|
-
|
|
76
|
-
|
|
62
|
+
const toPathString = function(url) {
|
|
63
|
+
return url.pathname + url.search + url.hash;
|
|
77
64
|
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
65
|
+
const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
66
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
67
|
+
const axiosRequestArgs = {
|
|
68
|
+
...axiosArgs.options,
|
|
69
|
+
url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url
|
|
70
|
+
};
|
|
71
|
+
return axios.request(axiosRequestArgs);
|
|
72
|
+
};
|
|
83
73
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/api-model/api/amazon-warehousing-and-distribution-api.ts
|
|
76
|
+
/**
|
|
77
|
+
* AmazonWarehousingAndDistributionApi - axios parameter creator
|
|
78
|
+
*/
|
|
79
|
+
const AmazonWarehousingAndDistributionApiAxiosParamCreator = function(configuration) {
|
|
80
|
+
return {
|
|
81
|
+
/**
|
|
82
|
+
* Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
83
|
+
* @param {string} orderId The ID of the inbound order you want to cancel.
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
cancelInbound: async (orderId, options = {}) => {
|
|
88
|
+
assertParamExists("cancelInbound", "orderId", orderId);
|
|
89
|
+
const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}/cancellation`.replace("{orderId}", encodeURIComponent(String(orderId)));
|
|
90
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
91
|
+
let baseOptions;
|
|
92
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
93
|
+
const localVarRequestOptions = {
|
|
94
|
+
method: "POST",
|
|
95
|
+
...baseOptions,
|
|
96
|
+
...options
|
|
97
|
+
};
|
|
98
|
+
const localVarHeaderParameter = {};
|
|
99
|
+
const localVarQueryParameter = {};
|
|
100
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
101
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
103
|
+
localVarRequestOptions.headers = {
|
|
104
|
+
...localVarHeaderParameter,
|
|
105
|
+
...headersFromBaseOptions,
|
|
106
|
+
...options.headers
|
|
107
|
+
};
|
|
108
|
+
return {
|
|
109
|
+
url: toPathString(localVarUrlObj),
|
|
110
|
+
options: localVarRequestOptions
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
/**
|
|
114
|
+
* Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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 {InboundPackages} body Represents the packages you want to inbound.
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
checkInboundEligibility: async (body, options = {}) => {
|
|
120
|
+
assertParamExists("checkInboundEligibility", "body", body);
|
|
121
|
+
const localVarUrlObj = new URL(`/awd/2024-05-09/inboundEligibility`, DUMMY_BASE_URL);
|
|
122
|
+
let baseOptions;
|
|
123
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
124
|
+
const localVarRequestOptions = {
|
|
125
|
+
method: "POST",
|
|
126
|
+
...baseOptions,
|
|
127
|
+
...options
|
|
128
|
+
};
|
|
129
|
+
const localVarHeaderParameter = {};
|
|
130
|
+
const localVarQueryParameter = {};
|
|
131
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
132
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
133
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
+
localVarRequestOptions.headers = {
|
|
136
|
+
...localVarHeaderParameter,
|
|
137
|
+
...headersFromBaseOptions,
|
|
138
|
+
...options.headers
|
|
139
|
+
};
|
|
140
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
141
|
+
return {
|
|
142
|
+
url: toPathString(localVarUrlObj),
|
|
143
|
+
options: localVarRequestOptions
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
/**
|
|
147
|
+
* Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
148
|
+
* @param {string} orderId The ID of the inbound order that you want to confirm.
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
confirmInbound: async (orderId, options = {}) => {
|
|
153
|
+
assertParamExists("confirmInbound", "orderId", orderId);
|
|
154
|
+
const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}/confirmation`.replace("{orderId}", encodeURIComponent(String(orderId)));
|
|
155
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
156
|
+
let baseOptions;
|
|
157
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
158
|
+
const localVarRequestOptions = {
|
|
159
|
+
method: "POST",
|
|
160
|
+
...baseOptions,
|
|
161
|
+
...options
|
|
162
|
+
};
|
|
163
|
+
const localVarHeaderParameter = {};
|
|
164
|
+
const localVarQueryParameter = {};
|
|
165
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
166
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
168
|
+
localVarRequestOptions.headers = {
|
|
169
|
+
...localVarHeaderParameter,
|
|
170
|
+
...headersFromBaseOptions,
|
|
171
|
+
...options.headers
|
|
172
|
+
};
|
|
173
|
+
return {
|
|
174
|
+
url: toPathString(localVarUrlObj),
|
|
175
|
+
options: localVarRequestOptions
|
|
176
|
+
};
|
|
177
|
+
},
|
|
178
|
+
/**
|
|
179
|
+
* Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
180
|
+
* @param {string} orderId ID for the outbound order you want to confirm.
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
confirmOutbound: async (orderId, options = {}) => {
|
|
185
|
+
assertParamExists("confirmOutbound", "orderId", orderId);
|
|
186
|
+
const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}/confirmation`.replace("{orderId}", encodeURIComponent(String(orderId)));
|
|
187
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
188
|
+
let baseOptions;
|
|
189
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
190
|
+
const localVarRequestOptions = {
|
|
191
|
+
method: "POST",
|
|
192
|
+
...baseOptions,
|
|
193
|
+
...options
|
|
194
|
+
};
|
|
195
|
+
const localVarHeaderParameter = {};
|
|
196
|
+
const localVarQueryParameter = {};
|
|
197
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
198
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
199
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
|
+
localVarRequestOptions.headers = {
|
|
201
|
+
...localVarHeaderParameter,
|
|
202
|
+
...headersFromBaseOptions,
|
|
203
|
+
...options.headers
|
|
204
|
+
};
|
|
205
|
+
return {
|
|
206
|
+
url: toPathString(localVarUrlObj),
|
|
207
|
+
options: localVarRequestOptions
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
* Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
|
|
212
|
+
* @param {string} orderId ID of the replenishment order to be confirmed.
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
confirmReplenishmentOrder: async (orderId, options = {}) => {
|
|
217
|
+
assertParamExists("confirmReplenishmentOrder", "orderId", orderId);
|
|
218
|
+
const localVarPath = `/awd/2024-05-09/replenishmentOrders/{orderId}/confirmation`.replace("{orderId}", encodeURIComponent(String(orderId)));
|
|
219
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
220
|
+
let baseOptions;
|
|
221
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
222
|
+
const localVarRequestOptions = {
|
|
223
|
+
method: "POST",
|
|
224
|
+
...baseOptions,
|
|
225
|
+
...options
|
|
226
|
+
};
|
|
227
|
+
const localVarHeaderParameter = {};
|
|
228
|
+
const localVarQueryParameter = {};
|
|
229
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
230
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
|
+
localVarRequestOptions.headers = {
|
|
233
|
+
...localVarHeaderParameter,
|
|
234
|
+
...headersFromBaseOptions,
|
|
235
|
+
...options.headers
|
|
236
|
+
};
|
|
237
|
+
return {
|
|
238
|
+
url: toPathString(localVarUrlObj),
|
|
239
|
+
options: localVarRequestOptions
|
|
240
|
+
};
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
* Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
244
|
+
* @param {InboundOrderCreationData} body Payload for creating an inbound order.
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
createInbound: async (body, options = {}) => {
|
|
249
|
+
assertParamExists("createInbound", "body", body);
|
|
250
|
+
const localVarUrlObj = new URL(`/awd/2024-05-09/inboundOrders`, DUMMY_BASE_URL);
|
|
251
|
+
let baseOptions;
|
|
252
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
253
|
+
const localVarRequestOptions = {
|
|
254
|
+
method: "POST",
|
|
255
|
+
...baseOptions,
|
|
256
|
+
...options
|
|
257
|
+
};
|
|
258
|
+
const localVarHeaderParameter = {};
|
|
259
|
+
const localVarQueryParameter = {};
|
|
260
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
261
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
262
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
263
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
264
|
+
localVarRequestOptions.headers = {
|
|
265
|
+
...localVarHeaderParameter,
|
|
266
|
+
...headersFromBaseOptions,
|
|
267
|
+
...options.headers
|
|
268
|
+
};
|
|
269
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
270
|
+
return {
|
|
271
|
+
url: toPathString(localVarUrlObj),
|
|
272
|
+
options: localVarRequestOptions
|
|
273
|
+
};
|
|
274
|
+
},
|
|
275
|
+
/**
|
|
276
|
+
* Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
277
|
+
* @param {OutboundOrderCreationData} body Payload for creating an outbound order.
|
|
278
|
+
* @param {*} [options] Override http request option.
|
|
279
|
+
* @throws {RequiredError}
|
|
280
|
+
*/
|
|
281
|
+
createOutbound: async (body, options = {}) => {
|
|
282
|
+
assertParamExists("createOutbound", "body", body);
|
|
283
|
+
const localVarUrlObj = new URL(`/awd/2024-05-09/outboundOrders`, DUMMY_BASE_URL);
|
|
284
|
+
let baseOptions;
|
|
285
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
286
|
+
const localVarRequestOptions = {
|
|
287
|
+
method: "POST",
|
|
288
|
+
...baseOptions,
|
|
289
|
+
...options
|
|
290
|
+
};
|
|
291
|
+
const localVarHeaderParameter = {};
|
|
292
|
+
const localVarQueryParameter = {};
|
|
293
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
294
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
295
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
296
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
297
|
+
localVarRequestOptions.headers = {
|
|
298
|
+
...localVarHeaderParameter,
|
|
299
|
+
...headersFromBaseOptions,
|
|
300
|
+
...options.headers
|
|
301
|
+
};
|
|
302
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
303
|
+
return {
|
|
304
|
+
url: toPathString(localVarUrlObj),
|
|
305
|
+
options: localVarRequestOptions
|
|
306
|
+
};
|
|
307
|
+
},
|
|
308
|
+
/**
|
|
309
|
+
* Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
|
|
310
|
+
* @param {ReplenishmentOrderCreationData} body Payload for creating a replenishment order.
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
*/
|
|
314
|
+
createReplenishmentOrder: async (body, options = {}) => {
|
|
315
|
+
assertParamExists("createReplenishmentOrder", "body", body);
|
|
316
|
+
const localVarUrlObj = new URL(`/awd/2024-05-09/replenishmentOrders`, DUMMY_BASE_URL);
|
|
317
|
+
let baseOptions;
|
|
318
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
319
|
+
const localVarRequestOptions = {
|
|
320
|
+
method: "POST",
|
|
321
|
+
...baseOptions,
|
|
322
|
+
...options
|
|
323
|
+
};
|
|
324
|
+
const localVarHeaderParameter = {};
|
|
325
|
+
const localVarQueryParameter = {};
|
|
326
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
327
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
330
|
+
localVarRequestOptions.headers = {
|
|
331
|
+
...localVarHeaderParameter,
|
|
332
|
+
...headersFromBaseOptions,
|
|
333
|
+
...options.headers
|
|
334
|
+
};
|
|
335
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
336
|
+
return {
|
|
337
|
+
url: toPathString(localVarUrlObj),
|
|
338
|
+
options: localVarRequestOptions
|
|
339
|
+
};
|
|
340
|
+
},
|
|
341
|
+
/**
|
|
342
|
+
* Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
343
|
+
* @param {string} orderId The ID of the inbound order that you want to retrieve.
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
*/
|
|
347
|
+
getInbound: async (orderId, options = {}) => {
|
|
348
|
+
assertParamExists("getInbound", "orderId", orderId);
|
|
349
|
+
const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
|
|
350
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
351
|
+
let baseOptions;
|
|
352
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
353
|
+
const localVarRequestOptions = {
|
|
354
|
+
method: "GET",
|
|
355
|
+
...baseOptions,
|
|
356
|
+
...options
|
|
357
|
+
};
|
|
358
|
+
const localVarHeaderParameter = {};
|
|
359
|
+
const localVarQueryParameter = {};
|
|
360
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
361
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
362
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
363
|
+
localVarRequestOptions.headers = {
|
|
364
|
+
...localVarHeaderParameter,
|
|
365
|
+
...headersFromBaseOptions,
|
|
366
|
+
...options.headers
|
|
367
|
+
};
|
|
368
|
+
return {
|
|
369
|
+
url: toPathString(localVarUrlObj),
|
|
370
|
+
options: localVarRequestOptions
|
|
371
|
+
};
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
* Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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, refer to [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)
|
|
375
|
+
* @param {string} shipmentId ID for the shipment. A shipment contains the cases being inbounded.
|
|
376
|
+
* @param {GetInboundShipmentSkuQuantitiesEnum} [skuQuantities] If equal to `SHOW`, the response includes the shipment SKU quantity details. Defaults to `HIDE`, in which case the response does not contain SKU quantities
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
getInboundShipment: async (shipmentId, skuQuantities, options = {}) => {
|
|
381
|
+
assertParamExists("getInboundShipment", "shipmentId", shipmentId);
|
|
382
|
+
const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
|
|
383
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
384
|
+
let baseOptions;
|
|
385
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
386
|
+
const localVarRequestOptions = {
|
|
387
|
+
method: "GET",
|
|
388
|
+
...baseOptions,
|
|
389
|
+
...options
|
|
390
|
+
};
|
|
391
|
+
const localVarHeaderParameter = {};
|
|
392
|
+
const localVarQueryParameter = {};
|
|
393
|
+
if (skuQuantities !== void 0) localVarQueryParameter["skuQuantities"] = skuQuantities;
|
|
394
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
395
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
397
|
+
localVarRequestOptions.headers = {
|
|
398
|
+
...localVarHeaderParameter,
|
|
399
|
+
...headersFromBaseOptions,
|
|
400
|
+
...options.headers
|
|
401
|
+
};
|
|
402
|
+
return {
|
|
403
|
+
url: toPathString(localVarUrlObj),
|
|
404
|
+
options: localVarRequestOptions
|
|
405
|
+
};
|
|
406
|
+
},
|
|
407
|
+
/**
|
|
408
|
+
* Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
409
|
+
* @param {string} shipmentId ID for the shipment.
|
|
410
|
+
* @param {GetInboundShipmentLabelsPageTypeEnum} [pageType] Page type for the generated labels. The default is `PLAIN_PAPER`.
|
|
411
|
+
* @param {GetInboundShipmentLabelsFormatTypeEnum} [formatType] The format type of the output file that contains your labels. The default format type is `PDF`.
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
*/
|
|
415
|
+
getInboundShipmentLabels: async (shipmentId, pageType, formatType, options = {}) => {
|
|
416
|
+
assertParamExists("getInboundShipmentLabels", "shipmentId", shipmentId);
|
|
417
|
+
const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/labels`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
|
|
418
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
419
|
+
let baseOptions;
|
|
420
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
421
|
+
const localVarRequestOptions = {
|
|
422
|
+
method: "GET",
|
|
423
|
+
...baseOptions,
|
|
424
|
+
...options
|
|
425
|
+
};
|
|
426
|
+
const localVarHeaderParameter = {};
|
|
427
|
+
const localVarQueryParameter = {};
|
|
428
|
+
if (pageType !== void 0) localVarQueryParameter["pageType"] = pageType;
|
|
429
|
+
if (formatType !== void 0) localVarQueryParameter["formatType"] = formatType;
|
|
430
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
431
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
432
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
433
|
+
localVarRequestOptions.headers = {
|
|
434
|
+
...localVarHeaderParameter,
|
|
435
|
+
...headersFromBaseOptions,
|
|
436
|
+
...options.headers
|
|
437
|
+
};
|
|
438
|
+
return {
|
|
439
|
+
url: toPathString(localVarUrlObj),
|
|
440
|
+
options: localVarRequestOptions
|
|
441
|
+
};
|
|
442
|
+
},
|
|
443
|
+
/**
|
|
444
|
+
* Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
445
|
+
* @param {string} shipmentId ID for the shipment.
|
|
446
|
+
* @param {*} [options] Override http request option.
|
|
447
|
+
* @throws {RequiredError}
|
|
448
|
+
*/
|
|
449
|
+
getLabelPageTypes: async (shipmentId, options = {}) => {
|
|
450
|
+
assertParamExists("getLabelPageTypes", "shipmentId", shipmentId);
|
|
451
|
+
const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/labelPageTypes`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
|
|
452
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
453
|
+
let baseOptions;
|
|
454
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
455
|
+
const localVarRequestOptions = {
|
|
456
|
+
method: "GET",
|
|
457
|
+
...baseOptions,
|
|
458
|
+
...options
|
|
459
|
+
};
|
|
460
|
+
const localVarHeaderParameter = {};
|
|
461
|
+
const localVarQueryParameter = {};
|
|
462
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
463
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
464
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
465
|
+
localVarRequestOptions.headers = {
|
|
466
|
+
...localVarHeaderParameter,
|
|
467
|
+
...headersFromBaseOptions,
|
|
468
|
+
...options.headers
|
|
469
|
+
};
|
|
470
|
+
return {
|
|
471
|
+
url: toPathString(localVarUrlObj),
|
|
472
|
+
options: localVarRequestOptions
|
|
473
|
+
};
|
|
474
|
+
},
|
|
475
|
+
/**
|
|
476
|
+
* Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
477
|
+
* @param {string} orderId ID for the outbound order to be retrieved.
|
|
478
|
+
* @param {*} [options] Override http request option.
|
|
479
|
+
* @throws {RequiredError}
|
|
480
|
+
*/
|
|
481
|
+
getOutbound: async (orderId, options = {}) => {
|
|
482
|
+
assertParamExists("getOutbound", "orderId", orderId);
|
|
483
|
+
const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
|
|
484
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
485
|
+
let baseOptions;
|
|
486
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
487
|
+
const localVarRequestOptions = {
|
|
488
|
+
method: "GET",
|
|
489
|
+
...baseOptions,
|
|
490
|
+
...options
|
|
491
|
+
};
|
|
492
|
+
const localVarHeaderParameter = {};
|
|
493
|
+
const localVarQueryParameter = {};
|
|
494
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
495
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
496
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
497
|
+
localVarRequestOptions.headers = {
|
|
498
|
+
...localVarHeaderParameter,
|
|
499
|
+
...headersFromBaseOptions,
|
|
500
|
+
...options.headers
|
|
501
|
+
};
|
|
502
|
+
return {
|
|
503
|
+
url: toPathString(localVarUrlObj),
|
|
504
|
+
options: localVarRequestOptions
|
|
505
|
+
};
|
|
506
|
+
},
|
|
507
|
+
/**
|
|
508
|
+
* Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
|
|
509
|
+
* @param {string} orderId ID of the replenishment order to be retrieved.
|
|
510
|
+
* @param {*} [options] Override http request option.
|
|
511
|
+
* @throws {RequiredError}
|
|
512
|
+
*/
|
|
513
|
+
getReplenishmentOrder: async (orderId, options = {}) => {
|
|
514
|
+
assertParamExists("getReplenishmentOrder", "orderId", orderId);
|
|
515
|
+
const localVarPath = `/awd/2024-05-09/replenishmentOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
|
|
516
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
517
|
+
let baseOptions;
|
|
518
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
519
|
+
const localVarRequestOptions = {
|
|
520
|
+
method: "GET",
|
|
521
|
+
...baseOptions,
|
|
522
|
+
...options
|
|
523
|
+
};
|
|
524
|
+
const localVarHeaderParameter = {};
|
|
525
|
+
const localVarQueryParameter = {};
|
|
526
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
527
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
528
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
529
|
+
localVarRequestOptions.headers = {
|
|
530
|
+
...localVarHeaderParameter,
|
|
531
|
+
...headersFromBaseOptions,
|
|
532
|
+
...options.headers
|
|
533
|
+
};
|
|
534
|
+
return {
|
|
535
|
+
url: toPathString(localVarUrlObj),
|
|
536
|
+
options: localVarRequestOptions
|
|
537
|
+
};
|
|
538
|
+
},
|
|
539
|
+
/**
|
|
540
|
+
* Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
541
|
+
* @param {ListInboundShipmentsSortByEnum} [sortBy] Field to sort results by. By default, the response will be sorted by UPDATED_AT.
|
|
542
|
+
* @param {ListInboundShipmentsSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. By default, the response will be sorted in DESCENDING order.
|
|
543
|
+
* @param {ListInboundShipmentsShipmentStatusEnum} [shipmentStatus] Filter by inbound shipment status.
|
|
544
|
+
* @param {string} [updatedAfter] List the inbound shipments that were updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
545
|
+
* @param {string} [updatedBefore] List the inbound shipments that were updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
546
|
+
* @param {number} [maxResults] Maximum number of results to return.
|
|
547
|
+
* @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
548
|
+
* @param {*} [options] Override http request option.
|
|
549
|
+
* @throws {RequiredError}
|
|
550
|
+
*/
|
|
551
|
+
listInboundShipments: async (sortBy, sortOrder, shipmentStatus, updatedAfter, updatedBefore, maxResults, nextToken, options = {}) => {
|
|
552
|
+
const localVarUrlObj = new URL(`/awd/2024-05-09/inboundShipments`, DUMMY_BASE_URL);
|
|
553
|
+
let baseOptions;
|
|
554
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
555
|
+
const localVarRequestOptions = {
|
|
556
|
+
method: "GET",
|
|
557
|
+
...baseOptions,
|
|
558
|
+
...options
|
|
559
|
+
};
|
|
560
|
+
const localVarHeaderParameter = {};
|
|
561
|
+
const localVarQueryParameter = {};
|
|
562
|
+
if (sortBy !== void 0) localVarQueryParameter["sortBy"] = sortBy;
|
|
563
|
+
if (sortOrder !== void 0) localVarQueryParameter["sortOrder"] = sortOrder;
|
|
564
|
+
if (shipmentStatus !== void 0) localVarQueryParameter["shipmentStatus"] = shipmentStatus;
|
|
565
|
+
if (updatedAfter !== void 0) localVarQueryParameter["updatedAfter"] = updatedAfter instanceof Date ? updatedAfter.toISOString() : updatedAfter;
|
|
566
|
+
if (updatedBefore !== void 0) localVarQueryParameter["updatedBefore"] = updatedBefore instanceof Date ? updatedBefore.toISOString() : updatedBefore;
|
|
567
|
+
if (maxResults !== void 0) localVarQueryParameter["maxResults"] = maxResults;
|
|
568
|
+
if (nextToken !== void 0) localVarQueryParameter["nextToken"] = nextToken;
|
|
569
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
570
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
571
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
572
|
+
localVarRequestOptions.headers = {
|
|
573
|
+
...localVarHeaderParameter,
|
|
574
|
+
...headersFromBaseOptions,
|
|
575
|
+
...options.headers
|
|
576
|
+
};
|
|
577
|
+
return {
|
|
578
|
+
url: toPathString(localVarUrlObj),
|
|
579
|
+
options: localVarRequestOptions
|
|
580
|
+
};
|
|
581
|
+
},
|
|
582
|
+
/**
|
|
583
|
+
* Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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, refer to [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).
|
|
584
|
+
* @param {string} [sku] Filter by seller or merchant SKU for the item.
|
|
585
|
+
* @param {ListInventorySortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
|
|
586
|
+
* @param {ListInventoryDetailsEnum} [details] Set to `SHOW` to return summaries with additional inventory details. Defaults to `HIDE,` which returns only inventory summary totals.
|
|
587
|
+
* @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
588
|
+
* @param {number} [maxResults] Maximum number of results to return.
|
|
589
|
+
* @param {*} [options] Override http request option.
|
|
590
|
+
* @throws {RequiredError}
|
|
591
|
+
*/
|
|
592
|
+
listInventory: async (sku, sortOrder, details, nextToken, maxResults, options = {}) => {
|
|
593
|
+
const localVarUrlObj = new URL(`/awd/2024-05-09/inventory`, DUMMY_BASE_URL);
|
|
594
|
+
let baseOptions;
|
|
595
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
596
|
+
const localVarRequestOptions = {
|
|
597
|
+
method: "GET",
|
|
598
|
+
...baseOptions,
|
|
599
|
+
...options
|
|
600
|
+
};
|
|
601
|
+
const localVarHeaderParameter = {};
|
|
602
|
+
const localVarQueryParameter = {};
|
|
603
|
+
if (sku !== void 0) localVarQueryParameter["sku"] = sku;
|
|
604
|
+
if (sortOrder !== void 0) localVarQueryParameter["sortOrder"] = sortOrder;
|
|
605
|
+
if (details !== void 0) localVarQueryParameter["details"] = details;
|
|
606
|
+
if (nextToken !== void 0) localVarQueryParameter["nextToken"] = nextToken;
|
|
607
|
+
if (maxResults !== void 0) localVarQueryParameter["maxResults"] = maxResults;
|
|
608
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
609
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
610
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
611
|
+
localVarRequestOptions.headers = {
|
|
612
|
+
...localVarHeaderParameter,
|
|
613
|
+
...headersFromBaseOptions,
|
|
614
|
+
...options.headers
|
|
615
|
+
};
|
|
616
|
+
return {
|
|
617
|
+
url: toPathString(localVarUrlObj),
|
|
618
|
+
options: localVarRequestOptions
|
|
619
|
+
};
|
|
620
|
+
},
|
|
621
|
+
/**
|
|
622
|
+
* Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
623
|
+
* @param {string} [updatedAfter] Get the outbound orders updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
624
|
+
* @param {string} [updatedBefore] Get the outbound orders updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
625
|
+
* @param {ListOutboundsSortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
|
|
626
|
+
* @param {number} [maxResults] Maximum number of results to return.
|
|
627
|
+
* @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
*/
|
|
631
|
+
listOutbounds: async (updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options = {}) => {
|
|
632
|
+
const localVarUrlObj = new URL(`/awd/2024-05-09/outboundOrders`, DUMMY_BASE_URL);
|
|
633
|
+
let baseOptions;
|
|
634
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
635
|
+
const localVarRequestOptions = {
|
|
636
|
+
method: "GET",
|
|
637
|
+
...baseOptions,
|
|
638
|
+
...options
|
|
639
|
+
};
|
|
640
|
+
const localVarHeaderParameter = {};
|
|
641
|
+
const localVarQueryParameter = {};
|
|
642
|
+
if (updatedAfter !== void 0) localVarQueryParameter["updatedAfter"] = updatedAfter instanceof Date ? updatedAfter.toISOString() : updatedAfter;
|
|
643
|
+
if (updatedBefore !== void 0) localVarQueryParameter["updatedBefore"] = updatedBefore instanceof Date ? updatedBefore.toISOString() : updatedBefore;
|
|
644
|
+
if (sortOrder !== void 0) localVarQueryParameter["sortOrder"] = sortOrder;
|
|
645
|
+
if (maxResults !== void 0) localVarQueryParameter["maxResults"] = maxResults;
|
|
646
|
+
if (nextToken !== void 0) localVarQueryParameter["nextToken"] = nextToken;
|
|
647
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
648
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
649
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
650
|
+
localVarRequestOptions.headers = {
|
|
651
|
+
...localVarHeaderParameter,
|
|
652
|
+
...headersFromBaseOptions,
|
|
653
|
+
...options.headers
|
|
654
|
+
};
|
|
655
|
+
return {
|
|
656
|
+
url: toPathString(localVarUrlObj),
|
|
657
|
+
options: localVarRequestOptions
|
|
658
|
+
};
|
|
659
|
+
},
|
|
660
|
+
/**
|
|
661
|
+
* Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
|
|
662
|
+
* @param {string} [updatedAfter] Get the replenishment orders updated after certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
|
|
663
|
+
* @param {string} [updatedBefore] Get the replenishment orders updated before certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
|
|
664
|
+
* @param {ListReplenishmentOrdersSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. The default sort order is DESCENDING.
|
|
665
|
+
* @param {number} [maxResults] Maximum results to be returned in a single response.
|
|
666
|
+
* @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
*/
|
|
670
|
+
listReplenishmentOrders: async (updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options = {}) => {
|
|
671
|
+
const localVarUrlObj = new URL(`/awd/2024-05-09/replenishmentOrders`, DUMMY_BASE_URL);
|
|
672
|
+
let baseOptions;
|
|
673
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
674
|
+
const localVarRequestOptions = {
|
|
675
|
+
method: "GET",
|
|
676
|
+
...baseOptions,
|
|
677
|
+
...options
|
|
678
|
+
};
|
|
679
|
+
const localVarHeaderParameter = {};
|
|
680
|
+
const localVarQueryParameter = {};
|
|
681
|
+
if (updatedAfter !== void 0) localVarQueryParameter["updatedAfter"] = updatedAfter instanceof Date ? updatedAfter.toISOString() : updatedAfter;
|
|
682
|
+
if (updatedBefore !== void 0) localVarQueryParameter["updatedBefore"] = updatedBefore instanceof Date ? updatedBefore.toISOString() : updatedBefore;
|
|
683
|
+
if (sortOrder !== void 0) localVarQueryParameter["sortOrder"] = sortOrder;
|
|
684
|
+
if (maxResults !== void 0) localVarQueryParameter["maxResults"] = maxResults;
|
|
685
|
+
if (nextToken !== void 0) localVarQueryParameter["nextToken"] = nextToken;
|
|
686
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
687
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
688
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
689
|
+
localVarRequestOptions.headers = {
|
|
690
|
+
...localVarHeaderParameter,
|
|
691
|
+
...headersFromBaseOptions,
|
|
692
|
+
...options.headers
|
|
693
|
+
};
|
|
694
|
+
return {
|
|
695
|
+
url: toPathString(localVarUrlObj),
|
|
696
|
+
options: localVarRequestOptions
|
|
697
|
+
};
|
|
698
|
+
},
|
|
699
|
+
/**
|
|
700
|
+
* Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
701
|
+
* @param {string} orderId The ID of the inbound order that you want to update.
|
|
702
|
+
* @param {InboundOrder} body Represents an AWD inbound order.
|
|
703
|
+
* @param {*} [options] Override http request option.
|
|
704
|
+
* @throws {RequiredError}
|
|
705
|
+
*/
|
|
706
|
+
updateInbound: async (orderId, body, options = {}) => {
|
|
707
|
+
assertParamExists("updateInbound", "orderId", orderId);
|
|
708
|
+
assertParamExists("updateInbound", "body", body);
|
|
709
|
+
const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
|
|
710
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
711
|
+
let baseOptions;
|
|
712
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
713
|
+
const localVarRequestOptions = {
|
|
714
|
+
method: "PUT",
|
|
715
|
+
...baseOptions,
|
|
716
|
+
...options
|
|
717
|
+
};
|
|
718
|
+
const localVarHeaderParameter = {};
|
|
719
|
+
const localVarQueryParameter = {};
|
|
720
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
721
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
722
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
723
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
724
|
+
localVarRequestOptions.headers = {
|
|
725
|
+
...localVarHeaderParameter,
|
|
726
|
+
...headersFromBaseOptions,
|
|
727
|
+
...options.headers
|
|
728
|
+
};
|
|
729
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
730
|
+
return {
|
|
731
|
+
url: toPathString(localVarUrlObj),
|
|
732
|
+
options: localVarRequestOptions
|
|
733
|
+
};
|
|
734
|
+
},
|
|
735
|
+
/**
|
|
736
|
+
* Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
737
|
+
* @param {string} shipmentId The shipment ID.
|
|
738
|
+
* @param {TransportationDetails} body Transportation details for the shipment.
|
|
739
|
+
* @param {*} [options] Override http request option.
|
|
740
|
+
* @throws {RequiredError}
|
|
741
|
+
*/
|
|
742
|
+
updateInboundShipmentTransportDetails: async (shipmentId, body, options = {}) => {
|
|
743
|
+
assertParamExists("updateInboundShipmentTransportDetails", "shipmentId", shipmentId);
|
|
744
|
+
assertParamExists("updateInboundShipmentTransportDetails", "body", body);
|
|
745
|
+
const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/transport`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
|
|
746
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
747
|
+
let baseOptions;
|
|
748
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
749
|
+
const localVarRequestOptions = {
|
|
750
|
+
method: "PUT",
|
|
751
|
+
...baseOptions,
|
|
752
|
+
...options
|
|
753
|
+
};
|
|
754
|
+
const localVarHeaderParameter = {};
|
|
755
|
+
const localVarQueryParameter = {};
|
|
756
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
757
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
758
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
759
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
760
|
+
localVarRequestOptions.headers = {
|
|
761
|
+
...localVarHeaderParameter,
|
|
762
|
+
...headersFromBaseOptions,
|
|
763
|
+
...options.headers
|
|
764
|
+
};
|
|
765
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
766
|
+
return {
|
|
767
|
+
url: toPathString(localVarUrlObj),
|
|
768
|
+
options: localVarRequestOptions
|
|
769
|
+
};
|
|
770
|
+
},
|
|
771
|
+
/**
|
|
772
|
+
* Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
773
|
+
* @param {string} orderId ID for the outbound order to be updated.
|
|
774
|
+
* @param {OutboundOrder} body Represents an AWD outbound order.
|
|
775
|
+
* @param {*} [options] Override http request option.
|
|
776
|
+
* @throws {RequiredError}
|
|
777
|
+
*/
|
|
778
|
+
updateOutbound: async (orderId, body, options = {}) => {
|
|
779
|
+
assertParamExists("updateOutbound", "orderId", orderId);
|
|
780
|
+
assertParamExists("updateOutbound", "body", body);
|
|
781
|
+
const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
|
|
782
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
783
|
+
let baseOptions;
|
|
784
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
785
|
+
const localVarRequestOptions = {
|
|
786
|
+
method: "PUT",
|
|
787
|
+
...baseOptions,
|
|
788
|
+
...options
|
|
789
|
+
};
|
|
790
|
+
const localVarHeaderParameter = {};
|
|
791
|
+
const localVarQueryParameter = {};
|
|
792
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
793
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
794
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
795
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
796
|
+
localVarRequestOptions.headers = {
|
|
797
|
+
...localVarHeaderParameter,
|
|
798
|
+
...headersFromBaseOptions,
|
|
799
|
+
...options.headers
|
|
800
|
+
};
|
|
801
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
802
|
+
return {
|
|
803
|
+
url: toPathString(localVarUrlObj),
|
|
804
|
+
options: localVarRequestOptions
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
};
|
|
747
808
|
};
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
809
|
+
/**
|
|
810
|
+
* AmazonWarehousingAndDistributionApi - functional programming interface
|
|
811
|
+
*/
|
|
812
|
+
const AmazonWarehousingAndDistributionApiFp = function(configuration) {
|
|
813
|
+
const localVarAxiosParamCreator = AmazonWarehousingAndDistributionApiAxiosParamCreator(configuration);
|
|
814
|
+
return {
|
|
815
|
+
/**
|
|
816
|
+
* Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
817
|
+
* @param {string} orderId The ID of the inbound order you want to cancel.
|
|
818
|
+
* @param {*} [options] Override http request option.
|
|
819
|
+
* @throws {RequiredError}
|
|
820
|
+
*/
|
|
821
|
+
async cancelInbound(orderId, options) {
|
|
822
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelInbound(orderId, options);
|
|
823
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
824
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.cancelInbound"]?.[localVarOperationServerIndex]?.url;
|
|
825
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
826
|
+
},
|
|
827
|
+
/**
|
|
828
|
+
* Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
829
|
+
* @param {InboundPackages} body Represents the packages you want to inbound.
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
*/
|
|
833
|
+
async checkInboundEligibility(body, options) {
|
|
834
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkInboundEligibility(body, options);
|
|
835
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
836
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.checkInboundEligibility"]?.[localVarOperationServerIndex]?.url;
|
|
837
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
838
|
+
},
|
|
839
|
+
/**
|
|
840
|
+
* Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
841
|
+
* @param {string} orderId The ID of the inbound order that you want to confirm.
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
*/
|
|
845
|
+
async confirmInbound(orderId, options) {
|
|
846
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.confirmInbound(orderId, options);
|
|
847
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
848
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.confirmInbound"]?.[localVarOperationServerIndex]?.url;
|
|
849
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
850
|
+
},
|
|
851
|
+
/**
|
|
852
|
+
* Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
853
|
+
* @param {string} orderId ID for the outbound order you want to confirm.
|
|
854
|
+
* @param {*} [options] Override http request option.
|
|
855
|
+
* @throws {RequiredError}
|
|
856
|
+
*/
|
|
857
|
+
async confirmOutbound(orderId, options) {
|
|
858
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.confirmOutbound(orderId, options);
|
|
859
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
860
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.confirmOutbound"]?.[localVarOperationServerIndex]?.url;
|
|
861
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
862
|
+
},
|
|
863
|
+
/**
|
|
864
|
+
* Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
|
|
865
|
+
* @param {string} orderId ID of the replenishment order to be confirmed.
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
async confirmReplenishmentOrder(orderId, options) {
|
|
870
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.confirmReplenishmentOrder(orderId, options);
|
|
871
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
872
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.confirmReplenishmentOrder"]?.[localVarOperationServerIndex]?.url;
|
|
873
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
874
|
+
},
|
|
875
|
+
/**
|
|
876
|
+
* Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
877
|
+
* @param {InboundOrderCreationData} body Payload for creating an inbound order.
|
|
878
|
+
* @param {*} [options] Override http request option.
|
|
879
|
+
* @throws {RequiredError}
|
|
880
|
+
*/
|
|
881
|
+
async createInbound(body, options) {
|
|
882
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createInbound(body, options);
|
|
883
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
884
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.createInbound"]?.[localVarOperationServerIndex]?.url;
|
|
885
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
886
|
+
},
|
|
887
|
+
/**
|
|
888
|
+
* Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
889
|
+
* @param {OutboundOrderCreationData} body Payload for creating an outbound order.
|
|
890
|
+
* @param {*} [options] Override http request option.
|
|
891
|
+
* @throws {RequiredError}
|
|
892
|
+
*/
|
|
893
|
+
async createOutbound(body, options) {
|
|
894
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOutbound(body, options);
|
|
895
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
896
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.createOutbound"]?.[localVarOperationServerIndex]?.url;
|
|
897
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
898
|
+
},
|
|
899
|
+
/**
|
|
900
|
+
* Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
|
|
901
|
+
* @param {ReplenishmentOrderCreationData} body Payload for creating a replenishment order.
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
*/
|
|
905
|
+
async createReplenishmentOrder(body, options) {
|
|
906
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReplenishmentOrder(body, options);
|
|
907
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
908
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.createReplenishmentOrder"]?.[localVarOperationServerIndex]?.url;
|
|
909
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
910
|
+
},
|
|
911
|
+
/**
|
|
912
|
+
* Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
913
|
+
* @param {string} orderId The ID of the inbound order that you want to retrieve.
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
async getInbound(orderId, options) {
|
|
918
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInbound(orderId, options);
|
|
919
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
920
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getInbound"]?.[localVarOperationServerIndex]?.url;
|
|
921
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
922
|
+
},
|
|
923
|
+
/**
|
|
924
|
+
* Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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, refer to [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)
|
|
925
|
+
* @param {string} shipmentId ID for the shipment. A shipment contains the cases being inbounded.
|
|
926
|
+
* @param {GetInboundShipmentSkuQuantitiesEnum} [skuQuantities] If equal to `SHOW`, the response includes the shipment SKU quantity details. Defaults to `HIDE`, in which case the response does not contain SKU quantities
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
async getInboundShipment(shipmentId, skuQuantities, options) {
|
|
931
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundShipment(shipmentId, skuQuantities, options);
|
|
932
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
933
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getInboundShipment"]?.[localVarOperationServerIndex]?.url;
|
|
934
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
935
|
+
},
|
|
936
|
+
/**
|
|
937
|
+
* Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
938
|
+
* @param {string} shipmentId ID for the shipment.
|
|
939
|
+
* @param {GetInboundShipmentLabelsPageTypeEnum} [pageType] Page type for the generated labels. The default is `PLAIN_PAPER`.
|
|
940
|
+
* @param {GetInboundShipmentLabelsFormatTypeEnum} [formatType] The format type of the output file that contains your labels. The default format type is `PDF`.
|
|
941
|
+
* @param {*} [options] Override http request option.
|
|
942
|
+
* @throws {RequiredError}
|
|
943
|
+
*/
|
|
944
|
+
async getInboundShipmentLabels(shipmentId, pageType, formatType, options) {
|
|
945
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundShipmentLabels(shipmentId, pageType, formatType, options);
|
|
946
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
947
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getInboundShipmentLabels"]?.[localVarOperationServerIndex]?.url;
|
|
948
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
949
|
+
},
|
|
950
|
+
/**
|
|
951
|
+
* Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
952
|
+
* @param {string} shipmentId ID for the shipment.
|
|
953
|
+
* @param {*} [options] Override http request option.
|
|
954
|
+
* @throws {RequiredError}
|
|
955
|
+
*/
|
|
956
|
+
async getLabelPageTypes(shipmentId, options) {
|
|
957
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLabelPageTypes(shipmentId, options);
|
|
958
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
959
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getLabelPageTypes"]?.[localVarOperationServerIndex]?.url;
|
|
960
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
961
|
+
},
|
|
962
|
+
/**
|
|
963
|
+
* Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
964
|
+
* @param {string} orderId ID for the outbound order to be retrieved.
|
|
965
|
+
* @param {*} [options] Override http request option.
|
|
966
|
+
* @throws {RequiredError}
|
|
967
|
+
*/
|
|
968
|
+
async getOutbound(orderId, options) {
|
|
969
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOutbound(orderId, options);
|
|
970
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
971
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getOutbound"]?.[localVarOperationServerIndex]?.url;
|
|
972
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
973
|
+
},
|
|
974
|
+
/**
|
|
975
|
+
* Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
|
|
976
|
+
* @param {string} orderId ID of the replenishment order to be retrieved.
|
|
977
|
+
* @param {*} [options] Override http request option.
|
|
978
|
+
* @throws {RequiredError}
|
|
979
|
+
*/
|
|
980
|
+
async getReplenishmentOrder(orderId, options) {
|
|
981
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getReplenishmentOrder(orderId, options);
|
|
982
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
983
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getReplenishmentOrder"]?.[localVarOperationServerIndex]?.url;
|
|
984
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
985
|
+
},
|
|
986
|
+
/**
|
|
987
|
+
* Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
988
|
+
* @param {ListInboundShipmentsSortByEnum} [sortBy] Field to sort results by. By default, the response will be sorted by UPDATED_AT.
|
|
989
|
+
* @param {ListInboundShipmentsSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. By default, the response will be sorted in DESCENDING order.
|
|
990
|
+
* @param {ListInboundShipmentsShipmentStatusEnum} [shipmentStatus] Filter by inbound shipment status.
|
|
991
|
+
* @param {string} [updatedAfter] List the inbound shipments that were updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
992
|
+
* @param {string} [updatedBefore] List the inbound shipments that were updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
993
|
+
* @param {number} [maxResults] Maximum number of results to return.
|
|
994
|
+
* @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
995
|
+
* @param {*} [options] Override http request option.
|
|
996
|
+
* @throws {RequiredError}
|
|
997
|
+
*/
|
|
998
|
+
async listInboundShipments(sortBy, sortOrder, shipmentStatus, updatedAfter, updatedBefore, maxResults, nextToken, options) {
|
|
999
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundShipments(sortBy, sortOrder, shipmentStatus, updatedAfter, updatedBefore, maxResults, nextToken, options);
|
|
1000
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1001
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listInboundShipments"]?.[localVarOperationServerIndex]?.url;
|
|
1002
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1003
|
+
},
|
|
1004
|
+
/**
|
|
1005
|
+
* Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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, refer to [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).
|
|
1006
|
+
* @param {string} [sku] Filter by seller or merchant SKU for the item.
|
|
1007
|
+
* @param {ListInventorySortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
|
|
1008
|
+
* @param {ListInventoryDetailsEnum} [details] Set to `SHOW` to return summaries with additional inventory details. Defaults to `HIDE,` which returns only inventory summary totals.
|
|
1009
|
+
* @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
1010
|
+
* @param {number} [maxResults] Maximum number of results to return.
|
|
1011
|
+
* @param {*} [options] Override http request option.
|
|
1012
|
+
* @throws {RequiredError}
|
|
1013
|
+
*/
|
|
1014
|
+
async listInventory(sku, sortOrder, details, nextToken, maxResults, options) {
|
|
1015
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInventory(sku, sortOrder, details, nextToken, maxResults, options);
|
|
1016
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1017
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listInventory"]?.[localVarOperationServerIndex]?.url;
|
|
1018
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1019
|
+
},
|
|
1020
|
+
/**
|
|
1021
|
+
* Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1022
|
+
* @param {string} [updatedAfter] Get the outbound orders updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
1023
|
+
* @param {string} [updatedBefore] Get the outbound orders updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
|
|
1024
|
+
* @param {ListOutboundsSortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
|
|
1025
|
+
* @param {number} [maxResults] Maximum number of results to return.
|
|
1026
|
+
* @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
1027
|
+
* @param {*} [options] Override http request option.
|
|
1028
|
+
* @throws {RequiredError}
|
|
1029
|
+
*/
|
|
1030
|
+
async listOutbounds(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options) {
|
|
1031
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOutbounds(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options);
|
|
1032
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1033
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listOutbounds"]?.[localVarOperationServerIndex]?.url;
|
|
1034
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1035
|
+
},
|
|
1036
|
+
/**
|
|
1037
|
+
* Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
|
|
1038
|
+
* @param {string} [updatedAfter] Get the replenishment orders updated after certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
|
|
1039
|
+
* @param {string} [updatedBefore] Get the replenishment orders updated before certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
|
|
1040
|
+
* @param {ListReplenishmentOrdersSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. The default sort order is DESCENDING.
|
|
1041
|
+
* @param {number} [maxResults] Maximum results to be returned in a single response.
|
|
1042
|
+
* @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
1043
|
+
* @param {*} [options] Override http request option.
|
|
1044
|
+
* @throws {RequiredError}
|
|
1045
|
+
*/
|
|
1046
|
+
async listReplenishmentOrders(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options) {
|
|
1047
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplenishmentOrders(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options);
|
|
1048
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1049
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listReplenishmentOrders"]?.[localVarOperationServerIndex]?.url;
|
|
1050
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1051
|
+
},
|
|
1052
|
+
/**
|
|
1053
|
+
* Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1054
|
+
* @param {string} orderId The ID of the inbound order that you want to update.
|
|
1055
|
+
* @param {InboundOrder} body Represents an AWD inbound order.
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
*/
|
|
1059
|
+
async updateInbound(orderId, body, options) {
|
|
1060
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateInbound(orderId, body, options);
|
|
1061
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1062
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.updateInbound"]?.[localVarOperationServerIndex]?.url;
|
|
1063
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1064
|
+
},
|
|
1065
|
+
/**
|
|
1066
|
+
* Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1067
|
+
* @param {string} shipmentId The shipment ID.
|
|
1068
|
+
* @param {TransportationDetails} body Transportation details for the shipment.
|
|
1069
|
+
* @param {*} [options] Override http request option.
|
|
1070
|
+
* @throws {RequiredError}
|
|
1071
|
+
*/
|
|
1072
|
+
async updateInboundShipmentTransportDetails(shipmentId, body, options) {
|
|
1073
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateInboundShipmentTransportDetails(shipmentId, body, options);
|
|
1074
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1075
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.updateInboundShipmentTransportDetails"]?.[localVarOperationServerIndex]?.url;
|
|
1076
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1077
|
+
},
|
|
1078
|
+
/**
|
|
1079
|
+
* Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1080
|
+
* @param {string} orderId ID for the outbound order to be updated.
|
|
1081
|
+
* @param {OutboundOrder} body Represents an AWD outbound order.
|
|
1082
|
+
* @param {*} [options] Override http request option.
|
|
1083
|
+
* @throws {RequiredError}
|
|
1084
|
+
*/
|
|
1085
|
+
async updateOutbound(orderId, body, options) {
|
|
1086
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOutbound(orderId, body, options);
|
|
1087
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1088
|
+
const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.updateOutbound"]?.[localVarOperationServerIndex]?.url;
|
|
1089
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1090
|
+
}
|
|
1091
|
+
};
|
|
1028
1092
|
};
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1093
|
+
/**
|
|
1094
|
+
* AmazonWarehousingAndDistributionApi - factory interface
|
|
1095
|
+
*/
|
|
1096
|
+
const AmazonWarehousingAndDistributionApiFactory = function(configuration, basePath, axios) {
|
|
1097
|
+
const localVarFp = AmazonWarehousingAndDistributionApiFp(configuration);
|
|
1098
|
+
return {
|
|
1099
|
+
/**
|
|
1100
|
+
* Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1101
|
+
* @param {AmazonWarehousingAndDistributionApiCancelInboundRequest} requestParameters Request parameters.
|
|
1102
|
+
* @param {*} [options] Override http request option.
|
|
1103
|
+
* @throws {RequiredError}
|
|
1104
|
+
*/
|
|
1105
|
+
cancelInbound(requestParameters, options) {
|
|
1106
|
+
return localVarFp.cancelInbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1107
|
+
},
|
|
1108
|
+
/**
|
|
1109
|
+
* Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1110
|
+
* @param {AmazonWarehousingAndDistributionApiCheckInboundEligibilityRequest} requestParameters Request parameters.
|
|
1111
|
+
* @param {*} [options] Override http request option.
|
|
1112
|
+
* @throws {RequiredError}
|
|
1113
|
+
*/
|
|
1114
|
+
checkInboundEligibility(requestParameters, options) {
|
|
1115
|
+
return localVarFp.checkInboundEligibility(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1116
|
+
},
|
|
1117
|
+
/**
|
|
1118
|
+
* Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1119
|
+
* @param {AmazonWarehousingAndDistributionApiConfirmInboundRequest} requestParameters Request parameters.
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
*/
|
|
1123
|
+
confirmInbound(requestParameters, options) {
|
|
1124
|
+
return localVarFp.confirmInbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1125
|
+
},
|
|
1126
|
+
/**
|
|
1127
|
+
* Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1128
|
+
* @param {AmazonWarehousingAndDistributionApiConfirmOutboundRequest} requestParameters Request parameters.
|
|
1129
|
+
* @param {*} [options] Override http request option.
|
|
1130
|
+
* @throws {RequiredError}
|
|
1131
|
+
*/
|
|
1132
|
+
confirmOutbound(requestParameters, options) {
|
|
1133
|
+
return localVarFp.confirmOutbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1134
|
+
},
|
|
1135
|
+
/**
|
|
1136
|
+
* Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
|
|
1137
|
+
* @param {AmazonWarehousingAndDistributionApiConfirmReplenishmentOrderRequest} requestParameters Request parameters.
|
|
1138
|
+
* @param {*} [options] Override http request option.
|
|
1139
|
+
* @throws {RequiredError}
|
|
1140
|
+
*/
|
|
1141
|
+
confirmReplenishmentOrder(requestParameters, options) {
|
|
1142
|
+
return localVarFp.confirmReplenishmentOrder(requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1143
|
+
},
|
|
1144
|
+
/**
|
|
1145
|
+
* Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1146
|
+
* @param {AmazonWarehousingAndDistributionApiCreateInboundRequest} requestParameters Request parameters.
|
|
1147
|
+
* @param {*} [options] Override http request option.
|
|
1148
|
+
* @throws {RequiredError}
|
|
1149
|
+
*/
|
|
1150
|
+
createInbound(requestParameters, options) {
|
|
1151
|
+
return localVarFp.createInbound(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1152
|
+
},
|
|
1153
|
+
/**
|
|
1154
|
+
* Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1155
|
+
* @param {AmazonWarehousingAndDistributionApiCreateOutboundRequest} requestParameters Request parameters.
|
|
1156
|
+
* @param {*} [options] Override http request option.
|
|
1157
|
+
* @throws {RequiredError}
|
|
1158
|
+
*/
|
|
1159
|
+
createOutbound(requestParameters, options) {
|
|
1160
|
+
return localVarFp.createOutbound(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1161
|
+
},
|
|
1162
|
+
/**
|
|
1163
|
+
* Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
|
|
1164
|
+
* @param {AmazonWarehousingAndDistributionApiCreateReplenishmentOrderRequest} requestParameters Request parameters.
|
|
1165
|
+
* @param {*} [options] Override http request option.
|
|
1166
|
+
* @throws {RequiredError}
|
|
1167
|
+
*/
|
|
1168
|
+
createReplenishmentOrder(requestParameters, options) {
|
|
1169
|
+
return localVarFp.createReplenishmentOrder(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1170
|
+
},
|
|
1171
|
+
/**
|
|
1172
|
+
* Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1173
|
+
* @param {AmazonWarehousingAndDistributionApiGetInboundRequest} requestParameters Request parameters.
|
|
1174
|
+
* @param {*} [options] Override http request option.
|
|
1175
|
+
* @throws {RequiredError}
|
|
1176
|
+
*/
|
|
1177
|
+
getInbound(requestParameters, options) {
|
|
1178
|
+
return localVarFp.getInbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1179
|
+
},
|
|
1180
|
+
/**
|
|
1181
|
+
* Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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, refer to [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)
|
|
1182
|
+
* @param {AmazonWarehousingAndDistributionApiGetInboundShipmentRequest} requestParameters Request parameters.
|
|
1183
|
+
* @param {*} [options] Override http request option.
|
|
1184
|
+
* @throws {RequiredError}
|
|
1185
|
+
*/
|
|
1186
|
+
getInboundShipment(requestParameters, options) {
|
|
1187
|
+
return localVarFp.getInboundShipment(requestParameters.shipmentId, requestParameters.skuQuantities, options).then((request) => request(axios, basePath));
|
|
1188
|
+
},
|
|
1189
|
+
/**
|
|
1190
|
+
* Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1191
|
+
* @param {AmazonWarehousingAndDistributionApiGetInboundShipmentLabelsRequest} requestParameters Request parameters.
|
|
1192
|
+
* @param {*} [options] Override http request option.
|
|
1193
|
+
* @throws {RequiredError}
|
|
1194
|
+
*/
|
|
1195
|
+
getInboundShipmentLabels(requestParameters, options) {
|
|
1196
|
+
return localVarFp.getInboundShipmentLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.formatType, options).then((request) => request(axios, basePath));
|
|
1197
|
+
},
|
|
1198
|
+
/**
|
|
1199
|
+
* Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1200
|
+
* @param {AmazonWarehousingAndDistributionApiGetLabelPageTypesRequest} requestParameters Request parameters.
|
|
1201
|
+
* @param {*} [options] Override http request option.
|
|
1202
|
+
* @throws {RequiredError}
|
|
1203
|
+
*/
|
|
1204
|
+
getLabelPageTypes(requestParameters, options) {
|
|
1205
|
+
return localVarFp.getLabelPageTypes(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
|
|
1206
|
+
},
|
|
1207
|
+
/**
|
|
1208
|
+
* Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1209
|
+
* @param {AmazonWarehousingAndDistributionApiGetOutboundRequest} requestParameters Request parameters.
|
|
1210
|
+
* @param {*} [options] Override http request option.
|
|
1211
|
+
* @throws {RequiredError}
|
|
1212
|
+
*/
|
|
1213
|
+
getOutbound(requestParameters, options) {
|
|
1214
|
+
return localVarFp.getOutbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1215
|
+
},
|
|
1216
|
+
/**
|
|
1217
|
+
* Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
|
|
1218
|
+
* @param {AmazonWarehousingAndDistributionApiGetReplenishmentOrderRequest} requestParameters Request parameters.
|
|
1219
|
+
* @param {*} [options] Override http request option.
|
|
1220
|
+
* @throws {RequiredError}
|
|
1221
|
+
*/
|
|
1222
|
+
getReplenishmentOrder(requestParameters, options) {
|
|
1223
|
+
return localVarFp.getReplenishmentOrder(requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1224
|
+
},
|
|
1225
|
+
/**
|
|
1226
|
+
* Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1227
|
+
* @param {AmazonWarehousingAndDistributionApiListInboundShipmentsRequest} requestParameters Request parameters.
|
|
1228
|
+
* @param {*} [options] Override http request option.
|
|
1229
|
+
* @throws {RequiredError}
|
|
1230
|
+
*/
|
|
1231
|
+
listInboundShipments(requestParameters = {}, options) {
|
|
1232
|
+
return localVarFp.listInboundShipments(requestParameters.sortBy, requestParameters.sortOrder, requestParameters.shipmentStatus, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));
|
|
1233
|
+
},
|
|
1234
|
+
/**
|
|
1235
|
+
* Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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, refer to [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).
|
|
1236
|
+
* @param {AmazonWarehousingAndDistributionApiListInventoryRequest} requestParameters Request parameters.
|
|
1237
|
+
* @param {*} [options] Override http request option.
|
|
1238
|
+
* @throws {RequiredError}
|
|
1239
|
+
*/
|
|
1240
|
+
listInventory(requestParameters = {}, options) {
|
|
1241
|
+
return localVarFp.listInventory(requestParameters.sku, requestParameters.sortOrder, requestParameters.details, requestParameters.nextToken, requestParameters.maxResults, options).then((request) => request(axios, basePath));
|
|
1242
|
+
},
|
|
1243
|
+
/**
|
|
1244
|
+
* Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1245
|
+
* @param {AmazonWarehousingAndDistributionApiListOutboundsRequest} requestParameters Request parameters.
|
|
1246
|
+
* @param {*} [options] Override http request option.
|
|
1247
|
+
* @throws {RequiredError}
|
|
1248
|
+
*/
|
|
1249
|
+
listOutbounds(requestParameters = {}, options) {
|
|
1250
|
+
return localVarFp.listOutbounds(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));
|
|
1251
|
+
},
|
|
1252
|
+
/**
|
|
1253
|
+
* Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
|
|
1254
|
+
* @param {AmazonWarehousingAndDistributionApiListReplenishmentOrdersRequest} requestParameters Request parameters.
|
|
1255
|
+
* @param {*} [options] Override http request option.
|
|
1256
|
+
* @throws {RequiredError}
|
|
1257
|
+
*/
|
|
1258
|
+
listReplenishmentOrders(requestParameters = {}, options) {
|
|
1259
|
+
return localVarFp.listReplenishmentOrders(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));
|
|
1260
|
+
},
|
|
1261
|
+
/**
|
|
1262
|
+
* Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1263
|
+
* @param {AmazonWarehousingAndDistributionApiUpdateInboundRequest} requestParameters Request parameters.
|
|
1264
|
+
* @param {*} [options] Override http request option.
|
|
1265
|
+
* @throws {RequiredError}
|
|
1266
|
+
*/
|
|
1267
|
+
updateInbound(requestParameters, options) {
|
|
1268
|
+
return localVarFp.updateInbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1269
|
+
},
|
|
1270
|
+
/**
|
|
1271
|
+
* Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1272
|
+
* @param {AmazonWarehousingAndDistributionApiUpdateInboundShipmentTransportDetailsRequest} requestParameters Request parameters.
|
|
1273
|
+
* @param {*} [options] Override http request option.
|
|
1274
|
+
* @throws {RequiredError}
|
|
1275
|
+
*/
|
|
1276
|
+
updateInboundShipmentTransportDetails(requestParameters, options) {
|
|
1277
|
+
return localVarFp.updateInboundShipmentTransportDetails(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1278
|
+
},
|
|
1279
|
+
/**
|
|
1280
|
+
* Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1281
|
+
* @param {AmazonWarehousingAndDistributionApiUpdateOutboundRequest} requestParameters Request parameters.
|
|
1282
|
+
* @param {*} [options] Override http request option.
|
|
1283
|
+
* @throws {RequiredError}
|
|
1284
|
+
*/
|
|
1285
|
+
updateOutbound(requestParameters, options) {
|
|
1286
|
+
return localVarFp.updateOutbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1287
|
+
}
|
|
1288
|
+
};
|
|
1222
1289
|
};
|
|
1290
|
+
/**
|
|
1291
|
+
* AmazonWarehousingAndDistributionApi - object-oriented interface
|
|
1292
|
+
*/
|
|
1223
1293
|
var AmazonWarehousingAndDistributionApi = class extends BaseAPI {
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
};
|
|
1414
|
-
var GetInboundShipmentSkuQuantitiesEnum = {
|
|
1415
|
-
Show: "SHOW",
|
|
1416
|
-
Hide: "HIDE"
|
|
1294
|
+
/**
|
|
1295
|
+
* Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1296
|
+
* @param {AmazonWarehousingAndDistributionApiCancelInboundRequest} requestParameters Request parameters.
|
|
1297
|
+
* @param {*} [options] Override http request option.
|
|
1298
|
+
* @throws {RequiredError}
|
|
1299
|
+
*/
|
|
1300
|
+
cancelInbound(requestParameters, options) {
|
|
1301
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).cancelInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1305
|
+
* @param {AmazonWarehousingAndDistributionApiCheckInboundEligibilityRequest} requestParameters Request parameters.
|
|
1306
|
+
* @param {*} [options] Override http request option.
|
|
1307
|
+
* @throws {RequiredError}
|
|
1308
|
+
*/
|
|
1309
|
+
checkInboundEligibility(requestParameters, options) {
|
|
1310
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).checkInboundEligibility(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1314
|
+
* @param {AmazonWarehousingAndDistributionApiConfirmInboundRequest} requestParameters Request parameters.
|
|
1315
|
+
* @param {*} [options] Override http request option.
|
|
1316
|
+
* @throws {RequiredError}
|
|
1317
|
+
*/
|
|
1318
|
+
confirmInbound(requestParameters, options) {
|
|
1319
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).confirmInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1323
|
+
* @param {AmazonWarehousingAndDistributionApiConfirmOutboundRequest} requestParameters Request parameters.
|
|
1324
|
+
* @param {*} [options] Override http request option.
|
|
1325
|
+
* @throws {RequiredError}
|
|
1326
|
+
*/
|
|
1327
|
+
confirmOutbound(requestParameters, options) {
|
|
1328
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).confirmOutbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1331
|
+
* Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
|
|
1332
|
+
* @param {AmazonWarehousingAndDistributionApiConfirmReplenishmentOrderRequest} requestParameters Request parameters.
|
|
1333
|
+
* @param {*} [options] Override http request option.
|
|
1334
|
+
* @throws {RequiredError}
|
|
1335
|
+
*/
|
|
1336
|
+
confirmReplenishmentOrder(requestParameters, options) {
|
|
1337
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).confirmReplenishmentOrder(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1341
|
+
* @param {AmazonWarehousingAndDistributionApiCreateInboundRequest} requestParameters Request parameters.
|
|
1342
|
+
* @param {*} [options] Override http request option.
|
|
1343
|
+
* @throws {RequiredError}
|
|
1344
|
+
*/
|
|
1345
|
+
createInbound(requestParameters, options) {
|
|
1346
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).createInbound(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1350
|
+
* @param {AmazonWarehousingAndDistributionApiCreateOutboundRequest} requestParameters Request parameters.
|
|
1351
|
+
* @param {*} [options] Override http request option.
|
|
1352
|
+
* @throws {RequiredError}
|
|
1353
|
+
*/
|
|
1354
|
+
createOutbound(requestParameters, options) {
|
|
1355
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).createOutbound(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
|
|
1359
|
+
* @param {AmazonWarehousingAndDistributionApiCreateReplenishmentOrderRequest} requestParameters Request parameters.
|
|
1360
|
+
* @param {*} [options] Override http request option.
|
|
1361
|
+
* @throws {RequiredError}
|
|
1362
|
+
*/
|
|
1363
|
+
createReplenishmentOrder(requestParameters, options) {
|
|
1364
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).createReplenishmentOrder(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1365
|
+
}
|
|
1366
|
+
/**
|
|
1367
|
+
* Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1368
|
+
* @param {AmazonWarehousingAndDistributionApiGetInboundRequest} requestParameters Request parameters.
|
|
1369
|
+
* @param {*} [options] Override http request option.
|
|
1370
|
+
* @throws {RequiredError}
|
|
1371
|
+
*/
|
|
1372
|
+
getInbound(requestParameters, options) {
|
|
1373
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).getInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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, refer to [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)
|
|
1377
|
+
* @param {AmazonWarehousingAndDistributionApiGetInboundShipmentRequest} requestParameters Request parameters.
|
|
1378
|
+
* @param {*} [options] Override http request option.
|
|
1379
|
+
* @throws {RequiredError}
|
|
1380
|
+
*/
|
|
1381
|
+
getInboundShipment(requestParameters, options) {
|
|
1382
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).getInboundShipment(requestParameters.shipmentId, requestParameters.skuQuantities, options).then((request) => request(this.axios, this.basePath));
|
|
1383
|
+
}
|
|
1384
|
+
/**
|
|
1385
|
+
* Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1386
|
+
* @param {AmazonWarehousingAndDistributionApiGetInboundShipmentLabelsRequest} requestParameters Request parameters.
|
|
1387
|
+
* @param {*} [options] Override http request option.
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
*/
|
|
1390
|
+
getInboundShipmentLabels(requestParameters, options) {
|
|
1391
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).getInboundShipmentLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.formatType, options).then((request) => request(this.axios, this.basePath));
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1395
|
+
* @param {AmazonWarehousingAndDistributionApiGetLabelPageTypesRequest} requestParameters Request parameters.
|
|
1396
|
+
* @param {*} [options] Override http request option.
|
|
1397
|
+
* @throws {RequiredError}
|
|
1398
|
+
*/
|
|
1399
|
+
getLabelPageTypes(requestParameters, options) {
|
|
1400
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).getLabelPageTypes(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1404
|
+
* @param {AmazonWarehousingAndDistributionApiGetOutboundRequest} requestParameters Request parameters.
|
|
1405
|
+
* @param {*} [options] Override http request option.
|
|
1406
|
+
* @throws {RequiredError}
|
|
1407
|
+
*/
|
|
1408
|
+
getOutbound(requestParameters, options) {
|
|
1409
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).getOutbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1410
|
+
}
|
|
1411
|
+
/**
|
|
1412
|
+
* Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
|
|
1413
|
+
* @param {AmazonWarehousingAndDistributionApiGetReplenishmentOrderRequest} requestParameters Request parameters.
|
|
1414
|
+
* @param {*} [options] Override http request option.
|
|
1415
|
+
* @throws {RequiredError}
|
|
1416
|
+
*/
|
|
1417
|
+
getReplenishmentOrder(requestParameters, options) {
|
|
1418
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).getReplenishmentOrder(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1422
|
+
* @param {AmazonWarehousingAndDistributionApiListInboundShipmentsRequest} requestParameters Request parameters.
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
*/
|
|
1426
|
+
listInboundShipments(requestParameters = {}, options) {
|
|
1427
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).listInboundShipments(requestParameters.sortBy, requestParameters.sortOrder, requestParameters.shipmentStatus, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
* Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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, refer to [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).
|
|
1431
|
+
* @param {AmazonWarehousingAndDistributionApiListInventoryRequest} requestParameters Request parameters.
|
|
1432
|
+
* @param {*} [options] Override http request option.
|
|
1433
|
+
* @throws {RequiredError}
|
|
1434
|
+
*/
|
|
1435
|
+
listInventory(requestParameters = {}, options) {
|
|
1436
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).listInventory(requestParameters.sku, requestParameters.sortOrder, requestParameters.details, requestParameters.nextToken, requestParameters.maxResults, options).then((request) => request(this.axios, this.basePath));
|
|
1437
|
+
}
|
|
1438
|
+
/**
|
|
1439
|
+
* Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1440
|
+
* @param {AmazonWarehousingAndDistributionApiListOutboundsRequest} requestParameters Request parameters.
|
|
1441
|
+
* @param {*} [options] Override http request option.
|
|
1442
|
+
* @throws {RequiredError}
|
|
1443
|
+
*/
|
|
1444
|
+
listOutbounds(requestParameters = {}, options) {
|
|
1445
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).listOutbounds(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
|
|
1449
|
+
* @param {AmazonWarehousingAndDistributionApiListReplenishmentOrdersRequest} requestParameters Request parameters.
|
|
1450
|
+
* @param {*} [options] Override http request option.
|
|
1451
|
+
* @throws {RequiredError}
|
|
1452
|
+
*/
|
|
1453
|
+
listReplenishmentOrders(requestParameters = {}, options) {
|
|
1454
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).listReplenishmentOrders(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
1455
|
+
}
|
|
1456
|
+
/**
|
|
1457
|
+
* Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1458
|
+
* @param {AmazonWarehousingAndDistributionApiUpdateInboundRequest} requestParameters Request parameters.
|
|
1459
|
+
* @param {*} [options] Override http request option.
|
|
1460
|
+
* @throws {RequiredError}
|
|
1461
|
+
*/
|
|
1462
|
+
updateInbound(requestParameters, options) {
|
|
1463
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).updateInbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1467
|
+
* @param {AmazonWarehousingAndDistributionApiUpdateInboundShipmentTransportDetailsRequest} requestParameters Request parameters.
|
|
1468
|
+
* @param {*} [options] Override http request option.
|
|
1469
|
+
* @throws {RequiredError}
|
|
1470
|
+
*/
|
|
1471
|
+
updateInboundShipmentTransportDetails(requestParameters, options) {
|
|
1472
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).updateInboundShipmentTransportDetails(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [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).
|
|
1476
|
+
* @param {AmazonWarehousingAndDistributionApiUpdateOutboundRequest} requestParameters Request parameters.
|
|
1477
|
+
* @param {*} [options] Override http request option.
|
|
1478
|
+
* @throws {RequiredError}
|
|
1479
|
+
*/
|
|
1480
|
+
updateOutbound(requestParameters, options) {
|
|
1481
|
+
return AmazonWarehousingAndDistributionApiFp(this.configuration).updateOutbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1482
|
+
}
|
|
1417
1483
|
};
|
|
1418
|
-
|
|
1419
|
-
|
|
1484
|
+
const GetInboundShipmentSkuQuantitiesEnum = {
|
|
1485
|
+
Show: "SHOW",
|
|
1486
|
+
Hide: "HIDE"
|
|
1420
1487
|
};
|
|
1421
|
-
|
|
1422
|
-
|
|
1488
|
+
const GetInboundShipmentLabelsPageTypeEnum = { PlainPaper: "PLAIN_PAPER" };
|
|
1489
|
+
const GetInboundShipmentLabelsFormatTypeEnum = { Pdf: "PDF" };
|
|
1490
|
+
const ListInboundShipmentsSortByEnum = {
|
|
1491
|
+
UpdatedAt: "UPDATED_AT",
|
|
1492
|
+
CreatedAt: "CREATED_AT"
|
|
1423
1493
|
};
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1494
|
+
const ListInboundShipmentsSortOrderEnum = {
|
|
1495
|
+
Ascending: "ASCENDING",
|
|
1496
|
+
Descending: "DESCENDING"
|
|
1427
1497
|
};
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1498
|
+
const ListInboundShipmentsShipmentStatusEnum = {
|
|
1499
|
+
Created: "CREATED",
|
|
1500
|
+
Shipped: "SHIPPED",
|
|
1501
|
+
InTransit: "IN_TRANSIT",
|
|
1502
|
+
Receiving: "RECEIVING",
|
|
1503
|
+
Delivered: "DELIVERED",
|
|
1504
|
+
Closed: "CLOSED",
|
|
1505
|
+
Cancelled: "CANCELLED"
|
|
1431
1506
|
};
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
InTransit: "IN_TRANSIT",
|
|
1436
|
-
Receiving: "RECEIVING",
|
|
1437
|
-
Delivered: "DELIVERED",
|
|
1438
|
-
Closed: "CLOSED",
|
|
1439
|
-
Cancelled: "CANCELLED"
|
|
1507
|
+
const ListInventorySortOrderEnum = {
|
|
1508
|
+
Ascending: "ASCENDING",
|
|
1509
|
+
Descending: "DESCENDING"
|
|
1440
1510
|
};
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1511
|
+
const ListInventoryDetailsEnum = {
|
|
1512
|
+
Show: "SHOW",
|
|
1513
|
+
Hide: "HIDE"
|
|
1444
1514
|
};
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1515
|
+
const ListOutboundsSortOrderEnum = {
|
|
1516
|
+
Ascending: "ASCENDING",
|
|
1517
|
+
Descending: "DESCENDING"
|
|
1448
1518
|
};
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1519
|
+
const ListReplenishmentOrdersSortOrderEnum = {
|
|
1520
|
+
Ascending: "ASCENDING",
|
|
1521
|
+
Descending: "DESCENDING"
|
|
1452
1522
|
};
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
Descending: "DESCENDING"
|
|
1456
|
-
};
|
|
1457
|
-
|
|
1458
|
-
// src/api-model/configuration.ts
|
|
1523
|
+
//#endregion
|
|
1524
|
+
//#region src/api-model/configuration.ts
|
|
1459
1525
|
var Configuration = class {
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
1538
|
-
return mime !== null && jsonMime.test(mime);
|
|
1539
|
-
}
|
|
1526
|
+
/**
|
|
1527
|
+
* parameter for apiKey security
|
|
1528
|
+
* @param name security name
|
|
1529
|
+
*/
|
|
1530
|
+
apiKey;
|
|
1531
|
+
/**
|
|
1532
|
+
* parameter for basic security
|
|
1533
|
+
*/
|
|
1534
|
+
username;
|
|
1535
|
+
/**
|
|
1536
|
+
* parameter for basic security
|
|
1537
|
+
*/
|
|
1538
|
+
password;
|
|
1539
|
+
/**
|
|
1540
|
+
* parameter for oauth2 security
|
|
1541
|
+
* @param name security name
|
|
1542
|
+
* @param scopes oauth2 scope
|
|
1543
|
+
*/
|
|
1544
|
+
accessToken;
|
|
1545
|
+
/**
|
|
1546
|
+
* parameter for aws4 signature security
|
|
1547
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
1548
|
+
* @param {string} options.region - aws region
|
|
1549
|
+
* @param {string} options.service - name of the service.
|
|
1550
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
1551
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
1552
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
1553
|
+
* @memberof Configuration
|
|
1554
|
+
*/
|
|
1555
|
+
awsv4;
|
|
1556
|
+
/**
|
|
1557
|
+
* override base path
|
|
1558
|
+
*/
|
|
1559
|
+
basePath;
|
|
1560
|
+
/**
|
|
1561
|
+
* override server index
|
|
1562
|
+
*/
|
|
1563
|
+
serverIndex;
|
|
1564
|
+
/**
|
|
1565
|
+
* base options for axios calls
|
|
1566
|
+
*/
|
|
1567
|
+
baseOptions;
|
|
1568
|
+
/**
|
|
1569
|
+
* The FormData constructor that will be used to create multipart form data
|
|
1570
|
+
* requests. You can inject this here so that execution environments that
|
|
1571
|
+
* do not support the FormData class can still run the generated client.
|
|
1572
|
+
*
|
|
1573
|
+
* @type {new () => FormData}
|
|
1574
|
+
*/
|
|
1575
|
+
formDataCtor;
|
|
1576
|
+
constructor(param = {}) {
|
|
1577
|
+
this.apiKey = param.apiKey;
|
|
1578
|
+
this.username = param.username;
|
|
1579
|
+
this.password = param.password;
|
|
1580
|
+
this.accessToken = param.accessToken;
|
|
1581
|
+
this.awsv4 = param.awsv4;
|
|
1582
|
+
this.basePath = param.basePath;
|
|
1583
|
+
this.serverIndex = param.serverIndex;
|
|
1584
|
+
this.baseOptions = {
|
|
1585
|
+
...param.baseOptions,
|
|
1586
|
+
headers: { ...param.baseOptions?.headers }
|
|
1587
|
+
};
|
|
1588
|
+
this.formDataCtor = param.formDataCtor;
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* Check if the given MIME is a JSON MIME.
|
|
1592
|
+
* JSON MIME examples:
|
|
1593
|
+
* application/json
|
|
1594
|
+
* application/json; charset=UTF8
|
|
1595
|
+
* APPLICATION/JSON
|
|
1596
|
+
* application/vnd.company+json
|
|
1597
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
1598
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
1599
|
+
*/
|
|
1600
|
+
isJsonMime(mime) {
|
|
1601
|
+
return mime !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(mime);
|
|
1602
|
+
}
|
|
1540
1603
|
};
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1604
|
+
//#endregion
|
|
1605
|
+
//#region src/api-model/models/carrier-code-type.ts
|
|
1606
|
+
/**
|
|
1607
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1608
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1609
|
+
*
|
|
1610
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1611
|
+
*
|
|
1612
|
+
*
|
|
1613
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1614
|
+
* https://openapi-generator.tech
|
|
1615
|
+
* Do not edit the class manually.
|
|
1616
|
+
*/
|
|
1617
|
+
/**
|
|
1618
|
+
* Denotes the type for the carrier.
|
|
1619
|
+
*/
|
|
1620
|
+
const CarrierCodeType = { Scac: "SCAC" };
|
|
1621
|
+
//#endregion
|
|
1622
|
+
//#region src/api-model/models/confirmation-mode.ts
|
|
1623
|
+
/**
|
|
1624
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1625
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1626
|
+
*
|
|
1627
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1628
|
+
*
|
|
1629
|
+
*
|
|
1630
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1631
|
+
* https://openapi-generator.tech
|
|
1632
|
+
* Do not edit the class manually.
|
|
1633
|
+
*/
|
|
1634
|
+
/**
|
|
1635
|
+
* Confirmation Modes supported for Replenishment order creation. By default, the confirmation mode will be set to MANUAL.
|
|
1636
|
+
*/
|
|
1637
|
+
const ConfirmationMode = {
|
|
1638
|
+
Auto: "AUTO",
|
|
1639
|
+
Manual: "MANUAL"
|
|
1545
1640
|
};
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1641
|
+
//#endregion
|
|
1642
|
+
//#region src/api-model/models/dimension-unit-of-measurement.ts
|
|
1643
|
+
/**
|
|
1644
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1645
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1646
|
+
*
|
|
1647
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1648
|
+
*
|
|
1649
|
+
*
|
|
1650
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1651
|
+
* https://openapi-generator.tech
|
|
1652
|
+
* Do not edit the class manually.
|
|
1653
|
+
*/
|
|
1654
|
+
/**
|
|
1655
|
+
* Unit of measurement for package dimensions.
|
|
1656
|
+
*/
|
|
1657
|
+
const DimensionUnitOfMeasurement = {
|
|
1658
|
+
Inches: "INCHES",
|
|
1659
|
+
Centimeters: "CENTIMETERS"
|
|
1551
1660
|
};
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1661
|
+
//#endregion
|
|
1662
|
+
//#region src/api-model/models/distribution-package-type.ts
|
|
1663
|
+
/**
|
|
1664
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1665
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1666
|
+
*
|
|
1667
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1668
|
+
*
|
|
1669
|
+
*
|
|
1670
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1671
|
+
* https://openapi-generator.tech
|
|
1672
|
+
* Do not edit the class manually.
|
|
1673
|
+
*/
|
|
1674
|
+
/**
|
|
1675
|
+
* Type of distribution packages.
|
|
1676
|
+
*/
|
|
1677
|
+
const DistributionPackageType = {
|
|
1678
|
+
Case: "CASE",
|
|
1679
|
+
Pallet: "PALLET"
|
|
1557
1680
|
};
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1681
|
+
//#endregion
|
|
1682
|
+
//#region src/api-model/models/format-type.ts
|
|
1683
|
+
/**
|
|
1684
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1685
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1686
|
+
*
|
|
1687
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1688
|
+
*
|
|
1689
|
+
*
|
|
1690
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1691
|
+
* https://openapi-generator.tech
|
|
1692
|
+
* Do not edit the class manually.
|
|
1693
|
+
*/
|
|
1694
|
+
/**
|
|
1695
|
+
* The label format type extension.
|
|
1696
|
+
*/
|
|
1697
|
+
const FormatType = { Pdf: "PDF" };
|
|
1698
|
+
//#endregion
|
|
1699
|
+
//#region src/api-model/models/inbound-eligibility-status.ts
|
|
1700
|
+
/**
|
|
1701
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1702
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1703
|
+
*
|
|
1704
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1705
|
+
*
|
|
1706
|
+
*
|
|
1707
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1708
|
+
* https://openapi-generator.tech
|
|
1709
|
+
* Do not edit the class manually.
|
|
1710
|
+
*/
|
|
1711
|
+
/**
|
|
1712
|
+
* Enum denoting the package inbound eligibility.
|
|
1713
|
+
*/
|
|
1714
|
+
const InboundEligibilityStatus = {
|
|
1715
|
+
Eligible: "ELIGIBLE",
|
|
1716
|
+
Ineligible: "INELIGIBLE"
|
|
1563
1717
|
};
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1718
|
+
//#endregion
|
|
1719
|
+
//#region src/api-model/models/inbound-shipment-status.ts
|
|
1720
|
+
/**
|
|
1721
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1722
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1723
|
+
*
|
|
1724
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1725
|
+
*
|
|
1726
|
+
*
|
|
1727
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1728
|
+
* https://openapi-generator.tech
|
|
1729
|
+
* Do not edit the class manually.
|
|
1730
|
+
*/
|
|
1731
|
+
/**
|
|
1732
|
+
* Possible shipment statuses used by shipments.
|
|
1733
|
+
*/
|
|
1734
|
+
const InboundShipmentStatus = {
|
|
1735
|
+
Created: "CREATED",
|
|
1736
|
+
Shipped: "SHIPPED",
|
|
1737
|
+
InTransit: "IN_TRANSIT",
|
|
1738
|
+
Receiving: "RECEIVING",
|
|
1739
|
+
Delivered: "DELIVERED",
|
|
1740
|
+
Closed: "CLOSED",
|
|
1741
|
+
Cancelled: "CANCELLED"
|
|
1568
1742
|
};
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
Closed: "CLOSED",
|
|
1593
|
-
Expired: "EXPIRED",
|
|
1594
|
-
Cancelled: "CANCELLED"
|
|
1595
|
-
};
|
|
1596
|
-
|
|
1597
|
-
// src/api-model/models/inventory-details-visibility.ts
|
|
1598
|
-
var InventoryDetailsVisibility = {
|
|
1599
|
-
Show: "SHOW",
|
|
1600
|
-
Hide: "HIDE"
|
|
1743
|
+
//#endregion
|
|
1744
|
+
//#region src/api-model/models/inbound-status.ts
|
|
1745
|
+
/**
|
|
1746
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1747
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1748
|
+
*
|
|
1749
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1750
|
+
*
|
|
1751
|
+
*
|
|
1752
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1753
|
+
* https://openapi-generator.tech
|
|
1754
|
+
* Do not edit the class manually.
|
|
1755
|
+
*/
|
|
1756
|
+
/**
|
|
1757
|
+
* The supported statuses for an inbound order.
|
|
1758
|
+
*/
|
|
1759
|
+
const InboundStatus = {
|
|
1760
|
+
Draft: "DRAFT",
|
|
1761
|
+
Validating: "VALIDATING",
|
|
1762
|
+
Confirmed: "CONFIRMED",
|
|
1763
|
+
Closed: "CLOSED",
|
|
1764
|
+
Expired: "EXPIRED",
|
|
1765
|
+
Cancelled: "CANCELLED"
|
|
1601
1766
|
};
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1767
|
+
//#endregion
|
|
1768
|
+
//#region src/api-model/models/inventory-details-visibility.ts
|
|
1769
|
+
/**
|
|
1770
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1771
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1772
|
+
*
|
|
1773
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1774
|
+
*
|
|
1775
|
+
*
|
|
1776
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1777
|
+
* https://openapi-generator.tech
|
|
1778
|
+
* Do not edit the class manually.
|
|
1779
|
+
*/
|
|
1780
|
+
/**
|
|
1781
|
+
* Enum to specify if returned summaries should include additional summarized inventory details and quantities.
|
|
1782
|
+
*/
|
|
1783
|
+
const InventoryDetailsVisibility = {
|
|
1784
|
+
Show: "SHOW",
|
|
1785
|
+
Hide: "HIDE"
|
|
1608
1786
|
};
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1787
|
+
//#endregion
|
|
1788
|
+
//#region src/api-model/models/inventory-unit-of-measurement.ts
|
|
1789
|
+
/**
|
|
1790
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1791
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1792
|
+
*
|
|
1793
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1794
|
+
*
|
|
1795
|
+
*
|
|
1796
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1797
|
+
* https://openapi-generator.tech
|
|
1798
|
+
* Do not edit the class manually.
|
|
1799
|
+
*/
|
|
1800
|
+
/**
|
|
1801
|
+
* Unit of measurement for the inventory.
|
|
1802
|
+
*/
|
|
1803
|
+
const InventoryUnitOfMeasurement = {
|
|
1804
|
+
ProductUnits: "PRODUCT_UNITS",
|
|
1805
|
+
Cases: "CASES",
|
|
1806
|
+
Pallets: "PALLETS"
|
|
1614
1807
|
};
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1808
|
+
//#endregion
|
|
1809
|
+
//#region src/api-model/models/label-owner.ts
|
|
1810
|
+
/**
|
|
1811
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1812
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1813
|
+
*
|
|
1814
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1815
|
+
*
|
|
1816
|
+
*
|
|
1817
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1818
|
+
* https://openapi-generator.tech
|
|
1819
|
+
* Do not edit the class manually.
|
|
1820
|
+
*/
|
|
1821
|
+
/**
|
|
1822
|
+
* The entity that labels the products. `AMAZON` is not an accepted value in the US marketplace.
|
|
1823
|
+
*/
|
|
1824
|
+
const LabelOwner = {
|
|
1825
|
+
Amazon: "AMAZON",
|
|
1826
|
+
Self: "SELF"
|
|
1622
1827
|
};
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1828
|
+
//#endregion
|
|
1829
|
+
//#region src/api-model/models/label-status.ts
|
|
1830
|
+
/**
|
|
1831
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1832
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1833
|
+
*
|
|
1834
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1835
|
+
*
|
|
1836
|
+
*
|
|
1837
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1838
|
+
* https://openapi-generator.tech
|
|
1839
|
+
* Do not edit the class manually.
|
|
1840
|
+
*/
|
|
1841
|
+
/**
|
|
1842
|
+
* The status of your label.
|
|
1843
|
+
*/
|
|
1844
|
+
const LabelStatus = {
|
|
1845
|
+
Generating: "GENERATING",
|
|
1846
|
+
Generated: "GENERATED",
|
|
1847
|
+
GenerationFailed: "GENERATION_FAILED",
|
|
1848
|
+
NotReady: "NOT_READY"
|
|
1627
1849
|
};
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1850
|
+
//#endregion
|
|
1851
|
+
//#region src/api-model/models/order-preference.ts
|
|
1852
|
+
/**
|
|
1853
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1854
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1855
|
+
*
|
|
1856
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1857
|
+
*
|
|
1858
|
+
*
|
|
1859
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1860
|
+
* https://openapi-generator.tech
|
|
1861
|
+
* Do not edit the class manually.
|
|
1862
|
+
*/
|
|
1863
|
+
/**
|
|
1864
|
+
* Supported preferences for the distribution order.
|
|
1865
|
+
*/
|
|
1866
|
+
const OrderPreference = { PartialOrder: "PARTIAL_ORDER" };
|
|
1867
|
+
//#endregion
|
|
1868
|
+
//#region src/api-model/models/order-preference-value.ts
|
|
1869
|
+
/**
|
|
1870
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1871
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1872
|
+
*
|
|
1873
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1874
|
+
*
|
|
1875
|
+
*
|
|
1876
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1877
|
+
* https://openapi-generator.tech
|
|
1878
|
+
* Do not edit the class manually.
|
|
1879
|
+
*/
|
|
1880
|
+
/**
|
|
1881
|
+
* Value for the order preference.
|
|
1882
|
+
*/
|
|
1883
|
+
const OrderPreferenceValue = {
|
|
1884
|
+
Set: "SET",
|
|
1885
|
+
Unset: "UNSET"
|
|
1633
1886
|
};
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1887
|
+
//#endregion
|
|
1888
|
+
//#region src/api-model/models/outbound-shipment-status.ts
|
|
1889
|
+
/**
|
|
1890
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1891
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1892
|
+
*
|
|
1893
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1894
|
+
*
|
|
1895
|
+
*
|
|
1896
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1897
|
+
* https://openapi-generator.tech
|
|
1898
|
+
* Do not edit the class manually.
|
|
1899
|
+
*/
|
|
1900
|
+
/**
|
|
1901
|
+
* Possible shipment statuses for outbound shipments.
|
|
1902
|
+
*/
|
|
1903
|
+
const OutboundShipmentStatus = {
|
|
1904
|
+
Created: "CREATED",
|
|
1905
|
+
InTransit: "IN_TRANSIT",
|
|
1906
|
+
Delivered: "DELIVERED",
|
|
1907
|
+
Receiving: "RECEIVING",
|
|
1908
|
+
Received: "RECEIVED",
|
|
1909
|
+
Closed: "CLOSED",
|
|
1910
|
+
Cancelled: "CANCELLED",
|
|
1911
|
+
Failed: "FAILED"
|
|
1645
1912
|
};
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1913
|
+
//#endregion
|
|
1914
|
+
//#region src/api-model/models/outbound-status.ts
|
|
1915
|
+
/**
|
|
1916
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1917
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1918
|
+
*
|
|
1919
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1920
|
+
*
|
|
1921
|
+
*
|
|
1922
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1923
|
+
* https://openapi-generator.tech
|
|
1924
|
+
* Do not edit the class manually.
|
|
1925
|
+
*/
|
|
1926
|
+
/**
|
|
1927
|
+
* Statuses supported for an outbound order.
|
|
1928
|
+
*/
|
|
1929
|
+
const OutboundStatus = {
|
|
1930
|
+
Confirmed: "CONFIRMED",
|
|
1931
|
+
Draft: "DRAFT",
|
|
1932
|
+
Eligible: "ELIGIBLE",
|
|
1933
|
+
Executing: "EXECUTING",
|
|
1934
|
+
Failure: "FAILURE",
|
|
1935
|
+
Ineligible: "INELIGIBLE",
|
|
1936
|
+
InventoryOutbound: "INVENTORY_OUTBOUND",
|
|
1937
|
+
Success: "SUCCESS",
|
|
1938
|
+
Validating: "VALIDATING"
|
|
1658
1939
|
};
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1940
|
+
//#endregion
|
|
1941
|
+
//#region src/api-model/models/page-type.ts
|
|
1942
|
+
/**
|
|
1943
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1944
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1945
|
+
*
|
|
1946
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1947
|
+
*
|
|
1948
|
+
*
|
|
1949
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1950
|
+
* https://openapi-generator.tech
|
|
1951
|
+
* Do not edit the class manually.
|
|
1952
|
+
*/
|
|
1953
|
+
/**
|
|
1954
|
+
* Label page type.
|
|
1955
|
+
*/
|
|
1956
|
+
const PageType = {
|
|
1957
|
+
PlainPaper: "PLAIN_PAPER",
|
|
1958
|
+
LetterPcpFulfillmentlabel: "LETTER_PCP_FULFILLMENTLABEL",
|
|
1959
|
+
Letter2Horizontal: "LETTER_2_HORIZONTAL",
|
|
1960
|
+
Letter2: "LETTER_2",
|
|
1961
|
+
ThermalNoCarrierRotation: "THERMAL_NO_CARRIER_ROTATION",
|
|
1962
|
+
Thermal: "THERMAL",
|
|
1963
|
+
A4Paper: "A4_PAPER",
|
|
1964
|
+
A42Horizontal: "A4_2_HORIZONTAL",
|
|
1965
|
+
ThermalSquare10Cm: "THERMAL_SQUARE_10CM"
|
|
1671
1966
|
};
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1967
|
+
//#endregion
|
|
1968
|
+
//#region src/api-model/models/prep-category.ts
|
|
1969
|
+
/**
|
|
1970
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
1971
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
1972
|
+
*
|
|
1973
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
1974
|
+
*
|
|
1975
|
+
*
|
|
1976
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1977
|
+
* https://openapi-generator.tech
|
|
1978
|
+
* Do not edit the class manually.
|
|
1979
|
+
*/
|
|
1980
|
+
/**
|
|
1981
|
+
* The preparation category for shipping an item to Amazon\'s fulfillment network.
|
|
1982
|
+
*/
|
|
1983
|
+
const PrepCategory = {
|
|
1984
|
+
Adult: "ADULT",
|
|
1985
|
+
Baby: "BABY",
|
|
1986
|
+
FcProvided: "FC_PROVIDED",
|
|
1987
|
+
Fragile: "FRAGILE",
|
|
1988
|
+
Granular: "GRANULAR",
|
|
1989
|
+
Hanger: "HANGER",
|
|
1990
|
+
Liquid: "LIQUID",
|
|
1991
|
+
Perforated: "PERFORATED",
|
|
1992
|
+
Set: "SET",
|
|
1993
|
+
Sharp: "SHARP",
|
|
1994
|
+
Small: "SMALL",
|
|
1995
|
+
Textile: "TEXTILE",
|
|
1996
|
+
NoPrep: "NO_PREP",
|
|
1997
|
+
Unknown: "UNKNOWN"
|
|
1689
1998
|
};
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1999
|
+
//#endregion
|
|
2000
|
+
//#region src/api-model/models/prep-owner.ts
|
|
2001
|
+
/**
|
|
2002
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
2003
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
2004
|
+
*
|
|
2005
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
2006
|
+
*
|
|
2007
|
+
*
|
|
2008
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2009
|
+
* https://openapi-generator.tech
|
|
2010
|
+
* Do not edit the class manually.
|
|
2011
|
+
*/
|
|
2012
|
+
/**
|
|
2013
|
+
* The owner of the preparations, if special preparations are required. `AMAZON` is not an accepted value in the US marketplace.
|
|
2014
|
+
*/
|
|
2015
|
+
const PrepOwner = {
|
|
2016
|
+
Amazon: "AMAZON",
|
|
2017
|
+
Self: "SELF"
|
|
1695
2018
|
};
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
2019
|
+
//#endregion
|
|
2020
|
+
//#region src/api-model/models/replenishment-order-status.ts
|
|
2021
|
+
/**
|
|
2022
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
2023
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
2024
|
+
*
|
|
2025
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
2026
|
+
*
|
|
2027
|
+
*
|
|
2028
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2029
|
+
* https://openapi-generator.tech
|
|
2030
|
+
* Do not edit the class manually.
|
|
2031
|
+
*/
|
|
2032
|
+
/**
|
|
2033
|
+
* Statuses supported for an replenishment order.
|
|
2034
|
+
*/
|
|
2035
|
+
const ReplenishmentOrderStatus = {
|
|
2036
|
+
Confirmed: "CONFIRMED",
|
|
2037
|
+
Created: "CREATED",
|
|
2038
|
+
Eligible: "ELIGIBLE",
|
|
2039
|
+
Executing: "EXECUTING",
|
|
2040
|
+
Failure: "FAILURE",
|
|
2041
|
+
Ineligible: "INELIGIBLE",
|
|
2042
|
+
InventoryOutbound: "INVENTORY_OUTBOUND",
|
|
2043
|
+
Success: "SUCCESS",
|
|
2044
|
+
Validating: "VALIDATING"
|
|
1708
2045
|
};
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
2046
|
+
//#endregion
|
|
2047
|
+
//#region src/api-model/models/shipment-sortable-field.ts
|
|
2048
|
+
/**
|
|
2049
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
2050
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
2051
|
+
*
|
|
2052
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
2053
|
+
*
|
|
2054
|
+
*
|
|
2055
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2056
|
+
* https://openapi-generator.tech
|
|
2057
|
+
* Do not edit the class manually.
|
|
2058
|
+
*/
|
|
2059
|
+
/**
|
|
2060
|
+
* Denotes the field name on which the shipments are to be sorted.
|
|
2061
|
+
*/
|
|
2062
|
+
const ShipmentSortableField = {
|
|
2063
|
+
UpdatedAt: "UPDATED_AT",
|
|
2064
|
+
CreatedAt: "CREATED_AT"
|
|
1714
2065
|
};
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
2066
|
+
//#endregion
|
|
2067
|
+
//#region src/api-model/models/sku-quantities-visibility.ts
|
|
2068
|
+
/**
|
|
2069
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
2070
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
2071
|
+
*
|
|
2072
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
2073
|
+
*
|
|
2074
|
+
*
|
|
2075
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2076
|
+
* https://openapi-generator.tech
|
|
2077
|
+
* Do not edit the class manually.
|
|
2078
|
+
*/
|
|
2079
|
+
/**
|
|
2080
|
+
* Enum to specify if returned shipment should include SKU quantity details
|
|
2081
|
+
*/
|
|
2082
|
+
const SkuQuantitiesVisibility = {
|
|
2083
|
+
Show: "SHOW",
|
|
2084
|
+
Hide: "HIDE"
|
|
1720
2085
|
};
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
2086
|
+
//#endregion
|
|
2087
|
+
//#region src/api-model/models/sort-order.ts
|
|
2088
|
+
/**
|
|
2089
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
2090
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
2091
|
+
*
|
|
2092
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
2093
|
+
*
|
|
2094
|
+
*
|
|
2095
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2096
|
+
* https://openapi-generator.tech
|
|
2097
|
+
* Do not edit the class manually.
|
|
2098
|
+
*/
|
|
2099
|
+
/**
|
|
2100
|
+
* Sort order for a collection of items. For example, order or shipment.
|
|
2101
|
+
*/
|
|
2102
|
+
const SortOrder = {
|
|
2103
|
+
Ascending: "ASCENDING",
|
|
2104
|
+
Descending: "DESCENDING"
|
|
1726
2105
|
};
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
2106
|
+
//#endregion
|
|
2107
|
+
//#region src/api-model/models/volume-unit-of-measurement.ts
|
|
2108
|
+
/**
|
|
2109
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
2110
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
2111
|
+
*
|
|
2112
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
2113
|
+
*
|
|
2114
|
+
*
|
|
2115
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2116
|
+
* https://openapi-generator.tech
|
|
2117
|
+
* Do not edit the class manually.
|
|
2118
|
+
*/
|
|
2119
|
+
/**
|
|
2120
|
+
* Unit of measurement for the package volume.
|
|
2121
|
+
*/
|
|
2122
|
+
const VolumeUnitOfMeasurement = {
|
|
2123
|
+
CuIn: "CU_IN",
|
|
2124
|
+
Cbm: "CBM",
|
|
2125
|
+
Cc: "CC"
|
|
1733
2126
|
};
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
2127
|
+
//#endregion
|
|
2128
|
+
//#region src/api-model/models/weight-unit-of-measurement.ts
|
|
2129
|
+
/**
|
|
2130
|
+
* The Selling Partner API for Amazon Warehousing and Distribution
|
|
2131
|
+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
|
|
2132
|
+
*
|
|
2133
|
+
* The version of the OpenAPI document: 2024-05-09
|
|
2134
|
+
*
|
|
2135
|
+
*
|
|
2136
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2137
|
+
* https://openapi-generator.tech
|
|
2138
|
+
* Do not edit the class manually.
|
|
2139
|
+
*/
|
|
2140
|
+
/**
|
|
2141
|
+
* Unit of measurement for the package weight.
|
|
2142
|
+
*/
|
|
2143
|
+
const WeightUnitOfMeasurement = {
|
|
2144
|
+
Pounds: "POUNDS",
|
|
2145
|
+
Kilograms: "KILOGRAMS"
|
|
1739
2146
|
};
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
rate: 1,
|
|
1846
|
-
burst: 1
|
|
1847
|
-
},
|
|
1848
|
-
{
|
|
1849
|
-
method: "put",
|
|
1850
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
1851
|
-
urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders/[^/]*$"),
|
|
1852
|
-
rate: 1,
|
|
1853
|
-
burst: 1
|
|
1854
|
-
},
|
|
1855
|
-
{
|
|
1856
|
-
method: "post",
|
|
1857
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
1858
|
-
urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders/[^/]*/confirmation$"),
|
|
1859
|
-
rate: 1,
|
|
1860
|
-
burst: 1
|
|
1861
|
-
}
|
|
2147
|
+
//#endregion
|
|
2148
|
+
//#region src/client.ts
|
|
2149
|
+
const clientRateLimits = [
|
|
2150
|
+
{
|
|
2151
|
+
method: "post",
|
|
2152
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundOrders$/v,
|
|
2153
|
+
rate: 1,
|
|
2154
|
+
burst: 1
|
|
2155
|
+
},
|
|
2156
|
+
{
|
|
2157
|
+
method: "get",
|
|
2158
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundOrders\/[^\/]*$/v,
|
|
2159
|
+
rate: 2,
|
|
2160
|
+
burst: 2
|
|
2161
|
+
},
|
|
2162
|
+
{
|
|
2163
|
+
method: "put",
|
|
2164
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundOrders\/[^\/]*$/v,
|
|
2165
|
+
rate: 1,
|
|
2166
|
+
burst: 1
|
|
2167
|
+
},
|
|
2168
|
+
{
|
|
2169
|
+
method: "post",
|
|
2170
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundOrders\/[^\/]*\/cancellation$/v,
|
|
2171
|
+
rate: 1,
|
|
2172
|
+
burst: 1
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
method: "post",
|
|
2176
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundOrders\/[^\/]*\/confirmation$/v,
|
|
2177
|
+
rate: 1,
|
|
2178
|
+
burst: 1
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
method: "get",
|
|
2182
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundShipments\/[^\/]*$/v,
|
|
2183
|
+
rate: 2,
|
|
2184
|
+
burst: 2
|
|
2185
|
+
},
|
|
2186
|
+
{
|
|
2187
|
+
method: "get",
|
|
2188
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundShipments\/[^\/]*\/labels$/v,
|
|
2189
|
+
rate: 1,
|
|
2190
|
+
burst: 2
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
method: "get",
|
|
2194
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundShipments\/[^\/]*\/labelPageTypes$/v,
|
|
2195
|
+
rate: 1,
|
|
2196
|
+
burst: 2
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
method: "put",
|
|
2200
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundShipments\/[^\/]*\/transport$/v,
|
|
2201
|
+
rate: 1,
|
|
2202
|
+
burst: 1
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
method: "post",
|
|
2206
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundEligibility$/v,
|
|
2207
|
+
rate: 1,
|
|
2208
|
+
burst: 1
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
method: "get",
|
|
2212
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundShipments$/v,
|
|
2213
|
+
rate: 1,
|
|
2214
|
+
burst: 1
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
method: "get",
|
|
2218
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inventory$/v,
|
|
2219
|
+
rate: 2,
|
|
2220
|
+
burst: 2
|
|
2221
|
+
},
|
|
2222
|
+
{
|
|
2223
|
+
method: "get",
|
|
2224
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/outboundOrders$/v,
|
|
2225
|
+
rate: 1,
|
|
2226
|
+
burst: 1
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
method: "post",
|
|
2230
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/outboundOrders$/v,
|
|
2231
|
+
rate: 1,
|
|
2232
|
+
burst: 1
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
method: "get",
|
|
2236
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/outboundOrders\/[^\/]*$/v,
|
|
2237
|
+
rate: 1,
|
|
2238
|
+
burst: 1
|
|
2239
|
+
},
|
|
2240
|
+
{
|
|
2241
|
+
method: "put",
|
|
2242
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/outboundOrders\/[^\/]*$/v,
|
|
2243
|
+
rate: 1,
|
|
2244
|
+
burst: 1
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
method: "post",
|
|
2248
|
+
urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/outboundOrders\/[^\/]*\/confirmation$/v,
|
|
2249
|
+
rate: 1,
|
|
2250
|
+
burst: 1
|
|
2251
|
+
}
|
|
1862
2252
|
];
|
|
1863
2253
|
var AmazonWarehousingAndDistributionApiClient = class extends AmazonWarehousingAndDistributionApi {
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
};
|
|
1869
|
-
export {
|
|
1870
|
-
AmazonWarehousingAndDistributionApi,
|
|
1871
|
-
AmazonWarehousingAndDistributionApiAxiosParamCreator,
|
|
1872
|
-
AmazonWarehousingAndDistributionApiClient,
|
|
1873
|
-
AmazonWarehousingAndDistributionApiFactory,
|
|
1874
|
-
AmazonWarehousingAndDistributionApiFp,
|
|
1875
|
-
CarrierCodeType,
|
|
1876
|
-
ConfirmationMode,
|
|
1877
|
-
DimensionUnitOfMeasurement,
|
|
1878
|
-
DistributionPackageType,
|
|
1879
|
-
FormatType,
|
|
1880
|
-
GetInboundShipmentLabelsFormatTypeEnum,
|
|
1881
|
-
GetInboundShipmentLabelsPageTypeEnum,
|
|
1882
|
-
GetInboundShipmentSkuQuantitiesEnum,
|
|
1883
|
-
InboundEligibilityStatus,
|
|
1884
|
-
InboundShipmentStatus,
|
|
1885
|
-
InboundStatus,
|
|
1886
|
-
InventoryDetailsVisibility,
|
|
1887
|
-
InventoryUnitOfMeasurement,
|
|
1888
|
-
LabelOwner,
|
|
1889
|
-
LabelStatus,
|
|
1890
|
-
ListInboundShipmentsShipmentStatusEnum,
|
|
1891
|
-
ListInboundShipmentsSortByEnum,
|
|
1892
|
-
ListInboundShipmentsSortOrderEnum,
|
|
1893
|
-
ListInventoryDetailsEnum,
|
|
1894
|
-
ListInventorySortOrderEnum,
|
|
1895
|
-
ListOutboundsSortOrderEnum,
|
|
1896
|
-
ListReplenishmentOrdersSortOrderEnum,
|
|
1897
|
-
OrderPreference,
|
|
1898
|
-
OrderPreferenceValue,
|
|
1899
|
-
OutboundShipmentStatus,
|
|
1900
|
-
OutboundStatus,
|
|
1901
|
-
PageType,
|
|
1902
|
-
PrepCategory,
|
|
1903
|
-
PrepOwner,
|
|
1904
|
-
ReplenishmentOrderStatus,
|
|
1905
|
-
ShipmentSortableField,
|
|
1906
|
-
SkuQuantitiesVisibility,
|
|
1907
|
-
SortOrder,
|
|
1908
|
-
VolumeUnitOfMeasurement,
|
|
1909
|
-
WeightUnitOfMeasurement,
|
|
1910
|
-
clientRateLimits
|
|
2254
|
+
constructor(configuration) {
|
|
2255
|
+
const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
|
|
2256
|
+
super(new Configuration(), endpoint, axios);
|
|
2257
|
+
}
|
|
1911
2258
|
};
|
|
2259
|
+
//#endregion
|
|
2260
|
+
export { AmazonWarehousingAndDistributionApi, AmazonWarehousingAndDistributionApiAxiosParamCreator, AmazonWarehousingAndDistributionApiClient, AmazonWarehousingAndDistributionApiFactory, AmazonWarehousingAndDistributionApiFp, CarrierCodeType, ConfirmationMode, DimensionUnitOfMeasurement, DistributionPackageType, FormatType, GetInboundShipmentLabelsFormatTypeEnum, GetInboundShipmentLabelsPageTypeEnum, GetInboundShipmentSkuQuantitiesEnum, InboundEligibilityStatus, InboundShipmentStatus, InboundStatus, InventoryDetailsVisibility, InventoryUnitOfMeasurement, LabelOwner, LabelStatus, ListInboundShipmentsShipmentStatusEnum, ListInboundShipmentsSortByEnum, ListInboundShipmentsSortOrderEnum, ListInventoryDetailsEnum, ListInventorySortOrderEnum, ListOutboundsSortOrderEnum, ListReplenishmentOrdersSortOrderEnum, OrderPreference, OrderPreferenceValue, OutboundShipmentStatus, OutboundStatus, PageType, PrepCategory, PrepOwner, ReplenishmentOrderStatus, ShipmentSortableField, SkuQuantitiesVisibility, SortOrder, VolumeUnitOfMeasurement, WeightUnitOfMeasurement, clientRateLimits };
|
|
2261
|
+
|
|
1912
2262
|
//# sourceMappingURL=index.js.map
|