@sp-api-sdk/product-pricing-api-2022-05-01 4.0.0 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,474 +1,500 @@
1
- "use strict";
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region \0rolldown/runtime.js
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __getProtoOf = Object.getPrototypeOf;
7
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
9
  var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
10
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
+ get: ((k) => from[k]).bind(null, key),
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ }
17
+ return to;
19
18
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/index.ts
31
- var index_exports = {};
32
- __export(index_exports, {
33
- CompetitiveSummaryIncludedData: () => CompetitiveSummaryIncludedData,
34
- Condition: () => Condition,
35
- FeaturedBuyingOptionBuyingOptionTypeEnum: () => FeaturedBuyingOptionBuyingOptionTypeEnum,
36
- FeaturedOfferSegmentCustomerMembershipEnum: () => FeaturedOfferSegmentCustomerMembershipEnum,
37
- FulfillmentType: () => FulfillmentType,
38
- HttpMethod: () => HttpMethod,
39
- LowestPricedOffersInputOfferTypeEnum: () => LowestPricedOffersInputOfferTypeEnum,
40
- OfferSubConditionEnum: () => OfferSubConditionEnum,
41
- PrimeDetailsEligibilityEnum: () => PrimeDetailsEligibilityEnum,
42
- ProductPricingApi: () => ProductPricingApi,
43
- ProductPricingApiAxiosParamCreator: () => ProductPricingApiAxiosParamCreator,
44
- ProductPricingApiClient: () => ProductPricingApiClient,
45
- ProductPricingApiFactory: () => ProductPricingApiFactory,
46
- ProductPricingApiFp: () => ProductPricingApiFp,
47
- ShippingOptionShippingOptionTypeEnum: () => ShippingOptionShippingOptionTypeEnum,
48
- clientRateLimits: () => clientRateLimits
49
- });
50
- module.exports = __toCommonJS(index_exports);
51
-
52
- // src/client.ts
53
- var import_common2 = require("@sp-api-sdk/common");
54
-
55
- // src/api-model/api/product-pricing-api.ts
56
- var import_axios2 = __toESM(require("axios"), 1);
57
-
58
- // src/api-model/base.ts
59
- var import_axios = __toESM(require("axios"), 1);
60
- var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
20
+ value: mod,
21
+ enumerable: true
22
+ }) : target, mod));
23
+ //#endregion
24
+ let _sp_api_sdk_common = require("@sp-api-sdk/common");
25
+ let axios = require("axios");
26
+ axios = __toESM(axios, 1);
27
+ //#region src/api-model/base.ts
28
+ const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
61
29
  var BaseAPI = class {
62
- constructor(configuration, basePath = BASE_PATH, axios = import_axios.default) {
63
- this.basePath = basePath;
64
- this.axios = axios;
65
- if (configuration) {
66
- this.configuration = configuration;
67
- this.basePath = configuration.basePath ?? basePath;
68
- }
69
- }
70
- basePath;
71
- axios;
72
- configuration;
30
+ basePath;
31
+ axios;
32
+ configuration;
33
+ constructor(configuration, basePath = BASE_PATH, axios$4 = axios.default) {
34
+ this.basePath = basePath;
35
+ this.axios = axios$4;
36
+ if (configuration) {
37
+ this.configuration = configuration;
38
+ this.basePath = configuration.basePath ?? basePath;
39
+ }
40
+ }
73
41
  };
74
42
  var RequiredError = class extends Error {
75
- constructor(field, msg) {
76
- super(msg);
77
- this.field = field;
78
- this.name = "RequiredError";
79
- }
80
- field;
43
+ field;
44
+ constructor(field, msg) {
45
+ super(msg);
46
+ this.field = field;
47
+ this.name = "RequiredError";
48
+ }
81
49
  };
