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