@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.
Files changed (161) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +474 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +1325 -0
  5. package/dist/index.d.ts +1325 -0
  6. package/dist/index.js +422 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -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 -24
  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 -58
  41. package/dist/cjs/api-model/models/lowest-priced-offer.js +0 -15
  42. package/dist/cjs/api-model/models/lowest-priced-offers-input.js +0 -19
  43. package/dist/cjs/api-model/models/model-error.js +0 -15
  44. package/dist/cjs/api-model/models/money-type.js +0 -15
  45. package/dist/cjs/api-model/models/offer-identifier.js +0 -15
  46. package/dist/cjs/api-model/models/offer.js +0 -31
  47. package/dist/cjs/api-model/models/points.js +0 -15
  48. package/dist/cjs/api-model/models/postal-code.js +0 -15
  49. package/dist/cjs/api-model/models/price.js +0 -15
  50. package/dist/cjs/api-model/models/prime-details.js +0 -21
  51. package/dist/cjs/api-model/models/reference-price.js +0 -15
  52. package/dist/cjs/api-model/models/sample-location.js +0 -15
  53. package/dist/cjs/api-model/models/segment-details.js +0 -15
  54. package/dist/cjs/api-model/models/segment.js +0 -15
  55. package/dist/cjs/api-model/models/segmented-featured-offer-all-of.js +0 -15
  56. package/dist/cjs/api-model/models/segmented-featured-offer.js +0 -15
  57. package/dist/cjs/api-model/models/shipping-option.js +0 -19
  58. package/dist/cjs/client.js +0 -28
  59. package/dist/cjs/index.js +0 -19
  60. package/dist/es/api-model/api/product-pricing-api.js +0 -167
  61. package/dist/es/api-model/api.js +0 -14
  62. package/dist/es/api-model/base.js +0 -44
  63. package/dist/es/api-model/common.js +0 -110
  64. package/dist/es/api-model/configuration.js +0 -94
  65. package/dist/es/api-model/index.js +0 -16
  66. package/dist/es/api-model/models/batch-request.js +0 -14
  67. package/dist/es/api-model/models/batch-response.js +0 -14
  68. package/dist/es/api-model/models/competitive-summary-batch-request.js +0 -14
  69. package/dist/es/api-model/models/competitive-summary-batch-response.js +0 -14
  70. package/dist/es/api-model/models/competitive-summary-included-data.js +0 -21
  71. package/dist/es/api-model/models/competitive-summary-request.js +0 -14
  72. package/dist/es/api-model/models/competitive-summary-response-body.js +0 -14
  73. package/dist/es/api-model/models/competitive-summary-response.js +0 -14
  74. package/dist/es/api-model/models/condition.js +0 -23
  75. package/dist/es/api-model/models/errors.js +0 -14
  76. package/dist/es/api-model/models/featured-buying-option.js +0 -16
  77. package/dist/es/api-model/models/featured-offer-expected-price-request-params.js +0 -14
  78. package/dist/es/api-model/models/featured-offer-expected-price-request.js +0 -14
  79. package/dist/es/api-model/models/featured-offer-expected-price-response-all-of.js +0 -14
  80. package/dist/es/api-model/models/featured-offer-expected-price-response-body.js +0 -14
  81. package/dist/es/api-model/models/featured-offer-expected-price-response.js +0 -14
  82. package/dist/es/api-model/models/featured-offer-expected-price-result.js +0 -14
  83. package/dist/es/api-model/models/featured-offer-expected-price.js +0 -14
  84. package/dist/es/api-model/models/featured-offer-segment.js +0 -18
  85. package/dist/es/api-model/models/featured-offer.js +0 -14
  86. package/dist/es/api-model/models/fulfillment-type.js +0 -20
  87. package/dist/es/api-model/models/get-featured-offer-expected-price-batch-request.js +0 -14
  88. package/dist/es/api-model/models/get-featured-offer-expected-price-batch-response.js +0 -14
  89. package/dist/es/api-model/models/http-method.js +0 -23
  90. package/dist/es/api-model/models/http-status-line.js +0 -14
  91. package/dist/es/api-model/models/index.js +0 -42
  92. package/dist/es/api-model/models/lowest-priced-offer.js +0 -14
  93. package/dist/es/api-model/models/lowest-priced-offers-input.js +0 -16
  94. package/dist/es/api-model/models/model-error.js +0 -14
  95. package/dist/es/api-model/models/money-type.js +0 -14
  96. package/dist/es/api-model/models/offer-identifier.js +0 -14
  97. package/dist/es/api-model/models/offer.js +0 -28
  98. package/dist/es/api-model/models/points.js +0 -14
  99. package/dist/es/api-model/models/postal-code.js +0 -14
  100. package/dist/es/api-model/models/price.js +0 -14
  101. package/dist/es/api-model/models/prime-details.js +0 -18
  102. package/dist/es/api-model/models/reference-price.js +0 -14
  103. package/dist/es/api-model/models/sample-location.js +0 -14
  104. package/dist/es/api-model/models/segment-details.js +0 -14
  105. package/dist/es/api-model/models/segment.js +0 -14
  106. package/dist/es/api-model/models/segmented-featured-offer-all-of.js +0 -14
  107. package/dist/es/api-model/models/segmented-featured-offer.js +0 -14
  108. package/dist/es/api-model/models/shipping-option.js +0 -16
  109. package/dist/es/client.js +0 -24
  110. package/dist/es/index.js +0 -3
  111. package/dist/types/api-model/api/product-pricing-api.d.ts +0 -113
  112. package/dist/types/api-model/api.d.ts +0 -12
  113. package/dist/types/api-model/base.d.ts +0 -42
  114. package/dist/types/api-model/common.d.ts +0 -34
  115. package/dist/types/api-model/configuration.d.ts +0 -98
  116. package/dist/types/api-model/index.d.ts +0 -14
  117. package/dist/types/api-model/models/batch-request.d.ts +0 -34
  118. package/dist/types/api-model/models/batch-response.d.ts +0 -24
  119. package/dist/types/api-model/models/competitive-summary-batch-request.d.ts +0 -21
  120. package/dist/types/api-model/models/competitive-summary-batch-response.d.ts +0 -21
  121. package/dist/types/api-model/models/competitive-summary-included-data.d.ts +0 -20
  122. package/dist/types/api-model/models/competitive-summary-request.d.ts +0 -40
  123. package/dist/types/api-model/models/competitive-summary-response-body.d.ts +0 -43
  124. package/dist/types/api-model/models/competitive-summary-response.d.ts +0 -20
  125. package/dist/types/api-model/models/condition.d.ts +0 -22
  126. package/dist/types/api-model/models/errors.d.ts +0 -20
  127. package/dist/types/api-model/models/featured-buying-option.d.ts +0 -29
  128. package/dist/types/api-model/models/featured-offer-expected-price-request-params.d.ts +0 -26
  129. package/dist/types/api-model/models/featured-offer-expected-price-request.d.ts +0 -18
  130. package/dist/types/api-model/models/featured-offer-expected-price-response-all-of.d.ts +0 -17
  131. package/dist/types/api-model/models/featured-offer-expected-price-response-body.d.ts +0 -27
  132. package/dist/types/api-model/models/featured-offer-expected-price-response.d.ts +0 -18
  133. package/dist/types/api-model/models/featured-offer-expected-price-result.d.ts +0 -25
  134. package/dist/types/api-model/models/featured-offer-expected-price.d.ts +0 -20
  135. package/dist/types/api-model/models/featured-offer-segment.d.ts +0 -28
  136. package/dist/types/api-model/models/featured-offer.d.ts +0 -22
  137. package/dist/types/api-model/models/fulfillment-type.d.ts +0 -19
  138. package/dist/types/api-model/models/get-featured-offer-expected-price-batch-request.d.ts +0 -21
  139. package/dist/types/api-model/models/get-featured-offer-expected-price-batch-response.d.ts +0 -21
  140. package/dist/types/api-model/models/http-method.d.ts +0 -22
  141. package/dist/types/api-model/models/http-status-line.d.ts +0 -24
  142. package/dist/types/api-model/models/index.d.ts +0 -42
  143. package/dist/types/api-model/models/lowest-priced-offer.d.ts +0 -23
  144. package/dist/types/api-model/models/lowest-priced-offers-input.d.ts +0 -26
  145. package/dist/types/api-model/models/model-error.d.ts +0 -28
  146. package/dist/types/api-model/models/money-type.d.ts +0 -24
  147. package/dist/types/api-model/models/offer-identifier.d.ts +0 -34
  148. package/dist/types/api-model/models/offer.d.ts +0 -55
  149. package/dist/types/api-model/models/points.d.ts +0 -22
  150. package/dist/types/api-model/models/postal-code.d.ts +0 -24
  151. package/dist/types/api-model/models/price.d.ts +0 -21
  152. package/dist/types/api-model/models/prime-details.d.ts +0 -26
  153. package/dist/types/api-model/models/reference-price.d.ts +0 -22
  154. package/dist/types/api-model/models/sample-location.d.ts +0 -18
  155. package/dist/types/api-model/models/segment-details.d.ts +0 -22
  156. package/dist/types/api-model/models/segment.d.ts +0 -18
  157. package/dist/types/api-model/models/segmented-featured-offer-all-of.d.ts +0 -21
  158. package/dist/types/api-model/models/segmented-featured-offer.d.ts +0 -18
  159. package/dist/types/api-model/models/shipping-option.d.ts +0 -26
  160. package/dist/types/client.d.ts +0 -6
  161. package/dist/types/index.d.ts +0 -3
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for Pricing
6
- * 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).
7
- *
8
- * The version of the OpenAPI document: 2022-05-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for Pricing
6
- * 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).
7
- *
8
- * The version of the OpenAPI document: 2022-05-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for Pricing
6
- * 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).
7
- *
8
- * The version of the OpenAPI document: 2022-05-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for Pricing
6
- * 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).
7
- *
8
- * The version of the OpenAPI document: 2022-05-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ShippingOptionShippingOptionTypeEnum = void 0;
17
- exports.ShippingOptionShippingOptionTypeEnum = {
18
- Default: 'DEFAULT'
19
- };
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductPricingApiClient = exports.clientRateLimits = void 0;
4
- const common_1 = require("@sp-api-sdk/common");
5
- const api_model_1 = require("./api-model");
6
- exports.clientRateLimits = [
7
- {
8
- method: 'post',
9
- // eslint-disable-next-line prefer-regex-literals
10
- urlRegex: new RegExp('^/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice$'),
11
- rate: 0.033,
12
- burst: 1,
13
- },
14
- {
15
- method: 'post',
16
- // eslint-disable-next-line prefer-regex-literals
17
- urlRegex: new RegExp('^/batches/products/pricing/2022-05-01/items/competitiveSummary$'),
18
- rate: 0.033,
19
- burst: 1,
20
- },
21
- ];
22
- class ProductPricingApiClient extends api_model_1.ProductPricingApi {
23
- constructor(configuration) {
24
- const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
25
- super(new api_model_1.Configuration(), endpoint, axios);
26
- }
27
- }
28
- exports.ProductPricingApiClient = ProductPricingApiClient;
package/dist/cjs/index.js DELETED
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
18
- __exportStar(require("./api-model/api"), exports);
19
- __exportStar(require("./api-model/models"), exports);
@@ -1,167 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Pricing
5
- * 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).
6
- *
7
- * The version of the OpenAPI document: 2022-05-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import globalAxios from 'axios';
15
- // Some imports not used depending on template conditions
16
- // @ts-ignore
17
- import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
18
- // @ts-ignore
19
- import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
- /**
21
- * ProductPricingApi - axios parameter creator
22
- */
23
- export const ProductPricingApiAxiosParamCreator = function (configuration) {
24
- return {
25
- /**
26
- * 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.
27
- * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
28
- * @param {*} [options] Override http request option.
29
- * @throws {RequiredError}
30
- */
31
- getCompetitiveSummary: async (requests, options = {}) => {
32
- // verify required parameter 'requests' is not null or undefined
33
- assertParamExists('getCompetitiveSummary', 'requests', requests);
34
- const localVarPath = `/batches/products/pricing/2022-05-01/items/competitiveSummary`;
35
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
36
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
37
- let baseOptions;
38
- if (configuration) {
39
- baseOptions = configuration.baseOptions;
40
- }
41
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42
- const localVarHeaderParameter = {};
43
- const localVarQueryParameter = {};
44
- localVarHeaderParameter['Content-Type'] = 'application/json';
45
- localVarHeaderParameter['Accept'] = 'application/json';
46
- setSearchParams(localVarUrlObj, localVarQueryParameter);
47
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
49
- localVarRequestOptions.data = serializeDataIfNeeded(requests, localVarRequestOptions, configuration);
50
- return {
51
- url: toPathString(localVarUrlObj),
52
- options: localVarRequestOptions,
53
- };
54
- },
55
- /**
56
- * 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.
57
- * @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
58
- * @param {*} [options] Override http request option.
59
- * @throws {RequiredError}
60
- */
61
- getFeaturedOfferExpectedPriceBatch: async (getFeaturedOfferExpectedPriceBatchRequestBody, options = {}) => {
62
- // verify required parameter 'getFeaturedOfferExpectedPriceBatchRequestBody' is not null or undefined
63
- assertParamExists('getFeaturedOfferExpectedPriceBatch', 'getFeaturedOfferExpectedPriceBatchRequestBody', getFeaturedOfferExpectedPriceBatchRequestBody);
64
- const localVarPath = `/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice`;
65
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
66
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
67
- let baseOptions;
68
- if (configuration) {
69
- baseOptions = configuration.baseOptions;
70
- }
71
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
72
- const localVarHeaderParameter = {};
73
- const localVarQueryParameter = {};
74
- localVarHeaderParameter['Content-Type'] = 'application/json';
75
- localVarHeaderParameter['Accept'] = 'application/json';
76
- setSearchParams(localVarUrlObj, localVarQueryParameter);
77
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
79
- localVarRequestOptions.data = serializeDataIfNeeded(getFeaturedOfferExpectedPriceBatchRequestBody, localVarRequestOptions, configuration);
80
- return {
81
- url: toPathString(localVarUrlObj),
82
- options: localVarRequestOptions,
83
- };
84
- },
85
- };
86
- };
87
- /**
88
- * ProductPricingApi - functional programming interface
89
- */
90
- export const ProductPricingApiFp = function (configuration) {
91
- const localVarAxiosParamCreator = ProductPricingApiAxiosParamCreator(configuration);
92
- return {
93
- /**
94
- * 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.
95
- * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
96
- * @param {*} [options] Override http request option.
97
- * @throws {RequiredError}
98
- */
99
- async getCompetitiveSummary(requests, options) {
100
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCompetitiveSummary(requests, options);
101
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
102
- const localVarOperationServerBasePath = operationServerMap['ProductPricingApi.getCompetitiveSummary']?.[localVarOperationServerIndex]?.url;
103
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
104
- },
105
- /**
106
- * 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.
107
- * @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
108
- * @param {*} [options] Override http request option.
109
- * @throws {RequiredError}
110
- */
111
- async getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options) {
112
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options);
113
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
114
- const localVarOperationServerBasePath = operationServerMap['ProductPricingApi.getFeaturedOfferExpectedPriceBatch']?.[localVarOperationServerIndex]?.url;
115
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
116
- },
117
- };
118
- };
119
- /**
120
- * ProductPricingApi - factory interface
121
- */
122
- export const ProductPricingApiFactory = function (configuration, basePath, axios) {
123
- const localVarFp = ProductPricingApiFp(configuration);
124
- return {
125
- /**
126
- * 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.
127
- * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
128
- * @param {*} [options] Override http request option.
129
- * @throws {RequiredError}
130
- */
131
- getCompetitiveSummary(requestParameters, options) {
132
- return localVarFp.getCompetitiveSummary(requestParameters.requests, options).then((request) => request(axios, basePath));
133
- },
134
- /**
135
- * 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.
136
- * @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
137
- * @param {*} [options] Override http request option.
138
- * @throws {RequiredError}
139
- */
140
- getFeaturedOfferExpectedPriceBatch(requestParameters, options) {
141
- return localVarFp.getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(axios, basePath));
142
- },
143
- };
144
- };
145
- /**
146
- * ProductPricingApi - object-oriented interface
147
- */
148
- export class ProductPricingApi extends BaseAPI {
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 {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
152
- * @param {*} [options] Override http request option.
153
- * @throws {RequiredError}
154
- */
155
- getCompetitiveSummary(requestParameters, options) {
156
- return ProductPricingApiFp(this.configuration).getCompetitiveSummary(requestParameters.requests, options).then((request) => request(this.axios, this.basePath));
157
- }
158
- /**
159
- * 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.
160
- * @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
161
- * @param {*} [options] Override http request option.
162
- * @throws {RequiredError}
163
- */
164
- getFeaturedOfferExpectedPriceBatch(requestParameters, options) {
165
- return ProductPricingApiFp(this.configuration).getFeaturedOfferExpectedPriceBatch(requestParameters.getFeaturedOfferExpectedPriceBatchRequestBody, options).then((request) => request(this.axios, this.basePath));
166
- }
167
- }
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Pricing
5
- * 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).
6
- *
7
- * The version of the OpenAPI document: 2022-05-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export * from './api/product-pricing-api';
@@ -1,44 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Pricing
5
- * 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).
6
- *
7
- * The version of the OpenAPI document: 2022-05-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import globalAxios from 'axios';
15
- export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
16
- export const COLLECTION_FORMATS = {
17
- csv: ",",
18
- ssv: " ",
19
- tsv: "\t",
20
- pipes: "|",
21
- };
22
- export class BaseAPI {
23
- basePath;
24
- axios;
25
- configuration;
26
- constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
27
- this.basePath = basePath;
28
- this.axios = axios;
29
- if (configuration) {
30
- this.configuration = configuration;
31
- this.basePath = configuration.basePath ?? basePath;
32
- }
33
- }
34
- }
35
- ;
36
- export class RequiredError extends Error {
37
- field;
38
- constructor(field, msg) {
39
- super(msg);
40
- this.field = field;
41
- this.name = "RequiredError";
42
- }
43
- }
44
- export const operationServerMap = {};
@@ -1,110 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Pricing
5
- * 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).
6
- *
7
- * The version of the OpenAPI document: 2022-05-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { RequiredError } from "./base";
15
- export const DUMMY_BASE_URL = 'https://example.com';
16
- /**
17
- *
18
- * @throws {RequiredError}
19
- */
20
- export const assertParamExists = function (functionName, paramName, paramValue) {
21
- if (paramValue === null || paramValue === undefined) {
22
- throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
23
- }
24
- };
25
- export const setApiKeyToObject = async function (object, keyParamName, configuration) {
26
- if (configuration && configuration.apiKey) {
27
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
28
- ? await configuration.apiKey(keyParamName)
29
- : await configuration.apiKey;
30
- object[keyParamName] = localVarApiKeyValue;
31
- }
32
- };
33
- export const setBasicAuthToObject = function (object, configuration) {
34
- if (configuration && (configuration.username || configuration.password)) {
35
- object["auth"] = { username: configuration.username, password: configuration.password };
36
- }
37
- };
38
- export const setBearerAuthToObject = async function (object, configuration) {
39
- if (configuration && configuration.accessToken) {
40
- const accessToken = typeof configuration.accessToken === 'function'
41
- ? await configuration.accessToken()
42
- : await configuration.accessToken;
43
- object["Authorization"] = "Bearer " + accessToken;
44
- }
45
- };
46
- export const setOAuthToObject = async function (object, name, scopes, configuration) {
47
- if (configuration && configuration.accessToken) {
48
- const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
49
- ? await configuration.accessToken(name, scopes)
50
- : await configuration.accessToken;
51
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
52
- }
53
- };
54
- function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
55
- if (parameter == null)
56
- return;
57
- if (typeof parameter === "object") {
58
- if (Array.isArray(parameter) || parameter instanceof Set) {
59
- parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
60
- }
61
- else {
62
- Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
63
- }
64
- }
65
- else {
66
- if (urlSearchParams.has(key)) {
67
- urlSearchParams.append(key, parameter);
68
- }
69
- else {
70
- urlSearchParams.set(key, parameter);
71
- }
72
- }
73
- }
74
- export const setSearchParams = function (url, ...objects) {
75
- const searchParams = new URLSearchParams(url.search);
76
- setFlattenedQueryParams(searchParams, objects);
77
- url.search = searchParams.toString();
78
- };
79
- /**
80
- * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
81
- * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
82
- * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
83
- */
84
- // @ts-ignore
85
- export const replaceWithSerializableTypeIfNeeded = function (key, value) {
86
- if (value instanceof Set) {
87
- return Array.from(value);
88
- }
89
- else {
90
- return value;
91
- }
92
- };
93
- export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
94
- const nonString = typeof value !== 'string';
95
- const needsSerialization = nonString && configuration && configuration.isJsonMime
96
- ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
97
- : nonString;
98
- return needsSerialization
99
- ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
100
- : (value || "");
101
- };
102
- export const toPathString = function (url) {
103
- return url.pathname + url.search + url.hash;
104
- };
105
- export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
106
- return (axios = globalAxios, basePath = BASE_PATH) => {
107
- const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
108
- return axios.request(axiosRequestArgs);
109
- };
110
- };
@@ -1,94 +0,0 @@
1
- /* tslint:disable */
2
- /**
3
- * Selling Partner API for Pricing
4
- * 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).
5
- *
6
- * The version of the OpenAPI document: 2022-05-01
7
- *
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- export class Configuration {
14
- /**
15
- * parameter for apiKey security
16
- * @param name security name
17
- */
18
- apiKey;
19
- /**
20
- * parameter for basic security
21
- */
22
- username;
23
- /**
24
- * parameter for basic security
25
- */
26
- password;
27
- /**
28
- * parameter for oauth2 security
29
- * @param name security name
30
- * @param scopes oauth2 scope
31
- */
32
- accessToken;
33
- /**
34
- * parameter for aws4 signature security
35
- * @param {Object} AWS4Signature - AWS4 Signature security
36
- * @param {string} options.region - aws region
37
- * @param {string} options.service - name of the service.
38
- * @param {string} credentials.accessKeyId - aws access key id
39
- * @param {string} credentials.secretAccessKey - aws access key
40
- * @param {string} credentials.sessionToken - aws session token
41
- * @memberof Configuration
42
- */
43
- awsv4;
44
- /**
45
- * override base path
46
- */
47
- basePath;
48
- /**
49
- * override server index
50
- */
51
- serverIndex;
52
- /**
53
- * base options for axios calls
54
- */
55
- baseOptions;
56
- /**
57
- * The FormData constructor that will be used to create multipart form data
58
- * requests. You can inject this here so that execution environments that
59
- * do not support the FormData class can still run the generated client.
60
- *
61
- * @type {new () => FormData}
62
- */
63
- formDataCtor;
64
- constructor(param = {}) {
65
- this.apiKey = param.apiKey;
66
- this.username = param.username;
67
- this.password = param.password;
68
- this.accessToken = param.accessToken;
69
- this.awsv4 = param.awsv4;
70
- this.basePath = param.basePath;
71
- this.serverIndex = param.serverIndex;
72
- this.baseOptions = {
73
- ...param.baseOptions,
74
- headers: {
75
- ...param.baseOptions?.headers,
76
- },
77
- };
78
- this.formDataCtor = param.formDataCtor;
79
- }
80
- /**
81
- * Check if the given MIME is a JSON MIME.
82
- * JSON MIME examples:
83
- * application/json
84
- * application/json; charset=UTF8
85
- * APPLICATION/JSON
86
- * application/vnd.company+json
87
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
88
- * @return True if the given MIME is JSON, false otherwise.
89
- */
90
- isJsonMime(mime) {
91
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
93
- }
94
- }
@@ -1,16 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Pricing
5
- * 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).
6
- *
7
- * The version of the OpenAPI document: 2022-05-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export * from "./api";
15
- export * from "./configuration";
16
- export * from "./models";
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Pricing
5
- * 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).
6
- *
7
- * The version of the OpenAPI document: 2022-05-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Pricing
5
- * 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).
6
- *
7
- * The version of the OpenAPI document: 2022-05-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Pricing
5
- * 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).
6
- *
7
- * The version of the OpenAPI document: 2022-05-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Pricing
5
- * 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).
6
- *
7
- * The version of the OpenAPI document: 2022-05-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};