{"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/orders-api.ts","../src/api-model/configuration.ts","../src/api-model/models/business-hour.ts","../src/api-model/models/constraint-type.ts","../src/api-model/models/exception-date.ts","../src/api-model/models/fulfillment-status.ts","../src/api-model/models/item-substitution-preference.ts","../src/api-model/models/measurement.ts","../src/api-model/models/package-status.ts","../src/client.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Orders\n * The Selling Partner API for Orders returns orders information. This API supports the following types of orders:  - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh  This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.\n *\n * The version of the OpenAPI document: 2026-01-01\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 Orders\n * The Selling Partner API for Orders returns orders information. This API supports the following types of orders:  - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh  This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.\n *\n * The version of the OpenAPI document: 2026-01-01\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): Promise<R> => {\n        const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n        return axios.request<T, R>(axiosRequestArgs) as Promise<R>;\n    };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Orders\n * The Selling Partner API for Orders returns orders information. This API supports the following types of orders:  - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh  This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.\n *\n * The version of the OpenAPI document: 2026-01-01\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 { ErrorList } from '../models/index.js';\n// @ts-ignore\nimport type { GetOrderResponse } from '../models/index.js';\n// @ts-ignore\nimport type { SearchOrdersResponse } from '../models/index.js';\n/**\n * OrdersApi - axios parameter creator\n */\nexport const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {\n    return {\n        /**\n         * Returns the order that you specify.  **Usage Plan:**  | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 |  The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are 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 receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API documentation.\n         * @param {string} orderId An Amazon-defined order identifier.\n         * @param {Array<GetOrderIncludedDataEnum>} [includedData] A list of datasets to include in the response.\n         * @param {*} [options] Override http request option.\n         * @throws {RequiredError}\n         */\n        getOrder: async (orderId: string, includedData?: Array<GetOrderIncludedDataEnum>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n            // verify required parameter 'orderId' is not null or undefined\n            assertParamExists('getOrder', 'orderId', orderId)\n            const localVarPath = `/orders/2026-01-01/orders/{orderId}`\n                .replace('{orderId}', encodeURIComponent(String(orderId)));\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: 'GET', ...baseOptions, ...options};\n            const localVarHeaderParameter = {} as any;\n            const localVarQueryParameter = {} as any;\n\n            if (includedData) {\n                localVarQueryParameter['includedData'] = includedData.join(COLLECTION_FORMATS.csv);\n            }\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         * Returns orders created or updated during the time period that you specify. You can filter the response for specific types of orders.  **Usage Plan:**  | Rate (requests per second) | Burst | | ---- | ---- | | 0.0056 | 20 |  The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are 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 receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API documentation.\n         * @param {string} [createdAfter] The response includes orders created at or after this time. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: You must provide exactly one of &#x60;createdAfter&#x60; and &#x60;lastUpdatedAfter&#x60; in your request. If &#x60;createdAfter&#x60; is provided, neither &#x60;lastUpdatedAfter&#x60; nor &#x60;lastUpdatedBefore&#x60; may be provided.\n         * @param {string} [createdBefore] The response includes orders created at or before this time. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: If you include &#x60;createdAfter&#x60; in the request, &#x60;createdBefore&#x60; is optional, and if provided must be equal to or after the &#x60;createdAfter&#x60; date and at least two minutes before the time of the request. If &#x60;createdBefore&#x60; is provided, neither &#x60;lastUpdatedAfter&#x60; nor &#x60;lastUpdatedBefore&#x60; may be provided.\n         * @param {string} [lastUpdatedAfter] The response includes orders updated at or after this time. An update is any change made by Amazon or the seller, including changes to order status. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: You must provide exactly one of &#x60;createdAfter&#x60; and &#x60;lastUpdatedAfter&#x60;. If &#x60;lastUpdatedAfter&#x60; is provided, neither &#x60;createdAfter&#x60; nor &#x60;createdBefore&#x60; may be provided.\n         * @param {string} [lastUpdatedBefore] The response includes orders updated at or before this time. An update is any change made by Amazon or the seller, including changes to order status. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: If you include &#x60;lastUpdatedAfter&#x60; in the request, &#x60;lastUpdatedBefore&#x60; is optional, and if provided must be equal to or after the &#x60;lastUpdatedAfter&#x60; date and at least two minutes before the time of the request. If &#x60;lastUpdatedBefore&#x60; is provided, neither &#x60;createdAfter&#x60; nor &#x60;createdBefore&#x60; may be provided.\n         * @param {Array<SearchOrdersFulfillmentStatusesEnum>} [fulfillmentStatuses] A list of &#x60;FulfillmentStatus&#x60; values you can use to filter the results.\n         * @param {Array<string>} [marketplaceIds] The response includes orders that were placed in marketplaces you include in this list.  Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) for a complete list of &#x60;marketplaceId&#x60; values.\n         * @param {Array<SearchOrdersFulfilledByEnum>} [fulfilledBy] The response includes orders that are fulfilled by the parties that you include in this list.\n         * @param {number} [maxResultsPerPage] The maximum number of orders that can be returned per page. The value must be between 1 and 100. **Default:** 100.\n         * @param {string} [paginationToken] Pagination occurs when a request produces a response that exceeds the &#x60;maxResultsPerPage&#x60;. This means that the response is divided into individual pages. To retrieve the next page, you must pass the &#x60;nextToken&#x60; value as the &#x60;paginationToken&#x60; query parameter in the next request. You will not receive a &#x60;nextToken&#x60; value on the last page.\n         * @param {Array<SearchOrdersIncludedDataEnum>} [includedData] A list of datasets to include in the response.\n         * @param {*} [options] Override http request option.\n         * @throws {RequiredError}\n         */\n        searchOrders: async (createdAfter?: string, createdBefore?: string, lastUpdatedAfter?: string, lastUpdatedBefore?: string, fulfillmentStatuses?: Array<SearchOrdersFulfillmentStatusesEnum>, marketplaceIds?: Array<string>, fulfilledBy?: Array<SearchOrdersFulfilledByEnum>, maxResultsPerPage?: number, paginationToken?: string, includedData?: Array<SearchOrdersIncludedDataEnum>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n            const localVarPath = `/orders/2026-01-01/orders`;\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: 'GET', ...baseOptions, ...options};\n            const localVarHeaderParameter = {} as any;\n            const localVarQueryParameter = {} as any;\n\n            if (createdAfter !== undefined) {\n                localVarQueryParameter['createdAfter'] = (createdAfter as any instanceof Date) ?\n                    (createdAfter as any).toISOString() :\n                    createdAfter;\n            }\n\n            if (createdBefore !== undefined) {\n                localVarQueryParameter['createdBefore'] = (createdBefore as any instanceof Date) ?\n                    (createdBefore as any).toISOString() :\n                    createdBefore;\n            }\n\n            if (lastUpdatedAfter !== undefined) {\n                localVarQueryParameter['lastUpdatedAfter'] = (lastUpdatedAfter as any instanceof Date) ?\n                    (lastUpdatedAfter as any).toISOString() :\n                    lastUpdatedAfter;\n            }\n\n            if (lastUpdatedBefore !== undefined) {\n                localVarQueryParameter['lastUpdatedBefore'] = (lastUpdatedBefore as any instanceof Date) ?\n                    (lastUpdatedBefore as any).toISOString() :\n                    lastUpdatedBefore;\n            }\n\n            if (fulfillmentStatuses) {\n                localVarQueryParameter['fulfillmentStatuses'] = fulfillmentStatuses.join(COLLECTION_FORMATS.csv);\n            }\n\n            if (marketplaceIds) {\n                localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(COLLECTION_FORMATS.csv);\n            }\n\n            if (fulfilledBy) {\n                localVarQueryParameter['fulfilledBy'] = fulfilledBy.join(COLLECTION_FORMATS.csv);\n            }\n\n            if (maxResultsPerPage !== undefined) {\n                localVarQueryParameter['maxResultsPerPage'] = maxResultsPerPage;\n            }\n\n            if (paginationToken !== undefined) {\n                localVarQueryParameter['paginationToken'] = paginationToken;\n            }\n\n            if (includedData) {\n                localVarQueryParameter['includedData'] = includedData.join(COLLECTION_FORMATS.csv);\n            }\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};\n\n/**\n * OrdersApi - functional programming interface\n */\nexport const OrdersApiFp = function(configuration?: Configuration) {\n    const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)\n    return {\n        /**\n         * Returns the order that you specify.  **Usage Plan:**  | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 |  The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are 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 receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API documentation.\n         * @param {string} orderId An Amazon-defined order identifier.\n         * @param {Array<GetOrderIncludedDataEnum>} [includedData] A list of datasets to include in the response.\n         * @param {*} [options] Override http request option.\n         * @throws {RequiredError}\n         */\n        async getOrder(orderId: string, includedData?: Array<GetOrderIncludedDataEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrderResponse>> {\n            const localVarAxiosArgs = await localVarAxiosParamCreator.getOrder(orderId, includedData, options);\n            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n            const localVarOperationServerBasePath = operationServerMap['OrdersApi.getOrder']?.[localVarOperationServerIndex]?.url;\n            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n        },\n        /**\n         * Returns orders created or updated during the time period that you specify. You can filter the response for specific types of orders.  **Usage Plan:**  | Rate (requests per second) | Burst | | ---- | ---- | | 0.0056 | 20 |  The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are 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 receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API documentation.\n         * @param {string} [createdAfter] The response includes orders created at or after this time. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: You must provide exactly one of &#x60;createdAfter&#x60; and &#x60;lastUpdatedAfter&#x60; in your request. If &#x60;createdAfter&#x60; is provided, neither &#x60;lastUpdatedAfter&#x60; nor &#x60;lastUpdatedBefore&#x60; may be provided.\n         * @param {string} [createdBefore] The response includes orders created at or before this time. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: If you include &#x60;createdAfter&#x60; in the request, &#x60;createdBefore&#x60; is optional, and if provided must be equal to or after the &#x60;createdAfter&#x60; date and at least two minutes before the time of the request. If &#x60;createdBefore&#x60; is provided, neither &#x60;lastUpdatedAfter&#x60; nor &#x60;lastUpdatedBefore&#x60; may be provided.\n         * @param {string} [lastUpdatedAfter] The response includes orders updated at or after this time. An update is any change made by Amazon or the seller, including changes to order status. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: You must provide exactly one of &#x60;createdAfter&#x60; and &#x60;lastUpdatedAfter&#x60;. If &#x60;lastUpdatedAfter&#x60; is provided, neither &#x60;createdAfter&#x60; nor &#x60;createdBefore&#x60; may be provided.\n         * @param {string} [lastUpdatedBefore] The response includes orders updated at or before this time. An update is any change made by Amazon or the seller, including changes to order status. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: If you include &#x60;lastUpdatedAfter&#x60; in the request, &#x60;lastUpdatedBefore&#x60; is optional, and if provided must be equal to or after the &#x60;lastUpdatedAfter&#x60; date and at least two minutes before the time of the request. If &#x60;lastUpdatedBefore&#x60; is provided, neither &#x60;createdAfter&#x60; nor &#x60;createdBefore&#x60; may be provided.\n         * @param {Array<SearchOrdersFulfillmentStatusesEnum>} [fulfillmentStatuses] A list of &#x60;FulfillmentStatus&#x60; values you can use to filter the results.\n         * @param {Array<string>} [marketplaceIds] The response includes orders that were placed in marketplaces you include in this list.  Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) for a complete list of &#x60;marketplaceId&#x60; values.\n         * @param {Array<SearchOrdersFulfilledByEnum>} [fulfilledBy] The response includes orders that are fulfilled by the parties that you include in this list.\n         * @param {number} [maxResultsPerPage] The maximum number of orders that can be returned per page. The value must be between 1 and 100. **Default:** 100.\n         * @param {string} [paginationToken] Pagination occurs when a request produces a response that exceeds the &#x60;maxResultsPerPage&#x60;. This means that the response is divided into individual pages. To retrieve the next page, you must pass the &#x60;nextToken&#x60; value as the &#x60;paginationToken&#x60; query parameter in the next request. You will not receive a &#x60;nextToken&#x60; value on the last page.\n         * @param {Array<SearchOrdersIncludedDataEnum>} [includedData] A list of datasets to include in the response.\n         * @param {*} [options] Override http request option.\n         * @throws {RequiredError}\n         */\n        async searchOrders(createdAfter?: string, createdBefore?: string, lastUpdatedAfter?: string, lastUpdatedBefore?: string, fulfillmentStatuses?: Array<SearchOrdersFulfillmentStatusesEnum>, marketplaceIds?: Array<string>, fulfilledBy?: Array<SearchOrdersFulfilledByEnum>, maxResultsPerPage?: number, paginationToken?: string, includedData?: Array<SearchOrdersIncludedDataEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchOrdersResponse>> {\n            const localVarAxiosArgs = await localVarAxiosParamCreator.searchOrders(createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, fulfillmentStatuses, marketplaceIds, fulfilledBy, maxResultsPerPage, paginationToken, includedData, options);\n            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n            const localVarOperationServerBasePath = operationServerMap['OrdersApi.searchOrders']?.[localVarOperationServerIndex]?.url;\n            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n        },\n    }\n};\n\n/**\n * OrdersApi - factory interface\n */\nexport const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n    const localVarFp = OrdersApiFp(configuration)\n    return {\n        /**\n         * Returns the order that you specify.  **Usage Plan:**  | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 |  The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are 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 receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API documentation.\n         * @param {OrdersApiGetOrderRequest} requestParameters Request parameters.\n         * @param {*} [options] Override http request option.\n         * @throws {RequiredError}\n         */\n        getOrder(requestParameters: OrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOrderResponse> {\n            return localVarFp.getOrder(requestParameters.orderId, requestParameters.includedData, options).then((request) => request(axios, basePath));\n        },\n        /**\n         * Returns orders created or updated during the time period that you specify. You can filter the response for specific types of orders.  **Usage Plan:**  | Rate (requests per second) | Burst | | ---- | ---- | | 0.0056 | 20 |  The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are 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 receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API documentation.\n         * @param {OrdersApiSearchOrdersRequest} requestParameters Request parameters.\n         * @param {*} [options] Override http request option.\n         * @throws {RequiredError}\n         */\n        searchOrders(requestParameters: OrdersApiSearchOrdersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<SearchOrdersResponse> {\n            return localVarFp.searchOrders(requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.fulfillmentStatuses, requestParameters.marketplaceIds, requestParameters.fulfilledBy, requestParameters.maxResultsPerPage, requestParameters.paginationToken, requestParameters.includedData, options).then((request) => request(axios, basePath));\n        },\n    };\n};\n\n/**\n * Request parameters for getOrder operation in OrdersApi.\n */\nexport interface OrdersApiGetOrderRequest {\n    /**\n     * An Amazon-defined order identifier.\n     */\n    readonly orderId: string\n\n    /**\n     * A list of datasets to include in the response.\n     */\n    readonly includedData?: Array<GetOrderIncludedDataEnum>\n}\n\n/**\n * Request parameters for searchOrders operation in OrdersApi.\n */\nexport interface OrdersApiSearchOrdersRequest {\n    /**\n     * The response includes orders created at or after this time. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: You must provide exactly one of &#x60;createdAfter&#x60; and &#x60;lastUpdatedAfter&#x60; in your request. If &#x60;createdAfter&#x60; is provided, neither &#x60;lastUpdatedAfter&#x60; nor &#x60;lastUpdatedBefore&#x60; may be provided.\n     */\n    readonly createdAfter?: string\n\n    /**\n     * The response includes orders created at or before this time. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: If you include &#x60;createdAfter&#x60; in the request, &#x60;createdBefore&#x60; is optional, and if provided must be equal to or after the &#x60;createdAfter&#x60; date and at least two minutes before the time of the request. If &#x60;createdBefore&#x60; is provided, neither &#x60;lastUpdatedAfter&#x60; nor &#x60;lastUpdatedBefore&#x60; may be provided.\n     */\n    readonly createdBefore?: string\n\n    /**\n     * The response includes orders updated at or after this time. An update is any change made by Amazon or the seller, including changes to order status. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: You must provide exactly one of &#x60;createdAfter&#x60; and &#x60;lastUpdatedAfter&#x60;. If &#x60;lastUpdatedAfter&#x60; is provided, neither &#x60;createdAfter&#x60; nor &#x60;createdBefore&#x60; may be provided.\n     */\n    readonly lastUpdatedAfter?: string\n\n    /**\n     * The response includes orders updated at or before this time. An update is any change made by Amazon or the seller, including changes to order status. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.  **Note**: If you include &#x60;lastUpdatedAfter&#x60; in the request, &#x60;lastUpdatedBefore&#x60; is optional, and if provided must be equal to or after the &#x60;lastUpdatedAfter&#x60; date and at least two minutes before the time of the request. If &#x60;lastUpdatedBefore&#x60; is provided, neither &#x60;createdAfter&#x60; nor &#x60;createdBefore&#x60; may be provided.\n     */\n    readonly lastUpdatedBefore?: string\n\n    /**\n     * A list of &#x60;FulfillmentStatus&#x60; values you can use to filter the results.\n     */\n    readonly fulfillmentStatuses?: Array<SearchOrdersFulfillmentStatusesEnum>\n\n    /**\n     * The response includes orders that were placed in marketplaces you include in this list.  Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) for a complete list of &#x60;marketplaceId&#x60; values.\n     */\n    readonly marketplaceIds?: Array<string>\n\n    /**\n     * The response includes orders that are fulfilled by the parties that you include in this list.\n     */\n    readonly fulfilledBy?: Array<SearchOrdersFulfilledByEnum>\n\n    /**\n     * The maximum number of orders that can be returned per page. The value must be between 1 and 100. **Default:** 100.\n     */\n    readonly maxResultsPerPage?: number\n\n    /**\n     * Pagination occurs when a request produces a response that exceeds the &#x60;maxResultsPerPage&#x60;. This means that the response is divided into individual pages. To retrieve the next page, you must pass the &#x60;nextToken&#x60; value as the &#x60;paginationToken&#x60; query parameter in the next request. You will not receive a &#x60;nextToken&#x60; value on the last page.\n     */\n    readonly paginationToken?: string\n\n    /**\n     * A list of datasets to include in the response.\n     */\n    readonly includedData?: Array<SearchOrdersIncludedDataEnum>\n}\n\n/**\n * OrdersApi - object-oriented interface\n */\nexport class OrdersApi extends BaseAPI {\n    /**\n     * Returns the order that you specify.  **Usage Plan:**  | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 |  The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are 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 receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API documentation.\n     * @param {OrdersApiGetOrderRequest} requestParameters Request parameters.\n     * @param {*} [options] Override http request option.\n     * @throws {RequiredError}\n     */\n    public getOrder(requestParameters: OrdersApiGetOrderRequest, options?: RawAxiosRequestConfig) {\n        return OrdersApiFp(this.configuration).getOrder(requestParameters.orderId, requestParameters.includedData, options).then((request) => request(this.axios, this.basePath));\n    }\n\n    /**\n     * Returns orders created or updated during the time period that you specify. You can filter the response for specific types of orders.  **Usage Plan:**  | Rate (requests per second) | Burst | | ---- | ---- | | 0.0056 | 20 |  The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are 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 receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API documentation.\n     * @param {OrdersApiSearchOrdersRequest} requestParameters Request parameters.\n     * @param {*} [options] Override http request option.\n     * @throws {RequiredError}\n     */\n    public searchOrders(requestParameters: OrdersApiSearchOrdersRequest = {}, options?: RawAxiosRequestConfig) {\n        return OrdersApiFp(this.configuration).searchOrders(requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.fulfillmentStatuses, requestParameters.marketplaceIds, requestParameters.fulfilledBy, requestParameters.maxResultsPerPage, requestParameters.paginationToken, requestParameters.includedData, options).then((request) => request(this.axios, this.basePath));\n    }\n}\n\nexport const GetOrderIncludedDataEnum = {\n    Buyer: 'BUYER',\n    Recipient: 'RECIPIENT',\n    Proceeds: 'PROCEEDS',\n    Expense: 'EXPENSE',\n    Promotion: 'PROMOTION',\n    Cancellation: 'CANCELLATION',\n    Fulfillment: 'FULFILLMENT',\n    Packages: 'PACKAGES',\n    Tax: 'TAX',\n    Payment: 'PAYMENT',\n    FulfillmentOrders: 'FULFILLMENT_ORDERS',\n} as const;\nexport type GetOrderIncludedDataEnum = typeof GetOrderIncludedDataEnum[keyof typeof GetOrderIncludedDataEnum];\nexport const SearchOrdersFulfillmentStatusesEnum = {\n    PendingAvailability: 'PENDING_AVAILABILITY',\n    Pending: 'PENDING',\n    Unshipped: 'UNSHIPPED',\n    PartiallyShipped: 'PARTIALLY_SHIPPED',\n    Shipped: 'SHIPPED',\n    Cancelled: 'CANCELLED',\n    Unfulfillable: 'UNFULFILLABLE',\n} as const;\nexport type SearchOrdersFulfillmentStatusesEnum = typeof SearchOrdersFulfillmentStatusesEnum[keyof typeof SearchOrdersFulfillmentStatusesEnum];\nexport const SearchOrdersFulfilledByEnum = {\n    Merchant: 'MERCHANT',\n    Amazon: 'AMAZON',\n} as const;\nexport type SearchOrdersFulfilledByEnum = typeof SearchOrdersFulfilledByEnum[keyof typeof SearchOrdersFulfilledByEnum];\nexport const SearchOrdersIncludedDataEnum = {\n    Buyer: 'BUYER',\n    Recipient: 'RECIPIENT',\n    Proceeds: 'PROCEEDS',\n    Expense: 'EXPENSE',\n    Promotion: 'PROMOTION',\n    Cancellation: 'CANCELLATION',\n    Fulfillment: 'FULFILLMENT',\n    Packages: 'PACKAGES',\n    Tax: 'TAX',\n    Payment: 'PAYMENT',\n    FulfillmentOrders: 'FULFILLMENT_ORDERS',\n} as const;\nexport type SearchOrdersIncludedDataEnum = typeof SearchOrdersIncludedDataEnum[keyof typeof SearchOrdersIncludedDataEnum];\n","/* tslint:disable */\n/**\n * The Selling Partner API for Orders\n * The Selling Partner API for Orders returns orders information. This API supports the following types of orders:  - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh  This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.\n *\n * The version of the OpenAPI document: 2026-01-01\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\ninterface AWSv4Configuration {\n  options?: {\n    region?: string\n    service?: string\n  }\n  credentials?: {\n    accessKeyId?: string\n    secretAccessKey?: string,\n    sessionToken?: string\n  }\n}\n\nexport interface ConfigurationParameters {\n    apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n    username?: string;\n    password?: string;\n    accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n    awsv4?: AWSv4Configuration;\n    basePath?: string;\n    serverIndex?: number;\n    baseOptions?: any;\n    formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n    /**\n     * parameter for apiKey security\n     * @param name security name\n     */\n    apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n    /**\n     * parameter for basic security\n     */\n    username?: string;\n    /**\n     * parameter for basic security\n     */\n    password?: string;\n    /**\n     * parameter for oauth2 security\n     * @param name security name\n     * @param scopes oauth2 scope\n     */\n    accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n    /**\n     * parameter for aws4 signature security\n     * @param {Object} AWS4Signature - AWS4 Signature security\n     * @param {string} options.region - aws region\n     * @param {string} options.service - name of the service.\n     * @param {string} credentials.accessKeyId - aws access key id\n     * @param {string} credentials.secretAccessKey - aws access key\n     * @param {string} credentials.sessionToken - aws session token\n     * @memberof Configuration\n     */\n    awsv4?: AWSv4Configuration;\n    /**\n     * override base path\n     */\n    basePath?: string;\n    /**\n     * override server index\n     */\n    serverIndex?: number;\n    /**\n     * base options for axios calls\n     */\n    baseOptions?: any;\n    /**\n     * The FormData constructor that will be used to create multipart form data\n     * requests. You can inject this here so that execution environments that\n     * do not support the FormData class can still run the generated client.\n     *\n     * @type {new () => FormData}\n     */\n    formDataCtor?: new () => any;\n\n    constructor(param: ConfigurationParameters = {}) {\n        this.apiKey = param.apiKey;\n        this.username = param.username;\n        this.password = param.password;\n        this.accessToken = param.accessToken;\n        this.awsv4 = param.awsv4;\n        this.basePath = param.basePath;\n        this.serverIndex = param.serverIndex;\n        this.baseOptions = {\n            ...param.baseOptions,\n            headers: {\n                ...param.baseOptions?.headers,\n            },\n        };\n        this.formDataCtor = param.formDataCtor;\n    }\n\n    /**\n     * Check if the given MIME is a JSON MIME.\n     * JSON MIME examples:\n     *   application/json\n     *   application/json; charset=UTF8\n     *   APPLICATION/JSON\n     *   application/vnd.company+json\n     * @param mime - MIME (Multipurpose Internet Mail Extensions)\n     * @return True if the given MIME is JSON, false otherwise.\n     */\n    public isJsonMime(mime: string): boolean {\n        const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n        return mime !== null && jsonMime.test(mime);\n    }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Orders\n * The Selling Partner API for Orders returns orders information. This API supports the following types of orders:  - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh  This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.\n *\n * The version of the OpenAPI document: 2026-01-01\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\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { TimeWindow } from './time-window.js';\n\n/**\n * Business days and hours when the destination is open for deliveries.\n */\nexport interface BusinessHour {\n    /**\n     * Specific day of the week for which operating hours are being defined.\n     */\n    'dayOfWeek'?: BusinessHourDayOfWeekEnum;\n    /**\n     * Collection of time windows during which the location is available for deliveries on the specified day.\n     */\n    'timeWindows'?: Array<TimeWindow>;\n}\n\nexport const BusinessHourDayOfWeekEnum = {\n    Sun: 'SUN',\n    Mon: 'MON',\n    Tue: 'TUE',\n    Wed: 'WED',\n    Thu: 'THU',\n    Fri: 'FRI',\n    Sat: 'SAT',\n} as const;\n\nexport type BusinessHourDayOfWeekEnum = typeof BusinessHourDayOfWeekEnum[keyof typeof BusinessHourDayOfWeekEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Orders\n * The Selling Partner API for Orders returns orders information. This API supports the following types of orders:  - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh  This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.\n *\n * The version of the OpenAPI document: 2026-01-01\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\n\n/**\n * Classification of the enforcement level required for shipping and delivery constraints.\n */\n\nexport const ConstraintType = {\n    Mandatory: 'MANDATORY',\n} as const;\n\nexport type ConstraintType = typeof ConstraintType[keyof typeof ConstraintType];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Orders\n * The Selling Partner API for Orders returns orders information. This API supports the following types of orders:  - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh  This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.\n *\n * The version of the OpenAPI document: 2026-01-01\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\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { TimeWindow } from './time-window.js';\n\n/**\n * Special dates when normal business hours are modified or suspended, requiring different delivery scheduling.\n */\nexport interface ExceptionDate {\n    /**\n     * Specific calendar date when normal operating hours do not apply. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format at day granularity.\n     */\n    'exceptionDate'?: string;\n    /**\n     * Operational status of the business on the specified exception date.\n     */\n    'exceptionDateType'?: ExceptionDateExceptionDateTypeEnum;\n    /**\n     * Alternative operating hours that apply specifically to this exception date.\n     */\n    'timeWindows'?: Array<TimeWindow>;\n}\n\nexport const ExceptionDateExceptionDateTypeEnum = {\n    Closed: 'CLOSED',\n    Open: 'OPEN',\n} as const;\n\nexport type ExceptionDateExceptionDateTypeEnum = typeof ExceptionDateExceptionDateTypeEnum[keyof typeof ExceptionDateExceptionDateTypeEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Orders\n * The Selling Partner API for Orders returns orders information. This API supports the following types of orders:  - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh  This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.\n *\n * The version of the OpenAPI document: 2026-01-01\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\n\n/**\n * The current fulfillment status of an order, indicating where the order is in the fulfillment process from placement to handover to carrier.\n */\n\nexport const FulfillmentStatus = {\n    PendingAvailability: 'PENDING_AVAILABILITY',\n    Pending: 'PENDING',\n    Unshipped: 'UNSHIPPED',\n    PartiallyShipped: 'PARTIALLY_SHIPPED',\n    Shipped: 'SHIPPED',\n    Cancelled: 'CANCELLED',\n    Unfulfillable: 'UNFULFILLABLE',\n} as const;\n\nexport type FulfillmentStatus = typeof FulfillmentStatus[keyof typeof FulfillmentStatus];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Orders\n * The Selling Partner API for Orders returns orders information. This API supports the following types of orders:  - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh  This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.\n *\n * The version of the OpenAPI document: 2026-01-01\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\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { ItemSubstitutionOption } from './item-substitution-option.js';\n\n/**\n * Substitution preference for an order item when it becomes unavailable during fulfillment.\n */\nexport interface ItemSubstitutionPreference {\n    /**\n     * Source and nature of the substitution preferences for this item.\n     */\n    'substitutionType': ItemSubstitutionPreferenceSubstitutionTypeEnum;\n    /**\n     * List of alternative products that can be substituted for the original item if it becomes unavailable.\n     */\n    'substitutionOptions'?: Array<ItemSubstitutionOption>;\n}\n\nexport const ItemSubstitutionPreferenceSubstitutionTypeEnum = {\n    CustomerPreference: 'CUSTOMER_PREFERENCE',\n    AmazonRecommended: 'AMAZON_RECOMMENDED',\n    DoNotSubstitute: 'DO_NOT_SUBSTITUTE',\n} as const;\n\nexport type ItemSubstitutionPreferenceSubstitutionTypeEnum = typeof ItemSubstitutionPreferenceSubstitutionTypeEnum[keyof typeof ItemSubstitutionPreferenceSubstitutionTypeEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Orders\n * The Selling Partner API for Orders returns orders information. This API supports the following types of orders:  - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh  This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.\n *\n * The version of the OpenAPI document: 2026-01-01\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\n\n/**\n * Specifies the unit of measure and quantity for items that are sold by weight, volume, length, or other measurements rather than simple count.\n */\nexport interface Measurement {\n    /**\n     * The specific unit of measurement used to quantify this item.\n     */\n    'unit': MeasurementUnitEnum;\n    /**\n     * The numerical quantity or amount being measured in the specified unit.\n     */\n    'value': number;\n}\n\nexport const MeasurementUnitEnum = {\n    Ounces: 'OUNCES',\n    Pounds: 'POUNDS',\n    Kilograms: 'KILOGRAMS',\n    Grams: 'GRAMS',\n    Milligrams: 'MILLIGRAMS',\n    Inches: 'INCHES',\n    Feet: 'FEET',\n    Meters: 'METERS',\n    Centimeters: 'CENTIMETERS',\n    Millimeters: 'MILLIMETERS',\n    SquareMeters: 'SQUARE_METERS',\n    SquareCentimeters: 'SQUARE_CENTIMETERS',\n    SquareFeet: 'SQUARE_FEET',\n    SquareInches: 'SQUARE_INCHES',\n    Gallons: 'GALLONS',\n    Pints: 'PINTS',\n    Quarts: 'QUARTS',\n    FluidOunces: 'FLUID_OUNCES',\n    Liters: 'LITERS',\n    CubicMeters: 'CUBIC_METERS',\n    CubicFeet: 'CUBIC_FEET',\n    CubicInches: 'CUBIC_INCHES',\n    CubicCentimeters: 'CUBIC_CENTIMETERS',\n    Count: 'COUNT',\n} as const;\n\nexport type MeasurementUnitEnum = typeof MeasurementUnitEnum[keyof typeof MeasurementUnitEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Orders\n * The Selling Partner API for Orders returns orders information. This API supports the following types of orders:  - FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh  This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.\n *\n * The version of the OpenAPI document: 2026-01-01\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\n\n/**\n * Current status and detailed tracking information for a shipping package throughout the delivery process.\n */\nexport interface PackageStatus {\n    /**\n     * Primary status classification of the package in the shipping workflow.\n     */\n    'status': PackageStatusStatusEnum;\n    /**\n     * Granular status information providing specific details about the package\\'s current location and handling stage.   **Possible values**: - `PENDING_SCHEDULE` (Package awaiting pickup scheduling) - `PENDING_PICK_UP` (Package ready for carrier collection from seller) - `PENDING_DROP_OFF` (Package awaiting seller delivery to carrier) - `LABEL_CANCELLED` (Shipping label canceled by seller) - `PICKED_UP` (Package collected by carrier from seller location) - `DROPPED_OFF` (Package delivered to carrier by seller) - `AT_ORIGIN_FC` (Package at originating fulfillment center) - `AT_DESTINATION_FC` (Package at destination fulfillment center) - `DELIVERED` (Package successfully delivered to recipient) - `REJECTED_BY_BUYER` (Package refused by intended recipient) - `UNDELIVERABLE` (Package cannot be delivered due to address or access issues) - `RETURNING_TO_SELLER` (Package in transit back to seller) - `RETURNED_TO_SELLER` (Package successfully returned to seller) - `LOST` (Package location unknown or confirmed lost) - `OUT_FOR_DELIVERY` (Package on delivery vehicle for final delivery) - `DAMAGED` (Package damaged during transit) \n     */\n    'detailedStatus'?: string;\n}\n\nexport const PackageStatusStatusEnum = {\n    Pending: 'PENDING',\n    InTransit: 'IN_TRANSIT',\n    Shipped: 'SHIPPED',\n    Delivered: 'DELIVERED',\n    Cancelled: 'CANCELLED',\n    Undeliverable: 'UNDELIVERABLE',\n} as const;\n\nexport type PackageStatusStatusEnum = typeof PackageStatusStatusEnum[keyof typeof PackageStatusStatusEnum];\n\n\n","import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {Configuration, OrdersApi} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n  {\n    method: 'get',\n    urlRegex: /^\\/orders\\/2026\\u{2D}01\\u{2D}01\\/orders$/v,\n    rate: 0.0056,\n    burst: 20,\n  },\n  {\n    method: 'get',\n    urlRegex: /^\\/orders\\/2026\\u{2D}01\\u{2D}01\\/orders\\/[^\\/]*$/v,\n    rate: 0.5,\n    burst: 30,\n  },\n]\n\nexport class OrdersApiClient extends OrdersApi {\n  constructor(configuration: ClientConfiguration) {\n    const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n    super(new Configuration(), endpoint, axios)\n  }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAa,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAErF,MAAa,qBAAqB;CAC9B,KAAK;CACL,KAAK;CACL,KAAK;CACL,OAAO;AACX;AAOA,IAAa,UAAb,MAAqB;CAGoC;CAAwC;CAF7F;CAEA,YAAY,eAA+B,WAA6B,WAAW,UAAiCC,MAAAA,SAAa;EAA5E,KAAA,WAAA;EAAwC,KAAA,QAAA;EACzF,IAAI,eAAe;GACf,KAAK,gBAAgB;GACrB,KAAK,WAAW,cAAc,YAAY;EAC9C;CACJ;AACJ;AAEA,IAAa,gBAAb,cAAmC,MAAM;CAClB;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