@sp-api-sdk/fulfillment-inbound-api-2024-03-20
Version:
The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user inte
1 lines • 495 kB
Source Map (JSON)
{"version":3,"file":"index.cjs","names":["axios","globalAxios","globalAxios","axios","createAxiosInstance"],"sources":["../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/api/fulfillment-inbound-api.ts","../src/api-model/configuration.ts","../src/api-model/models/all-owners-constraint.ts","../src/api-model/models/box-content-information-source.ts","../src/api-model/models/item-label-page-type.ts","../src/api-model/models/label-owner.ts","../src/api-model/models/label-print-type.ts","../src/api-model/models/operation-status.ts","../src/api-model/models/owner-constraint.ts","../src/api-model/models/prep-category.ts","../src/api-model/models/prep-owner.ts","../src/api-model/models/prep-type.ts","../src/api-model/models/reason-comment.ts","../src/api-model/models/stackability.ts","../src/api-model/models/unit-of-measurement.ts","../src/api-model/models/unit-of-weight.ts","../src/client.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for FBA inbound operations.\n * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon\\'s fulfillment network. The API has interoperability with the Send-to-Amazon user interface.\n *\n * The version of the OpenAPI document: 2024-03-20\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for FBA inbound operations.\n * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon\\'s fulfillment network. The API has interoperability with the Send-to-Amazon user interface.\n *\n * The version of the OpenAPI document: 2024-03-20\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for FBA inbound operations.\n * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon\\'s fulfillment network. The API has interoperability with the Send-to-Amazon user interface.\n *\n * The version of the OpenAPI document: 2024-03-20\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { CancelInboundPlanResponse } from '../models/index.js';\n// @ts-ignore\nimport type { CancelSelfShipAppointmentRequest } from '../models/index.js';\n// @ts-ignore\nimport type { CancelSelfShipAppointmentResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ConfirmDeliveryWindowOptionsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ConfirmPackingOptionResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ConfirmPlacementOptionResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ConfirmShipmentContentUpdatePreviewResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ConfirmTransportationOptionsRequest } from '../models/index.js';\n// @ts-ignore\nimport type { ConfirmTransportationOptionsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ContentUpdatePreview } from '../models/index.js';\n// @ts-ignore\nimport type { CreateInboundPlanRequest } from '../models/index.js';\n// @ts-ignore\nimport type { CreateInboundPlanResponse } from '../models/index.js';\n// @ts-ignore\nimport type { CreateMarketplaceItemLabelsRequest } from '../models/index.js';\n// @ts-ignore\nimport type { CreateMarketplaceItemLabelsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ErrorList } from '../models/index.js';\n// @ts-ignore\nimport type { GenerateDeliveryWindowOptionsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { GeneratePackingOptionsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { GeneratePlacementOptionsRequest } from '../models/index.js';\n// @ts-ignore\nimport type { GeneratePlacementOptionsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { GenerateSelfShipAppointmentSlotsRequest } from '../models/index.js';\n// @ts-ignore\nimport type { GenerateSelfShipAppointmentSlotsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { GenerateShipmentContentUpdatePreviewsRequest } from '../models/index.js';\n// @ts-ignore\nimport type { GenerateShipmentContentUpdatePreviewsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { GenerateTransportationOptionsRequest } from '../models/index.js';\n// @ts-ignore\nimport type { GenerateTransportationOptionsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { GetDeliveryChallanDocumentResponse } from '../models/index.js';\n// @ts-ignore\nimport type { GetSelfShipAppointmentSlotsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { InboundOperationStatus } from '../models/index.js';\n// @ts-ignore\nimport type { InboundPlan } from '../models/index.js';\n// @ts-ignore\nimport type { ListDeliveryWindowOptionsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListInboundPlanBoxesResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListInboundPlanItemsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListInboundPlanPalletsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListInboundPlansResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListItemComplianceDetailsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListPackingGroupBoxesResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListPackingGroupItemsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListPackingOptionsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListPlacementOptionsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListPrepDetailsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListShipmentBoxesResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListShipmentContentUpdatePreviewsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListShipmentItemsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListShipmentPalletsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ListTransportationOptionsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { ScheduleSelfShipAppointmentRequest } from '../models/index.js';\n// @ts-ignore\nimport type { ScheduleSelfShipAppointmentResponse } from '../models/index.js';\n// @ts-ignore\nimport type { SetPackingInformationRequest } from '../models/index.js';\n// @ts-ignore\nimport type { SetPackingInformationResponse } from '../models/index.js';\n// @ts-ignore\nimport type { SetPrepDetailsRequest } from '../models/index.js';\n// @ts-ignore\nimport type { SetPrepDetailsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { Shipment } from '../models/index.js';\n// @ts-ignore\nimport type { UpdateInboundPlanNameRequest } from '../models/index.js';\n// @ts-ignore\nimport type { UpdateItemComplianceDetailsRequest } from '../models/index.js';\n// @ts-ignore\nimport type { UpdateItemComplianceDetailsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { UpdateShipmentNameRequest } from '../models/index.js';\n// @ts-ignore\nimport type { UpdateShipmentSourceAddressRequest } from '../models/index.js';\n// @ts-ignore\nimport type { UpdateShipmentSourceAddressResponse } from '../models/index.js';\n// @ts-ignore\nimport type { UpdateShipmentTrackingDetailsRequest } from '../models/index.js';\n// @ts-ignore\nimport type { UpdateShipmentTrackingDetailsResponse } from '../models/index.js';\n/**\n * FulfillmentInboundApi - axios parameter creator\n */\nexport const FulfillmentInboundApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Cancels an Inbound Plan. Charges may apply if the cancellation is performed outside of a void window. The window for Amazon Partnered Carriers is 24 hours for Small Parcel Delivery (SPD) and one hour for Less-Than-Truckload (LTL) carrier shipments. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} inboundPlanId Identifier of an inbound plan.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n cancelInboundPlan: async (inboundPlanId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'inboundPlanId' is not null or undefined\n assertParamExists('cancelInboundPlan', 'inboundPlanId', inboundPlanId)\n const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/cancellation`\n .replace('{inboundPlanId}', encodeURIComponent(String(inboundPlanId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Cancels a self-ship appointment slot against a shipment. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | n | n | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). \n * @param {string} inboundPlanId Identifier of an inbound plan.\n * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.\n * @param {CancelSelfShipAppointmentRequest} body The body of the request to `cancelSelfShipAppointment`.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n cancelSelfShipAppointment: async (inboundPlanId: string, shipmentId: string, body: CancelSelfShipAppointmentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'inboundPlanId' is not null or undefined\n assertParamExists('cancelSelfShipAppointment', 'inboundPlanId', inboundPlanId)\n // verify required parameter 'shipmentId' is not null or undefined\n assertParamExists('cancelSelfShipAppointment', 'shipmentId', shipmentId)\n // verify required parameter 'body' is not null or undefined\n assertParamExists('cancelSelfShipAppointment', 'body', body)\n const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/selfShipAppointmentCancellation`\n .replace('{inboundPlanId}', encodeURIComponent(String(inboundPlanId)))\n .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Confirms the delivery window option for chosen shipment within an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new delivery window options cannot be generated, but the chosen delivery window option can be updated before shipment closure. The window is used to provide the expected time when a shipment will arrive at the warehouse. All transportation options which have the program `CONFIRMED_DELIVERY_WINDOW` require a delivery window to be confirmed prior to transportation option confirmation. **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 preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} inboundPlanId Identifier of an inbound plan.\n * @param {string} shipmentId The shipment to confirm the delivery window option for.\n * @param {string} deliveryWindowOptionId The id of the delivery window option to be confirmed.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n confirmDeliveryWindowOptions: async (inboundPlanId: string, shipmentId: string, deliveryWindowOptionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'inboundPlanId' is not null or undefined\n assertParamExists('confirmDeliveryWindowOptions', 'inboundPlanId', inboundPlanId)\n // verify required parameter 'shipmentId' is not null or undefined\n assertParamExists('confirmDeliveryWindowOptions', 'shipmentId', shipmentId)\n // verify required parameter 'deliveryWindowOptionId' is not null or undefined\n assertParamExists('confirmDeliveryWindowOptions', 'deliveryWindowOptionId', deliveryWindowOptionId)\n const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/deliveryWindowOptions/{deliveryWindowOptionId}/confirmation`\n .replace('{inboundPlanId}', encodeURIComponent(String(inboundPlanId)))\n .replace('{shipmentId}', encodeURIComponent(String(shipmentId)))\n .replace('{deliveryWindowOptionId}', encodeURIComponent(String(deliveryWindowOptionId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Confirms the packing option for an inbound plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} inboundPlanId Identifier of an inbound plan.\n * @param {string} packingOptionId Identifier of a packing option.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n confirmPackingOption: async (inboundPlanId: string, packingOptionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'inboundPlanId' is not null or undefined\n assertParamExists('confirmPackingOption', 'inboundPlanId', inboundPlanId)\n // verify required parameter 'packingOptionId' is not null or undefined\n assertParamExists('confirmPackingOption', 'packingOptionId', packingOptionId)\n const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/packingOptions/{packingOptionId}/confirmation`\n .replace('{inboundPlanId}', encodeURIComponent(String(inboundPlanId)))\n .replace('{packingOptionId}', encodeURIComponent(String(packingOptionId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Confirms the placement option for an inbound plan. Once confirmed, it cannot be changed for the Inbound Plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} inboundPlanId Identifier of an inbound plan.\n * @param {string} placementOptionId The identifier of a placement option. A placement option represents the shipment splits and destinations of SKUs.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n confirmPlacementOption: async (inboundPlanId: string, placementOptionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'inboundPlanId' is not null or undefined\n assertParamExists('confirmPlacementOption', 'inboundPlanId', inboundPlanId)\n // verify required parameter 'placementOptionId' is not null or undefined\n assertParamExists('confirmPlacementOption', 'placementOptionId', placementOptionId)\n const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/placementOptions/{placementOptionId}/confirmation`\n .replace('{inboundPlanId}', encodeURIComponent(String(inboundPlanId)))\n .replace('{placementOptionId}', encodeURIComponent(String(placementOptionId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Confirm a shipment content update preview and accept the changes in transportation cost. **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 preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} inboundPlanId Identifier of an inbound plan.\n * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.\n * @param {string} contentUpdatePreviewId Identifier of a content update preview.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n confirmShipmentContentUpdatePreview: async (inboundPlanId: string, shipmentId: string, contentUpdatePreviewId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'inboundPlanId' is not null or undefined\n assertParamExists('confirmShipmentContentUpdatePreview', 'inboundPlanId', inboundPlanId)\n // verify required parameter 'shipmentId' is not null or undefined\n assertParamExists('confirmShipmentContentUpdatePreview', 'shipmentId', shipmentId)\n // verify required parameter 'contentUpdatePreviewId' is not null or undefined\n assertParamExists('confirmShipmentContentUpdatePreview', 'contentUpdatePreviewId', contentUpdatePreviewId)\n const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/contentUpdatePreviews/{contentUpdatePreviewId}/confirmation`\n .replace('{inboundPlanId}', encodeURIComponent(String(inboundPlanId)))\n .replace('{shipmentId}', encodeURIComponent(String(shipmentId)))\n .replace('{contentUpdatePreviewId}', encodeURIComponent(String(contentUpdatePreviewId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Confirms all the transportation options for an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new transportation options can not be generated or confirmed for the Inbound Plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} inboundPlanId Identifier of an inbound plan.\n * @param {ConfirmTransportationOptionsRequest} body The body of the request to `confirmTransportationOptions`.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n confirmTransportationOptions: async (inboundPlanId: string, body: ConfirmTransportationOptionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'inboundPlanId' is not null or undefined\n assertParamExists('confirmTransportationOptions', 'inboundPlanId', inboundPlanId)\n // verify required parameter 'body' is not null or undefined\n assertParamExists('confirmTransportationOptions', 'body', body)\n const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/transportationOptions/confirmation`\n .replace('{inboundPlanId}', encodeURIComponent(String(inboundPlanId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Creates an inbound plan. An inbound plan contains all the necessary information to send shipments into Amazon\\'s fufillment network. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {CreateInboundPlanRequest} body The body of the request to `createInboundPlan`.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createInboundPlan: async (body: CreateInboundPlanRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'body' is not null or undefined\n assertParamExists('createInboundPlan', 'body', body)\n const localVarPath = `/inbound/fba/2024-03-20/inboundPlans`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * For a given marketplace - creates labels for a list of MSKUs. **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 preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {CreateMarketplaceItemLabelsRequest} body The body of the request to `createMarketplaceItemLabels`.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createMarketplaceItemLabels: async (body: CreateMarketplaceItemLabelsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'body' is not null or undefined\n assertParamExists('createMarketplaceItemLabels', 'body', body)\n const localVarPath = `/inbound/fba/2024-03-20/items/labels`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Generates available delivery window options for a given 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 preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} inboundPlanId Identifier of an inbound plan.\n * @param {string} shipmentId The shipment to generate delivery window options for.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n generateDeliveryWindowOptions: async (inboundPlanId: string, shipmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'inboundPlanId' is not null or undefined\n assertParamExists('generateDeliveryWindowOptions', 'inboundPlanId', inboundPlanId)\n // verify required parameter 'shipmentId' is not null or undefined\n assertParamExists('generateDeliveryWindowOptions', 'shipmentId', shipmentId)\n const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/deliveryWindowOptions`\n .replace('{inboundPlanId}', encodeURIComponent(String(inboundPlanId)))\n .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Generates available packing options for the inbound plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} inboundPlanId Identifier of an inbound plan.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n generatePackingOptions: async (inboundPlanId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'inboundPlanId' is not null or undefined\n assertParamExists('generatePackingOptions', 'inboundPlanId', inboundPlanId)\n const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/packingOptions`\n .replace('{inboundPlanId}', encodeURIComponent(String(inboundPlanId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Generates placement options for the inbound plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} inboundPlanId Identifier of an inbound plan.\n * @param {GeneratePlacementOptionsRequest} body The body of the request to `generatePlacementOptions`.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n generatePlacementOptions: async (inboundPlanId: string, body: GeneratePlacementOptionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'inboundPlanId' is not null or undefined\n assertParamExists('generatePlacementOptions', 'inboundPlanId', inboundPlanId)\n // verify required parameter 'body' is not null or undefined\n assertParamExists('generatePlacementOptions', 'body', body)\n const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/placementOptions`\n .replace('{inboundPlanId}', encodeURIComponent(String(inboundPlanId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderPar