@sp-api-sdk/product-pricing-api-2022-05-01 2.1.6 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/api-model/api/product-pricing-api.js +8 -4
- package/dist/cjs/src/api-model/base.js +7 -2
- package/dist/cjs/src/api-model/common.js +1 -1
- package/dist/cjs/src/api-model/configuration.js +8 -0
- package/dist/cjs/src/api-model/models/competitive-summary-included-data.js +3 -1
- package/dist/cjs/src/api-model/models/index.js +4 -0
- package/dist/cjs/src/api-model/models/lowest-priced-offer.js +15 -0
- package/dist/cjs/src/api-model/models/lowest-priced-offers-input.js +19 -0
- package/dist/cjs/src/api-model/models/offer.js +16 -0
- package/dist/cjs/src/api-model/models/prime-details.js +21 -0
- package/dist/cjs/src/api-model/models/reference-price.js +15 -0
- package/dist/es/src/api-model/api/product-pricing-api.js +9 -5
- package/dist/es/src/api-model/base.js +6 -1
- package/dist/es/src/api-model/common.js +1 -1
- package/dist/es/src/api-model/configuration.js +8 -0
- package/dist/es/src/api-model/models/competitive-summary-included-data.js +3 -1
- package/dist/es/src/api-model/models/index.js +4 -0
- package/dist/es/src/api-model/models/lowest-priced-offer.js +14 -0
- package/dist/es/src/api-model/models/lowest-priced-offers-input.js +16 -0
- package/dist/es/src/api-model/models/offer.js +15 -1
- package/dist/es/src/api-model/models/prime-details.js +18 -0
- package/dist/es/src/api-model/models/reference-price.js +14 -0
- package/dist/types/src/api-model/api/product-pricing-api.d.ts +17 -17
- package/dist/types/src/api-model/base.d.ts +14 -2
- package/dist/types/src/api-model/configuration.d.ts +8 -0
- package/dist/types/src/api-model/models/batch-request.d.ts +1 -1
- package/dist/types/src/api-model/models/batch-response.d.ts +1 -1
- package/dist/types/src/api-model/models/competitive-summary-batch-request.d.ts +1 -1
- package/dist/types/src/api-model/models/competitive-summary-batch-response.d.ts +1 -1
- package/dist/types/src/api-model/models/competitive-summary-included-data.d.ts +2 -0
- package/dist/types/src/api-model/models/competitive-summary-request.d.ts +9 -2
- package/dist/types/src/api-model/models/competitive-summary-response-body.d.ts +18 -5
- package/dist/types/src/api-model/models/competitive-summary-response.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-buying-option.d.ts +1 -1
- package/dist/types/src/api-model/models/featured-offer-expected-price-request.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-offer-expected-price-response-all-of.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-offer-expected-price-response-body.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-offer-expected-price-response.d.ts +3 -2
- package/dist/types/src/api-model/models/featured-offer-expected-price-result.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-offer-expected-price.d.ts +2 -2
- package/dist/types/src/api-model/models/featured-offer-segment.d.ts +1 -1
- package/dist/types/src/api-model/models/featured-offer.d.ts +4 -4
- package/dist/types/src/api-model/models/get-featured-offer-expected-price-batch-request.d.ts +1 -1
- package/dist/types/src/api-model/models/get-featured-offer-expected-price-batch-response.d.ts +1 -1
- package/dist/types/src/api-model/models/index.d.ts +4 -0
- package/dist/types/src/api-model/models/lowest-priced-offer.d.ts +32 -0
- package/dist/types/src/api-model/models/lowest-priced-offers-input.d.ts +35 -0
- package/dist/types/src/api-model/models/money-type.d.ts +1 -1
- package/dist/types/src/api-model/models/offer-identifier.d.ts +1 -1
- package/dist/types/src/api-model/models/offer.d.ts +34 -5
- package/dist/types/src/api-model/models/points.d.ts +2 -2
- package/dist/types/src/api-model/models/price.d.ts +3 -3
- package/dist/types/src/api-model/models/prime-details.d.ts +30 -0
- package/dist/types/src/api-model/models/reference-price.d.ts +31 -0
- package/dist/types/src/api-model/models/segmented-featured-offer-all-of.d.ts +1 -1
- package/dist/types/src/api-model/models/segmented-featured-offer.d.ts +2 -2
- package/dist/types/src/api-model/models/shipping-option.d.ts +1 -1
- package/package.json +4 -4
|
@@ -60,7 +60,7 @@ const ProductPricingApiAxiosParamCreator = function (configuration) {
|
|
|
60
60
|
},
|
|
61
61
|
/**
|
|
62
62
|
* 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 may change, and different offers may be featured based on other factors, including 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 were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
63
|
-
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody
|
|
63
|
+
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
65
65
|
* @throws {RequiredError}
|
|
66
66
|
*/
|
|
@@ -105,17 +105,21 @@ const ProductPricingApiFp = function (configuration) {
|
|
|
105
105
|
*/
|
|
106
106
|
async getCompetitiveSummary(requests, options) {
|
|
107
107
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompetitiveSummary(requests, options);
|
|
108
|
-
|
|
108
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
109
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProductPricingApi.getCompetitiveSummary']?.[localVarOperationServerIndex]?.url;
|
|
110
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
109
111
|
},
|
|
110
112
|
/**
|
|
111
113
|
* 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 may change, and different offers may be featured based on other factors, including 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 were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
112
|
-
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody
|
|
114
|
+
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
|
|
113
115
|
* @param {*} [options] Override http request option.
|
|
114
116
|
* @throws {RequiredError}
|
|
115
117
|
*/
|
|
116
118
|
async getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options) {
|
|
117
119
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options);
|
|
118
|
-
|
|
120
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
121
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProductPricingApi.getFeaturedOfferExpectedPriceBatch']?.[localVarOperationServerIndex]?.url;
|
|
122
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
119
123
|
},
|
|
120
124
|
};
|
|
121
125
|
};
|
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
19
|
+
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
22
22
|
/**
|
|
@@ -43,7 +43,7 @@ class BaseAPI {
|
|
|
43
43
|
this.axios = axios;
|
|
44
44
|
if (configuration) {
|
|
45
45
|
this.configuration = configuration;
|
|
46
|
-
this.basePath = configuration.basePath
|
|
46
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -64,3 +64,8 @@ class RequiredError extends Error {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
exports.RequiredError = RequiredError;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
exports.operationServerMap = {};
|
|
@@ -138,7 +138,7 @@ exports.toPathString = toPathString;
|
|
|
138
138
|
*/
|
|
139
139
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
140
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
141
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
142
142
|
return axios.request(axiosRequestArgs);
|
|
143
143
|
};
|
|
144
144
|
};
|
|
@@ -49,6 +49,13 @@ class Configuration {
|
|
|
49
49
|
* @memberof Configuration
|
|
50
50
|
*/
|
|
51
51
|
basePath;
|
|
52
|
+
/**
|
|
53
|
+
* override server index
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof Configuration
|
|
57
|
+
*/
|
|
58
|
+
serverIndex;
|
|
52
59
|
/**
|
|
53
60
|
* base options for axios calls
|
|
54
61
|
*
|
|
@@ -70,6 +77,7 @@ class Configuration {
|
|
|
70
77
|
this.password = param.password;
|
|
71
78
|
this.accessToken = param.accessToken;
|
|
72
79
|
this.basePath = param.basePath;
|
|
80
|
+
this.serverIndex = param.serverIndex;
|
|
73
81
|
this.baseOptions = param.baseOptions;
|
|
74
82
|
this.formDataCtor = param.formDataCtor;
|
|
75
83
|
}
|
|
@@ -20,5 +20,7 @@ exports.CompetitiveSummaryIncludedData = void 0;
|
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
|
22
22
|
exports.CompetitiveSummaryIncludedData = {
|
|
23
|
-
FeaturedBuyingOptions: 'featuredBuyingOptions'
|
|
23
|
+
FeaturedBuyingOptions: 'featuredBuyingOptions',
|
|
24
|
+
ReferencePrices: 'referencePrices',
|
|
25
|
+
LowestPricedOffers: 'lowestPricedOffers'
|
|
24
26
|
};
|
|
@@ -39,12 +39,16 @@ __exportStar(require("./get-featured-offer-expected-price-batch-request"), expor
|
|
|
39
39
|
__exportStar(require("./get-featured-offer-expected-price-batch-response"), exports);
|
|
40
40
|
__exportStar(require("./http-method"), exports);
|
|
41
41
|
__exportStar(require("./http-status-line"), exports);
|
|
42
|
+
__exportStar(require("./lowest-priced-offer"), exports);
|
|
43
|
+
__exportStar(require("./lowest-priced-offers-input"), exports);
|
|
42
44
|
__exportStar(require("./model-error"), exports);
|
|
43
45
|
__exportStar(require("./money-type"), exports);
|
|
44
46
|
__exportStar(require("./offer"), exports);
|
|
45
47
|
__exportStar(require("./offer-identifier"), exports);
|
|
46
48
|
__exportStar(require("./points"), exports);
|
|
47
49
|
__exportStar(require("./price"), exports);
|
|
50
|
+
__exportStar(require("./prime-details"), exports);
|
|
51
|
+
__exportStar(require("./reference-price"), exports);
|
|
48
52
|
__exportStar(require("./segment-details"), exports);
|
|
49
53
|
__exportStar(require("./segmented-featured-offer"), exports);
|
|
50
54
|
__exportStar(require("./segmented-featured-offer-all-of"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,19 @@
|
|
|
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.LowestPricedOffersInputOfferTypeEnum = void 0;
|
|
17
|
+
exports.LowestPricedOffersInputOfferTypeEnum = {
|
|
18
|
+
Consumer: 'CONSUMER'
|
|
19
|
+
};
|
|
@@ -13,3 +13,19 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OfferSubConditionEnum = void 0;
|
|
17
|
+
exports.OfferSubConditionEnum = {
|
|
18
|
+
New: 'New',
|
|
19
|
+
Mint: 'Mint',
|
|
20
|
+
VeryGood: 'VeryGood',
|
|
21
|
+
Good: 'Good',
|
|
22
|
+
Acceptable: 'Acceptable',
|
|
23
|
+
Poor: 'Poor',
|
|
24
|
+
Club: 'Club',
|
|
25
|
+
Oem: 'OEM',
|
|
26
|
+
Warranty: 'Warranty',
|
|
27
|
+
RefurbishedWarranty: 'RefurbishedWarranty',
|
|
28
|
+
Refurbished: 'Refurbished',
|
|
29
|
+
OpenBox: 'OpenBox',
|
|
30
|
+
Other: 'Other'
|
|
31
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
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.PrimeDetailsEligibilityEnum = void 0;
|
|
17
|
+
exports.PrimeDetailsEligibilityEnum = {
|
|
18
|
+
National: 'NATIONAL',
|
|
19
|
+
Regional: 'REGIONAL',
|
|
20
|
+
None: 'NONE'
|
|
21
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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,7 +16,7 @@ import globalAxios from 'axios';
|
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { BASE_PATH, BaseAPI } from '../base';
|
|
19
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
21
|
* ProductPricingApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -54,7 +54,7 @@ export const ProductPricingApiAxiosParamCreator = function (configuration) {
|
|
|
54
54
|
},
|
|
55
55
|
/**
|
|
56
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 may change, and different offers may be featured based on other factors, including 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 were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
57
|
-
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody
|
|
57
|
+
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
|
|
58
58
|
* @param {*} [options] Override http request option.
|
|
59
59
|
* @throws {RequiredError}
|
|
60
60
|
*/
|
|
@@ -98,17 +98,21 @@ export const ProductPricingApiFp = function (configuration) {
|
|
|
98
98
|
*/
|
|
99
99
|
async getCompetitiveSummary(requests, options) {
|
|
100
100
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompetitiveSummary(requests, options);
|
|
101
|
-
|
|
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);
|
|
102
104
|
},
|
|
103
105
|
/**
|
|
104
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 may change, and different offers may be featured based on other factors, including 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 were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
105
|
-
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody
|
|
107
|
+
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
|
|
106
108
|
* @param {*} [options] Override http request option.
|
|
107
109
|
* @throws {RequiredError}
|
|
108
110
|
*/
|
|
109
111
|
async getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options) {
|
|
110
112
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody, options);
|
|
111
|
-
|
|
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);
|
|
112
116
|
},
|
|
113
117
|
};
|
|
114
118
|
};
|
|
@@ -37,7 +37,7 @@ export class BaseAPI {
|
|
|
37
37
|
this.axios = axios;
|
|
38
38
|
if (configuration) {
|
|
39
39
|
this.configuration = configuration;
|
|
40
|
-
this.basePath = configuration.basePath
|
|
40
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -56,3 +56,8 @@ export class RequiredError extends Error {
|
|
|
56
56
|
this.name = "RequiredError";
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export const operationServerMap = {};
|
|
@@ -127,7 +127,7 @@ export const toPathString = function (url) {
|
|
|
127
127
|
*/
|
|
128
128
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
129
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
130
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
131
131
|
return axios.request(axiosRequestArgs);
|
|
132
132
|
};
|
|
133
133
|
};
|
|
@@ -46,6 +46,13 @@ export class Configuration {
|
|
|
46
46
|
* @memberof Configuration
|
|
47
47
|
*/
|
|
48
48
|
basePath;
|
|
49
|
+
/**
|
|
50
|
+
* override server index
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
serverIndex;
|
|
49
56
|
/**
|
|
50
57
|
* base options for axios calls
|
|
51
58
|
*
|
|
@@ -67,6 +74,7 @@ export class Configuration {
|
|
|
67
74
|
this.password = param.password;
|
|
68
75
|
this.accessToken = param.accessToken;
|
|
69
76
|
this.basePath = param.basePath;
|
|
77
|
+
this.serverIndex = param.serverIndex;
|
|
70
78
|
this.baseOptions = param.baseOptions;
|
|
71
79
|
this.formDataCtor = param.formDataCtor;
|
|
72
80
|
}
|
|
@@ -17,5 +17,7 @@
|
|
|
17
17
|
* @enum {string}
|
|
18
18
|
*/
|
|
19
19
|
export const CompetitiveSummaryIncludedData = {
|
|
20
|
-
FeaturedBuyingOptions: 'featuredBuyingOptions'
|
|
20
|
+
FeaturedBuyingOptions: 'featuredBuyingOptions',
|
|
21
|
+
ReferencePrices: 'referencePrices',
|
|
22
|
+
LowestPricedOffers: 'lowestPricedOffers'
|
|
21
23
|
};
|
|
@@ -23,12 +23,16 @@ export * from './get-featured-offer-expected-price-batch-request';
|
|
|
23
23
|
export * from './get-featured-offer-expected-price-batch-response';
|
|
24
24
|
export * from './http-method';
|
|
25
25
|
export * from './http-status-line';
|
|
26
|
+
export * from './lowest-priced-offer';
|
|
27
|
+
export * from './lowest-priced-offers-input';
|
|
26
28
|
export * from './model-error';
|
|
27
29
|
export * from './money-type';
|
|
28
30
|
export * from './offer';
|
|
29
31
|
export * from './offer-identifier';
|
|
30
32
|
export * from './points';
|
|
31
33
|
export * from './price';
|
|
34
|
+
export * from './prime-details';
|
|
35
|
+
export * from './reference-price';
|
|
32
36
|
export * from './segment-details';
|
|
33
37
|
export * from './segmented-featured-offer';
|
|
34
38
|
export * from './segmented-featured-offer-all-of';
|
|
@@ -0,0 +1,14 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,16 @@
|
|
|
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 const LowestPricedOffersInputOfferTypeEnum = {
|
|
15
|
+
Consumer: 'CONSUMER'
|
|
16
|
+
};
|
|
@@ -11,4 +11,18 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
export {
|
|
14
|
+
export const OfferSubConditionEnum = {
|
|
15
|
+
New: 'New',
|
|
16
|
+
Mint: 'Mint',
|
|
17
|
+
VeryGood: 'VeryGood',
|
|
18
|
+
Good: 'Good',
|
|
19
|
+
Acceptable: 'Acceptable',
|
|
20
|
+
Poor: 'Poor',
|
|
21
|
+
Club: 'Club',
|
|
22
|
+
Oem: 'OEM',
|
|
23
|
+
Warranty: 'Warranty',
|
|
24
|
+
RefurbishedWarranty: 'RefurbishedWarranty',
|
|
25
|
+
Refurbished: 'Refurbished',
|
|
26
|
+
OpenBox: 'OpenBox',
|
|
27
|
+
Other: 'Other'
|
|
28
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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 const PrimeDetailsEligibilityEnum = {
|
|
15
|
+
National: 'NATIONAL',
|
|
16
|
+
Regional: 'REGIONAL',
|
|
17
|
+
None: 'NONE'
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
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 {};
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
|
-
import type { AxiosPromise, AxiosInstance,
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
16
|
-
import { CompetitiveSummaryBatchRequest } from '../models';
|
|
17
|
-
import { CompetitiveSummaryBatchResponse } from '../models';
|
|
18
|
-
import { GetFeaturedOfferExpectedPriceBatchRequest } from '../models';
|
|
19
|
-
import { GetFeaturedOfferExpectedPriceBatchResponse } from '../models';
|
|
15
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
16
|
+
import type { CompetitiveSummaryBatchRequest } from '../models';
|
|
17
|
+
import type { CompetitiveSummaryBatchResponse } from '../models';
|
|
18
|
+
import type { GetFeaturedOfferExpectedPriceBatchRequest } from '../models';
|
|
19
|
+
import type { GetFeaturedOfferExpectedPriceBatchResponse } from '../models';
|
|
20
20
|
/**
|
|
21
21
|
* ProductPricingApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -28,14 +28,14 @@ export declare const ProductPricingApiAxiosParamCreator: (configuration?: Config
|
|
|
28
28
|
* @param {*} [options] Override http request option.
|
|
29
29
|
* @throws {RequiredError}
|
|
30
30
|
*/
|
|
31
|
-
getCompetitiveSummary: (requests: CompetitiveSummaryBatchRequest, options?:
|
|
31
|
+
getCompetitiveSummary: (requests: CompetitiveSummaryBatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
32
|
/**
|
|
33
33
|
* 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 may change, and different offers may be featured based on other factors, including 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 were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
34
|
-
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody
|
|
34
|
+
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
36
36
|
* @throws {RequiredError}
|
|
37
37
|
*/
|
|
38
|
-
getFeaturedOfferExpectedPriceBatch: (getFeaturedOfferExpectedPriceBatchRequestBody: GetFeaturedOfferExpectedPriceBatchRequest, options?:
|
|
38
|
+
getFeaturedOfferExpectedPriceBatch: (getFeaturedOfferExpectedPriceBatchRequestBody: GetFeaturedOfferExpectedPriceBatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* ProductPricingApi - functional programming interface
|
|
@@ -48,14 +48,14 @@ export declare const ProductPricingApiFp: (configuration?: Configuration) => {
|
|
|
48
48
|
* @param {*} [options] Override http request option.
|
|
49
49
|
* @throws {RequiredError}
|
|
50
50
|
*/
|
|
51
|
-
getCompetitiveSummary(requests: CompetitiveSummaryBatchRequest, options?:
|
|
51
|
+
getCompetitiveSummary(requests: CompetitiveSummaryBatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompetitiveSummaryBatchResponse>>;
|
|
52
52
|
/**
|
|
53
53
|
* 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 may change, and different offers may be featured based on other factors, including 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 were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
54
|
-
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody
|
|
54
|
+
* @param {GetFeaturedOfferExpectedPriceBatchRequest} getFeaturedOfferExpectedPriceBatchRequestBody The batch of `getFeaturedOfferExpectedPrice` requests.
|
|
55
55
|
* @param {*} [options] Override http request option.
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
*/
|
|
58
|
-
getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody: GetFeaturedOfferExpectedPriceBatchRequest, options?:
|
|
58
|
+
getFeaturedOfferExpectedPriceBatch(getFeaturedOfferExpectedPriceBatchRequestBody: GetFeaturedOfferExpectedPriceBatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFeaturedOfferExpectedPriceBatchResponse>>;
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
61
|
* ProductPricingApi - factory interface
|
|
@@ -68,14 +68,14 @@ export declare const ProductPricingApiFactory: (configuration?: Configuration, b
|
|
|
68
68
|
* @param {*} [options] Override http request option.
|
|
69
69
|
* @throws {RequiredError}
|
|
70
70
|
*/
|
|
71
|
-
getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?:
|
|
71
|
+
getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompetitiveSummaryBatchResponse>;
|
|
72
72
|
/**
|
|
73
73
|
* 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 may change, and different offers may be featured based on other factors, including 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 were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
74
74
|
* @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
|
|
75
75
|
* @param {*} [options] Override http request option.
|
|
76
76
|
* @throws {RequiredError}
|
|
77
77
|
*/
|
|
78
|
-
getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?:
|
|
78
|
+
getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFeaturedOfferExpectedPriceBatchResponse>;
|
|
79
79
|
};
|
|
80
80
|
/**
|
|
81
81
|
* Request parameters for getCompetitiveSummary operation in ProductPricingApi.
|
|
@@ -97,7 +97,7 @@ export interface ProductPricingApiGetCompetitiveSummaryRequest {
|
|
|
97
97
|
*/
|
|
98
98
|
export interface ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* The batch of `getFeaturedOfferExpectedPrice` requests.
|
|
101
101
|
* @type {GetFeaturedOfferExpectedPriceBatchRequest}
|
|
102
102
|
* @memberof ProductPricingApiGetFeaturedOfferExpectedPriceBatch
|
|
103
103
|
*/
|
|
@@ -117,7 +117,7 @@ export declare class ProductPricingApi extends BaseAPI {
|
|
|
117
117
|
* @throws {RequiredError}
|
|
118
118
|
* @memberof ProductPricingApi
|
|
119
119
|
*/
|
|
120
|
-
getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?:
|
|
120
|
+
getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CompetitiveSummaryBatchResponse, any>>;
|
|
121
121
|
/**
|
|
122
122
|
* 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 may change, and different offers may be featured based on other factors, including 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 were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
123
123
|
* @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
|
|
@@ -125,5 +125,5 @@ export declare class ProductPricingApi extends BaseAPI {
|
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
* @memberof ProductPricingApi
|
|
127
127
|
*/
|
|
128
|
-
getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?:
|
|
128
|
+
getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetFeaturedOfferExpectedPriceBatchResponse, any>>;
|
|
129
129
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
|
-
import type { AxiosInstance,
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface RequestArgs {
|
|
31
31
|
url: string;
|
|
32
|
-
options:
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -52,3 +52,15 @@ export declare class RequiredError extends Error {
|
|
|
52
52
|
field: string;
|
|
53
53
|
constructor(field: string, msg?: string);
|
|
54
54
|
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export interface ConfigurationParameters {
|
|
|
15
15
|
password?: string;
|
|
16
16
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
17
|
basePath?: string;
|
|
18
|
+
serverIndex?: number;
|
|
18
19
|
baseOptions?: any;
|
|
19
20
|
formDataCtor?: new () => any;
|
|
20
21
|
}
|
|
@@ -53,6 +54,13 @@ export declare class Configuration {
|
|
|
53
54
|
* @memberof Configuration
|
|
54
55
|
*/
|
|
55
56
|
basePath?: string;
|
|
57
|
+
/**
|
|
58
|
+
* override server index
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Configuration
|
|
62
|
+
*/
|
|
63
|
+
serverIndex?: number;
|
|
56
64
|
/**
|
|
57
65
|
* base options for axios calls
|
|
58
66
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { HttpMethod } from './http-method';
|
|
12
|
+
import type { HttpMethod } from './http-method';
|
|
13
13
|
/**
|
|
14
14
|
* The common properties for individual requests within a batch.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { HttpStatusLine } from './http-status-line';
|
|
12
|
+
import type { HttpStatusLine } from './http-status-line';
|
|
13
13
|
/**
|
|
14
14
|
* The common properties for responses to individual requests within a batch.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CompetitiveSummaryRequest } from './competitive-summary-request';
|
|
12
|
+
import type { CompetitiveSummaryRequest } from './competitive-summary-request';
|
|
13
13
|
/**
|
|
14
14
|
* The `competitiveSummary` batch request data.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CompetitiveSummaryResponse } from './competitive-summary-response';
|
|
12
|
+
import type { CompetitiveSummaryResponse } from './competitive-summary-response';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema of the `competitiveSummaryBatch` operation.
|
|
15
15
|
* @export
|
|
@@ -16,5 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const CompetitiveSummaryIncludedData: {
|
|
18
18
|
readonly FeaturedBuyingOptions: "featuredBuyingOptions";
|
|
19
|
+
readonly ReferencePrices: "referencePrices";
|
|
20
|
+
readonly LowestPricedOffers: "lowestPricedOffers";
|
|
19
21
|
};
|
|
20
22
|
export type CompetitiveSummaryIncludedData = typeof CompetitiveSummaryIncludedData[keyof typeof CompetitiveSummaryIncludedData];
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CompetitiveSummaryIncludedData } from './competitive-summary-included-data';
|
|
13
|
-
import { HttpMethod } from './http-method';
|
|
12
|
+
import type { CompetitiveSummaryIncludedData } from './competitive-summary-included-data';
|
|
13
|
+
import type { HttpMethod } from './http-method';
|
|
14
|
+
import type { LowestPricedOffersInput } from './lowest-priced-offers-input';
|
|
14
15
|
/**
|
|
15
16
|
* An individual `competitiveSummary` request for an ASIN and `marketplaceId`.
|
|
16
17
|
* @export
|
|
@@ -35,6 +36,12 @@ export interface CompetitiveSummaryRequest {
|
|
|
35
36
|
* @memberof CompetitiveSummaryRequest
|
|
36
37
|
*/
|
|
37
38
|
'includedData': Array<CompetitiveSummaryIncludedData>;
|
|
39
|
+
/**
|
|
40
|
+
* The list of `lowestPricedOffersInput` parameters used to build the `lowestPricedOffers` in the response. This attribute is valid only if `lowestPricedOffers` is requested in `includedData`.
|
|
41
|
+
* @type {Array<LowestPricedOffersInput>}
|
|
42
|
+
* @memberof CompetitiveSummaryRequest
|
|
43
|
+
*/
|
|
44
|
+
'lowestPricedOffersInputs'?: Array<LowestPricedOffersInput>;
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
40
47
|
* @type {HttpMethod}
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import type { FeaturedBuyingOption } from './featured-buying-option';
|
|
13
|
+
import type { LowestPricedOffer } from './lowest-priced-offer';
|
|
14
|
+
import type { ReferencePrice } from './reference-price';
|
|
14
15
|
/**
|
|
15
16
|
* The `competitiveSummaryResponse` body for a requested ASIN and `marketplaceId`.
|
|
16
17
|
* @export
|
|
@@ -36,9 +37,21 @@ export interface CompetitiveSummaryResponseBody {
|
|
|
36
37
|
*/
|
|
37
38
|
'featuredBuyingOptions'?: Array<FeaturedBuyingOption>;
|
|
38
39
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {
|
|
40
|
+
* A list of the lowest priced offers for the given ASIN `marketplaceId` combination.
|
|
41
|
+
* @type {Array<LowestPricedOffer>}
|
|
41
42
|
* @memberof CompetitiveSummaryResponseBody
|
|
42
43
|
*/
|
|
43
|
-
'
|
|
44
|
+
'lowestPricedOffers'?: Array<LowestPricedOffer>;
|
|
45
|
+
/**
|
|
46
|
+
* A list of reference prices for the given ASIN `marketplaceId` combination.
|
|
47
|
+
* @type {Array<ReferencePrice>}
|
|
48
|
+
* @memberof CompetitiveSummaryResponseBody
|
|
49
|
+
*/
|
|
50
|
+
'referencePrices'?: Array<ReferencePrice>;
|
|
51
|
+
/**
|
|
52
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
53
|
+
* @type {Array<Error>}
|
|
54
|
+
* @memberof CompetitiveSummaryResponseBody
|
|
55
|
+
*/
|
|
56
|
+
'errors'?: Array<Error>;
|
|
44
57
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CompetitiveSummaryResponseBody } from './competitive-summary-response-body';
|
|
13
|
-
import { HttpStatusLine } from './http-status-line';
|
|
12
|
+
import type { CompetitiveSummaryResponseBody } from './competitive-summary-response-body';
|
|
13
|
+
import type { HttpStatusLine } from './http-status-line';
|
|
14
14
|
/**
|
|
15
15
|
* The response for the individual `competitiveSummary` request in the batch operation.
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { SegmentedFeaturedOffer } from './segmented-featured-offer';
|
|
12
|
+
import type { SegmentedFeaturedOffer } from './segmented-featured-offer';
|
|
13
13
|
/**
|
|
14
14
|
* Describes a featured buying option which includes a list of segmented featured offers for a particular item condition.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { BatchRequest } from './batch-request';
|
|
13
|
-
import { FeaturedOfferExpectedPriceRequestParams } from './featured-offer-expected-price-request-params';
|
|
12
|
+
import type { BatchRequest } from './batch-request';
|
|
13
|
+
import type { FeaturedOfferExpectedPriceRequestParams } from './featured-offer-expected-price-request-params';
|
|
14
14
|
/**
|
|
15
15
|
* @type FeaturedOfferExpectedPriceRequest
|
|
16
16
|
* An individual featured offer expected price request for a particular SKU.
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOfferExpectedPriceRequestParams } from './featured-offer-expected-price-request-params';
|
|
13
|
-
import { FeaturedOfferExpectedPriceResponseBody } from './featured-offer-expected-price-response-body';
|
|
12
|
+
import type { FeaturedOfferExpectedPriceRequestParams } from './featured-offer-expected-price-request-params';
|
|
13
|
+
import type { FeaturedOfferExpectedPriceResponseBody } from './featured-offer-expected-price-response-body';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOfferExpectedPriceResult } from './featured-offer-expected-price-result';
|
|
13
|
-
import { OfferIdentifier } from './offer-identifier';
|
|
12
|
+
import type { FeaturedOfferExpectedPriceResult } from './featured-offer-expected-price-result';
|
|
13
|
+
import type { OfferIdentifier } from './offer-identifier';
|
|
14
14
|
/**
|
|
15
15
|
* The featured offer expected price response data for a requested SKU.
|
|
16
16
|
* @export
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { BatchResponse } from './batch-response';
|
|
13
|
-
import { FeaturedOfferExpectedPriceResponseAllOf } from './featured-offer-expected-price-response-all-of';
|
|
12
|
+
import type { BatchResponse } from './batch-response';
|
|
13
|
+
import type { FeaturedOfferExpectedPriceResponseAllOf } from './featured-offer-expected-price-response-all-of';
|
|
14
14
|
/**
|
|
15
15
|
* @type FeaturedOfferExpectedPriceResponse
|
|
16
|
+
* Schema for an individual featured offer expected price response.
|
|
16
17
|
* @export
|
|
17
18
|
*/
|
|
18
19
|
export type FeaturedOfferExpectedPriceResponse = BatchResponse & FeaturedOfferExpectedPriceResponseAllOf;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOffer } from './featured-offer';
|
|
13
|
-
import { FeaturedOfferExpectedPrice } from './featured-offer-expected-price';
|
|
12
|
+
import type { FeaturedOffer } from './featured-offer';
|
|
13
|
+
import type { FeaturedOfferExpectedPrice } from './featured-offer-expected-price';
|
|
14
14
|
/**
|
|
15
15
|
* The featured offer expected price result data for the requested offer.
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { MoneyType } from './money-type';
|
|
13
|
-
import { Points } from './points';
|
|
12
|
+
import type { MoneyType } from './money-type';
|
|
13
|
+
import type { Points } from './points';
|
|
14
14
|
/**
|
|
15
15
|
* The item price at or below which the target offer may be featured.
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { SegmentDetails } from './segment-details';
|
|
12
|
+
import type { SegmentDetails } from './segment-details';
|
|
13
13
|
/**
|
|
14
14
|
* Describes the segment in which the offer is featured.
|
|
15
15
|
* @export
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Condition } from './condition';
|
|
13
|
-
import { OfferIdentifier } from './offer-identifier';
|
|
14
|
-
import { Price } from './price';
|
|
12
|
+
import type { Condition } from './condition';
|
|
13
|
+
import type { OfferIdentifier } from './offer-identifier';
|
|
14
|
+
import type { Price } from './price';
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Schema for `currentFeaturedOffer` or `competingFeaturedOffer`.
|
|
17
17
|
* @export
|
|
18
18
|
* @interface FeaturedOffer
|
|
19
19
|
*/
|
package/dist/types/src/api-model/models/get-featured-offer-expected-price-batch-request.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOfferExpectedPriceRequest } from './featured-offer-expected-price-request';
|
|
12
|
+
import type { FeaturedOfferExpectedPriceRequest } from './featured-offer-expected-price-request';
|
|
13
13
|
/**
|
|
14
14
|
* The request body for the `getFeaturedOfferExpectedPriceBatch` operation.
|
|
15
15
|
* @export
|
package/dist/types/src/api-model/models/get-featured-offer-expected-price-batch-response.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOfferExpectedPriceResponse } from './featured-offer-expected-price-response';
|
|
12
|
+
import type { FeaturedOfferExpectedPriceResponse } from './featured-offer-expected-price-response';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the `getFeaturedOfferExpectedPriceBatch` operation.
|
|
15
15
|
* @export
|
|
@@ -23,12 +23,16 @@ export * from './get-featured-offer-expected-price-batch-request';
|
|
|
23
23
|
export * from './get-featured-offer-expected-price-batch-response';
|
|
24
24
|
export * from './http-method';
|
|
25
25
|
export * from './http-status-line';
|
|
26
|
+
export * from './lowest-priced-offer';
|
|
27
|
+
export * from './lowest-priced-offers-input';
|
|
26
28
|
export * from './model-error';
|
|
27
29
|
export * from './money-type';
|
|
28
30
|
export * from './offer';
|
|
29
31
|
export * from './offer-identifier';
|
|
30
32
|
export * from './points';
|
|
31
33
|
export * from './price';
|
|
34
|
+
export * from './prime-details';
|
|
35
|
+
export * from './reference-price';
|
|
32
36
|
export * from './segment-details';
|
|
33
37
|
export * from './segmented-featured-offer';
|
|
34
38
|
export * from './segmented-featured-offer-all-of';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Pricing
|
|
3
|
+
* 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).
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022-05-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LowestPricedOffersInput } from './lowest-priced-offers-input';
|
|
13
|
+
import type { Offer } from './offer';
|
|
14
|
+
/**
|
|
15
|
+
* The lowest priced offer for the requested item condition and offer type.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface LowestPricedOffer
|
|
18
|
+
*/
|
|
19
|
+
export interface LowestPricedOffer {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {LowestPricedOffersInput}
|
|
23
|
+
* @memberof LowestPricedOffer
|
|
24
|
+
*/
|
|
25
|
+
'lowestPricedOffersInput': LowestPricedOffersInput;
|
|
26
|
+
/**
|
|
27
|
+
* A list of up to 20 lowest priced offers that match the criteria specified in the `lowestPricedOffersInput` parameter.
|
|
28
|
+
* @type {Array<Offer>}
|
|
29
|
+
* @memberof LowestPricedOffer
|
|
30
|
+
*/
|
|
31
|
+
'offers': Array<Offer>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Pricing
|
|
3
|
+
* 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).
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022-05-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Condition } from './condition';
|
|
13
|
+
/**
|
|
14
|
+
* The input required for building the `LowestPricedOffers` data in the response.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LowestPricedOffersInput
|
|
17
|
+
*/
|
|
18
|
+
export interface LowestPricedOffersInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Condition}
|
|
22
|
+
* @memberof LowestPricedOffersInput
|
|
23
|
+
*/
|
|
24
|
+
'itemCondition': Condition;
|
|
25
|
+
/**
|
|
26
|
+
* The type of offers requested for the `LowestPricedOffers`. The `offerType` options are `Consumer` or `Business`. The default `offerType` is `Consumer`.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LowestPricedOffersInput
|
|
29
|
+
*/
|
|
30
|
+
'offerType': LowestPricedOffersInputOfferTypeEnum;
|
|
31
|
+
}
|
|
32
|
+
export declare const LowestPricedOffersInputOfferTypeEnum: {
|
|
33
|
+
readonly Consumer: "CONSUMER";
|
|
34
|
+
};
|
|
35
|
+
export type LowestPricedOffersInputOfferTypeEnum = typeof LowestPricedOffersInputOfferTypeEnum[keyof typeof LowestPricedOffersInputOfferTypeEnum];
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FulfillmentType } from './fulfillment-type';
|
|
12
|
+
import type { FulfillmentType } from './fulfillment-type';
|
|
13
13
|
/**
|
|
14
14
|
* Identifies an offer from a particular seller on an ASIN.
|
|
15
15
|
* @export
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Condition } from './condition';
|
|
13
|
-
import { FulfillmentType } from './fulfillment-type';
|
|
14
|
-
import { MoneyType } from './money-type';
|
|
15
|
-
import { Points } from './points';
|
|
16
|
-
import {
|
|
12
|
+
import type { Condition } from './condition';
|
|
13
|
+
import type { FulfillmentType } from './fulfillment-type';
|
|
14
|
+
import type { MoneyType } from './money-type';
|
|
15
|
+
import type { Points } from './points';
|
|
16
|
+
import type { PrimeDetails } from './prime-details';
|
|
17
|
+
import type { ShippingOption } from './shipping-option';
|
|
17
18
|
/**
|
|
18
19
|
* The offer data of a product.
|
|
19
20
|
* @export
|
|
@@ -32,6 +33,12 @@ export interface Offer {
|
|
|
32
33
|
* @memberof Offer
|
|
33
34
|
*/
|
|
34
35
|
'condition': Condition;
|
|
36
|
+
/**
|
|
37
|
+
* The item subcondition for the offer.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Offer
|
|
40
|
+
*/
|
|
41
|
+
'subCondition'?: OfferSubConditionEnum;
|
|
35
42
|
/**
|
|
36
43
|
*
|
|
37
44
|
* @type {FulfillmentType}
|
|
@@ -56,4 +63,26 @@ export interface Offer {
|
|
|
56
63
|
* @memberof Offer
|
|
57
64
|
*/
|
|
58
65
|
'points'?: Points;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {PrimeDetails}
|
|
69
|
+
* @memberof Offer
|
|
70
|
+
*/
|
|
71
|
+
'primeDetails'?: PrimeDetails;
|
|
59
72
|
}
|
|
73
|
+
export declare const OfferSubConditionEnum: {
|
|
74
|
+
readonly New: "New";
|
|
75
|
+
readonly Mint: "Mint";
|
|
76
|
+
readonly VeryGood: "VeryGood";
|
|
77
|
+
readonly Good: "Good";
|
|
78
|
+
readonly Acceptable: "Acceptable";
|
|
79
|
+
readonly Poor: "Poor";
|
|
80
|
+
readonly Club: "Club";
|
|
81
|
+
readonly Oem: "OEM";
|
|
82
|
+
readonly Warranty: "Warranty";
|
|
83
|
+
readonly RefurbishedWarranty: "RefurbishedWarranty";
|
|
84
|
+
readonly Refurbished: "Refurbished";
|
|
85
|
+
readonly OpenBox: "OpenBox";
|
|
86
|
+
readonly Other: "Other";
|
|
87
|
+
};
|
|
88
|
+
export type OfferSubConditionEnum = typeof OfferSubConditionEnum[keyof typeof OfferSubConditionEnum];
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { MoneyType } from './money-type';
|
|
12
|
+
import type { MoneyType } from './money-type';
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* The number of Amazon Points offered with the purchase of an item, and their monetary value.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface Points
|
|
17
17
|
*/
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { MoneyType } from './money-type';
|
|
13
|
-
import { Points } from './points';
|
|
12
|
+
import type { MoneyType } from './money-type';
|
|
13
|
+
import type { Points } from './points';
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Schema for item\'s price information, including listing price, shipping price, and Amazon points.
|
|
16
16
|
* @export
|
|
17
17
|
* @interface Price
|
|
18
18
|
*/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Pricing
|
|
3
|
+
* 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).
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022-05-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Amazon Prime details.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PrimeDetails
|
|
16
|
+
*/
|
|
17
|
+
export interface PrimeDetails {
|
|
18
|
+
/**
|
|
19
|
+
* Indicates whether the offer is an Amazon Prime offer.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PrimeDetails
|
|
22
|
+
*/
|
|
23
|
+
'eligibility': PrimeDetailsEligibilityEnum;
|
|
24
|
+
}
|
|
25
|
+
export declare const PrimeDetailsEligibilityEnum: {
|
|
26
|
+
readonly National: "NATIONAL";
|
|
27
|
+
readonly Regional: "REGIONAL";
|
|
28
|
+
readonly None: "NONE";
|
|
29
|
+
};
|
|
30
|
+
export type PrimeDetailsEligibilityEnum = typeof PrimeDetailsEligibilityEnum[keyof typeof PrimeDetailsEligibilityEnum];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Pricing
|
|
3
|
+
* 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).
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022-05-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MoneyType } from './money-type';
|
|
13
|
+
/**
|
|
14
|
+
* The reference price for the given ASIN `marketplaceId` combination.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ReferencePrice
|
|
17
|
+
*/
|
|
18
|
+
export interface ReferencePrice {
|
|
19
|
+
/**
|
|
20
|
+
* The name of the reference price like `CompetitivePriceThreshold`.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ReferencePrice
|
|
23
|
+
*/
|
|
24
|
+
'name': string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {MoneyType}
|
|
28
|
+
* @memberof ReferencePrice
|
|
29
|
+
*/
|
|
30
|
+
'price': MoneyType;
|
|
31
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FeaturedOfferSegment } from './featured-offer-segment';
|
|
12
|
+
import type { FeaturedOfferSegment } from './featured-offer-segment';
|
|
13
13
|
/**
|
|
14
14
|
* The list of segment information in which the offer is featured.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Offer } from './offer';
|
|
13
|
-
import { SegmentedFeaturedOfferAllOf } from './segmented-featured-offer-all-of';
|
|
12
|
+
import type { Offer } from './offer';
|
|
13
|
+
import type { SegmentedFeaturedOfferAllOf } from './segmented-featured-offer-all-of';
|
|
14
14
|
/**
|
|
15
15
|
* @type SegmentedFeaturedOffer
|
|
16
16
|
* A product offer with segment information indicating where it\'s featured.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/product-pricing-api-2022-05-01",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the Product Pricing v2022-05-01 Use Case Guide.",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.3.0",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.0.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.0.9",
|
|
22
|
+
"axios": "^1.7.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"product pricing api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cce8c720364baf071322463e8e3ed29c322cc93a"
|
|
44
44
|
}
|