@sp-api-sdk/fulfillment-inbound-api-v0 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/index.cjs +910 -837
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +768 -962
- package/dist/index.d.ts +768 -962
- package/dist/index.js +873 -787
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/dist/index.cjs
CHANGED
|
@@ -1,881 +1,954 @@
|
|
|
1
|
-
"
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
9
|
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
|
+
get: ((k) => from[k]).bind(null, key),
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
CurrencyCode: () => CurrencyCode,
|
|
36
|
-
ErrorReason: () => ErrorReason,
|
|
37
|
-
FulfillmentInboundApi: () => FulfillmentInboundApi,
|
|
38
|
-
FulfillmentInboundApiAxiosParamCreator: () => FulfillmentInboundApiAxiosParamCreator,
|
|
39
|
-
FulfillmentInboundApiClient: () => FulfillmentInboundApiClient,
|
|
40
|
-
FulfillmentInboundApiFactory: () => FulfillmentInboundApiFactory,
|
|
41
|
-
FulfillmentInboundApiFp: () => FulfillmentInboundApiFp,
|
|
42
|
-
GetLabelsLabelTypeEnum: () => GetLabelsLabelTypeEnum,
|
|
43
|
-
GetLabelsPageTypeEnum: () => GetLabelsPageTypeEnum,
|
|
44
|
-
GetShipmentItemsQueryTypeEnum: () => GetShipmentItemsQueryTypeEnum,
|
|
45
|
-
GetShipmentsQueryTypeEnum: () => GetShipmentsQueryTypeEnum,
|
|
46
|
-
GetShipmentsShipmentStatusListEnum: () => GetShipmentsShipmentStatusListEnum,
|
|
47
|
-
LabelPrepType: () => LabelPrepType,
|
|
48
|
-
PrepGuidance: () => PrepGuidance,
|
|
49
|
-
PrepInstruction: () => PrepInstruction,
|
|
50
|
-
PrepOwner: () => PrepOwner,
|
|
51
|
-
ShipmentStatus: () => ShipmentStatus,
|
|
52
|
-
clientRateLimits: () => clientRateLimits
|
|
53
|
-
});
|
|
54
|
-
module.exports = __toCommonJS(index_exports);
|
|
55
|
-
|
|
56
|
-
// src/client.ts
|
|
57
|
-
var import_common2 = require("@sp-api-sdk/common");
|
|
58
|
-
|
|
59
|
-
// src/api-model/api/fulfillment-inbound-api.ts
|
|
60
|
-
var import_axios2 = __toESM(require("axios"), 1);
|
|
61
|
-
|
|
62
|
-
// src/api-model/base.ts
|
|
63
|
-
var import_axios = __toESM(require("axios"), 1);
|
|
64
|
-
var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
65
|
-
var COLLECTION_FORMATS = {
|
|
66
|
-
csv: ",",
|
|
67
|
-
ssv: " ",
|
|
68
|
-
tsv: " ",
|
|
69
|
-
pipes: "|"
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
+
value: mod,
|
|
21
|
+
enumerable: true
|
|
22
|
+
}) : target, mod));
|
|
23
|
+
//#endregion
|
|
24
|
+
let _sp_api_sdk_common = require("@sp-api-sdk/common");
|
|
25
|
+
let axios = require("axios");
|
|
26
|
+
axios = __toESM(axios, 1);
|
|
27
|
+
//#region src/api-model/base.ts
|
|
28
|
+
const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
29
|
+
const COLLECTION_FORMATS = {
|
|
30
|
+
csv: ",",
|
|
31
|
+
ssv: " ",
|
|
32
|
+
tsv: " ",
|
|
33
|
+
pipes: "|"
|
|
70
34
|
};
|
|
71
35
|
var BaseAPI = class {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
36
|
+
basePath;
|
|
37
|
+
axios;
|
|
38
|
+
configuration;
|
|
39
|
+
constructor(configuration, basePath = BASE_PATH, axios$8 = axios.default) {
|
|
40
|
+
this.basePath = basePath;
|
|
41
|
+
this.axios = axios$8;
|
|
42
|
+
if (configuration) {
|
|
43
|
+
this.configuration = configuration;
|
|
44
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
83
47
|
};
|
|
84
48
|
var RequiredError = class extends Error {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
49
|
+
field;
|
|
50
|
+
constructor(field, msg) {
|
|
51
|
+
super(msg);
|
|
52
|
+
this.field = field;
|
|
53
|
+
this.name = "RequiredError";
|
|
54
|
+
}
|
|
91
55
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
56
|
+
const operationServerMap = {};
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/api-model/common.ts
|
|
59
|
+
const DUMMY_BASE_URL = "https://example.com";
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
const assertParamExists = function(functionName, paramName, paramValue) {
|
|
65
|
+
if (paramValue === null || paramValue === void 0) throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
100
66
|
};
|
|
101
67
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
Object.keys(parameter).forEach(
|
|
108
|
-
(currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
} else {
|
|
112
|
-
if (urlSearchParams.has(key)) {
|
|
113
|
-
urlSearchParams.append(key, parameter);
|
|
114
|
-
} else {
|
|
115
|
-
urlSearchParams.set(key, parameter);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
68
|
+
if (parameter == null) return;
|
|
69
|
+
if (typeof parameter === "object") if (Array.isArray(parameter) || parameter instanceof Set) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
70
|
+
else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
|
|
71
|
+
else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
|
|
72
|
+
else urlSearchParams.set(key, parameter);
|
|
118
73
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
74
|
+
const setSearchParams = function(url, ...objects) {
|
|
75
|
+
const searchParams = new URLSearchParams(url.search);
|
|
76
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
77
|
+
url.search = searchParams.toString();
|
|
123
78
|
};
|
|
124
|
-
|
|
125
|
-
|
|
79
|
+
const toPathString = function(url) {
|
|
80
|
+
return url.pathname + url.search + url.hash;
|
|
126
81
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
82
|
+
const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
83
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
84
|
+
const axiosRequestArgs = {
|
|
85
|
+
...axiosArgs.options,
|
|
86
|
+
url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url
|
|
87
|
+
};
|
|
88
|
+
return axios.request(axiosRequestArgs);
|
|
89
|
+
};
|
|
132
90
|
};
|
|
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
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
378
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
379
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
380
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
381
|
-
return {
|
|
382
|
-
url: toPathString(localVarUrlObj),
|
|
383
|
-
options: localVarRequestOptions
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
};
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/api-model/api/fulfillment-inbound-api.ts
|
|
93
|
+
/**
|
|
94
|
+
* FulfillmentInboundApi - axios parameter creator
|
|
95
|
+
*/
|
|
96
|
+
const FulfillmentInboundApiAxiosParamCreator = function(configuration) {
|
|
97
|
+
return {
|
|
98
|
+
/**
|
|
99
|
+
* Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
100
|
+
* @param {string} shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation.
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
getBillOfLading: async (shipmentId, options = {}) => {
|
|
105
|
+
assertParamExists("getBillOfLading", "shipmentId", shipmentId);
|
|
106
|
+
const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/billOfLading`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
|
|
107
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
108
|
+
let baseOptions;
|
|
109
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
110
|
+
const localVarRequestOptions = {
|
|
111
|
+
method: "GET",
|
|
112
|
+
...baseOptions,
|
|
113
|
+
...options
|
|
114
|
+
};
|
|
115
|
+
const localVarHeaderParameter = {};
|
|
116
|
+
const localVarQueryParameter = {};
|
|
117
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
118
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
119
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
|
+
localVarRequestOptions.headers = {
|
|
121
|
+
...localVarHeaderParameter,
|
|
122
|
+
...headersFromBaseOptions,
|
|
123
|
+
...options.headers
|
|
124
|
+
};
|
|
125
|
+
return {
|
|
126
|
+
url: toPathString(localVarUrlObj),
|
|
127
|
+
options: localVarRequestOptions
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
/**
|
|
131
|
+
* Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
132
|
+
* @param {string} shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation.
|
|
133
|
+
* @param {GetLabelsPageTypeEnum} pageType The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error.
|
|
134
|
+
* @param {GetLabelsLabelTypeEnum} labelType The type of labels requested.
|
|
135
|
+
* @param {number} [numberOfPackages] The number of packages in the shipment.
|
|
136
|
+
* @param {Array<string>} [packageLabelsToPrint] A list of identifiers that specify packages for which you want package labels printed. If you provide box content information with the [FBA Inbound Shipment Carton Information Feed](https://developer-docs.amazon.com/sp-api/docs/fulfillment-by-amazon-feed-type-values#fba-inbound-shipment-carton-information-feed), then `PackageLabelsToPrint` must match the `CartonId` values you provide through that feed. If you provide box content information with the Fulfillment Inbound API v2024-03-20, then `PackageLabelsToPrint` must match the `boxID` values from the [`listShipmentBoxes`](https://developer-docs.amazon.com/sp-api/reference/listshipmentboxes) response. If these values do not match as required, the operation returns the `IncorrectPackageIdentifier` error code.
|
|
137
|
+
* @param {number} [numberOfPallets] The number of pallets in the shipment. This returns four identical labels for each pallet.
|
|
138
|
+
* @param {number} [pageSize] The page size for paginating through the total packages\' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000.
|
|
139
|
+
* @param {number} [pageStartIndex] The page start index for paginating through the total packages\' labels. This is a required parameter for Non-Partnered LTL Shipments.
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
getLabels: async (shipmentId, pageType, labelType, numberOfPackages, packageLabelsToPrint, numberOfPallets, pageSize, pageStartIndex, options = {}) => {
|
|
144
|
+
assertParamExists("getLabels", "shipmentId", shipmentId);
|
|
145
|
+
assertParamExists("getLabels", "pageType", pageType);
|
|
146
|
+
assertParamExists("getLabels", "labelType", labelType);
|
|
147
|
+
const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/labels`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
|
|
148
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
149
|
+
let baseOptions;
|
|
150
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
151
|
+
const localVarRequestOptions = {
|
|
152
|
+
method: "GET",
|
|
153
|
+
...baseOptions,
|
|
154
|
+
...options
|
|
155
|
+
};
|
|
156
|
+
const localVarHeaderParameter = {};
|
|
157
|
+
const localVarQueryParameter = {};
|
|
158
|
+
if (pageType !== void 0) localVarQueryParameter["PageType"] = pageType;
|
|
159
|
+
if (labelType !== void 0) localVarQueryParameter["LabelType"] = labelType;
|
|
160
|
+
if (numberOfPackages !== void 0) localVarQueryParameter["NumberOfPackages"] = numberOfPackages;
|
|
161
|
+
if (packageLabelsToPrint) localVarQueryParameter["PackageLabelsToPrint"] = packageLabelsToPrint.join(COLLECTION_FORMATS.csv);
|
|
162
|
+
if (numberOfPallets !== void 0) localVarQueryParameter["NumberOfPallets"] = numberOfPallets;
|
|
163
|
+
if (pageSize !== void 0) localVarQueryParameter["PageSize"] = pageSize;
|
|
164
|
+
if (pageStartIndex !== void 0) localVarQueryParameter["PageStartIndex"] = pageStartIndex;
|
|
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
|
+
* Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon\'s fulfillment network. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
180
|
+
* @param {string} shipToCountryCode The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country.
|
|
181
|
+
* @param {Array<string>} [sellerSKUList] A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon\'s fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon\'s retail website. If you include a seller SKU that you have never used to list an item on Amazon\'s retail website, the seller SKU is returned in the InvalidSKUList property in the response.
|
|
182
|
+
* @param {Array<string>} [aSINList] A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers.
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
getPrepInstructions: async (shipToCountryCode, sellerSKUList, aSINList, options = {}) => {
|
|
187
|
+
assertParamExists("getPrepInstructions", "shipToCountryCode", shipToCountryCode);
|
|
188
|
+
const localVarUrlObj = new URL(`/fba/inbound/v0/prepInstructions`, DUMMY_BASE_URL);
|
|
189
|
+
let baseOptions;
|
|
190
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
191
|
+
const localVarRequestOptions = {
|
|
192
|
+
method: "GET",
|
|
193
|
+
...baseOptions,
|
|
194
|
+
...options
|
|
195
|
+
};
|
|
196
|
+
const localVarHeaderParameter = {};
|
|
197
|
+
const localVarQueryParameter = {};
|
|
198
|
+
if (shipToCountryCode !== void 0) localVarQueryParameter["ShipToCountryCode"] = shipToCountryCode;
|
|
199
|
+
if (sellerSKUList) localVarQueryParameter["SellerSKUList"] = sellerSKUList.join(COLLECTION_FORMATS.csv);
|
|
200
|
+
if (aSINList) localVarQueryParameter["ASINList"] = aSINList.join(COLLECTION_FORMATS.csv);
|
|
201
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
202
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
203
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
204
|
+
localVarRequestOptions.headers = {
|
|
205
|
+
...localVarHeaderParameter,
|
|
206
|
+
...headersFromBaseOptions,
|
|
207
|
+
...options.headers
|
|
208
|
+
};
|
|
209
|
+
return {
|
|
210
|
+
url: toPathString(localVarUrlObj),
|
|
211
|
+
options: localVarRequestOptions
|
|
212
|
+
};
|
|
213
|
+
},
|
|
214
|
+
/**
|
|
215
|
+
* Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
216
|
+
* @param {GetShipmentItemsQueryTypeEnum} queryType Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request.
|
|
217
|
+
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
|
|
218
|
+
* @param {string} [lastUpdatedAfter] A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
|
|
219
|
+
* @param {string} [lastUpdatedBefore] A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
|
|
220
|
+
* @param {string} [nextToken] A string token returned in the response to your previous request.
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
*/
|
|
224
|
+
getShipmentItems: async (queryType, marketplaceId, lastUpdatedAfter, lastUpdatedBefore, nextToken, options = {}) => {
|
|
225
|
+
assertParamExists("getShipmentItems", "queryType", queryType);
|
|
226
|
+
assertParamExists("getShipmentItems", "marketplaceId", marketplaceId);
|
|
227
|
+
const localVarUrlObj = new URL(`/fba/inbound/v0/shipmentItems`, DUMMY_BASE_URL);
|
|
228
|
+
let baseOptions;
|
|
229
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
230
|
+
const localVarRequestOptions = {
|
|
231
|
+
method: "GET",
|
|
232
|
+
...baseOptions,
|
|
233
|
+
...options
|
|
234
|
+
};
|
|
235
|
+
const localVarHeaderParameter = {};
|
|
236
|
+
const localVarQueryParameter = {};
|
|
237
|
+
if (lastUpdatedAfter !== void 0) localVarQueryParameter["LastUpdatedAfter"] = lastUpdatedAfter instanceof Date ? lastUpdatedAfter.toISOString() : lastUpdatedAfter;
|
|
238
|
+
if (lastUpdatedBefore !== void 0) localVarQueryParameter["LastUpdatedBefore"] = lastUpdatedBefore instanceof Date ? lastUpdatedBefore.toISOString() : lastUpdatedBefore;
|
|
239
|
+
if (queryType !== void 0) localVarQueryParameter["QueryType"] = queryType;
|
|
240
|
+
if (nextToken !== void 0) localVarQueryParameter["NextToken"] = nextToken;
|
|
241
|
+
if (marketplaceId !== void 0) localVarQueryParameter["MarketplaceId"] = marketplaceId;
|
|
242
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
243
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
244
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
245
|
+
localVarRequestOptions.headers = {
|
|
246
|
+
...localVarHeaderParameter,
|
|
247
|
+
...headersFromBaseOptions,
|
|
248
|
+
...options.headers
|
|
249
|
+
};
|
|
250
|
+
return {
|
|
251
|
+
url: toPathString(localVarUrlObj),
|
|
252
|
+
options: localVarRequestOptions
|
|
253
|
+
};
|
|
254
|
+
},
|
|
255
|
+
/**
|
|
256
|
+
* Returns a list of items in a specified inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
257
|
+
* @param {string} shipmentId A shipment identifier used for selecting items in a specific inbound shipment.
|
|
258
|
+
* @param {string} [marketplaceId] Deprecated. Do not use.
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
getShipmentItemsByShipmentId: async (shipmentId, marketplaceId, options = {}) => {
|
|
263
|
+
assertParamExists("getShipmentItemsByShipmentId", "shipmentId", shipmentId);
|
|
264
|
+
const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/items`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
|
|
265
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
266
|
+
let baseOptions;
|
|
267
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
268
|
+
const localVarRequestOptions = {
|
|
269
|
+
method: "GET",
|
|
270
|
+
...baseOptions,
|
|
271
|
+
...options
|
|
272
|
+
};
|
|
273
|
+
const localVarHeaderParameter = {};
|
|
274
|
+
const localVarQueryParameter = {};
|
|
275
|
+
if (marketplaceId !== void 0) localVarQueryParameter["MarketplaceId"] = marketplaceId;
|
|
276
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
277
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
+
localVarRequestOptions.headers = {
|
|
280
|
+
...localVarHeaderParameter,
|
|
281
|
+
...headersFromBaseOptions,
|
|
282
|
+
...options.headers
|
|
283
|
+
};
|
|
284
|
+
return {
|
|
285
|
+
url: toPathString(localVarUrlObj),
|
|
286
|
+
options: localVarRequestOptions
|
|
287
|
+
};
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
* Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
291
|
+
* @param {GetShipmentsQueryTypeEnum} queryType Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request.
|
|
292
|
+
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
|
|
293
|
+
* @param {Array<GetShipmentsShipmentStatusListEnum>} [shipmentStatusList] A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify.
|
|
294
|
+
* @param {Array<string>} [shipmentIdList] A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned.
|
|
295
|
+
* @param {string} [lastUpdatedAfter] A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
|
|
296
|
+
* @param {string} [lastUpdatedBefore] A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
|
|
297
|
+
* @param {string} [nextToken] A string token returned in the response to your previous request.
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
*/
|
|
301
|
+
getShipments: async (queryType, marketplaceId, shipmentStatusList, shipmentIdList, lastUpdatedAfter, lastUpdatedBefore, nextToken, options = {}) => {
|
|
302
|
+
assertParamExists("getShipments", "queryType", queryType);
|
|
303
|
+
assertParamExists("getShipments", "marketplaceId", marketplaceId);
|
|
304
|
+
const localVarUrlObj = new URL(`/fba/inbound/v0/shipments`, DUMMY_BASE_URL);
|
|
305
|
+
let baseOptions;
|
|
306
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
307
|
+
const localVarRequestOptions = {
|
|
308
|
+
method: "GET",
|
|
309
|
+
...baseOptions,
|
|
310
|
+
...options
|
|
311
|
+
};
|
|
312
|
+
const localVarHeaderParameter = {};
|
|
313
|
+
const localVarQueryParameter = {};
|
|
314
|
+
if (shipmentStatusList) localVarQueryParameter["ShipmentStatusList"] = shipmentStatusList.join(COLLECTION_FORMATS.csv);
|
|
315
|
+
if (shipmentIdList) localVarQueryParameter["ShipmentIdList"] = shipmentIdList.join(COLLECTION_FORMATS.csv);
|
|
316
|
+
if (lastUpdatedAfter !== void 0) localVarQueryParameter["LastUpdatedAfter"] = lastUpdatedAfter instanceof Date ? lastUpdatedAfter.toISOString() : lastUpdatedAfter;
|
|
317
|
+
if (lastUpdatedBefore !== void 0) localVarQueryParameter["LastUpdatedBefore"] = lastUpdatedBefore instanceof Date ? lastUpdatedBefore.toISOString() : lastUpdatedBefore;
|
|
318
|
+
if (queryType !== void 0) localVarQueryParameter["QueryType"] = queryType;
|
|
319
|
+
if (nextToken !== void 0) localVarQueryParameter["NextToken"] = nextToken;
|
|
320
|
+
if (marketplaceId !== void 0) localVarQueryParameter["MarketplaceId"] = marketplaceId;
|
|
321
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
322
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
324
|
+
localVarRequestOptions.headers = {
|
|
325
|
+
...localVarHeaderParameter,
|
|
326
|
+
...headersFromBaseOptions,
|
|
327
|
+
...options.headers
|
|
328
|
+
};
|
|
329
|
+
return {
|
|
330
|
+
url: toPathString(localVarUrlObj),
|
|
331
|
+
options: localVarRequestOptions
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
};
|
|
387
335
|
};
|
|
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
|
-
|
|
336
|
+
/**
|
|
337
|
+
* FulfillmentInboundApi - functional programming interface
|
|
338
|
+
*/
|
|
339
|
+
const FulfillmentInboundApiFp = function(configuration) {
|
|
340
|
+
const localVarAxiosParamCreator = FulfillmentInboundApiAxiosParamCreator(configuration);
|
|
341
|
+
return {
|
|
342
|
+
/**
|
|
343
|
+
* Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
344
|
+
* @param {string} shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation.
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
async getBillOfLading(shipmentId, options) {
|
|
349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBillOfLading(shipmentId, options);
|
|
350
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
351
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getBillOfLading"]?.[localVarOperationServerIndex]?.url;
|
|
352
|
+
return (axios$1, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$1, localVarOperationServerBasePath || basePath);
|
|
353
|
+
},
|
|
354
|
+
/**
|
|
355
|
+
* Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
356
|
+
* @param {string} shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation.
|
|
357
|
+
* @param {GetLabelsPageTypeEnum} pageType The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error.
|
|
358
|
+
* @param {GetLabelsLabelTypeEnum} labelType The type of labels requested.
|
|
359
|
+
* @param {number} [numberOfPackages] The number of packages in the shipment.
|
|
360
|
+
* @param {Array<string>} [packageLabelsToPrint] A list of identifiers that specify packages for which you want package labels printed. If you provide box content information with the [FBA Inbound Shipment Carton Information Feed](https://developer-docs.amazon.com/sp-api/docs/fulfillment-by-amazon-feed-type-values#fba-inbound-shipment-carton-information-feed), then `PackageLabelsToPrint` must match the `CartonId` values you provide through that feed. If you provide box content information with the Fulfillment Inbound API v2024-03-20, then `PackageLabelsToPrint` must match the `boxID` values from the [`listShipmentBoxes`](https://developer-docs.amazon.com/sp-api/reference/listshipmentboxes) response. If these values do not match as required, the operation returns the `IncorrectPackageIdentifier` error code.
|
|
361
|
+
* @param {number} [numberOfPallets] The number of pallets in the shipment. This returns four identical labels for each pallet.
|
|
362
|
+
* @param {number} [pageSize] The page size for paginating through the total packages\' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000.
|
|
363
|
+
* @param {number} [pageStartIndex] The page start index for paginating through the total packages\' labels. This is a required parameter for Non-Partnered LTL Shipments.
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
async getLabels(shipmentId, pageType, labelType, numberOfPackages, packageLabelsToPrint, numberOfPallets, pageSize, pageStartIndex, options) {
|
|
368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLabels(shipmentId, pageType, labelType, numberOfPackages, packageLabelsToPrint, numberOfPallets, pageSize, pageStartIndex, options);
|
|
369
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
370
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getLabels"]?.[localVarOperationServerIndex]?.url;
|
|
371
|
+
return (axios$2, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$2, localVarOperationServerBasePath || basePath);
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
* Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon\'s fulfillment network. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
375
|
+
* @param {string} shipToCountryCode The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country.
|
|
376
|
+
* @param {Array<string>} [sellerSKUList] A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon\'s fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon\'s retail website. If you include a seller SKU that you have never used to list an item on Amazon\'s retail website, the seller SKU is returned in the InvalidSKUList property in the response.
|
|
377
|
+
* @param {Array<string>} [aSINList] A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers.
|
|
378
|
+
* @param {*} [options] Override http request option.
|
|
379
|
+
* @throws {RequiredError}
|
|
380
|
+
*/
|
|
381
|
+
async getPrepInstructions(shipToCountryCode, sellerSKUList, aSINList, options) {
|
|
382
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPrepInstructions(shipToCountryCode, sellerSKUList, aSINList, options);
|
|
383
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
384
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getPrepInstructions"]?.[localVarOperationServerIndex]?.url;
|
|
385
|
+
return (axios$3, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$3, localVarOperationServerBasePath || basePath);
|
|
386
|
+
},
|
|
387
|
+
/**
|
|
388
|
+
* Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
389
|
+
* @param {GetShipmentItemsQueryTypeEnum} queryType Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request.
|
|
390
|
+
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
|
|
391
|
+
* @param {string} [lastUpdatedAfter] A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
|
|
392
|
+
* @param {string} [lastUpdatedBefore] A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
|
|
393
|
+
* @param {string} [nextToken] A string token returned in the response to your previous request.
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
*/
|
|
397
|
+
async getShipmentItems(queryType, marketplaceId, lastUpdatedAfter, lastUpdatedBefore, nextToken, options) {
|
|
398
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentItems(queryType, marketplaceId, lastUpdatedAfter, lastUpdatedBefore, nextToken, options);
|
|
399
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
400
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getShipmentItems"]?.[localVarOperationServerIndex]?.url;
|
|
401
|
+
return (axios$4, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$4, localVarOperationServerBasePath || basePath);
|
|
402
|
+
},
|
|
403
|
+
/**
|
|
404
|
+
* Returns a list of items in a specified inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
405
|
+
* @param {string} shipmentId A shipment identifier used for selecting items in a specific inbound shipment.
|
|
406
|
+
* @param {string} [marketplaceId] Deprecated. Do not use.
|
|
407
|
+
* @param {*} [options] Override http request option.
|
|
408
|
+
* @throws {RequiredError}
|
|
409
|
+
*/
|
|
410
|
+
async getShipmentItemsByShipmentId(shipmentId, marketplaceId, options) {
|
|
411
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentItemsByShipmentId(shipmentId, marketplaceId, options);
|
|
412
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
413
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getShipmentItemsByShipmentId"]?.[localVarOperationServerIndex]?.url;
|
|
414
|
+
return (axios$5, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$5, localVarOperationServerBasePath || basePath);
|
|
415
|
+
},
|
|
416
|
+
/**
|
|
417
|
+
* Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
418
|
+
* @param {GetShipmentsQueryTypeEnum} queryType Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request.
|
|
419
|
+
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
|
|
420
|
+
* @param {Array<GetShipmentsShipmentStatusListEnum>} [shipmentStatusList] A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify.
|
|
421
|
+
* @param {Array<string>} [shipmentIdList] A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned.
|
|
422
|
+
* @param {string} [lastUpdatedAfter] A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
|
|
423
|
+
* @param {string} [lastUpdatedBefore] A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
|
|
424
|
+
* @param {string} [nextToken] A string token returned in the response to your previous request.
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
*/
|
|
428
|
+
async getShipments(queryType, marketplaceId, shipmentStatusList, shipmentIdList, lastUpdatedAfter, lastUpdatedBefore, nextToken, options) {
|
|
429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getShipments(queryType, marketplaceId, shipmentStatusList, shipmentIdList, lastUpdatedAfter, lastUpdatedBefore, nextToken, options);
|
|
430
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
431
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getShipments"]?.[localVarOperationServerIndex]?.url;
|
|
432
|
+
return (axios$6, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$6, localVarOperationServerBasePath || basePath);
|
|
433
|
+
}
|
|
434
|
+
};
|
|
484
435
|
};
|
|
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
|
-
|
|
436
|
+
/**
|
|
437
|
+
* FulfillmentInboundApi - factory interface
|
|
438
|
+
*/
|
|
439
|
+
const FulfillmentInboundApiFactory = function(configuration, basePath, axios$7) {
|
|
440
|
+
const localVarFp = FulfillmentInboundApiFp(configuration);
|
|
441
|
+
return {
|
|
442
|
+
/**
|
|
443
|
+
* Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
444
|
+
* @param {FulfillmentInboundApiGetBillOfLadingRequest} requestParameters Request parameters.
|
|
445
|
+
* @param {*} [options] Override http request option.
|
|
446
|
+
* @throws {RequiredError}
|
|
447
|
+
*/
|
|
448
|
+
getBillOfLading(requestParameters, options) {
|
|
449
|
+
return localVarFp.getBillOfLading(requestParameters.shipmentId, options).then((request) => request(axios$7, basePath));
|
|
450
|
+
},
|
|
451
|
+
/**
|
|
452
|
+
* Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
453
|
+
* @param {FulfillmentInboundApiGetLabelsRequest} requestParameters Request parameters.
|
|
454
|
+
* @param {*} [options] Override http request option.
|
|
455
|
+
* @throws {RequiredError}
|
|
456
|
+
*/
|
|
457
|
+
getLabels(requestParameters, options) {
|
|
458
|
+
return localVarFp.getLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.labelType, requestParameters.numberOfPackages, requestParameters.packageLabelsToPrint, requestParameters.numberOfPallets, requestParameters.pageSize, requestParameters.pageStartIndex, options).then((request) => request(axios$7, basePath));
|
|
459
|
+
},
|
|
460
|
+
/**
|
|
461
|
+
* Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon\'s fulfillment network. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
462
|
+
* @param {FulfillmentInboundApiGetPrepInstructionsRequest} requestParameters Request parameters.
|
|
463
|
+
* @param {*} [options] Override http request option.
|
|
464
|
+
* @throws {RequiredError}
|
|
465
|
+
*/
|
|
466
|
+
getPrepInstructions(requestParameters, options) {
|
|
467
|
+
return localVarFp.getPrepInstructions(requestParameters.shipToCountryCode, requestParameters.sellerSKUList, requestParameters.aSINList, options).then((request) => request(axios$7, basePath));
|
|
468
|
+
},
|
|
469
|
+
/**
|
|
470
|
+
* Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
471
|
+
* @param {FulfillmentInboundApiGetShipmentItemsRequest} requestParameters Request parameters.
|
|
472
|
+
* @param {*} [options] Override http request option.
|
|
473
|
+
* @throws {RequiredError}
|
|
474
|
+
*/
|
|
475
|
+
getShipmentItems(requestParameters, options) {
|
|
476
|
+
return localVarFp.getShipmentItems(requestParameters.queryType, requestParameters.marketplaceId, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.nextToken, options).then((request) => request(axios$7, basePath));
|
|
477
|
+
},
|
|
478
|
+
/**
|
|
479
|
+
* Returns a list of items in a specified inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
480
|
+
* @param {FulfillmentInboundApiGetShipmentItemsByShipmentIdRequest} requestParameters Request parameters.
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
getShipmentItemsByShipmentId(requestParameters, options) {
|
|
485
|
+
return localVarFp.getShipmentItemsByShipmentId(requestParameters.shipmentId, requestParameters.marketplaceId, options).then((request) => request(axios$7, basePath));
|
|
486
|
+
},
|
|
487
|
+
/**
|
|
488
|
+
* Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
489
|
+
* @param {FulfillmentInboundApiGetShipmentsRequest} requestParameters Request parameters.
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
getShipments(requestParameters, options) {
|
|
494
|
+
return localVarFp.getShipments(requestParameters.queryType, requestParameters.marketplaceId, requestParameters.shipmentStatusList, requestParameters.shipmentIdList, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.nextToken, options).then((request) => request(axios$7, basePath));
|
|
495
|
+
}
|
|
496
|
+
};
|
|
543
497
|
};
|
|
498
|
+
/**
|
|
499
|
+
* FulfillmentInboundApi - object-oriented interface
|
|
500
|
+
*/
|
|
544
501
|
var FulfillmentInboundApi = class extends BaseAPI {
|
|
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
|
-
|
|
502
|
+
/**
|
|
503
|
+
* Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
504
|
+
* @param {FulfillmentInboundApiGetBillOfLadingRequest} requestParameters Request parameters.
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
*/
|
|
508
|
+
getBillOfLading(requestParameters, options) {
|
|
509
|
+
return FulfillmentInboundApiFp(this.configuration).getBillOfLading(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
513
|
+
* @param {FulfillmentInboundApiGetLabelsRequest} requestParameters Request parameters.
|
|
514
|
+
* @param {*} [options] Override http request option.
|
|
515
|
+
* @throws {RequiredError}
|
|
516
|
+
*/
|
|
517
|
+
getLabels(requestParameters, options) {
|
|
518
|
+
return FulfillmentInboundApiFp(this.configuration).getLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.labelType, requestParameters.numberOfPackages, requestParameters.packageLabelsToPrint, requestParameters.numberOfPallets, requestParameters.pageSize, requestParameters.pageStartIndex, options).then((request) => request(this.axios, this.basePath));
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon\'s fulfillment network. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
522
|
+
* @param {FulfillmentInboundApiGetPrepInstructionsRequest} requestParameters Request parameters.
|
|
523
|
+
* @param {*} [options] Override http request option.
|
|
524
|
+
* @throws {RequiredError}
|
|
525
|
+
*/
|
|
526
|
+
getPrepInstructions(requestParameters, options) {
|
|
527
|
+
return FulfillmentInboundApiFp(this.configuration).getPrepInstructions(requestParameters.shipToCountryCode, requestParameters.sellerSKUList, requestParameters.aSINList, options).then((request) => request(this.axios, this.basePath));
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
531
|
+
* @param {FulfillmentInboundApiGetShipmentItemsRequest} requestParameters Request parameters.
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
getShipmentItems(requestParameters, options) {
|
|
536
|
+
return FulfillmentInboundApiFp(this.configuration).getShipmentItems(requestParameters.queryType, requestParameters.marketplaceId, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Returns a list of items in a specified inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
540
|
+
* @param {FulfillmentInboundApiGetShipmentItemsByShipmentIdRequest} requestParameters Request parameters.
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
*/
|
|
544
|
+
getShipmentItemsByShipmentId(requestParameters, options) {
|
|
545
|
+
return FulfillmentInboundApiFp(this.configuration).getShipmentItemsByShipmentId(requestParameters.shipmentId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
549
|
+
* @param {FulfillmentInboundApiGetShipmentsRequest} requestParameters Request parameters.
|
|
550
|
+
* @param {*} [options] Override http request option.
|
|
551
|
+
* @throws {RequiredError}
|
|
552
|
+
*/
|
|
553
|
+
getShipments(requestParameters, options) {
|
|
554
|
+
return FulfillmentInboundApiFp(this.configuration).getShipments(requestParameters.queryType, requestParameters.marketplaceId, requestParameters.shipmentStatusList, requestParameters.shipmentIdList, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
555
|
+
}
|
|
599
556
|
};
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
557
|
+
const GetLabelsPageTypeEnum = {
|
|
558
|
+
PackageLabelLetter2: "PackageLabel_Letter_2",
|
|
559
|
+
PackageLabelLetter4: "PackageLabel_Letter_4",
|
|
560
|
+
PackageLabelLetter6: "PackageLabel_Letter_6",
|
|
561
|
+
PackageLabelLetter6CarrierLeft: "PackageLabel_Letter_6_CarrierLeft",
|
|
562
|
+
PackageLabelA42: "PackageLabel_A4_2",
|
|
563
|
+
PackageLabelA44: "PackageLabel_A4_4",
|
|
564
|
+
PackageLabelPlainPaper: "PackageLabel_Plain_Paper",
|
|
565
|
+
PackageLabelPlainPaperCarrierBottom: "PackageLabel_Plain_Paper_CarrierBottom",
|
|
566
|
+
PackageLabelThermal: "PackageLabel_Thermal",
|
|
567
|
+
PackageLabelThermalUnified: "PackageLabel_Thermal_Unified",
|
|
568
|
+
PackageLabelThermalNonPcp: "PackageLabel_Thermal_NonPCP",
|
|
569
|
+
PackageLabelThermalNoCarrierRotation: "PackageLabel_Thermal_No_Carrier_Rotation"
|
|
613
570
|
};
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
571
|
+
const GetLabelsLabelTypeEnum = {
|
|
572
|
+
Barcode2D: "BARCODE_2D",
|
|
573
|
+
Unique: "UNIQUE",
|
|
574
|
+
Pallet: "PALLET"
|
|
618
575
|
};
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
576
|
+
const GetShipmentItemsQueryTypeEnum = {
|
|
577
|
+
DateRange: "DATE_RANGE",
|
|
578
|
+
NextToken: "NEXT_TOKEN"
|
|
622
579
|
};
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
580
|
+
const GetShipmentsQueryTypeEnum = {
|
|
581
|
+
Shipment: "SHIPMENT",
|
|
582
|
+
DateRange: "DATE_RANGE",
|
|
583
|
+
NextToken: "NEXT_TOKEN"
|
|
627
584
|
};
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
585
|
+
const GetShipmentsShipmentStatusListEnum = {
|
|
586
|
+
Working: "WORKING",
|
|
587
|
+
ReadyToShip: "READY_TO_SHIP",
|
|
588
|
+
Shipped: "SHIPPED",
|
|
589
|
+
Receiving: "RECEIVING",
|
|
590
|
+
Cancelled: "CANCELLED",
|
|
591
|
+
Deleted: "DELETED",
|
|
592
|
+
Closed: "CLOSED",
|
|
593
|
+
Error: "ERROR",
|
|
594
|
+
InTransit: "IN_TRANSIT",
|
|
595
|
+
Delivered: "DELIVERED",
|
|
596
|
+
CheckedIn: "CHECKED_IN"
|
|
640
597
|
};
|
|
641
|
-
|
|
642
|
-
|
|
598
|
+
//#endregion
|
|
599
|
+
//#region src/api-model/configuration.ts
|
|
643
600
|
var Configuration = class {
|
|
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
|
-
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
722
|
-
return mime !== null && jsonMime.test(mime);
|
|
723
|
-
}
|
|
601
|
+
/**
|
|
602
|
+
* parameter for apiKey security
|
|
603
|
+
* @param name security name
|
|
604
|
+
*/
|
|
605
|
+
apiKey;
|
|
606
|
+
/**
|
|
607
|
+
* parameter for basic security
|
|
608
|
+
*/
|
|
609
|
+
username;
|
|
610
|
+
/**
|
|
611
|
+
* parameter for basic security
|
|
612
|
+
*/
|
|
613
|
+
password;
|
|
614
|
+
/**
|
|
615
|
+
* parameter for oauth2 security
|
|
616
|
+
* @param name security name
|
|
617
|
+
* @param scopes oauth2 scope
|
|
618
|
+
*/
|
|
619
|
+
accessToken;
|
|
620
|
+
/**
|
|
621
|
+
* parameter for aws4 signature security
|
|
622
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
623
|
+
* @param {string} options.region - aws region
|
|
624
|
+
* @param {string} options.service - name of the service.
|
|
625
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
626
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
627
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
628
|
+
* @memberof Configuration
|
|
629
|
+
*/
|
|
630
|
+
awsv4;
|
|
631
|
+
/**
|
|
632
|
+
* override base path
|
|
633
|
+
*/
|
|
634
|
+
basePath;
|
|
635
|
+
/**
|
|
636
|
+
* override server index
|
|
637
|
+
*/
|
|
638
|
+
serverIndex;
|
|
639
|
+
/**
|
|
640
|
+
* base options for axios calls
|
|
641
|
+
*/
|
|
642
|
+
baseOptions;
|
|
643
|
+
/**
|
|
644
|
+
* The FormData constructor that will be used to create multipart form data
|
|
645
|
+
* requests. You can inject this here so that execution environments that
|
|
646
|
+
* do not support the FormData class can still run the generated client.
|
|
647
|
+
*
|
|
648
|
+
* @type {new () => FormData}
|
|
649
|
+
*/
|
|
650
|
+
formDataCtor;
|
|
651
|
+
constructor(param = {}) {
|
|
652
|
+
this.apiKey = param.apiKey;
|
|
653
|
+
this.username = param.username;
|
|
654
|
+
this.password = param.password;
|
|
655
|
+
this.accessToken = param.accessToken;
|
|
656
|
+
this.awsv4 = param.awsv4;
|
|
657
|
+
this.basePath = param.basePath;
|
|
658
|
+
this.serverIndex = param.serverIndex;
|
|
659
|
+
this.baseOptions = {
|
|
660
|
+
...param.baseOptions,
|
|
661
|
+
headers: { ...param.baseOptions?.headers }
|
|
662
|
+
};
|
|
663
|
+
this.formDataCtor = param.formDataCtor;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Check if the given MIME is a JSON MIME.
|
|
667
|
+
* JSON MIME examples:
|
|
668
|
+
* application/json
|
|
669
|
+
* application/json; charset=UTF8
|
|
670
|
+
* APPLICATION/JSON
|
|
671
|
+
* application/vnd.company+json
|
|
672
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
673
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
674
|
+
*/
|
|
675
|
+
isJsonMime(mime) {
|
|
676
|
+
return mime !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(mime);
|
|
677
|
+
}
|
|
724
678
|
};
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
679
|
+
//#endregion
|
|
680
|
+
//#region src/api-model/models/barcode-instruction.ts
|
|
681
|
+
/**
|
|
682
|
+
* Selling Partner API for Fulfillment Inbound
|
|
683
|
+
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon\'s fulfillment network.
|
|
684
|
+
*
|
|
685
|
+
* The version of the OpenAPI document: v0
|
|
686
|
+
*
|
|
687
|
+
*
|
|
688
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
689
|
+
* https://openapi-generator.tech
|
|
690
|
+
* Do not edit the class manually.
|
|
691
|
+
*/
|
|
692
|
+
/**
|
|
693
|
+
* Labeling requirements for the item. For more information about FBA labeling requirements, see the Seller Central Help for your marketplace.
|
|
694
|
+
*/
|
|
695
|
+
const BarcodeInstruction = {
|
|
696
|
+
RequiresFnskuLabel: "RequiresFNSKULabel",
|
|
697
|
+
CanUseOriginalBarcode: "CanUseOriginalBarcode",
|
|
698
|
+
MustProvideSellerSku: "MustProvideSellerSKU"
|
|
731
699
|
};
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
700
|
+
//#endregion
|
|
701
|
+
//#region src/api-model/models/box-contents-source.ts
|
|
702
|
+
/**
|
|
703
|
+
* Selling Partner API for Fulfillment Inbound
|
|
704
|
+
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon\'s fulfillment network.
|
|
705
|
+
*
|
|
706
|
+
* The version of the OpenAPI document: v0
|
|
707
|
+
*
|
|
708
|
+
*
|
|
709
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
710
|
+
* https://openapi-generator.tech
|
|
711
|
+
* Do not edit the class manually.
|
|
712
|
+
*/
|
|
713
|
+
/**
|
|
714
|
+
* Where the seller provided box contents information for a shipment.
|
|
715
|
+
*/
|
|
716
|
+
const BoxContentsSource = {
|
|
717
|
+
None: "NONE",
|
|
718
|
+
Feed: "FEED",
|
|
719
|
+
_2DBarcode: "2D_BARCODE",
|
|
720
|
+
Interactive: "INTERACTIVE"
|
|
739
721
|
};
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
722
|
+
//#endregion
|
|
723
|
+
//#region src/api-model/models/currency-code.ts
|
|
724
|
+
/**
|
|
725
|
+
* Selling Partner API for Fulfillment Inbound
|
|
726
|
+
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon\'s fulfillment network.
|
|
727
|
+
*
|
|
728
|
+
* The version of the OpenAPI document: v0
|
|
729
|
+
*
|
|
730
|
+
*
|
|
731
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
732
|
+
* https://openapi-generator.tech
|
|
733
|
+
* Do not edit the class manually.
|
|
734
|
+
*/
|
|
735
|
+
/**
|
|
736
|
+
* The currency code.
|
|
737
|
+
*/
|
|
738
|
+
const CurrencyCode = {
|
|
739
|
+
Usd: "USD",
|
|
740
|
+
Gbp: "GBP"
|
|
745
741
|
};
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
742
|
+
//#endregion
|
|
743
|
+
//#region src/api-model/models/error-reason.ts
|
|
744
|
+
/**
|
|
745
|
+
* Selling Partner API for Fulfillment Inbound
|
|
746
|
+
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon\'s fulfillment network.
|
|
747
|
+
*
|
|
748
|
+
* The version of the OpenAPI document: v0
|
|
749
|
+
*
|
|
750
|
+
*
|
|
751
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
752
|
+
* https://openapi-generator.tech
|
|
753
|
+
* Do not edit the class manually.
|
|
754
|
+
*/
|
|
755
|
+
/**
|
|
756
|
+
* The reason that the ASIN is invalid.
|
|
757
|
+
*/
|
|
758
|
+
const ErrorReason = {
|
|
759
|
+
DoesNotExist: "DoesNotExist",
|
|
760
|
+
InvalidAsin: "InvalidASIN"
|
|
751
761
|
};
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
762
|
+
//#endregion
|
|
763
|
+
//#region src/api-model/models/label-prep-type.ts
|
|
764
|
+
/**
|
|
765
|
+
* Selling Partner API for Fulfillment Inbound
|
|
766
|
+
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon\'s fulfillment network.
|
|
767
|
+
*
|
|
768
|
+
* The version of the OpenAPI document: v0
|
|
769
|
+
*
|
|
770
|
+
*
|
|
771
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
772
|
+
* https://openapi-generator.tech
|
|
773
|
+
* Do not edit the class manually.
|
|
774
|
+
*/
|
|
775
|
+
/**
|
|
776
|
+
* The type of label preparation that is required for the inbound shipment.
|
|
777
|
+
*/
|
|
778
|
+
const LabelPrepType = {
|
|
779
|
+
NoLabel: "NO_LABEL",
|
|
780
|
+
SellerLabel: "SELLER_LABEL",
|
|
781
|
+
AmazonLabel: "AMAZON_LABEL"
|
|
758
782
|
};
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
783
|
+
//#endregion
|
|
784
|
+
//#region src/api-model/models/prep-guidance.ts
|
|
785
|
+
/**
|
|
786
|
+
* Selling Partner API for Fulfillment Inbound
|
|
787
|
+
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon\'s fulfillment network.
|
|
788
|
+
*
|
|
789
|
+
* The version of the OpenAPI document: v0
|
|
790
|
+
*
|
|
791
|
+
*
|
|
792
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
793
|
+
* https://openapi-generator.tech
|
|
794
|
+
* Do not edit the class manually.
|
|
795
|
+
*/
|
|
796
|
+
/**
|
|
797
|
+
* Item preparation instructions.
|
|
798
|
+
*/
|
|
799
|
+
const PrepGuidance = {
|
|
800
|
+
ConsultHelpDocuments: "ConsultHelpDocuments",
|
|
801
|
+
NoAdditionalPrepRequired: "NoAdditionalPrepRequired",
|
|
802
|
+
SeePrepInstructionsList: "SeePrepInstructionsList"
|
|
765
803
|
};
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
804
|
+
//#endregion
|
|
805
|
+
//#region src/api-model/models/prep-instruction.ts
|
|
806
|
+
/**
|
|
807
|
+
* Selling Partner API for Fulfillment Inbound
|
|
808
|
+
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon\'s fulfillment network.
|
|
809
|
+
*
|
|
810
|
+
* The version of the OpenAPI document: v0
|
|
811
|
+
*
|
|
812
|
+
*
|
|
813
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
814
|
+
* https://openapi-generator.tech
|
|
815
|
+
* Do not edit the class manually.
|
|
816
|
+
*/
|
|
817
|
+
/**
|
|
818
|
+
* Preparation instructions for shipping an item to Amazon\'s fulfillment network. For more information about preparing items for shipment to Amazon\'s fulfillment network, see the Seller Central Help for your marketplace.
|
|
819
|
+
*/
|
|
820
|
+
const PrepInstruction = {
|
|
821
|
+
Polybagging: "Polybagging",
|
|
822
|
+
BubbleWrapping: "BubbleWrapping",
|
|
823
|
+
Taping: "Taping",
|
|
824
|
+
BlackShrinkWrapping: "BlackShrinkWrapping",
|
|
825
|
+
Labeling: "Labeling",
|
|
826
|
+
HangGarment: "HangGarment",
|
|
827
|
+
SetCreation: "SetCreation",
|
|
828
|
+
Boxing: "Boxing",
|
|
829
|
+
RemoveFromHanger: "RemoveFromHanger",
|
|
830
|
+
Debundle: "Debundle",
|
|
831
|
+
SuffocationStickering: "SuffocationStickering",
|
|
832
|
+
CapSealing: "CapSealing",
|
|
833
|
+
SetStickering: "SetStickering",
|
|
834
|
+
BlankStickering: "BlankStickering",
|
|
835
|
+
ShipsInProductPackaging: "ShipsInProductPackaging",
|
|
836
|
+
NoPrep: "NoPrep"
|
|
785
837
|
};
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
838
|
+
//#endregion
|
|
839
|
+
//#region src/api-model/models/prep-owner.ts
|
|
840
|
+
/**
|
|
841
|
+
* Selling Partner API for Fulfillment Inbound
|
|
842
|
+
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon\'s fulfillment network.
|
|
843
|
+
*
|
|
844
|
+
* The version of the OpenAPI document: v0
|
|
845
|
+
*
|
|
846
|
+
*
|
|
847
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
848
|
+
* https://openapi-generator.tech
|
|
849
|
+
* Do not edit the class manually.
|
|
850
|
+
*/
|
|
851
|
+
/**
|
|
852
|
+
* Indicates who will prepare the item.
|
|
853
|
+
*/
|
|
854
|
+
const PrepOwner = {
|
|
855
|
+
Amazon: "AMAZON",
|
|
856
|
+
Seller: "SELLER"
|
|
791
857
|
};
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
858
|
+
//#endregion
|
|
859
|
+
//#region src/api-model/models/shipment-status.ts
|
|
860
|
+
/**
|
|
861
|
+
* Selling Partner API for Fulfillment Inbound
|
|
862
|
+
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon\'s fulfillment network.
|
|
863
|
+
*
|
|
864
|
+
* The version of the OpenAPI document: v0
|
|
865
|
+
*
|
|
866
|
+
*
|
|
867
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
868
|
+
* https://openapi-generator.tech
|
|
869
|
+
* Do not edit the class manually.
|
|
870
|
+
*/
|
|
871
|
+
/**
|
|
872
|
+
* Indicates the status of the inbound shipment. When used with the createInboundShipment operation, WORKING is the only valid value. When used with the updateInboundShipment operation, possible values are WORKING, SHIPPED or CANCELLED.
|
|
873
|
+
*/
|
|
874
|
+
const ShipmentStatus = {
|
|
875
|
+
Working: "WORKING",
|
|
876
|
+
Shipped: "SHIPPED",
|
|
877
|
+
Receiving: "RECEIVING",
|
|
878
|
+
Cancelled: "CANCELLED",
|
|
879
|
+
Deleted: "DELETED",
|
|
880
|
+
Closed: "CLOSED",
|
|
881
|
+
Error: "ERROR",
|
|
882
|
+
InTransit: "IN_TRANSIT",
|
|
883
|
+
Delivered: "DELIVERED",
|
|
884
|
+
CheckedIn: "CHECKED_IN"
|
|
805
885
|
};
|
|
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
|
-
method: "get",
|
|
846
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
847
|
-
urlRegex: new RegExp("^/fba/inbound/v0/shipmentItems$"),
|
|
848
|
-
rate: 2,
|
|
849
|
-
burst: 30
|
|
850
|
-
}
|
|
886
|
+
//#endregion
|
|
887
|
+
//#region src/client.ts
|
|
888
|
+
const clientRateLimits = [
|
|
889
|
+
{
|
|
890
|
+
method: "get",
|
|
891
|
+
urlRegex: /^\/fba\/inbound\/v0\/prepInstructions$/v,
|
|
892
|
+
rate: 2,
|
|
893
|
+
burst: 30
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
method: "get",
|
|
897
|
+
urlRegex: /^\/fba\/inbound\/v0\/shipments\/[^\/]*\/labels$/v,
|
|
898
|
+
rate: 2,
|
|
899
|
+
burst: 30
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
method: "get",
|
|
903
|
+
urlRegex: /^\/fba\/inbound\/v0\/shipments\/[^\/]*\/billOfLading$/v,
|
|
904
|
+
rate: 2,
|
|
905
|
+
burst: 30
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
method: "get",
|
|
909
|
+
urlRegex: /^\/fba\/inbound\/v0\/shipments$/v,
|
|
910
|
+
rate: 2,
|
|
911
|
+
burst: 30
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
method: "get",
|
|
915
|
+
urlRegex: /^\/fba\/inbound\/v0\/shipments\/[^\/]*\/items$/v,
|
|
916
|
+
rate: 2,
|
|
917
|
+
burst: 30
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
method: "get",
|
|
921
|
+
urlRegex: /^\/fba\/inbound\/v0\/shipmentItems$/v,
|
|
922
|
+
rate: 2,
|
|
923
|
+
burst: 30
|
|
924
|
+
}
|
|
851
925
|
];
|
|
852
926
|
var FulfillmentInboundApiClient = class extends FulfillmentInboundApi {
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
927
|
+
constructor(configuration) {
|
|
928
|
+
const { axios, endpoint } = (0, _sp_api_sdk_common.createAxiosInstance)(configuration, clientRateLimits);
|
|
929
|
+
super(new Configuration(), endpoint, axios);
|
|
930
|
+
}
|
|
857
931
|
};
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
});
|
|
932
|
+
//#endregion
|
|
933
|
+
exports.BarcodeInstruction = BarcodeInstruction;
|
|
934
|
+
exports.BoxContentsSource = BoxContentsSource;
|
|
935
|
+
exports.CurrencyCode = CurrencyCode;
|
|
936
|
+
exports.ErrorReason = ErrorReason;
|
|
937
|
+
exports.FulfillmentInboundApi = FulfillmentInboundApi;
|
|
938
|
+
exports.FulfillmentInboundApiAxiosParamCreator = FulfillmentInboundApiAxiosParamCreator;
|
|
939
|
+
exports.FulfillmentInboundApiClient = FulfillmentInboundApiClient;
|
|
940
|
+
exports.FulfillmentInboundApiFactory = FulfillmentInboundApiFactory;
|
|
941
|
+
exports.FulfillmentInboundApiFp = FulfillmentInboundApiFp;
|
|
942
|
+
exports.GetLabelsLabelTypeEnum = GetLabelsLabelTypeEnum;
|
|
943
|
+
exports.GetLabelsPageTypeEnum = GetLabelsPageTypeEnum;
|
|
944
|
+
exports.GetShipmentItemsQueryTypeEnum = GetShipmentItemsQueryTypeEnum;
|
|
945
|
+
exports.GetShipmentsQueryTypeEnum = GetShipmentsQueryTypeEnum;
|
|
946
|
+
exports.GetShipmentsShipmentStatusListEnum = GetShipmentsShipmentStatusListEnum;
|
|
947
|
+
exports.LabelPrepType = LabelPrepType;
|
|
948
|
+
exports.PrepGuidance = PrepGuidance;
|
|
949
|
+
exports.PrepInstruction = PrepInstruction;
|
|
950
|
+
exports.PrepOwner = PrepOwner;
|
|
951
|
+
exports.ShipmentStatus = ShipmentStatus;
|
|
952
|
+
exports.clientRateLimits = clientRateLimits;
|
|
953
|
+
|
|
881
954
|
//# sourceMappingURL=index.cjs.map
|