@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/README.md +3 -4
- package/dist/index.cjs +463 -437
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +561 -922
- package/dist/index.d.ts +561 -922
- package/dist/index.js +430 -391
- package/dist/index.js.map +1 -1
- package/package.json +14 -6
package/dist/index.cjs
CHANGED
|
@@ -1,474 +1,500 @@
|
|
|
1
|
-
"
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
)
|
|
28
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
43
|
+
field;
|
|
44
|
+
constructor(field, msg) {
|
|
45
|
+
super(msg);
|
|
46
|
+
this.field = field;
|
|
47
|
+
this.name = "RequiredError";
|
|
48
|
+
}
|
|
81
49
|
};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
127
|
-
|
|
86
|
+
const toPathString = function(url) {
|
|
87
|
+
return url.pathname + url.search + url.hash;
|
|
128
88
|
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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 `getCompetitiveSummary` 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 `getFeaturedOfferExpectedPrice` 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
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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 `getCompetitiveSummary` 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 `getFeaturedOfferExpectedPrice` 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
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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
|
-
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region src/api-model/configuration.ts
|
|
271
256
|
var Configuration = class {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
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
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
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
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
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
|
-
|
|
372
|
-
|
|
373
|
-
|
|
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
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
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
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
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
|
-
|
|
399
|
-
|
|
400
|
-
|
|
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
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
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
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
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
|
-
|
|
451
|
-
|
|
452
|
-
|
|
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
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
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
|