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