82
- var operationServerMap = {};
83
-
84
- // src/api-model/common.ts
85
- var DUMMY_BASE_URL = "https://example.com";
86
- var assertParamExists = function(functionName, paramName, paramValue) {
87
- if (paramValue === null || paramValue === void 0) {
88
- throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
89
- }
50
+ const operationServerMap = {};
51
+ //#endregion
52
+ //#region src/api-model/common.ts
53
+ const DUMMY_BASE_URL = "https://example.com";
54
+ /**
55
+ *
56
+ * @throws {RequiredError}
57
+ */
58
+ const assertParamExists = function(functionName, paramName, paramValue) {
59
+ if (paramValue === null || paramValue === void 0) throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
90
60
  };
91
61
  function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
92
- if (parameter == null) return;
93
- if (typeof parameter === "object") {
94
- if (Array.isArray(parameter) || parameter instanceof Set) {
95
- parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
96
- } else {
97
- Object.keys(parameter).forEach(
98
- (currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
99
- );
100
- }
101
- } else {
102
- if (urlSearchParams.has(key)) {
103
- urlSearchParams.append(key, parameter);
104
- } else {
105
- urlSearchParams.set(key, parameter);
106
- }
107
- }
62
+ if (parameter == null) return;
63
+ if (typeof parameter === "object") if (Array.isArray(parameter) || parameter instanceof Set) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
64
+ else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
65
+ else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
66
+ else urlSearchParams.set(key, parameter);
108
67
  }
109
- var setSearchParams = function(url, ...objects) {
110
- const searchParams = new URLSearchParams(url.search);
111
- setFlattenedQueryParams(searchParams, objects);
112
- url.search = searchParams.toString();
68
+ const setSearchParams = function(url, ...objects) {
69
+ const searchParams = new URLSearchParams(url.search);
70
+ setFlattenedQueryParams(searchParams, objects);
71
+ url.search = searchParams.toString();
113
72
  };
114
- var replaceWithSerializableTypeIfNeeded = function(key, value) {
115
- if (value instanceof Set) {
116
- return Array.from(value);
117
- } else {
118
- return value;
119
- }
73
+ /**
74
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
75
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
76
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
77
+ */
78
+ const replaceWithSerializableTypeIfNeeded = function(key, value) {
79
+ if (value instanceof Set) return Array.from(value);
80
+ else return value;
120
81
  };
121
- var serializeDataIfNeeded = function(value, requestOptions, configuration) {
122
- const nonString = typeof value !== "string";
123
- const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
124
- return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
82
+ const serializeDataIfNeeded = function(value, requestOptions, configuration) {
83
+ const nonString = typeof value !== "string";
84
+ return (nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString) ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
125
85
  };
126
- var toPathString = function(url) {
127
- return url.pathname + url.search + url.hash;
86
+ const toPathString = function(url) {
87
+ return url.pathname + url.search + url.hash;
128
88
  };
129
- var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
130
- return (axios = globalAxios3, basePath = BASE_PATH2) => {
131
- const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
132
- return axios.request(axiosRequestArgs);
133
- };
89
+ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
90
+ return (axios = globalAxios, basePath = BASE_PATH) => {
91
+ const axiosRequestArgs = {
92
+ ...axiosArgs.options,
93
+ url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url
94
+ };
95
+ return axios.request(axiosRequestArgs);
96
+ };
134
97
  };
135
-
136
- // src/api-model/api/product-pricing-api.ts
137
- var ProductPricingApiAxiosParamCreator = function(configuration) {
138
- return {
139
- /**
140
- * Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
141
- * @param {CompetitiveSummaryBatchRequest} requests The batch of &#x60;getCompetitiveSummary&#x60; requests.
142
- * @param {*} [options] Override http request option.
143
- * @throws {RequiredError}
144
- */
145
- getCompetitiveSummary: async (requests, options = {}) => {
146
- assertParamExists("getCompetitiveSummary", "requests", requests);
147
- const localVarPath = `/batches/products/pricing/2022-05-01/items/competitiveSummary`;
148
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
149
- let baseOptions;
150
- if (configuration) {
151
- baseOptions = configuration.baseOptions;
152
- }
153
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
154
- const localVarHeaderParameter = {};
155
- const localVarQueryParameter = {};
156
- localVarHeaderParameter["Content-Type"] = "application/json";
157
- localVarHeaderParameter["Accept"] = "application/json";
158
- setSearchParams(localVarUrlObj, localVarQueryParameter);
159
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
161
- localVarRequestOptions.data = serializeDataIfNeeded(requests, localVarRequestOptions, configuration);
162
- return {
163
- url: toPathString(localVarUrlObj),
164
- options: localVarRequestOptions
165
- };
166
- },
167
- /**
168
- * Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed because competing offers might change. Other offers might be featured based on factors such as fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
169
- * @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of &#x60;getFeaturedOfferExpectedPrice&#x60; requests.
170
- * @param {*} [options] Override http request option.
171
- * @throws {RequiredError}
172
- */
173
- getFeaturedOfferExpectedPriceBatch: async (getFeaturedOfferExpectedPriceBatchRequestBody, options = {}) => {
174
- assertParamExists("getFeaturedOfferExpectedPriceBatch", "getFeaturedOfferExpectedPriceBatchRequestBody", getFeaturedOfferExpectedPriceBatchRequestBody);
175
- const localVarPath = `/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice`;
176
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
177
- let baseOptions;
178
- if (configuration) {
179
- baseOptions = configuration.baseOptions;
180
- }
181
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
182
- const localVarHeaderParameter = {};
183
- const localVarQueryParameter = {};
184
- localVarHeaderParameter["Content-Type"] = "application/json";
185
- localVarHeaderParameter["Accept"] = "application/json";
186
- setSearchParams(localVarUrlObj, localVarQueryParameter);
187
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
189
- localVarRequestOptions.data = serializeDataIfNeeded(getFeaturedOfferExpectedPriceBatchRequestBody, localVarRequestOptions, configuration);
190
- return {
191
- url: toPathString(localVarUrlObj),
192
- options: localVarRequestOptions
193
- };
194
- }
195
- };
98
+ //#endregion
99
+ //#region src/api-model/api/product-pricing-api.ts
100
+ /**
101
+ * ProductPricingApi - axios parameter creator
102
+ */
103
+ const ProductPricingApiAxiosParamCreator = function(configuration) {
104
+ return {
105
+ /**
106
+ * Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
107
+ * @param {CompetitiveSummaryBatchRequest} requests The batch of &#x60;getCompetitiveSummary&#x60; requests.
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ getCompetitiveSummary: async (requests, options = {}) => {
112
+ assertParamExists("getCompetitiveSummary", "requests", requests);
113
+ const localVarUrlObj = new URL(`/batches/products/pricing/2022-05-01/items/competitiveSummary`, DUMMY_BASE_URL);
114
+ let baseOptions;
115
+ if (configuration) baseOptions = configuration.baseOptions;
116
+ const localVarRequestOptions = {
117
+ method: "POST",
118
+ ...baseOptions,
119
+ ...options
120
+ };
121
+ const localVarHeaderParameter = {};
122
+ const localVarQueryParameter = {};
123
+ localVarHeaderParameter["Content-Type"] = "application/json";
124
+ localVarHeaderParameter["Accept"] = "application/json";
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = {
128
+ ...localVarHeaderParameter,
129
+ ...headersFromBaseOptions,
130
+ ...options.headers
131
+ };
132
+ localVarRequestOptions.data = serializeDataIfNeeded(requests, localVarRequestOptions, configuration);
133
+ return {
134
+ url: toPathString(localVarUrlObj),
135
+ options: localVarRequestOptions
136
+ };
137
+ },
138
+ /**
139
+ * Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed because competing offers might change. Other offers might be featured based on factors such as fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
140
+ * @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of &#x60;getFeaturedOfferExpectedPrice&#x60; requests.
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ getFeaturedOfferExpectedPriceBatch: async (getFeaturedOfferExpectedPriceBatchRequestBody, options = {}) => {
145
+ assertParamExists("getFeaturedOfferExpectedPriceBatch", "getFeaturedOfferExpectedPriceBatchRequestBody", getFeaturedOfferExpectedPriceBatchRequestBody);
146
+ const localVarUrlObj = new URL(`/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice`, DUMMY_BASE_URL);
147
+ let baseOptions;
148
+ if (configuration) baseOptions = configuration.baseOptions;
149
+ const localVarRequestOptions = {
150
+ method: "POST",
151
+ ...baseOptions,
152
+ ...options
153
+ };
154
+ const localVarHeaderParameter = {};
155
+ const localVarQueryParameter = {};
156
+ localVarHeaderParameter["Content-Type"] = "application/json";
157
+ localVarHeaderParameter["Accept"] = "application/json";
158
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
+ localVarRequestOptions.headers = {
161
+ ...localVarHeaderParameter,
162
+ ...headersFromBaseOptions,
163
+ ...options.headers
164
+ };
165
+ localVarRequestOptions.data = serializeDataIfNeeded(getFeaturedOfferExpectedPriceBatchRequestBody, localVarRequestOptions, configuration);
166
+ return {
167
+ url: toPathString(localVarUrlObj),
168
+ options: localVarRequestOptions
169
+ };
170
+ }
171
+ };
196
172
  };
197
- var ProductPricingApiFp = function(configuration) {
198
- const localVarAxiosParamCreator = ProductPricingApiAxiosParamCreator(configuration);
199
- return {
200
- /**
201
- * Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
202
- * @param {CompetitiveSummaryBatchRequest} requests The batch of &#x60;getCompetitiveSummary&#x60; requests.
203
- * @param {*} [options] Override http request option.
204
- * @throws {RequiredError}
205
- */
206
- async getCompetitiveSummary(requests, options) {
207
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCompetitiveSummary(requests, options);
208
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
209
- const localVarOperationServerBasePath = operationServerMap["ProductPricingApi.getCompetitiveSummary"]?.[localVarOperationServerIndex]?.url;
210
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
211
- },
212
- /**
213
- * Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed because competing offers might change. Other offers might be featured based on factors such as fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
214
- * @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of &#x60;getFeaturedOfferExpectedPrice&#x60; requests.
215
- * @param {*} [options] Override http request option.
216
- * @throws {RequiredError}
217
- */
218
- async getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options) {
219
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options);
220
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
221
- const localVarOperationServerBasePath = operationServerMap["ProductPricingApi.getFeaturedOfferExpectedPriceBatch"]?.[localVarOperationServerIndex]?.url;
222
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
223
- }
224
- };
173
+ /**
174
+ * ProductPricingApi - functional programming interface
175
+ */
176
+ const ProductPricingApiFp = function(configuration) {
177
+ const localVarAxiosParamCreator = ProductPricingApiAxiosParamCreator(configuration);
178
+ return {
179
+ /**
180
+ * Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
181
+ * @param {CompetitiveSummaryBatchRequest} requests The batch of &#x60;getCompetitiveSummary&#x60; requests.
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ async getCompetitiveSummary(requests, options) {
186
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompetitiveSummary(requests, options);
187
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
188
+ const localVarOperationServerBasePath = operationServerMap["ProductPricingApi.getCompetitiveSummary"]?.[localVarOperationServerIndex]?.url;
189
+ return (axios$1, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$1, localVarOperationServerBasePath || basePath);
190
+ },
191
+ /**
192
+ * Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed because competing offers might change. Other offers might be featured based on factors such as fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
193
+ * @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of &#x60;getFeaturedOfferExpectedPrice&#x60; requests.
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ async getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options) {
198
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options);
199
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
200
+ const localVarOperationServerBasePath = operationServerMap["ProductPricingApi.getFeaturedOfferExpectedPriceBatch"]?.[localVarOperationServerIndex]?.url;
201
+ return (axios$2, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$2, localVarOperationServerBasePath || basePath);
202
+ }
203
+ };
225
204
  };
226
- var ProductPricingApiFactory = function(configuration, basePath, axios) {
227
- const localVarFp = ProductPricingApiFp(configuration);
228
- return {
229
- /**
230
- * Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
231
- * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
232
- * @param {*} [options] Override http request option.
233
- * @throws {RequiredError}
234
- */
235
- getCompetitiveSummary(requestParameters, options) {
236
- return localVarFp.getCompetitiveSummary(requestParameters.requests, options).then((request) => request(axios, basePath));
237
- },
238
- /**
239
- * Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed because competing offers might change. Other offers might be featured based on factors such as fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
240
- * @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
241
- * @param {*} [options] Override http request option.
242
- * @throws {RequiredError}
243
- */
244
- getFeaturedOfferExpectedPriceBatch(requestParameters, options) {
245
- return localVarFp.getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(axios, basePath));
246
- }
247
- };
205
+ /**
206
+ * ProductPricingApi - factory interface
207
+ */
208
+ const ProductPricingApiFactory = function(configuration, basePath, axios$3) {
209
+ const localVarFp = ProductPricingApiFp(configuration);
210
+ return {
211
+ /**
212
+ * Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
213
+ * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ getCompetitiveSummary(requestParameters, options) {
218
+ return localVarFp.getCompetitiveSummary(requestParameters.requests, options).then((request) => request(axios$3, basePath));
219
+ },
220
+ /**
221
+ * Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed because competing offers might change. Other offers might be featured based on factors such as fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
222
+ * @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ getFeaturedOfferExpectedPriceBatch(requestParameters, options) {
227
+ return localVarFp.getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(axios$3, basePath));
228
+ }
229
+ };
248
230
  };
231
+ /**
232
+ * ProductPricingApi - object-oriented interface
233
+ */
249
234
  var ProductPricingApi = class extends BaseAPI {
250
- /**
251
- * Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
252
- * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
253
- * @param {*} [options] Override http request option.
254
- * @throws {RequiredError}
255
- */
256
- getCompetitiveSummary(requestParameters, options) {
257
- return ProductPricingApiFp(this.configuration).getCompetitiveSummary(requestParameters.requests, options).then((request) => request(this.axios, this.basePath));
258
- }
259
- /**
260
- * Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed because competing offers might change. Other offers might be featured based on factors such as fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
261
- * @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
262
- * @param {*} [options] Override http request option.
263
- * @throws {RequiredError}
264
- */
265
- getFeaturedOfferExpectedPriceBatch(requestParameters, options) {
266
- return ProductPricingApiFp(this.configuration).getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(this.axios, this.basePath));
267
- }
235
+ /**
236
+ * Returns the competitive summary response, including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
237
+ * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ getCompetitiveSummary(requestParameters, options) {
242
+ return ProductPricingApiFp(this.configuration).getCompetitiveSummary(requestParameters.requests, options).then((request) => request(this.axios, this.basePath));
243
+ }
244
+ /**
245
+ * Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed because competing offers might change. Other offers might be featured based on factors such as fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | 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.
246
+ * @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ getFeaturedOfferExpectedPriceBatch(requestParameters, options) {
251
+ return ProductPricingApiFp(this.configuration).getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(this.axios, this.basePath));
252
+ }
268
253
  };
269
-
270
- // src/api-model/configuration.ts
254
+ //#endregion
255
+ //#region src/api-model/configuration.ts
271
256
  var Configuration = class {
272
- /**
273
- * parameter for apiKey security
274
- * @param name security name
275
- */
276
- apiKey;
277
- /**
278
- * parameter for basic security
279
- */
280
- username;
281
- /**
282
- * parameter for basic security
283
- */
284
- password;
285
- /**
286
- * parameter for oauth2 security
287
- * @param name security name
288
- * @param scopes oauth2 scope
289
- */
290
- accessToken;
291
- /**
292
- * parameter for aws4 signature security
293
- * @param {Object} AWS4Signature - AWS4 Signature security
294
- * @param {string} options.region - aws region
295
- * @param {string} options.service - name of the service.
296
- * @param {string} credentials.accessKeyId - aws access key id
297
- * @param {string} credentials.secretAccessKey - aws access key
298
- * @param {string} credentials.sessionToken - aws session token
299
- * @memberof Configuration
300
- */
301
- awsv4;
302
- /**
303
- * override base path
304
- */
305
- basePath;
306
- /**
307
- * override server index
308
- */
309
- serverIndex;
310
- /**
311
- * base options for axios calls
312
- */
313
- baseOptions;
314
- /**
315
- * The FormData constructor that will be used to create multipart form data
316
- * requests. You can inject this here so that execution environments that
317
- * do not support the FormData class can still run the generated client.
318
- *
319
- * @type {new () => FormData}
320
- */
321
- formDataCtor;
322
- constructor(param = {}) {
323
- this.apiKey = param.apiKey;
324
- this.username = param.username;
325
- this.password = param.password;
326
- this.accessToken = param.accessToken;
327
- this.awsv4 = param.awsv4;
328
- this.basePath = param.basePath;
329
- this.serverIndex = param.serverIndex;
330
- this.baseOptions = {
331
- ...param.baseOptions,
332
- headers: {
333
- ...param.baseOptions?.headers
334
- }
335
- };
336
- this.formDataCtor = param.formDataCtor;
337
- }
338
- /**
339
- * Check if the given MIME is a JSON MIME.
340
- * JSON MIME examples:
341
- * application/json
342
- * application/json; charset=UTF8
343
- * APPLICATION/JSON
344
- * application/vnd.company+json
345
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
346
- * @return True if the given MIME is JSON, false otherwise.
347
- */
348
- isJsonMime(mime) {
349
- const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
350
- return mime !== null && jsonMime.test(mime);
351
- }
257
+ /**
258
+ * parameter for apiKey security
259
+ * @param name security name
260
+ */
261
+ apiKey;
262
+ /**
263
+ * parameter for basic security
264
+ */
265
+ username;
266
+ /**
267
+ * parameter for basic security
268
+ */
269
+ password;
270
+ /**
271
+ * parameter for oauth2 security
272
+ * @param name security name
273
+ * @param scopes oauth2 scope
274
+ */
275
+ accessToken;
276
+ /**
277
+ * parameter for aws4 signature security
278
+ * @param {Object} AWS4Signature - AWS4 Signature security
279
+ * @param {string} options.region - aws region
280
+ * @param {string} options.service - name of the service.
281
+ * @param {string} credentials.accessKeyId - aws access key id
282
+ * @param {string} credentials.secretAccessKey - aws access key
283
+ * @param {string} credentials.sessionToken - aws session token
284
+ * @memberof Configuration
285
+ */
286
+ awsv4;
287
+ /**
288
+ * override base path
289
+ */
290
+ basePath;
291
+ /**
292
+ * override server index
293
+ */
294
+ serverIndex;
295
+ /**
296
+ * base options for axios calls
297
+ */
298
+ baseOptions;
299
+ /**
300
+ * The FormData constructor that will be used to create multipart form data
301
+ * requests. You can inject this here so that execution environments that
302
+ * do not support the FormData class can still run the generated client.
303
+ *
304
+ * @type {new () => FormData}
305
+ */
306
+ formDataCtor;
307
+ constructor(param = {}) {
308
+ this.apiKey = param.apiKey;
309
+ this.username = param.username;
310
+ this.password = param.password;
311
+ this.accessToken = param.accessToken;
312
+ this.awsv4 = param.awsv4;
313
+ this.basePath = param.basePath;
314
+ this.serverIndex = param.serverIndex;
315
+ this.baseOptions = {
316
+ ...param.baseOptions,
317
+ headers: { ...param.baseOptions?.headers }
318
+ };
319
+ this.formDataCtor = param.formDataCtor;
320
+ }
321
+ /**
322
+ * Check if the given MIME is a JSON MIME.
323
+ * JSON MIME examples:
324
+ * application/json
325
+ * application/json; charset=UTF8
326
+ * APPLICATION/JSON
327
+ * application/vnd.company+json
328
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
329
+ * @return True if the given MIME is JSON, false otherwise.
330
+ */
331
+ isJsonMime(mime) {
332
+ return mime !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(mime);
333
+ }
352
334
  };
353
-
354
- // src/api-model/models/competitive-summary-included-data.ts
355
- var CompetitiveSummaryIncludedData = {
356
- FeaturedBuyingOptions: "featuredBuyingOptions",
357
- ReferencePrices: "referencePrices",
358
- LowestPricedOffers: "lowestPricedOffers",
359
- SimilarItems: "similarItems"
335
+ //#endregion
336
+ //#region src/api-model/models/competitive-summary-included-data.ts
337
+ /**
338
+ * Selling Partner API for Pricing
339
+ * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
340
+ *
341
+ * The version of the OpenAPI document: 2022-05-01
342
+ *
343
+ *
344
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
345
+ * https://openapi-generator.tech
346
+ * Do not edit the class manually.
347
+ */
348
+ /**
349
+ * The supported data types in the `getCompetitiveSummary` API.
350
+ */
351
+ const CompetitiveSummaryIncludedData = {
352
+ FeaturedBuyingOptions: "featuredBuyingOptions",
353
+ ReferencePrices: "referencePrices",
354
+ LowestPricedOffers: "lowestPricedOffers",
355
+ SimilarItems: "similarItems"
360
356
  };
361
-
362
- // src/api-model/models/condition.ts
363
- var Condition = {
364
- New: "New",
365
- Used: "Used",
366
- Collectible: "Collectible",
367
- Refurbished: "Refurbished",
368
- Club: "Club"
357
+ //#endregion
358
+ //#region src/api-model/models/condition.ts
359
+ /**
360
+ * Selling Partner API for Pricing
361
+ * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
362
+ *
363
+ * The version of the OpenAPI document: 2022-05-01
364
+ *
365
+ *
366
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
367
+ * https://openapi-generator.tech
368
+ * Do not edit the class manually.
369
+ */
370
+ /**
371
+ * The condition of the item.
372
+ */
373
+ const Condition = {
374
+ New: "New",
375
+ Used: "Used",
376
+ Collectible: "Collectible",
377
+ Refurbished: "Refurbished",
378
+ Club: "Club"
369
379
  };
370
-
371
- // src/api-model/models/featured-buying-option.ts
372
- var FeaturedBuyingOptionBuyingOptionTypeEnum = {
373
- New: "New"
380
+ //#endregion
381
+ //#region src/api-model/models/featured-buying-option.ts
382
+ const FeaturedBuyingOptionBuyingOptionTypeEnum = { New: "New" };
383
+ //#endregion
384
+ //#region src/api-model/models/featured-offer-segment.ts
385
+ const FeaturedOfferSegmentCustomerMembershipEnum = {
386
+ Prime: "PRIME",
387
+ NonPrime: "NON_PRIME",
388
+ Default: "DEFAULT"
374
389
  };
375
-
376
- // src/api-model/models/featured-offer-segment.ts
377
- var FeaturedOfferSegmentCustomerMembershipEnum = {
378
- Prime: "PRIME",
379
- NonPrime: "NON_PRIME",
380
- Default: "DEFAULT"
390
+ //#endregion
391
+ //#region src/api-model/models/fulfillment-type.ts
392
+ /**
393
+ * Selling Partner API for Pricing
394
+ * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
395
+ *
396
+ * The version of the OpenAPI document: 2022-05-01
397
+ *
398
+ *
399
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
400
+ * https://openapi-generator.tech
401
+ * Do not edit the class manually.
402
+ */
403
+ /**
404
+ * Indicates whether the item is fulfilled by Amazon or by the seller (merchant).
405
+ */
406
+ const FulfillmentType = {
407
+ Afn: "AFN",
408
+ Mfn: "MFN"
381
409
  };
382
-
383
- // src/api-model/models/fulfillment-type.ts
384
- var FulfillmentType = {
385
- Afn: "AFN",
386
- Mfn: "MFN"
387
- };
388
-
389
- // src/api-model/models/http-method.ts
390
- var HttpMethod = {
391
- Get: "GET",
392
- Put: "PUT",
393
- Patch: "PATCH",
394
- Delete: "DELETE",
395
- Post: "POST"
410
+ //#endregion
411
+ //#region src/api-model/models/http-method.ts
412
+ /**
413
+ * Selling Partner API for Pricing
414
+ * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
415
+ *
416
+ * The version of the OpenAPI document: 2022-05-01
417
+ *
418
+ *
419
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
420
+ * https://openapi-generator.tech
421
+ * Do not edit the class manually.
422
+ */
423
+ /**
424
+ * The HTTP method associated with an individual request within a batch.
425
+ */
426
+ const HttpMethod = {
427
+ Get: "GET",
428
+ Put: "PUT",
429
+ Patch: "PATCH",
430
+ Delete: "DELETE",
431
+ Post: "POST"
396
432
  };
397
-
398
- // src/api-model/models/lowest-priced-offers-input.ts
399
- var LowestPricedOffersInputOfferTypeEnum = {
400
- Consumer: "Consumer"
433
+ //#endregion
434
+ //#region src/api-model/models/lowest-priced-offers-input.ts
435
+ const LowestPricedOffersInputOfferTypeEnum = { Consumer: "Consumer" };
436
+ //#endregion
437
+ //#region src/api-model/models/offer.ts
438
+ const OfferSubConditionEnum = {
439
+ New: "New",
440
+ Mint: "Mint",
441
+ VeryGood: "VeryGood",
442
+ Good: "Good",
443
+ Acceptable: "Acceptable",
444
+ Poor: "Poor",
445
+ Club: "Club",
446
+ Oem: "OEM",
447
+ Warranty: "Warranty",
448
+ RefurbishedWarranty: "RefurbishedWarranty",
449
+ Refurbished: "Refurbished",
450
+ OpenBox: "OpenBox",
451
+ Other: "Other"
401
452
  };
402
-
403
- // src/api-model/models/offer.ts
404
- var OfferSubConditionEnum = {
405
- New: "New",
406
- Mint: "Mint",
407
- VeryGood: "VeryGood",
408
- Good: "Good",
409
- Acceptable: "Acceptable",
410
- Poor: "Poor",
411
- Club: "Club",
412
- Oem: "OEM",
413
- Warranty: "Warranty",
414
- RefurbishedWarranty: "RefurbishedWarranty",
415
- Refurbished: "Refurbished",
416
- OpenBox: "OpenBox",
417
- Other: "Other"
453
+ //#endregion
454
+ //#region src/api-model/models/prime-details.ts
455
+ const PrimeDetailsEligibilityEnum = {
456
+ National: "NATIONAL",
457
+ Regional: "REGIONAL",
458
+ None: "NONE"
418
459
  };
419
-
420
- // src/api-model/models/prime-details.ts
421
- var PrimeDetailsEligibilityEnum = {
422
- National: "NATIONAL",
423
- Regional: "REGIONAL",
424
- None: "NONE"
425
- };
426
-
427
- // src/api-model/models/shipping-option.ts
428
- var ShippingOptionShippingOptionTypeEnum = {
429
- Default: "DEFAULT"
430
- };
431
-
432
- // src/client.ts
433
- var clientRateLimits = [
434
- {
435
- method: "post",
436
- // eslint-disable-next-line prefer-regex-literals
437
- urlRegex: new RegExp("^/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice$"),
438
- rate: 0.033,
439
- burst: 1
440
- },
441
- {
442
- method: "post",
443
- // eslint-disable-next-line prefer-regex-literals
444
- urlRegex: new RegExp("^/batches/products/pricing/2022-05-01/items/competitiveSummary$"),
445
- rate: 0.033,
446
- burst: 1
447
- }
448
- ];
460
+ //#endregion
461
+ //#region src/api-model/models/shipping-option.ts
462
+ const ShippingOptionShippingOptionTypeEnum = { Default: "DEFAULT" };
463
+ //#endregion
464
+ //#region src/client.ts
465
+ const clientRateLimits = [{
466
+ method: "post",
467
+ urlRegex: /^\/batches\/products\/pricing\/2022\u{2D}05\u{2D}01\/offer\/featuredOfferExpectedPrice$/v,
468
+ rate: .033,
469
+ burst: 1
470
+ }, {
471
+ method: "post",
472
+ urlRegex: /^\/batches\/products\/pricing\/2022\u{2D}05\u{2D}01\/items\/competitiveSummary$/v,
473
+ rate: .033,
474
+ burst: 1
475
+ }];
449
476
  var ProductPricingApiClient = class extends ProductPricingApi {
450
- constructor(configuration) {
451
- const { axios, endpoint } = (0, import_common2.createAxiosInstance)(configuration, clientRateLimits);
452
- super(new Configuration(), endpoint, axios);
453
- }
477
+ constructor(configuration) {
478
+ const { axios, endpoint } = (0, _sp_api_sdk_common.createAxiosInstance)(configuration, clientRateLimits);
479
+ super(new Configuration(), endpoint, axios);
480
+ }
454
481
  };
455
- // Annotate the CommonJS export names for ESM import in node:
456
- 0 && (module.exports = {
457
- CompetitiveSummaryIncludedData,
458
- Condition,
459
- FeaturedBuyingOptionBuyingOptionTypeEnum,
460
- FeaturedOfferSegmentCustomerMembershipEnum,
461
- FulfillmentType,
462
- HttpMethod,
463
- LowestPricedOffersInputOfferTypeEnum,
464
- OfferSubConditionEnum,
465
- PrimeDetailsEligibilityEnum,
466
- ProductPricingApi,
467
- ProductPricingApiAxiosParamCreator,
468
- ProductPricingApiClient,
469
- ProductPricingApiFactory,
470
- ProductPricingApiFp,
471
- ShippingOptionShippingOptionTypeEnum,
472
- clientRateLimits
473
- });
482
+ //#endregion
483
+ exports.CompetitiveSummaryIncludedData = CompetitiveSummaryIncludedData;
484
+ exports.Condition = Condition;
485
+ exports.FeaturedBuyingOptionBuyingOptionTypeEnum = FeaturedBuyingOptionBuyingOptionTypeEnum;
486
+ exports.FeaturedOfferSegmentCustomerMembershipEnum = FeaturedOfferSegmentCustomerMembershipEnum;
487
+ exports.FulfillmentType = FulfillmentType;
488
+ exports.HttpMethod = HttpMethod;
489
+ exports.LowestPricedOffersInputOfferTypeEnum = LowestPricedOffersInputOfferTypeEnum;
490
+ exports.OfferSubConditionEnum = OfferSubConditionEnum;
491
+ exports.PrimeDetailsEligibilityEnum = PrimeDetailsEligibilityEnum;
492
+ exports.ProductPricingApi = ProductPricingApi;
493
+ exports.ProductPricingApiAxiosParamCreator = ProductPricingApiAxiosParamCreator;
494
+ exports.ProductPricingApiClient = ProductPricingApiClient;
495
+ exports.ProductPricingApiFactory = ProductPricingApiFactory;
496
+ exports.ProductPricingApiFp = ProductPricingApiFp;
497
+ exports.ShippingOptionShippingOptionTypeEnum = ShippingOptionShippingOptionTypeEnum;
498
+ exports.clientRateLimits = clientRateLimits;
499
+
474
500
  //# sourceMappingURL=index.cjs.map