@sp-api-sdk/product-pricing-api-2022-05-01 3.2.15 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.cjs +474 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1325 -0
- package/dist/index.d.ts +1325 -0
- package/dist/index.js +422 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/product-pricing-api.js +0 -177
- package/dist/cjs/api-model/api.js +0 -30
- package/dist/cjs/api-model/base.js +0 -52
- package/dist/cjs/api-model/common.js +0 -123
- package/dist/cjs/api-model/configuration.js +0 -98
- package/dist/cjs/api-model/index.js +0 -32
- package/dist/cjs/api-model/models/batch-request.js +0 -15
- package/dist/cjs/api-model/models/batch-response.js +0 -15
- package/dist/cjs/api-model/models/competitive-summary-batch-request.js +0 -15
- package/dist/cjs/api-model/models/competitive-summary-batch-response.js +0 -15
- package/dist/cjs/api-model/models/competitive-summary-included-data.js +0 -24
- package/dist/cjs/api-model/models/competitive-summary-request.js +0 -15
- package/dist/cjs/api-model/models/competitive-summary-response-body.js +0 -15
- package/dist/cjs/api-model/models/competitive-summary-response.js +0 -15
- package/dist/cjs/api-model/models/condition.js +0 -26
- package/dist/cjs/api-model/models/errors.js +0 -15
- package/dist/cjs/api-model/models/featured-buying-option.js +0 -19
- package/dist/cjs/api-model/models/featured-offer-expected-price-request-params.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price-request.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price-response-all-of.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price-response-body.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price-response.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price-result.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-expected-price.js +0 -15
- package/dist/cjs/api-model/models/featured-offer-segment.js +0 -21
- package/dist/cjs/api-model/models/featured-offer.js +0 -15
- package/dist/cjs/api-model/models/fulfillment-type.js +0 -23
- package/dist/cjs/api-model/models/get-featured-offer-expected-price-batch-request.js +0 -15
- package/dist/cjs/api-model/models/get-featured-offer-expected-price-batch-response.js +0 -15
- package/dist/cjs/api-model/models/http-method.js +0 -26
- package/dist/cjs/api-model/models/http-status-line.js +0 -15
- package/dist/cjs/api-model/models/index.js +0 -58
- package/dist/cjs/api-model/models/lowest-priced-offer.js +0 -15
- package/dist/cjs/api-model/models/lowest-priced-offers-input.js +0 -19
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/money-type.js +0 -15
- package/dist/cjs/api-model/models/offer-identifier.js +0 -15
- package/dist/cjs/api-model/models/offer.js +0 -31
- package/dist/cjs/api-model/models/points.js +0 -15
- package/dist/cjs/api-model/models/postal-code.js +0 -15
- package/dist/cjs/api-model/models/price.js +0 -15
- package/dist/cjs/api-model/models/prime-details.js +0 -21
- package/dist/cjs/api-model/models/reference-price.js +0 -15
- package/dist/cjs/api-model/models/sample-location.js +0 -15
- package/dist/cjs/api-model/models/segment-details.js +0 -15
- package/dist/cjs/api-model/models/segment.js +0 -15
- package/dist/cjs/api-model/models/segmented-featured-offer-all-of.js +0 -15
- package/dist/cjs/api-model/models/segmented-featured-offer.js +0 -15
- package/dist/cjs/api-model/models/shipping-option.js +0 -19
- package/dist/cjs/client.js +0 -28
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/product-pricing-api.js +0 -167
- package/dist/es/api-model/api.js +0 -14
- package/dist/es/api-model/base.js +0 -44
- package/dist/es/api-model/common.js +0 -110
- package/dist/es/api-model/configuration.js +0 -94
- package/dist/es/api-model/index.js +0 -16
- package/dist/es/api-model/models/batch-request.js +0 -14
- package/dist/es/api-model/models/batch-response.js +0 -14
- package/dist/es/api-model/models/competitive-summary-batch-request.js +0 -14
- package/dist/es/api-model/models/competitive-summary-batch-response.js +0 -14
- package/dist/es/api-model/models/competitive-summary-included-data.js +0 -21
- package/dist/es/api-model/models/competitive-summary-request.js +0 -14
- package/dist/es/api-model/models/competitive-summary-response-body.js +0 -14
- package/dist/es/api-model/models/competitive-summary-response.js +0 -14
- package/dist/es/api-model/models/condition.js +0 -23
- package/dist/es/api-model/models/errors.js +0 -14
- package/dist/es/api-model/models/featured-buying-option.js +0 -16
- package/dist/es/api-model/models/featured-offer-expected-price-request-params.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price-request.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price-response-all-of.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price-response-body.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price-response.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price-result.js +0 -14
- package/dist/es/api-model/models/featured-offer-expected-price.js +0 -14
- package/dist/es/api-model/models/featured-offer-segment.js +0 -18
- package/dist/es/api-model/models/featured-offer.js +0 -14
- package/dist/es/api-model/models/fulfillment-type.js +0 -20
- package/dist/es/api-model/models/get-featured-offer-expected-price-batch-request.js +0 -14
- package/dist/es/api-model/models/get-featured-offer-expected-price-batch-response.js +0 -14
- package/dist/es/api-model/models/http-method.js +0 -23
- package/dist/es/api-model/models/http-status-line.js +0 -14
- package/dist/es/api-model/models/index.js +0 -42
- package/dist/es/api-model/models/lowest-priced-offer.js +0 -14
- package/dist/es/api-model/models/lowest-priced-offers-input.js +0 -16
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/money-type.js +0 -14
- package/dist/es/api-model/models/offer-identifier.js +0 -14
- package/dist/es/api-model/models/offer.js +0 -28
- package/dist/es/api-model/models/points.js +0 -14
- package/dist/es/api-model/models/postal-code.js +0 -14
- package/dist/es/api-model/models/price.js +0 -14
- package/dist/es/api-model/models/prime-details.js +0 -18
- package/dist/es/api-model/models/reference-price.js +0 -14
- package/dist/es/api-model/models/sample-location.js +0 -14
- package/dist/es/api-model/models/segment-details.js +0 -14
- package/dist/es/api-model/models/segment.js +0 -14
- package/dist/es/api-model/models/segmented-featured-offer-all-of.js +0 -14
- package/dist/es/api-model/models/segmented-featured-offer.js +0 -14
- package/dist/es/api-model/models/shipping-option.js +0 -16
- package/dist/es/client.js +0 -24
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api/product-pricing-api.d.ts +0 -113
- package/dist/types/api-model/api.d.ts +0 -12
- package/dist/types/api-model/base.d.ts +0 -42
- package/dist/types/api-model/common.d.ts +0 -34
- package/dist/types/api-model/configuration.d.ts +0 -98
- package/dist/types/api-model/index.d.ts +0 -14
- package/dist/types/api-model/models/batch-request.d.ts +0 -34
- package/dist/types/api-model/models/batch-response.d.ts +0 -24
- package/dist/types/api-model/models/competitive-summary-batch-request.d.ts +0 -21
- package/dist/types/api-model/models/competitive-summary-batch-response.d.ts +0 -21
- package/dist/types/api-model/models/competitive-summary-included-data.d.ts +0 -20
- package/dist/types/api-model/models/competitive-summary-request.d.ts +0 -40
- package/dist/types/api-model/models/competitive-summary-response-body.d.ts +0 -43
- package/dist/types/api-model/models/competitive-summary-response.d.ts +0 -20
- package/dist/types/api-model/models/condition.d.ts +0 -22
- package/dist/types/api-model/models/errors.d.ts +0 -20
- package/dist/types/api-model/models/featured-buying-option.d.ts +0 -29
- package/dist/types/api-model/models/featured-offer-expected-price-request-params.d.ts +0 -26
- package/dist/types/api-model/models/featured-offer-expected-price-request.d.ts +0 -18
- package/dist/types/api-model/models/featured-offer-expected-price-response-all-of.d.ts +0 -17
- package/dist/types/api-model/models/featured-offer-expected-price-response-body.d.ts +0 -27
- package/dist/types/api-model/models/featured-offer-expected-price-response.d.ts +0 -18
- package/dist/types/api-model/models/featured-offer-expected-price-result.d.ts +0 -25
- package/dist/types/api-model/models/featured-offer-expected-price.d.ts +0 -20
- package/dist/types/api-model/models/featured-offer-segment.d.ts +0 -28
- package/dist/types/api-model/models/featured-offer.d.ts +0 -22
- package/dist/types/api-model/models/fulfillment-type.d.ts +0 -19
- package/dist/types/api-model/models/get-featured-offer-expected-price-batch-request.d.ts +0 -21
- package/dist/types/api-model/models/get-featured-offer-expected-price-batch-response.d.ts +0 -21
- package/dist/types/api-model/models/http-method.d.ts +0 -22
- package/dist/types/api-model/models/http-status-line.d.ts +0 -24
- package/dist/types/api-model/models/index.d.ts +0 -42
- package/dist/types/api-model/models/lowest-priced-offer.d.ts +0 -23
- package/dist/types/api-model/models/lowest-priced-offers-input.d.ts +0 -26
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/money-type.d.ts +0 -24
- package/dist/types/api-model/models/offer-identifier.d.ts +0 -34
- package/dist/types/api-model/models/offer.d.ts +0 -55
- package/dist/types/api-model/models/points.d.ts +0 -22
- package/dist/types/api-model/models/postal-code.d.ts +0 -24
- package/dist/types/api-model/models/price.d.ts +0 -21
- package/dist/types/api-model/models/prime-details.d.ts +0 -26
- package/dist/types/api-model/models/reference-price.d.ts +0 -22
- package/dist/types/api-model/models/sample-location.d.ts +0 -18
- package/dist/types/api-model/models/segment-details.d.ts +0 -22
- package/dist/types/api-model/models/segment.d.ts +0 -18
- package/dist/types/api-model/models/segmented-featured-offer-all-of.d.ts +0 -21
- package/dist/types/api-model/models/segmented-featured-offer.d.ts +0 -18
- package/dist/types/api-model/models/shipping-option.d.ts +0 -26
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
// src/client.ts
|
|
2
|
+
import { createAxiosInstance } from "@sp-api-sdk/common";
|
|
3
|
+
|
|
4
|
+
// src/api-model/api/product-pricing-api.ts
|
|
5
|
+
import globalAxios2 from "axios";
|
|
6
|
+
|
|
7
|
+
// src/api-model/base.ts
|
|
8
|
+
import globalAxios from "axios";
|
|
9
|
+
var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
10
|
+
var BaseAPI = class {
|
|
11
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
12
|
+
this.basePath = basePath;
|
|
13
|
+
this.axios = axios;
|
|
14
|
+
if (configuration) {
|
|
15
|
+
this.configuration = configuration;
|
|
16
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
basePath;
|
|
20
|
+
axios;
|
|
21
|
+
configuration;
|
|
22
|
+
};
|
|
23
|
+
var RequiredError = class extends Error {
|
|
24
|
+
constructor(field, msg) {
|
|
25
|
+
super(msg);
|
|
26
|
+
this.field = field;
|
|
27
|
+
this.name = "RequiredError";
|
|
28
|
+
}
|
|
29
|
+
field;
|
|
30
|
+
};
|
|
31
|
+
var operationServerMap = {};
|
|
32
|
+
|
|
33
|
+
// src/api-model/common.ts
|
|
34
|
+
var DUMMY_BASE_URL = "https://example.com";
|
|
35
|
+
var assertParamExists = function(functionName, paramName, paramValue) {
|
|
36
|
+
if (paramValue === null || paramValue === void 0) {
|
|
37
|
+
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
41
|
+
if (parameter == null) return;
|
|
42
|
+
if (typeof parameter === "object") {
|
|
43
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
44
|
+
parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
45
|
+
} else {
|
|
46
|
+
Object.keys(parameter).forEach(
|
|
47
|
+
(currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
} else {
|
|
51
|
+
if (urlSearchParams.has(key)) {
|
|
52
|
+
urlSearchParams.append(key, parameter);
|
|
53
|
+
} else {
|
|
54
|
+
urlSearchParams.set(key, parameter);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
var setSearchParams = function(url, ...objects) {
|
|
59
|
+
const searchParams = new URLSearchParams(url.search);
|
|
60
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
61
|
+
url.search = searchParams.toString();
|
|
62
|
+
};
|
|
63
|
+
var replaceWithSerializableTypeIfNeeded = function(key, value) {
|
|
64
|
+
if (value instanceof Set) {
|
|
65
|
+
return Array.from(value);
|
|
66
|
+
} else {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
71
|
+
const nonString = typeof value !== "string";
|
|
72
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
|
|
73
|
+
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
74
|
+
};
|
|
75
|
+
var toPathString = function(url) {
|
|
76
|
+
return url.pathname + url.search + url.hash;
|
|
77
|
+
};
|
|
78
|
+
var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
|
|
79
|
+
return (axios = globalAxios3, basePath = BASE_PATH2) => {
|
|
80
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
81
|
+
return axios.request(axiosRequestArgs);
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// src/api-model/api/product-pricing-api.ts
|
|
86
|
+
var ProductPricingApiAxiosParamCreator = function(configuration) {
|
|
87
|
+
return {
|
|
88
|
+
/**
|
|
89
|
+
* 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.
|
|
90
|
+
* @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
getCompetitiveSummary: async (requests, options = {}) => {
|
|
95
|
+
assertParamExists("getCompetitiveSummary", "requests", requests);
|
|
96
|
+
const localVarPath = `/batches/products/pricing/2022-05-01/items/competitiveSummary`;
|
|
97
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
+
let baseOptions;
|
|
99
|
+
if (configuration) {
|
|
100
|
+
baseOptions = configuration.baseOptions;
|
|
101
|
+
}
|
|
102
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
103
|
+
const localVarHeaderParameter = {};
|
|
104
|
+
const localVarQueryParameter = {};
|
|
105
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
106
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
107
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
108
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
109
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
110
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requests, localVarRequestOptions, configuration);
|
|
111
|
+
return {
|
|
112
|
+
url: toPathString(localVarUrlObj),
|
|
113
|
+
options: localVarRequestOptions
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* 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.
|
|
118
|
+
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
getFeaturedOfferExpectedPriceBatch: async (getFeaturedOfferExpectedPriceBatchRequestBody, options = {}) => {
|
|
123
|
+
assertParamExists("getFeaturedOfferExpectedPriceBatch", "getFeaturedOfferExpectedPriceBatchRequestBody", getFeaturedOfferExpectedPriceBatchRequestBody);
|
|
124
|
+
const localVarPath = `/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice`;
|
|
125
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
126
|
+
let baseOptions;
|
|
127
|
+
if (configuration) {
|
|
128
|
+
baseOptions = configuration.baseOptions;
|
|
129
|
+
}
|
|
130
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
131
|
+
const localVarHeaderParameter = {};
|
|
132
|
+
const localVarQueryParameter = {};
|
|
133
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
134
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
138
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getFeaturedOfferExpectedPriceBatchRequestBody, localVarRequestOptions, configuration);
|
|
139
|
+
return {
|
|
140
|
+
url: toPathString(localVarUrlObj),
|
|
141
|
+
options: localVarRequestOptions
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
var ProductPricingApiFp = function(configuration) {
|
|
147
|
+
const localVarAxiosParamCreator = ProductPricingApiAxiosParamCreator(configuration);
|
|
148
|
+
return {
|
|
149
|
+
/**
|
|
150
|
+
* 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.
|
|
151
|
+
* @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
async getCompetitiveSummary(requests, options) {
|
|
156
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompetitiveSummary(requests, options);
|
|
157
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
158
|
+
const localVarOperationServerBasePath = operationServerMap["ProductPricingApi.getCompetitiveSummary"]?.[localVarOperationServerIndex]?.url;
|
|
159
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
* 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.
|
|
163
|
+
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
*/
|
|
167
|
+
async getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options) {
|
|
168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options);
|
|
169
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
170
|
+
const localVarOperationServerBasePath = operationServerMap["ProductPricingApi.getFeaturedOfferExpectedPriceBatch"]?.[localVarOperationServerIndex]?.url;
|
|
171
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
var ProductPricingApiFactory = function(configuration, basePath, axios) {
|
|
176
|
+
const localVarFp = ProductPricingApiFp(configuration);
|
|
177
|
+
return {
|
|
178
|
+
/**
|
|
179
|
+
* 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.
|
|
180
|
+
* @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
getCompetitiveSummary(requestParameters, options) {
|
|
185
|
+
return localVarFp.getCompetitiveSummary(requestParameters.requests, options).then((request) => request(axios, basePath));
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
* 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.
|
|
189
|
+
* @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
|
|
190
|
+
* @param {*} [options] Override http request option.
|
|
191
|
+
* @throws {RequiredError}
|
|
192
|
+
*/
|
|
193
|
+
getFeaturedOfferExpectedPriceBatch(requestParameters, options) {
|
|
194
|
+
return localVarFp.getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(axios, basePath));
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
var ProductPricingApi = class extends BaseAPI {
|
|
199
|
+
/**
|
|
200
|
+
* 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.
|
|
201
|
+
* @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
getCompetitiveSummary(requestParameters, options) {
|
|
206
|
+
return ProductPricingApiFp(this.configuration).getCompetitiveSummary(requestParameters.requests, options).then((request) => request(this.axios, this.basePath));
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* 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.
|
|
210
|
+
* @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
getFeaturedOfferExpectedPriceBatch(requestParameters, options) {
|
|
215
|
+
return ProductPricingApiFp(this.configuration).getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
// src/api-model/configuration.ts
|
|
220
|
+
var Configuration = class {
|
|
221
|
+
/**
|
|
222
|
+
* parameter for apiKey security
|
|
223
|
+
* @param name security name
|
|
224
|
+
*/
|
|
225
|
+
apiKey;
|
|
226
|
+
/**
|
|
227
|
+
* parameter for basic security
|
|
228
|
+
*/
|
|
229
|
+
username;
|
|
230
|
+
/**
|
|
231
|
+
* parameter for basic security
|
|
232
|
+
*/
|
|
233
|
+
password;
|
|
234
|
+
/**
|
|
235
|
+
* parameter for oauth2 security
|
|
236
|
+
* @param name security name
|
|
237
|
+
* @param scopes oauth2 scope
|
|
238
|
+
*/
|
|
239
|
+
accessToken;
|
|
240
|
+
/**
|
|
241
|
+
* parameter for aws4 signature security
|
|
242
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
243
|
+
* @param {string} options.region - aws region
|
|
244
|
+
* @param {string} options.service - name of the service.
|
|
245
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
246
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
247
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
248
|
+
* @memberof Configuration
|
|
249
|
+
*/
|
|
250
|
+
awsv4;
|
|
251
|
+
/**
|
|
252
|
+
* override base path
|
|
253
|
+
*/
|
|
254
|
+
basePath;
|
|
255
|
+
/**
|
|
256
|
+
* override server index
|
|
257
|
+
*/
|
|
258
|
+
serverIndex;
|
|
259
|
+
/**
|
|
260
|
+
* base options for axios calls
|
|
261
|
+
*/
|
|
262
|
+
baseOptions;
|
|
263
|
+
/**
|
|
264
|
+
* The FormData constructor that will be used to create multipart form data
|
|
265
|
+
* requests. You can inject this here so that execution environments that
|
|
266
|
+
* do not support the FormData class can still run the generated client.
|
|
267
|
+
*
|
|
268
|
+
* @type {new () => FormData}
|
|
269
|
+
*/
|
|
270
|
+
formDataCtor;
|
|
271
|
+
constructor(param = {}) {
|
|
272
|
+
this.apiKey = param.apiKey;
|
|
273
|
+
this.username = param.username;
|
|
274
|
+
this.password = param.password;
|
|
275
|
+
this.accessToken = param.accessToken;
|
|
276
|
+
this.awsv4 = param.awsv4;
|
|
277
|
+
this.basePath = param.basePath;
|
|
278
|
+
this.serverIndex = param.serverIndex;
|
|
279
|
+
this.baseOptions = {
|
|
280
|
+
...param.baseOptions,
|
|
281
|
+
headers: {
|
|
282
|
+
...param.baseOptions?.headers
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
this.formDataCtor = param.formDataCtor;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Check if the given MIME is a JSON MIME.
|
|
289
|
+
* JSON MIME examples:
|
|
290
|
+
* application/json
|
|
291
|
+
* application/json; charset=UTF8
|
|
292
|
+
* APPLICATION/JSON
|
|
293
|
+
* application/vnd.company+json
|
|
294
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
295
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
296
|
+
*/
|
|
297
|
+
isJsonMime(mime) {
|
|
298
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
299
|
+
return mime !== null && jsonMime.test(mime);
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
// src/api-model/models/competitive-summary-included-data.ts
|
|
304
|
+
var CompetitiveSummaryIncludedData = {
|
|
305
|
+
FeaturedBuyingOptions: "featuredBuyingOptions",
|
|
306
|
+
ReferencePrices: "referencePrices",
|
|
307
|
+
LowestPricedOffers: "lowestPricedOffers",
|
|
308
|
+
SimilarItems: "similarItems"
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
// src/api-model/models/condition.ts
|
|
312
|
+
var Condition = {
|
|
313
|
+
New: "New",
|
|
314
|
+
Used: "Used",
|
|
315
|
+
Collectible: "Collectible",
|
|
316
|
+
Refurbished: "Refurbished",
|
|
317
|
+
Club: "Club"
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
// src/api-model/models/featured-buying-option.ts
|
|
321
|
+
var FeaturedBuyingOptionBuyingOptionTypeEnum = {
|
|
322
|
+
New: "New"
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
// src/api-model/models/featured-offer-segment.ts
|
|
326
|
+
var FeaturedOfferSegmentCustomerMembershipEnum = {
|
|
327
|
+
Prime: "PRIME",
|
|
328
|
+
NonPrime: "NON_PRIME",
|
|
329
|
+
Default: "DEFAULT"
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
// src/api-model/models/fulfillment-type.ts
|
|
333
|
+
var FulfillmentType = {
|
|
334
|
+
Afn: "AFN",
|
|
335
|
+
Mfn: "MFN"
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
// src/api-model/models/http-method.ts
|
|
339
|
+
var HttpMethod = {
|
|
340
|
+
Get: "GET",
|
|
341
|
+
Put: "PUT",
|
|
342
|
+
Patch: "PATCH",
|
|
343
|
+
Delete: "DELETE",
|
|
344
|
+
Post: "POST"
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
// src/api-model/models/lowest-priced-offers-input.ts
|
|
348
|
+
var LowestPricedOffersInputOfferTypeEnum = {
|
|
349
|
+
Consumer: "Consumer"
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
// src/api-model/models/offer.ts
|
|
353
|
+
var OfferSubConditionEnum = {
|
|
354
|
+
New: "New",
|
|
355
|
+
Mint: "Mint",
|
|
356
|
+
VeryGood: "VeryGood",
|
|
357
|
+
Good: "Good",
|
|
358
|
+
Acceptable: "Acceptable",
|
|
359
|
+
Poor: "Poor",
|
|
360
|
+
Club: "Club",
|
|
361
|
+
Oem: "OEM",
|
|
362
|
+
Warranty: "Warranty",
|
|
363
|
+
RefurbishedWarranty: "RefurbishedWarranty",
|
|
364
|
+
Refurbished: "Refurbished",
|
|
365
|
+
OpenBox: "OpenBox",
|
|
366
|
+
Other: "Other"
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
// src/api-model/models/prime-details.ts
|
|
370
|
+
var PrimeDetailsEligibilityEnum = {
|
|
371
|
+
National: "NATIONAL",
|
|
372
|
+
Regional: "REGIONAL",
|
|
373
|
+
None: "NONE"
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
// src/api-model/models/shipping-option.ts
|
|
377
|
+
var ShippingOptionShippingOptionTypeEnum = {
|
|
378
|
+
Default: "DEFAULT"
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
// src/client.ts
|
|
382
|
+
var clientRateLimits = [
|
|
383
|
+
{
|
|
384
|
+
method: "post",
|
|
385
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
386
|
+
urlRegex: new RegExp("^/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice$"),
|
|
387
|
+
rate: 0.033,
|
|
388
|
+
burst: 1
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
method: "post",
|
|
392
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
393
|
+
urlRegex: new RegExp("^/batches/products/pricing/2022-05-01/items/competitiveSummary$"),
|
|
394
|
+
rate: 0.033,
|
|
395
|
+
burst: 1
|
|
396
|
+
}
|
|
397
|
+
];
|
|
398
|
+
var ProductPricingApiClient = class extends ProductPricingApi {
|
|
399
|
+
constructor(configuration) {
|
|
400
|
+
const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
|
|
401
|
+
super(new Configuration(), endpoint, axios);
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
export {
|
|
405
|
+
CompetitiveSummaryIncludedData,
|
|
406
|
+
Condition,
|
|
407
|
+
FeaturedBuyingOptionBuyingOptionTypeEnum,
|
|
408
|
+
FeaturedOfferSegmentCustomerMembershipEnum,
|
|
409
|
+
FulfillmentType,
|
|
410
|
+
HttpMethod,
|
|
411
|
+
LowestPricedOffersInputOfferTypeEnum,
|
|
412
|
+
OfferSubConditionEnum,
|
|
413
|
+
PrimeDetailsEligibilityEnum,
|
|
414
|
+
ProductPricingApi,
|
|
415
|
+
ProductPricingApiAxiosParamCreator,
|
|
416
|
+
ProductPricingApiClient,
|
|
417
|
+
ProductPricingApiFactory,
|
|
418
|
+
ProductPricingApiFp,
|
|
419
|
+
ShippingOptionShippingOptionTypeEnum,
|
|
420
|
+
clientRateLimits
|
|
421
|
+
};
|
|
422
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/client.ts","../src/api-model/api/product-pricing-api.ts","../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/configuration.ts","../src/api-model/models/competitive-summary-included-data.ts","../src/api-model/models/condition.ts","../src/api-model/models/featured-buying-option.ts","../src/api-model/models/featured-offer-segment.ts","../src/api-model/models/fulfillment-type.ts","../src/api-model/models/http-method.ts","../src/api-model/models/lowest-priced-offers-input.ts","../src/api-model/models/offer.ts","../src/api-model/models/prime-details.ts","../src/api-model/models/shipping-option.ts"],"sourcesContent":["import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {Configuration, ProductPricingApi} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'post',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice$'),\n rate: 0.033,\n burst: 1,\n },\n {\n method: 'post',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/batches/products/pricing/2022-05-01/items/competitiveSummary$'),\n rate: 0.033,\n burst: 1,\n },\n]\n\nexport class ProductPricingApiClient extends ProductPricingApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { CompetitiveSummaryBatchRequest } from '../models/index.js';\n// @ts-ignore\nimport type { CompetitiveSummaryBatchResponse } from '../models/index.js';\n// @ts-ignore\nimport type { Errors } from '../models/index.js';\n// @ts-ignore\nimport type { GetFeaturedOfferExpectedPriceBatchRequest } from '../models/index.js';\n// @ts-ignore\nimport type { GetFeaturedOfferExpectedPriceBatchResponse } from '../models/index.js';\n/**\n * ProductPricingApi - axios parameter creator\n */\nexport const ProductPricingApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * 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.\n * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getCompetitiveSummary: async (requests: CompetitiveSummaryBatchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'requests' is not null or undefined\n assertParamExists('getCompetitiveSummary', 'requests', requests)\n const localVarPath = `/batches/products/pricing/2022-05-01/items/competitiveSummary`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(requests, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * 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.\n * @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getFeaturedOfferExpectedPriceBatch: async (getFeaturedOfferExpectedPriceBatchRequestBody: GetFeaturedOfferExpectedPriceBatchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'getFeaturedOfferExpectedPriceBatchRequestBody' is not null or undefined\n assertParamExists('getFeaturedOfferExpectedPriceBatch', 'getFeaturedOfferExpectedPriceBatchRequestBody', getFeaturedOfferExpectedPriceBatchRequestBody)\n const localVarPath = `/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(getFeaturedOfferExpectedPriceBatchRequestBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ProductPricingApi - functional programming interface\n */\nexport const ProductPricingApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ProductPricingApiAxiosParamCreator(configuration)\n return {\n /**\n * 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.\n * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getCompetitiveSummary(requests: CompetitiveSummaryBatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompetitiveSummaryBatchResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getCompetitiveSummary(requests, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductPricingApi.getCompetitiveSummary']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * 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.\n * @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody: GetFeaturedOfferExpectedPriceBatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFeaturedOfferExpectedPriceBatchResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductPricingApi.getFeaturedOfferExpectedPriceBatch']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ProductPricingApi - factory interface\n */\nexport const ProductPricingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ProductPricingApiFp(configuration)\n return {\n /**\n * 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.\n * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompetitiveSummaryBatchResponse> {\n return localVarFp.getCompetitiveSummary(requestParameters.requests, options).then((request) => request(axios, basePath));\n },\n /**\n * 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.\n * @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFeaturedOfferExpectedPriceBatchResponse> {\n return localVarFp.getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for getCompetitiveSummary operation in ProductPricingApi.\n */\nexport interface ProductPricingApiGetCompetitiveSummaryRequest {\n /**\n * The batch of `getCompetitiveSummary` requests.\n */\n readonly requests: CompetitiveSummaryBatchRequest\n}\n\n/**\n * Request parameters for getFeaturedOfferExpectedPriceBatch operation in ProductPricingApi.\n */\nexport interface ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest {\n /**\n * The batch of `getFeaturedOfferExpectedPrice` requests.\n */\n readonly getFeaturedOfferExpectedPriceBatchRequestBody: GetFeaturedOfferExpectedPriceBatchRequest\n}\n\n/**\n * ProductPricingApi - object-oriented interface\n */\nexport class ProductPricingApi extends BaseAPI {\n /**\n * 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.\n * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?: RawAxiosRequestConfig) {\n return ProductPricingApiFp(this.configuration).getCompetitiveSummary(requestParameters.requests, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * 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.\n * @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?: RawAxiosRequestConfig) {\n return ProductPricingApiFp(this.configuration).getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The supported data types in the `getCompetitiveSummary` API.\n */\n\nexport const CompetitiveSummaryIncludedData = {\n FeaturedBuyingOptions: 'featuredBuyingOptions',\n ReferencePrices: 'referencePrices',\n LowestPricedOffers: 'lowestPricedOffers',\n SimilarItems: 'similarItems',\n} as const;\n\nexport type CompetitiveSummaryIncludedData = typeof CompetitiveSummaryIncludedData[keyof typeof CompetitiveSummaryIncludedData];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The condition of the item.\n */\n\nexport const Condition = {\n New: 'New',\n Used: 'Used',\n Collectible: 'Collectible',\n Refurbished: 'Refurbished',\n Club: 'Club',\n} as const;\n\nexport type Condition = typeof Condition[keyof typeof Condition];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { SegmentedFeaturedOffer } from './segmented-featured-offer.js';\n\n/**\n * Describes a featured buying option, which includes a list of segmented featured offers for a particular item condition.\n */\nexport interface FeaturedBuyingOption {\n /**\n * The buying option type for the featured offer. `buyingOptionType` represents the buying options that a customer receives on the detail page, such as `B2B`, `Fresh`, and `Subscribe n Save`. `buyingOptionType` currently supports `NEW` as a value.\n */\n 'buyingOptionType': FeaturedBuyingOptionBuyingOptionTypeEnum;\n /**\n * A list of segmented featured offers for the current buying option type. A segment can be considered as a group of regional contexts that all have the same featured offer. A regional context is a combination of factors such as customer type, region, or postal code and buying option.\n */\n 'segmentedFeaturedOffers': Array<SegmentedFeaturedOffer>;\n}\n\nexport const FeaturedBuyingOptionBuyingOptionTypeEnum = {\n New: 'New',\n} as const;\n\nexport type FeaturedBuyingOptionBuyingOptionTypeEnum = typeof FeaturedBuyingOptionBuyingOptionTypeEnum[keyof typeof FeaturedBuyingOptionBuyingOptionTypeEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { SegmentDetails } from './segment-details.js';\n\n/**\n * Describes the segment in which the offer is featured.\n */\nexport interface FeaturedOfferSegment {\n /**\n * The customer membership type that makes up this segment\n */\n 'customerMembership': FeaturedOfferSegmentCustomerMembershipEnum;\n 'segmentDetails': SegmentDetails;\n}\n\nexport const FeaturedOfferSegmentCustomerMembershipEnum = {\n Prime: 'PRIME',\n NonPrime: 'NON_PRIME',\n Default: 'DEFAULT',\n} as const;\n\nexport type FeaturedOfferSegmentCustomerMembershipEnum = typeof FeaturedOfferSegmentCustomerMembershipEnum[keyof typeof FeaturedOfferSegmentCustomerMembershipEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Indicates whether the item is fulfilled by Amazon or by the seller (merchant).\n */\n\nexport const FulfillmentType = {\n Afn: 'AFN',\n Mfn: 'MFN',\n} as const;\n\nexport type FulfillmentType = typeof FulfillmentType[keyof typeof FulfillmentType];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The HTTP method associated with an individual request within a batch.\n */\n\nexport const HttpMethod = {\n Get: 'GET',\n Put: 'PUT',\n Patch: 'PATCH',\n Delete: 'DELETE',\n Post: 'POST',\n} as const;\n\nexport type HttpMethod = typeof HttpMethod[keyof typeof HttpMethod];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { Condition } from './condition.js';\n\n/**\n * The input required for building `LowestPricedOffers` data in the response.\n */\nexport interface LowestPricedOffersInput {\n 'itemCondition': Condition;\n /**\n * The input parameter specifies the type of offers requested for `LowestPricedOffers`. This applies to `Consumer` and `Business` offers. `Consumer` is the default `offerType`.\n */\n 'offerType': LowestPricedOffersInputOfferTypeEnum;\n}\n\nexport const LowestPricedOffersInputOfferTypeEnum = {\n Consumer: 'Consumer',\n} as const;\n\nexport type LowestPricedOffersInputOfferTypeEnum = typeof LowestPricedOffersInputOfferTypeEnum[keyof typeof LowestPricedOffersInputOfferTypeEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { Condition } from './condition.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { FulfillmentType } from './fulfillment-type.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { MoneyType } from './money-type.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { Points } from './points.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { PrimeDetails } from './prime-details.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { ShippingOption } from './shipping-option.js';\n\n/**\n * The offer data of a product.\n */\nexport interface Offer {\n /**\n * The seller identifier for the offer.\n */\n 'sellerId': string;\n 'condition': Condition;\n /**\n * The item subcondition of the offer.\n */\n 'subCondition'?: OfferSubConditionEnum;\n 'fulfillmentType': FulfillmentType;\n 'listingPrice': MoneyType;\n /**\n * A list of shipping options associated with this offer\n */\n 'shippingOptions'?: Array<ShippingOption>;\n 'points'?: Points;\n 'primeDetails'?: PrimeDetails;\n}\n\nexport const OfferSubConditionEnum = {\n New: 'New',\n Mint: 'Mint',\n VeryGood: 'VeryGood',\n Good: 'Good',\n Acceptable: 'Acceptable',\n Poor: 'Poor',\n Club: 'Club',\n Oem: 'OEM',\n Warranty: 'Warranty',\n RefurbishedWarranty: 'RefurbishedWarranty',\n Refurbished: 'Refurbished',\n OpenBox: 'OpenBox',\n Other: 'Other',\n} as const;\n\nexport type OfferSubConditionEnum = typeof OfferSubConditionEnum[keyof typeof OfferSubConditionEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Amazon Prime details.\n */\nexport interface PrimeDetails {\n /**\n * Indicates whether the offer is an Amazon Prime offer.\n */\n 'eligibility': PrimeDetailsEligibilityEnum;\n}\n\nexport const PrimeDetailsEligibilityEnum = {\n National: 'NATIONAL',\n Regional: 'REGIONAL',\n None: 'NONE',\n} as const;\n\nexport type PrimeDetailsEligibilityEnum = typeof PrimeDetailsEligibilityEnum[keyof typeof PrimeDetailsEligibilityEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Pricing\n * 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).\n *\n * The version of the OpenAPI document: 2022-05-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { MoneyType } from './money-type.js';\n\n/**\n * The shipping option available for the offer.\n */\nexport interface ShippingOption {\n /**\n * The type of shipping option.\n */\n 'shippingOptionType': ShippingOptionShippingOptionTypeEnum;\n 'price': MoneyType;\n}\n\nexport const ShippingOptionShippingOptionTypeEnum = {\n Default: 'DEFAULT',\n} as const;\n\nexport type ShippingOptionShippingOptionTypeEnum = typeof ShippingOptionShippingOptionTypeEnum[keyof typeof ShippingOptionShippingOptionTypeEnum];\n\n\n"],"mappings":";AAAA,SAAkC,2BAA0C;;;ACiB5E,OAAOA,kBAAiB;;;ACExB,OAAO,iBAAiB;AAEjB,IAAM,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAc9E,IAAM,UAAN,MAAc;AAAA,EAGjB,YAAY,eAAyC,WAAmB,WAAqB,QAAuB,aAAa;AAA5E;AAAwC;AACzF,QAAI,eAAe;AACf,WAAK,gBAAgB;AACrB,WAAK,WAAW,cAAc,YAAY;AAAA,IAC9C;AAAA,EACJ;AAAA,EALqD;AAAA,EAAwC;AAAA,EAFnF;AAQd;AAEO,IAAM,gBAAN,cAA4B,MAAM;AAAA,EACrC,YAAmB,OAAe,KAAc;AAC5C,UAAM,GAAG;AADM;AAEf,SAAK,OAAO;AAAA,EAChB;AAAA,EAHmB;AAIvB;AASO,IAAM,qBAAgC,CAC7C;;;AC1CO,IAAM,iBAAiB;AAMvB,IAAM,oBAAoB,SAAU,cAAsB,WAAmB,YAAqB;AACrG,MAAI,eAAe,QAAQ,eAAe,QAAW;AACjD,UAAM,IAAI,cAAc,WAAW,sBAAs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ACP,QAAQ;AAAA,EACR,MAAM;AACV;;;ACIO,IAAM,uCAAuC;AAAA,EAChD,UAAU;AACd;;;ACyBO,IAAM,wBAAwB;AAAA,EACjC,KAAK;AAAA,EACL,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,KAAK;AAAA,EACL,UAAU;AAAA,EACV,qBAAqB;AAAA,EACrB,aAAa;AAAA,EACb,SAAS;AAAA,EACT,OAAO;AACX;;;AC7CO,IAAM,8BAA8B;AAAA,EACvC,UAAU;AAAA,EACV,UAAU;AAAA,EACV,MAAM;AACV;;;ACAO,IAAM,uCAAuC;AAAA,EAChD,SAAS;AACb;;;Ad5BO,IAAM,mBAAgC;AAAA,EAC3C;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,yEAAyE;AAAA,IAC9F,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,iEAAiE;AAAA,IACtF,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AACF;AAEO,IAAM,0BAAN,cAAsC,kBAAkB;AAAA,EAC7D,YAAY,eAAoC;AAC9C,UAAM,EAAC,OAAO,SAAQ,IAAI,oBAAoB,eAAe,gBAAgB;AAE7E,UAAM,IAAI,cAAc,GAAG,UAAU,KAAK;AAAA,EAC5C;AACF;","names":["globalAxios","globalAxios","BASE_PATH","globalAxios"]}
|
package/package.json
CHANGED
|
@@ -2,24 +2,35 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/product-pricing-api-2022-05-01",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "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.",
|
|
5
|
-
"version": "
|
|
6
|
-
"main": "dist/cjs/index.js",
|
|
7
|
-
"module": "dist/es/index.js",
|
|
8
|
-
"types": "dist/types/index.d.ts",
|
|
5
|
+
"version": "4.0.0",
|
|
9
6
|
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"source": "./src/index.ts",
|
|
10
|
+
"main": "./dist/index.cjs",
|
|
11
|
+
"module": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"require": {
|
|
20
|
+
"types": "./dist/index.d.cts",
|
|
21
|
+
"default": "./dist/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
10
25
|
"publishConfig": {
|
|
11
26
|
"access": "public"
|
|
12
27
|
},
|
|
13
|
-
"directories": {
|
|
14
|
-
"lib": "dist"
|
|
15
|
-
},
|
|
16
28
|
"files": [
|
|
17
|
-
"dist
|
|
18
|
-
"dist/**/*.d.ts"
|
|
29
|
+
"dist"
|
|
19
30
|
],
|
|
20
31
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "
|
|
22
|
-
"axios": "^1.
|
|
32
|
+
"@sp-api-sdk/common": "3.0.0",
|
|
33
|
+
"axios": "^1.16.1"
|
|
23
34
|
},
|
|
24
35
|
"repository": {
|
|
25
36
|
"type": "git",
|
|
@@ -40,5 +51,5 @@
|
|
|
40
51
|
"sp sdk",
|
|
41
52
|
"product pricing api"
|
|
42
53
|
],
|
|
43
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "fc6f28dc89089e9987831b8a1a008f1871e55289"
|
|
44
55
|
}
|