@sp-api-sdk/product-pricing-api-2022-05-01 3.3.0 → 4.1.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.
Files changed (167) hide show
  1. package/README.md +7 -8
  2. package/dist/index.cjs +500 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +964 -0
  5. package/dist/index.d.ts +964 -0
  6. package/dist/index.js +461 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +26 -12
  9. package/dist/cjs/api-model/api/product-pricing-api.js +0 -177
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/batch-request.js +0 -15
  16. package/dist/cjs/api-model/models/batch-response.js +0 -15
  17. package/dist/cjs/api-model/models/competitive-summary-batch-request.js +0 -15
  18. package/dist/cjs/api-model/models/competitive-summary-batch-response.js +0 -15
  19. package/dist/cjs/api-model/models/competitive-summary-included-data.js +0 -25
  20. package/dist/cjs/api-model/models/competitive-summary-request.js +0 -15
  21. package/dist/cjs/api-model/models/competitive-summary-response-body.js +0 -15
  22. package/dist/cjs/api-model/models/competitive-summary-response.js +0 -15
  23. package/dist/cjs/api-model/models/condition.js +0 -26
  24. package/dist/cjs/api-model/models/errors.js +0 -15
  25. package/dist/cjs/api-model/models/featured-buying-option.js +0 -19
  26. package/dist/cjs/api-model/models/featured-offer-expected-price-request-params.js +0 -15
  27. package/dist/cjs/api-model/models/featured-offer-expected-price-request.js +0 -15
  28. package/dist/cjs/api-model/models/featured-offer-expected-price-response-all-of.js +0 -15
  29. package/dist/cjs/api-model/models/featured-offer-expected-price-response-body.js +0 -15
  30. package/dist/cjs/api-model/models/featured-offer-expected-price-response.js +0 -15
  31. package/dist/cjs/api-model/models/featured-offer-expected-price-result.js +0 -15
  32. package/dist/cjs/api-model/models/featured-offer-expected-price.js +0 -15
  33. package/dist/cjs/api-model/models/featured-offer-segment.js +0 -21
  34. package/dist/cjs/api-model/models/featured-offer.js +0 -15
  35. package/dist/cjs/api-model/models/fulfillment-type.js +0 -23
  36. package/dist/cjs/api-model/models/get-featured-offer-expected-price-batch-request.js +0 -15
  37. package/dist/cjs/api-model/models/get-featured-offer-expected-price-batch-response.js +0 -15
  38. package/dist/cjs/api-model/models/http-method.js +0 -26
  39. package/dist/cjs/api-model/models/http-status-line.js +0 -15
  40. package/dist/cjs/api-model/models/index.js +0 -60
  41. package/dist/cjs/api-model/models/item.js +0 -15
  42. package/dist/cjs/api-model/models/lowest-priced-offer.js +0 -15
  43. package/dist/cjs/api-model/models/lowest-priced-offers-input.js +0 -19
  44. package/dist/cjs/api-model/models/model-error.js +0 -15
  45. package/dist/cjs/api-model/models/money-type.js +0 -15
  46. package/dist/cjs/api-model/models/offer-identifier.js +0 -15
  47. package/dist/cjs/api-model/models/offer.js +0 -31
  48. package/dist/cjs/api-model/models/points.js +0 -15
  49. package/dist/cjs/api-model/models/postal-code.js +0 -15
  50. package/dist/cjs/api-model/models/price.js +0 -15
  51. package/dist/cjs/api-model/models/prime-details.js +0 -21
  52. package/dist/cjs/api-model/models/reference-price.js +0 -15
  53. package/dist/cjs/api-model/models/sample-location.js +0 -15
  54. package/dist/cjs/api-model/models/segment-details.js +0 -15
  55. package/dist/cjs/api-model/models/segment.js +0 -15
  56. package/dist/cjs/api-model/models/segmented-featured-offer-all-of.js +0 -15
  57. package/dist/cjs/api-model/models/segmented-featured-offer.js +0 -15
  58. package/dist/cjs/api-model/models/shipping-option.js +0 -19
  59. package/dist/cjs/api-model/models/similar-items.js +0 -15
  60. package/dist/cjs/client.js +0 -28
  61. package/dist/cjs/index.js +0 -19
  62. package/dist/es/api-model/api/product-pricing-api.js +0 -167
  63. package/dist/es/api-model/api.js +0 -14
  64. package/dist/es/api-model/base.js +0 -44
  65. package/dist/es/api-model/common.js +0 -110
  66. package/dist/es/api-model/configuration.js +0 -94
  67. package/dist/es/api-model/index.js +0 -16
  68. package/dist/es/api-model/models/batch-request.js +0 -14
  69. package/dist/es/api-model/models/batch-response.js +0 -14
  70. package/dist/es/api-model/models/competitive-summary-batch-request.js +0 -14
  71. package/dist/es/api-model/models/competitive-summary-batch-response.js +0 -14
  72. package/dist/es/api-model/models/competitive-summary-included-data.js +0 -22
  73. package/dist/es/api-model/models/competitive-summary-request.js +0 -14
  74. package/dist/es/api-model/models/competitive-summary-response-body.js +0 -14
  75. package/dist/es/api-model/models/competitive-summary-response.js +0 -14
  76. package/dist/es/api-model/models/condition.js +0 -23
  77. package/dist/es/api-model/models/errors.js +0 -14
  78. package/dist/es/api-model/models/featured-buying-option.js +0 -16
  79. package/dist/es/api-model/models/featured-offer-expected-price-request-params.js +0 -14
  80. package/dist/es/api-model/models/featured-offer-expected-price-request.js +0 -14
  81. package/dist/es/api-model/models/featured-offer-expected-price-response-all-of.js +0 -14
  82. package/dist/es/api-model/models/featured-offer-expected-price-response-body.js +0 -14
  83. package/dist/es/api-model/models/featured-offer-expected-price-response.js +0 -14
  84. package/dist/es/api-model/models/featured-offer-expected-price-result.js +0 -14
  85. package/dist/es/api-model/models/featured-offer-expected-price.js +0 -14
  86. package/dist/es/api-model/models/featured-offer-segment.js +0 -18
  87. package/dist/es/api-model/models/featured-offer.js +0 -14
  88. package/dist/es/api-model/models/fulfillment-type.js +0 -20
  89. package/dist/es/api-model/models/get-featured-offer-expected-price-batch-request.js +0 -14
  90. package/dist/es/api-model/models/get-featured-offer-expected-price-batch-response.js +0 -14
  91. package/dist/es/api-model/models/http-method.js +0 -23
  92. package/dist/es/api-model/models/http-status-line.js +0 -14
  93. package/dist/es/api-model/models/index.js +0 -44
  94. package/dist/es/api-model/models/item.js +0 -14
  95. package/dist/es/api-model/models/lowest-priced-offer.js +0 -14
  96. package/dist/es/api-model/models/lowest-priced-offers-input.js +0 -16
  97. package/dist/es/api-model/models/model-error.js +0 -14
  98. package/dist/es/api-model/models/money-type.js +0 -14
  99. package/dist/es/api-model/models/offer-identifier.js +0 -14
  100. package/dist/es/api-model/models/offer.js +0 -28
  101. package/dist/es/api-model/models/points.js +0 -14
  102. package/dist/es/api-model/models/postal-code.js +0 -14
  103. package/dist/es/api-model/models/price.js +0 -14
  104. package/dist/es/api-model/models/prime-details.js +0 -18
  105. package/dist/es/api-model/models/reference-price.js +0 -14
  106. package/dist/es/api-model/models/sample-location.js +0 -14
  107. package/dist/es/api-model/models/segment-details.js +0 -14
  108. package/dist/es/api-model/models/segment.js +0 -14
  109. package/dist/es/api-model/models/segmented-featured-offer-all-of.js +0 -14
  110. package/dist/es/api-model/models/segmented-featured-offer.js +0 -14
  111. package/dist/es/api-model/models/shipping-option.js +0 -16
  112. package/dist/es/api-model/models/similar-items.js +0 -14
  113. package/dist/es/client.js +0 -24
  114. package/dist/es/index.js +0 -3
  115. package/dist/types/api-model/api/product-pricing-api.d.ts +0 -113
  116. package/dist/types/api-model/api.d.ts +0 -12
  117. package/dist/types/api-model/base.d.ts +0 -42
  118. package/dist/types/api-model/common.d.ts +0 -34
  119. package/dist/types/api-model/configuration.d.ts +0 -98
  120. package/dist/types/api-model/index.d.ts +0 -14
  121. package/dist/types/api-model/models/batch-request.d.ts +0 -34
  122. package/dist/types/api-model/models/batch-response.d.ts +0 -24
  123. package/dist/types/api-model/models/competitive-summary-batch-request.d.ts +0 -21
  124. package/dist/types/api-model/models/competitive-summary-batch-response.d.ts +0 -21
  125. package/dist/types/api-model/models/competitive-summary-included-data.d.ts +0 -21
  126. package/dist/types/api-model/models/competitive-summary-request.d.ts +0 -40
  127. package/dist/types/api-model/models/competitive-summary-response-body.d.ts +0 -48
  128. package/dist/types/api-model/models/competitive-summary-response.d.ts +0 -20
  129. package/dist/types/api-model/models/condition.d.ts +0 -22
  130. package/dist/types/api-model/models/errors.d.ts +0 -20
  131. package/dist/types/api-model/models/featured-buying-option.d.ts +0 -29
  132. package/dist/types/api-model/models/featured-offer-expected-price-request-params.d.ts +0 -26
  133. package/dist/types/api-model/models/featured-offer-expected-price-request.d.ts +0 -18
  134. package/dist/types/api-model/models/featured-offer-expected-price-response-all-of.d.ts +0 -17
  135. package/dist/types/api-model/models/featured-offer-expected-price-response-body.d.ts +0 -27
  136. package/dist/types/api-model/models/featured-offer-expected-price-response.d.ts +0 -18
  137. package/dist/types/api-model/models/featured-offer-expected-price-result.d.ts +0 -25
  138. package/dist/types/api-model/models/featured-offer-expected-price.d.ts +0 -20
  139. package/dist/types/api-model/models/featured-offer-segment.d.ts +0 -28
  140. package/dist/types/api-model/models/featured-offer.d.ts +0 -22
  141. package/dist/types/api-model/models/fulfillment-type.d.ts +0 -19
  142. package/dist/types/api-model/models/get-featured-offer-expected-price-batch-request.d.ts +0 -21
  143. package/dist/types/api-model/models/get-featured-offer-expected-price-batch-response.d.ts +0 -21
  144. package/dist/types/api-model/models/http-method.d.ts +0 -22
  145. package/dist/types/api-model/models/http-status-line.d.ts +0 -24
  146. package/dist/types/api-model/models/index.d.ts +0 -44
  147. package/dist/types/api-model/models/item.d.ts +0 -20
  148. package/dist/types/api-model/models/lowest-priced-offer.d.ts +0 -23
  149. package/dist/types/api-model/models/lowest-priced-offers-input.d.ts +0 -26
  150. package/dist/types/api-model/models/model-error.d.ts +0 -28
  151. package/dist/types/api-model/models/money-type.d.ts +0 -24
  152. package/dist/types/api-model/models/offer-identifier.d.ts +0 -34
  153. package/dist/types/api-model/models/offer.d.ts +0 -55
  154. package/dist/types/api-model/models/points.d.ts +0 -22
  155. package/dist/types/api-model/models/postal-code.d.ts +0 -24
  156. package/dist/types/api-model/models/price.d.ts +0 -21
  157. package/dist/types/api-model/models/prime-details.d.ts +0 -26
  158. package/dist/types/api-model/models/reference-price.d.ts +0 -22
  159. package/dist/types/api-model/models/sample-location.d.ts +0 -18
  160. package/dist/types/api-model/models/segment-details.d.ts +0 -22
  161. package/dist/types/api-model/models/segment.d.ts +0 -18
  162. package/dist/types/api-model/models/segmented-featured-offer-all-of.d.ts +0 -21
  163. package/dist/types/api-model/models/segmented-featured-offer.d.ts +0 -18
  164. package/dist/types/api-model/models/shipping-option.d.ts +0 -26
  165. package/dist/types/api-model/models/similar-items.d.ts +0 -21
  166. package/dist/types/client.d.ts +0 -6
  167. package/dist/types/index.d.ts +0 -3
package/dist/index.js ADDED
@@ -0,0 +1,461 @@
1
+ import { createAxiosInstance } from "@sp-api-sdk/common";
2
+ import globalAxios from "axios";
3
+ //#region src/api-model/base.ts
4
+ const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
5
+ var BaseAPI = class {
6
+ basePath;
7
+ axios;
8
+ configuration;
9
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
10
+ this.basePath = basePath;
11
+ this.axios = axios;
12
+ if (configuration) {
13
+ this.configuration = configuration;
14
+ this.basePath = configuration.basePath ?? basePath;
15
+ }
16
+ }
17
+ };
18
+ var RequiredError = class extends Error {
19
+ field;
20
+ constructor(field, msg) {
21
+ super(msg);
22
+ this.field = field;
23
+ this.name = "RequiredError";
24
+ }
25
+ };
26
+ const operationServerMap = {};
27
+ //#endregion
28
+ //#region src/api-model/common.ts
29
+ const DUMMY_BASE_URL = "https://example.com";
30
+ /**
31
+ *
32
+ * @throws {RequiredError}
33
+ */
34
+ const assertParamExists = function(functionName, paramName, paramValue) {
35
+ if (paramValue === null || paramValue === void 0) throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
36
+ };
37
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
38
+ if (parameter == null) return;
39
+ if (typeof parameter === "object") if (Array.isArray(parameter) || parameter instanceof Set) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
40
+ else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
41
+ else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
42
+ else urlSearchParams.set(key, parameter);
43
+ }
44
+ const setSearchParams = function(url, ...objects) {
45
+ const searchParams = new URLSearchParams(url.search);
46
+ setFlattenedQueryParams(searchParams, objects);
47
+ url.search = searchParams.toString();
48
+ };
49
+ /**
50
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
51
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
52
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
53
+ */
54
+ const replaceWithSerializableTypeIfNeeded = function(key, value) {
55
+ if (value instanceof Set) return Array.from(value);
56
+ else return value;
57
+ };
58
+ const serializeDataIfNeeded = function(value, requestOptions, configuration) {
59
+ const nonString = typeof value !== "string";
60
+ return (nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString) ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
61
+ };
62
+ const toPathString = function(url) {
63
+ return url.pathname + url.search + url.hash;
64
+ };
65
+ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
66
+ return (axios = globalAxios, basePath = BASE_PATH) => {
67
+ const axiosRequestArgs = {
68
+ ...axiosArgs.options,
69
+ url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url
70
+ };
71
+ return axios.request(axiosRequestArgs);
72
+ };
73
+ };
74
+ //#endregion
75
+ //#region src/api-model/api/product-pricing-api.ts
76
+ /**
77
+ * ProductPricingApi - axios parameter creator
78
+ */
79
+ const ProductPricingApiAxiosParamCreator = function(configuration) {
80
+ return {
81
+ /**
82
+ * 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.
83
+ * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ getCompetitiveSummary: async (requests, options = {}) => {
88
+ assertParamExists("getCompetitiveSummary", "requests", requests);
89
+ const localVarUrlObj = new URL(`/batches/products/pricing/2022-05-01/items/competitiveSummary`, DUMMY_BASE_URL);
90
+ let baseOptions;
91
+ if (configuration) baseOptions = configuration.baseOptions;
92
+ const localVarRequestOptions = {
93
+ method: "POST",
94
+ ...baseOptions,
95
+ ...options
96
+ };
97
+ const localVarHeaderParameter = {};
98
+ const localVarQueryParameter = {};
99
+ localVarHeaderParameter["Content-Type"] = "application/json";
100
+ localVarHeaderParameter["Accept"] = "application/json";
101
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
102
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
103
+ localVarRequestOptions.headers = {
104
+ ...localVarHeaderParameter,
105
+ ...headersFromBaseOptions,
106
+ ...options.headers
107
+ };
108
+ localVarRequestOptions.data = serializeDataIfNeeded(requests, localVarRequestOptions, configuration);
109
+ return {
110
+ url: toPathString(localVarUrlObj),
111
+ options: localVarRequestOptions
112
+ };
113
+ },
114
+ /**
115
+ * 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.
116
+ * @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ getFeaturedOfferExpectedPriceBatch: async (getFeaturedOfferExpectedPriceBatchRequestBody, options = {}) => {
121
+ assertParamExists("getFeaturedOfferExpectedPriceBatch", "getFeaturedOfferExpectedPriceBatchRequestBody", getFeaturedOfferExpectedPriceBatchRequestBody);
122
+ const localVarUrlObj = new URL(`/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice`, DUMMY_BASE_URL);
123
+ let baseOptions;
124
+ if (configuration) baseOptions = configuration.baseOptions;
125
+ const localVarRequestOptions = {
126
+ method: "POST",
127
+ ...baseOptions,
128
+ ...options
129
+ };
130
+ const localVarHeaderParameter = {};
131
+ const localVarQueryParameter = {};
132
+ localVarHeaderParameter["Content-Type"] = "application/json";
133
+ localVarHeaderParameter["Accept"] = "application/json";
134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = {
137
+ ...localVarHeaderParameter,
138
+ ...headersFromBaseOptions,
139
+ ...options.headers
140
+ };
141
+ localVarRequestOptions.data = serializeDataIfNeeded(getFeaturedOfferExpectedPriceBatchRequestBody, localVarRequestOptions, configuration);
142
+ return {
143
+ url: toPathString(localVarUrlObj),
144
+ options: localVarRequestOptions
145
+ };
146
+ }
147
+ };
148
+ };
149
+ /**
150
+ * ProductPricingApi - functional programming interface
151
+ */
152
+ const ProductPricingApiFp = function(configuration) {
153
+ const localVarAxiosParamCreator = ProductPricingApiAxiosParamCreator(configuration);
154
+ return {
155
+ /**
156
+ * 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.
157
+ * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ async getCompetitiveSummary(requests, options) {
162
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompetitiveSummary(requests, options);
163
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
164
+ const localVarOperationServerBasePath = operationServerMap["ProductPricingApi.getCompetitiveSummary"]?.[localVarOperationServerIndex]?.url;
165
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
166
+ },
167
+ /**
168
+ * Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed because competing offers might change. Other offers might be featured based on factors such as fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that are applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may receive higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) in the Selling Partner API.
169
+ * @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ async getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options) {
174
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options);
175
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
176
+ const localVarOperationServerBasePath = operationServerMap["ProductPricingApi.getFeaturedOfferExpectedPriceBatch"]?.[localVarOperationServerIndex]?.url;
177
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
178
+ }
179
+ };
180
+ };
181
+ /**
182
+ * ProductPricingApi - factory interface
183
+ */
184
+ const ProductPricingApiFactory = function(configuration, basePath, axios) {
185
+ const localVarFp = ProductPricingApiFp(configuration);
186
+ return {
187
+ /**
188
+ * 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.
189
+ * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ */
193
+ getCompetitiveSummary(requestParameters, options) {
194
+ return localVarFp.getCompetitiveSummary(requestParameters.requests, options).then((request) => request(axios, basePath));
195
+ },
196
+ /**
197
+ * 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.
198
+ * @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ getFeaturedOfferExpectedPriceBatch(requestParameters, options) {
203
+ return localVarFp.getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(axios, basePath));
204
+ }
205
+ };
206
+ };
207
+ /**
208
+ * ProductPricingApi - object-oriented interface
209
+ */
210
+ var ProductPricingApi = class extends BaseAPI {
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 ProductPricingApiFp(this.configuration).getCompetitiveSummary(requestParameters.requests, options).then((request) => request(this.axios, this.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 ProductPricingApiFp(this.configuration).getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(this.axios, this.basePath));
228
+ }
229
+ };
230
+ //#endregion
231
+ //#region src/api-model/configuration.ts
232
+ var Configuration = class {
233
+ /**
234
+ * parameter for apiKey security
235
+ * @param name security name
236
+ */
237
+ apiKey;
238
+ /**
239
+ * parameter for basic security
240
+ */
241
+ username;
242
+ /**
243
+ * parameter for basic security
244
+ */
245
+ password;
246
+ /**
247
+ * parameter for oauth2 security
248
+ * @param name security name
249
+ * @param scopes oauth2 scope
250
+ */
251
+ accessToken;
252
+ /**
253
+ * parameter for aws4 signature security
254
+ * @param {Object} AWS4Signature - AWS4 Signature security
255
+ * @param {string} options.region - aws region
256
+ * @param {string} options.service - name of the service.
257
+ * @param {string} credentials.accessKeyId - aws access key id
258
+ * @param {string} credentials.secretAccessKey - aws access key
259
+ * @param {string} credentials.sessionToken - aws session token
260
+ * @memberof Configuration
261
+ */
262
+ awsv4;
263
+ /**
264
+ * override base path
265
+ */
266
+ basePath;
267
+ /**
268
+ * override server index
269
+ */
270
+ serverIndex;
271
+ /**
272
+ * base options for axios calls
273
+ */
274
+ baseOptions;
275
+ /**
276
+ * The FormData constructor that will be used to create multipart form data
277
+ * requests. You can inject this here so that execution environments that
278
+ * do not support the FormData class can still run the generated client.
279
+ *
280
+ * @type {new () => FormData}
281
+ */
282
+ formDataCtor;
283
+ constructor(param = {}) {
284
+ this.apiKey = param.apiKey;
285
+ this.username = param.username;
286
+ this.password = param.password;
287
+ this.accessToken = param.accessToken;
288
+ this.awsv4 = param.awsv4;
289
+ this.basePath = param.basePath;
290
+ this.serverIndex = param.serverIndex;
291
+ this.baseOptions = {
292
+ ...param.baseOptions,
293
+ headers: { ...param.baseOptions?.headers }
294
+ };
295
+ this.formDataCtor = param.formDataCtor;
296
+ }
297
+ /**
298
+ * Check if the given MIME is a JSON MIME.
299
+ * JSON MIME examples:
300
+ * application/json
301
+ * application/json; charset=UTF8
302
+ * APPLICATION/JSON
303
+ * application/vnd.company+json
304
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
305
+ * @return True if the given MIME is JSON, false otherwise.
306
+ */
307
+ isJsonMime(mime) {
308
+ return mime !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(mime);
309
+ }
310
+ };
311
+ //#endregion
312
+ //#region src/api-model/models/competitive-summary-included-data.ts
313
+ /**
314
+ * Selling Partner API for Pricing
315
+ * 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).
316
+ *
317
+ * The version of the OpenAPI document: 2022-05-01
318
+ *
319
+ *
320
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
321
+ * https://openapi-generator.tech
322
+ * Do not edit the class manually.
323
+ */
324
+ /**
325
+ * The supported data types in the `getCompetitiveSummary` API.
326
+ */
327
+ const CompetitiveSummaryIncludedData = {
328
+ FeaturedBuyingOptions: "featuredBuyingOptions",
329
+ ReferencePrices: "referencePrices",
330
+ LowestPricedOffers: "lowestPricedOffers",
331
+ SimilarItems: "similarItems"
332
+ };
333
+ //#endregion
334
+ //#region src/api-model/models/condition.ts
335
+ /**
336
+ * Selling Partner API for Pricing
337
+ * 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).
338
+ *
339
+ * The version of the OpenAPI document: 2022-05-01
340
+ *
341
+ *
342
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
343
+ * https://openapi-generator.tech
344
+ * Do not edit the class manually.
345
+ */
346
+ /**
347
+ * The condition of the item.
348
+ */
349
+ const Condition = {
350
+ New: "New",
351
+ Used: "Used",
352
+ Collectible: "Collectible",
353
+ Refurbished: "Refurbished",
354
+ Club: "Club"
355
+ };
356
+ //#endregion
357
+ //#region src/api-model/models/featured-buying-option.ts
358
+ const FeaturedBuyingOptionBuyingOptionTypeEnum = { New: "New" };
359
+ //#endregion
360
+ //#region src/api-model/models/featured-offer-segment.ts
361
+ const FeaturedOfferSegmentCustomerMembershipEnum = {
362
+ Prime: "PRIME",
363
+ NonPrime: "NON_PRIME",
364
+ Default: "DEFAULT"
365
+ };
366
+ //#endregion
367
+ //#region src/api-model/models/fulfillment-type.ts
368
+ /**
369
+ * Selling Partner API for Pricing
370
+ * 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).
371
+ *
372
+ * The version of the OpenAPI document: 2022-05-01
373
+ *
374
+ *
375
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
376
+ * https://openapi-generator.tech
377
+ * Do not edit the class manually.
378
+ */
379
+ /**
380
+ * Indicates whether the item is fulfilled by Amazon or by the seller (merchant).
381
+ */
382
+ const FulfillmentType = {
383
+ Afn: "AFN",
384
+ Mfn: "MFN"
385
+ };
386
+ //#endregion
387
+ //#region src/api-model/models/http-method.ts
388
+ /**
389
+ * Selling Partner API for Pricing
390
+ * 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).
391
+ *
392
+ * The version of the OpenAPI document: 2022-05-01
393
+ *
394
+ *
395
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
396
+ * https://openapi-generator.tech
397
+ * Do not edit the class manually.
398
+ */
399
+ /**
400
+ * The HTTP method associated with an individual request within a batch.
401
+ */
402
+ const HttpMethod = {
403
+ Get: "GET",
404
+ Put: "PUT",
405
+ Patch: "PATCH",
406
+ Delete: "DELETE",
407
+ Post: "POST"
408
+ };
409
+ //#endregion
410
+ //#region src/api-model/models/lowest-priced-offers-input.ts
411
+ const LowestPricedOffersInputOfferTypeEnum = { Consumer: "Consumer" };
412
+ //#endregion
413
+ //#region src/api-model/models/offer.ts
414
+ const OfferSubConditionEnum = {
415
+ New: "New",
416
+ Mint: "Mint",
417
+ VeryGood: "VeryGood",
418
+ Good: "Good",
419
+ Acceptable: "Acceptable",
420
+ Poor: "Poor",
421
+ Club: "Club",
422
+ Oem: "OEM",
423
+ Warranty: "Warranty",
424
+ RefurbishedWarranty: "RefurbishedWarranty",
425
+ Refurbished: "Refurbished",
426
+ OpenBox: "OpenBox",
427
+ Other: "Other"
428
+ };
429
+ //#endregion
430
+ //#region src/api-model/models/prime-details.ts
431
+ const PrimeDetailsEligibilityEnum = {
432
+ National: "NATIONAL",
433
+ Regional: "REGIONAL",
434
+ None: "NONE"
435
+ };
436
+ //#endregion
437
+ //#region src/api-model/models/shipping-option.ts
438
+ const ShippingOptionShippingOptionTypeEnum = { Default: "DEFAULT" };
439
+ //#endregion
440
+ //#region src/client.ts
441
+ const clientRateLimits = [{
442
+ method: "post",
443
+ urlRegex: /^\/batches\/products\/pricing\/2022\u{2D}05\u{2D}01\/offer\/featuredOfferExpectedPrice$/v,
444
+ rate: .033,
445
+ burst: 1
446
+ }, {
447
+ method: "post",
448
+ urlRegex: /^\/batches\/products\/pricing\/2022\u{2D}05\u{2D}01\/items\/competitiveSummary$/v,
449
+ rate: .033,
450
+ burst: 1
451
+ }];
452
+ var ProductPricingApiClient = class extends ProductPricingApi {
453
+ constructor(configuration) {
454
+ const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
455
+ super(new Configuration(), endpoint, axios);
456
+ }
457
+ };
458
+ //#endregion
459
+ export { CompetitiveSummaryIncludedData, Condition, FeaturedBuyingOptionBuyingOptionTypeEnum, FeaturedOfferSegmentCustomerMembershipEnum, FulfillmentType, HttpMethod, LowestPricedOffersInputOfferTypeEnum, OfferSubConditionEnum, PrimeDetailsEligibilityEnum, ProductPricingApi, ProductPricingApiAxiosParamCreator, ProductPricingApiClient, ProductPricingApiFactory, ProductPricingApiFp, ShippingOptionShippingOptionTypeEnum, clientRateLimits };
460
+
461
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/api/product-pricing-api.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","../src/client.ts"],"sourcesContent":["/* 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/* 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 &#x60;getCompetitiveSummary&#x60; 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 &#x60;getFeaturedOfferExpectedPrice&#x60; 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 &#x60;getCompetitiveSummary&#x60; 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 &#x60;getFeaturedOfferExpectedPrice&#x60; 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 &#x60;getCompetitiveSummary&#x60; 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 &#x60;getFeaturedOfferExpectedPrice&#x60; 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/**\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","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 urlRegex:\n /^\\/batches\\/products\\/pricing\\/2022\\u{2D}05\\u{2D}01\\/offer\\/featuredOfferExpectedPrice$/v,\n rate: 0.033,\n burst: 1,\n },\n {\n method: 'post',\n urlRegex: /^\\/batches\\/products\\/pricing\\/2022\\u{2D}05\\u{2D}01\\/items\\/competitiveSummary$/v,\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"],"mappings":";;;AAqBA,MAAa,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAcrF,IAAa,UAAb,MAAqB;CAGoC;CAAwC;CAF7F;CAEA,YAAY,eAA+B,WAA6B,WAAW,QAAiC,aAAa;EAA5E,KAAA,WAAA;EAAwC,KAAA,QAAA;EACzF,IAAI,eAAe;GACf,KAAK,gBAAgB;GACrB,KAAK,WA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  "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": "3.3.0",
6
- "main": "dist/cjs/index.js",
7
- "module": "dist/es/index.js",
8
- "types": "dist/types/index.d.ts",
5
+ "version": "4.1.0",
9
6
  "license": "MIT",
7
+ "type": "module",
8
+ "engines": {
9
+ "node": ">=20"
10
+ },
11
+ "sideEffects": false,
12
+ "source": "./src/index.ts",
13
+ "main": "./dist/index.cjs",
14
+ "module": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "import": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.js"
21
+ },
22
+ "require": {
23
+ "types": "./dist/index.d.cts",
24
+ "default": "./dist/index.cjs"
25
+ }
26
+ }
27
+ },
10
28
  "publishConfig": {
11
29
  "access": "public"
12
30
  },
13
- "directories": {
14
- "lib": "dist"
15
- },
16
31
  "files": [
17
- "dist/**/*.js",
18
- "dist/**/*.d.ts"
32
+ "dist"
19
33
  ],
20
34
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.31",
22
- "axios": "^1.15.2"
35
+ "@sp-api-sdk/common": "4.0.0",
36
+ "axios": "^1.18.1"
23
37
  },
24
38
  "repository": {
25
39
  "type": "git",
@@ -40,5 +54,5 @@
40
54
  "sp sdk",
41
55
  "product pricing api"
42
56
  ],
43
- "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
57
+ "gitHead": "809167ef3a2d3db5eaad161be1cf4f414073ecec"
44
58
  }