@sp-api-sdk/product-pricing-api-v0 3.1.4 → 3.1.6
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/api-model/api/product-pricing-api.js +0 -39
- package/dist/cjs/api-model/base.js +0 -19
- package/dist/cjs/api-model/common.js +0 -37
- package/dist/cjs/api-model/configuration.js +0 -17
- package/dist/cjs/api-model/models/condition-type.js +0 -2
- package/dist/cjs/api-model/models/customer-type.js +0 -2
- package/dist/cjs/api-model/models/fulfillment-channel-type.js +0 -2
- package/dist/cjs/api-model/models/http-method.js +0 -2
- package/dist/cjs/api-model/models/item-condition.js +0 -2
- package/dist/cjs/api-model/models/offer-customer-type.js +0 -2
- package/dist/cjs/api-model/models/quantity-discount-type.js +0 -2
- package/dist/es/api-model/api/product-pricing-api.js +0 -39
- package/dist/es/api-model/base.js +0 -19
- package/dist/es/api-model/common.js +0 -37
- package/dist/es/api-model/configuration.js +0 -17
- package/dist/es/api-model/models/condition-type.js +0 -2
- package/dist/es/api-model/models/customer-type.js +0 -2
- package/dist/es/api-model/models/fulfillment-channel-type.js +0 -2
- package/dist/es/api-model/models/http-method.js +0 -2
- package/dist/es/api-model/models/item-condition.js +0 -2
- package/dist/es/api-model/models/offer-customer-type.js +0 -2
- package/dist/es/api-model/models/quantity-discount-type.js +0 -2
- package/dist/types/api-model/api/product-pricing-api.d.ts +0 -93
- package/dist/types/api-model/base.d.ts +0 -24
- package/dist/types/api-model/common.d.ts +0 -37
- package/dist/types/api-model/configuration.d.ts +0 -17
- package/dist/types/api-model/models/asinidentifier.d.ts +0 -6
- package/dist/types/api-model/models/batch-offers-request-params.d.ts +0 -14
- package/dist/types/api-model/models/batch-offers-response.d.ts +0 -17
- package/dist/types/api-model/models/batch-request.d.ts +0 -11
- package/dist/types/api-model/models/buy-box-price-type.d.ts +0 -38
- package/dist/types/api-model/models/competitive-price-type.d.ts +0 -29
- package/dist/types/api-model/models/competitive-pricing-type.d.ts +0 -11
- package/dist/types/api-model/models/condition-type.d.ts +0 -2
- package/dist/types/api-model/models/customer-type.d.ts +0 -2
- package/dist/types/api-model/models/detailed-shipping-time-type.d.ts +0 -10
- package/dist/types/api-model/models/errors.d.ts +0 -4
- package/dist/types/api-model/models/fulfillment-channel-type.d.ts +0 -2
- package/dist/types/api-model/models/get-item-offers-batch-request.d.ts +0 -4
- package/dist/types/api-model/models/get-item-offers-batch-response.d.ts +0 -4
- package/dist/types/api-model/models/get-listing-offers-batch-request.d.ts +0 -4
- package/dist/types/api-model/models/get-listing-offers-batch-response.d.ts +0 -4
- package/dist/types/api-model/models/get-offers-http-status-line.d.ts +0 -6
- package/dist/types/api-model/models/get-offers-response.d.ts +0 -9
- package/dist/types/api-model/models/get-offers-result.d.ts +0 -27
- package/dist/types/api-model/models/get-pricing-response.d.ts +0 -6
- package/dist/types/api-model/models/http-method.d.ts +0 -2
- package/dist/types/api-model/models/http-response-headers.d.ts +0 -6
- package/dist/types/api-model/models/identifier-type.d.ts +0 -12
- package/dist/types/api-model/models/item-condition.d.ts +0 -2
- package/dist/types/api-model/models/item-identifier.d.ts +0 -13
- package/dist/types/api-model/models/item-offers-request-params-all-of.d.ts +0 -7
- package/dist/types/api-model/models/item-offers-request-params.d.ts +0 -1
- package/dist/types/api-model/models/item-offers-request.d.ts +0 -1
- package/dist/types/api-model/models/item-offers-response-all-of.d.ts +0 -10
- package/dist/types/api-model/models/item-offers-response.d.ts +0 -1
- package/dist/types/api-model/models/listing-offers-request-params-all-of.d.ts +0 -7
- package/dist/types/api-model/models/listing-offers-request-params.d.ts +0 -1
- package/dist/types/api-model/models/listing-offers-request.d.ts +0 -1
- package/dist/types/api-model/models/listing-offers-response-all-of.d.ts +0 -10
- package/dist/types/api-model/models/listing-offers-response.d.ts +0 -1
- package/dist/types/api-model/models/lowest-price-type.d.ts +0 -38
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/dist/types/api-model/models/money-type.d.ts +0 -6
- package/dist/types/api-model/models/offer-count-type.d.ts +0 -11
- package/dist/types/api-model/models/offer-customer-type.d.ts +0 -2
- package/dist/types/api-model/models/offer-detail.d.ts +0 -58
- package/dist/types/api-model/models/offer-listing-count-type.d.ts +0 -6
- package/dist/types/api-model/models/offer-type.d.ts +0 -32
- package/dist/types/api-model/models/points.d.ts +0 -9
- package/dist/types/api-model/models/price-type.d.ts +0 -22
- package/dist/types/api-model/models/price.d.ts +0 -13
- package/dist/types/api-model/models/prime-information-type.d.ts +0 -6
- package/dist/types/api-model/models/product.d.ts +0 -20
- package/dist/types/api-model/models/quantity-discount-price-type.d.ts +0 -14
- package/dist/types/api-model/models/quantity-discount-type.d.ts +0 -2
- package/dist/types/api-model/models/sales-rank-type.d.ts +0 -6
- package/dist/types/api-model/models/seller-feedback-type.d.ts +0 -6
- package/dist/types/api-model/models/seller-skuidentifier.d.ts +0 -8
- package/dist/types/api-model/models/ships-from-type.d.ts +0 -6
- package/dist/types/api-model/models/summary.d.ts +0 -31
- package/package.json +25 -4
|
@@ -12,25 +12,16 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { RequiredError } from "./base";
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export const DUMMY_BASE_URL = 'https://example.com';
|
|
20
16
|
/**
|
|
21
17
|
*
|
|
22
18
|
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
19
|
*/
|
|
25
20
|
export const assertParamExists = function (functionName, paramName, paramValue) {
|
|
26
21
|
if (paramValue === null || paramValue === undefined) {
|
|
27
22
|
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
28
23
|
}
|
|
29
24
|
};
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
25
|
export const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
35
26
|
if (configuration && configuration.apiKey) {
|
|
36
27
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -39,19 +30,11 @@ export const setApiKeyToObject = async function (object, keyParamName, configura
|
|
|
39
30
|
object[keyParamName] = localVarApiKeyValue;
|
|
40
31
|
}
|
|
41
32
|
};
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
33
|
export const setBasicAuthToObject = function (object, configuration) {
|
|
47
34
|
if (configuration && (configuration.username || configuration.password)) {
|
|
48
35
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
49
36
|
}
|
|
50
37
|
};
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
38
|
export const setBearerAuthToObject = async function (object, configuration) {
|
|
56
39
|
if (configuration && configuration.accessToken) {
|
|
57
40
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
@@ -60,10 +43,6 @@ export const setBearerAuthToObject = async function (object, configuration) {
|
|
|
60
43
|
object["Authorization"] = "Bearer " + accessToken;
|
|
61
44
|
}
|
|
62
45
|
};
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @export
|
|
66
|
-
*/
|
|
67
46
|
export const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
68
47
|
if (configuration && configuration.accessToken) {
|
|
69
48
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
@@ -92,19 +71,11 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
92
71
|
}
|
|
93
72
|
}
|
|
94
73
|
}
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @export
|
|
98
|
-
*/
|
|
99
74
|
export const setSearchParams = function (url, ...objects) {
|
|
100
75
|
const searchParams = new URLSearchParams(url.search);
|
|
101
76
|
setFlattenedQueryParams(searchParams, objects);
|
|
102
77
|
url.search = searchParams.toString();
|
|
103
78
|
};
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @export
|
|
107
|
-
*/
|
|
108
79
|
export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
109
80
|
const nonString = typeof value !== 'string';
|
|
110
81
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
@@ -114,17 +85,9 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
|
|
|
114
85
|
? JSON.stringify(value !== undefined ? value : {})
|
|
115
86
|
: (value || "");
|
|
116
87
|
};
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @export
|
|
120
|
-
*/
|
|
121
88
|
export const toPathString = function (url) {
|
|
122
89
|
return url.pathname + url.search + url.hash;
|
|
123
90
|
};
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @export
|
|
127
|
-
*/
|
|
128
91
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
92
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
93
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
@@ -15,49 +15,32 @@ export class Configuration {
|
|
|
15
15
|
/**
|
|
16
16
|
* parameter for apiKey security
|
|
17
17
|
* @param name security name
|
|
18
|
-
* @memberof Configuration
|
|
19
18
|
*/
|
|
20
19
|
apiKey;
|
|
21
20
|
/**
|
|
22
21
|
* parameter for basic security
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof Configuration
|
|
26
22
|
*/
|
|
27
23
|
username;
|
|
28
24
|
/**
|
|
29
25
|
* parameter for basic security
|
|
30
|
-
*
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof Configuration
|
|
33
26
|
*/
|
|
34
27
|
password;
|
|
35
28
|
/**
|
|
36
29
|
* parameter for oauth2 security
|
|
37
30
|
* @param name security name
|
|
38
31
|
* @param scopes oauth2 scope
|
|
39
|
-
* @memberof Configuration
|
|
40
32
|
*/
|
|
41
33
|
accessToken;
|
|
42
34
|
/**
|
|
43
35
|
* override base path
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof Configuration
|
|
47
36
|
*/
|
|
48
37
|
basePath;
|
|
49
38
|
/**
|
|
50
39
|
* override server index
|
|
51
|
-
*
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof Configuration
|
|
54
40
|
*/
|
|
55
41
|
serverIndex;
|
|
56
42
|
/**
|
|
57
43
|
* base options for axios calls
|
|
58
|
-
*
|
|
59
|
-
* @type {any}
|
|
60
|
-
* @memberof Configuration
|
|
61
44
|
*/
|
|
62
45
|
baseOptions;
|
|
63
46
|
/**
|
|
@@ -21,7 +21,6 @@ import type { GetOffersResponse } from '../models';
|
|
|
21
21
|
import type { GetPricingResponse } from '../models';
|
|
22
22
|
/**
|
|
23
23
|
* ProductPricingApi - axios parameter creator
|
|
24
|
-
* @export
|
|
25
24
|
*/
|
|
26
25
|
export declare const ProductPricingApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
27
26
|
/**
|
|
@@ -84,7 +83,6 @@ export declare const ProductPricingApiAxiosParamCreator: (configuration?: Config
|
|
|
84
83
|
};
|
|
85
84
|
/**
|
|
86
85
|
* ProductPricingApi - functional programming interface
|
|
87
|
-
* @export
|
|
88
86
|
*/
|
|
89
87
|
export declare const ProductPricingApiFp: (configuration?: Configuration) => {
|
|
90
88
|
/**
|
|
@@ -147,7 +145,6 @@ export declare const ProductPricingApiFp: (configuration?: Configuration) => {
|
|
|
147
145
|
};
|
|
148
146
|
/**
|
|
149
147
|
* ProductPricingApi - factory interface
|
|
150
|
-
* @export
|
|
151
148
|
*/
|
|
152
149
|
export declare const ProductPricingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
153
150
|
/**
|
|
@@ -195,177 +192,120 @@ export declare const ProductPricingApiFactory: (configuration?: Configuration, b
|
|
|
195
192
|
};
|
|
196
193
|
/**
|
|
197
194
|
* Request parameters for getCompetitivePricing operation in ProductPricingApi.
|
|
198
|
-
* @export
|
|
199
|
-
* @interface ProductPricingApiGetCompetitivePricingRequest
|
|
200
195
|
*/
|
|
201
196
|
export interface ProductPricingApiGetCompetitivePricingRequest {
|
|
202
197
|
/**
|
|
203
198
|
* A marketplace identifier. Specifies the marketplace for which prices are returned.
|
|
204
|
-
* @type {string}
|
|
205
|
-
* @memberof ProductPricingApiGetCompetitivePricing
|
|
206
199
|
*/
|
|
207
200
|
readonly marketplaceId: string;
|
|
208
201
|
/**
|
|
209
202
|
* Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku.
|
|
210
|
-
* @type {'Asin' | 'Sku'}
|
|
211
|
-
* @memberof ProductPricingApiGetCompetitivePricing
|
|
212
203
|
*/
|
|
213
204
|
readonly itemType: GetCompetitivePricingItemTypeEnum;
|
|
214
205
|
/**
|
|
215
206
|
* A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace.
|
|
216
|
-
* @type {Array<string>}
|
|
217
|
-
* @memberof ProductPricingApiGetCompetitivePricing
|
|
218
207
|
*/
|
|
219
208
|
readonly asins?: Array<string>;
|
|
220
209
|
/**
|
|
221
210
|
* A list of up to twenty seller SKU values used to identify items in the given marketplace.
|
|
222
|
-
* @type {Array<string>}
|
|
223
|
-
* @memberof ProductPricingApiGetCompetitivePricing
|
|
224
211
|
*/
|
|
225
212
|
readonly skus?: Array<string>;
|
|
226
213
|
/**
|
|
227
214
|
* Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer.
|
|
228
|
-
* @type {'Consumer' | 'Business'}
|
|
229
|
-
* @memberof ProductPricingApiGetCompetitivePricing
|
|
230
215
|
*/
|
|
231
216
|
readonly customerType?: GetCompetitivePricingCustomerTypeEnum;
|
|
232
217
|
}
|
|
233
218
|
/**
|
|
234
219
|
* Request parameters for getItemOffers operation in ProductPricingApi.
|
|
235
|
-
* @export
|
|
236
|
-
* @interface ProductPricingApiGetItemOffersRequest
|
|
237
220
|
*/
|
|
238
221
|
export interface ProductPricingApiGetItemOffersRequest {
|
|
239
222
|
/**
|
|
240
223
|
* A marketplace identifier. Specifies the marketplace for which prices are returned.
|
|
241
|
-
* @type {string}
|
|
242
|
-
* @memberof ProductPricingApiGetItemOffers
|
|
243
224
|
*/
|
|
244
225
|
readonly marketplaceId: string;
|
|
245
226
|
/**
|
|
246
227
|
* Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club.
|
|
247
|
-
* @type {'New' | 'Used' | 'Collectible' | 'Refurbished' | 'Club'}
|
|
248
|
-
* @memberof ProductPricingApiGetItemOffers
|
|
249
228
|
*/
|
|
250
229
|
readonly itemCondition: GetItemOffersItemConditionEnum;
|
|
251
230
|
/**
|
|
252
231
|
* The Amazon Standard Identification Number (ASIN) of the item.
|
|
253
|
-
* @type {string}
|
|
254
|
-
* @memberof ProductPricingApiGetItemOffers
|
|
255
232
|
*/
|
|
256
233
|
readonly asin: string;
|
|
257
234
|
/**
|
|
258
235
|
* Indicates whether to request Consumer or Business offers. Default is Consumer.
|
|
259
|
-
* @type {'Consumer' | 'Business'}
|
|
260
|
-
* @memberof ProductPricingApiGetItemOffers
|
|
261
236
|
*/
|
|
262
237
|
readonly customerType?: GetItemOffersCustomerTypeEnum;
|
|
263
238
|
}
|
|
264
239
|
/**
|
|
265
240
|
* Request parameters for getItemOffersBatch operation in ProductPricingApi.
|
|
266
|
-
* @export
|
|
267
|
-
* @interface ProductPricingApiGetItemOffersBatchRequest
|
|
268
241
|
*/
|
|
269
242
|
export interface ProductPricingApiGetItemOffersBatchRequest {
|
|
270
243
|
/**
|
|
271
244
|
* The request associated with the `getItemOffersBatch` API call.
|
|
272
|
-
* @type {GetItemOffersBatchRequest}
|
|
273
|
-
* @memberof ProductPricingApiGetItemOffersBatch
|
|
274
245
|
*/
|
|
275
246
|
readonly getItemOffersBatchRequestBody: GetItemOffersBatchRequest;
|
|
276
247
|
}
|
|
277
248
|
/**
|
|
278
249
|
* Request parameters for getListingOffers operation in ProductPricingApi.
|
|
279
|
-
* @export
|
|
280
|
-
* @interface ProductPricingApiGetListingOffersRequest
|
|
281
250
|
*/
|
|
282
251
|
export interface ProductPricingApiGetListingOffersRequest {
|
|
283
252
|
/**
|
|
284
253
|
* A marketplace identifier. Specifies the marketplace for which prices are returned.
|
|
285
|
-
* @type {string}
|
|
286
|
-
* @memberof ProductPricingApiGetListingOffers
|
|
287
254
|
*/
|
|
288
255
|
readonly marketplaceId: string;
|
|
289
256
|
/**
|
|
290
257
|
* Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club.
|
|
291
|
-
* @type {'New' | 'Used' | 'Collectible' | 'Refurbished' | 'Club'}
|
|
292
|
-
* @memberof ProductPricingApiGetListingOffers
|
|
293
258
|
*/
|
|
294
259
|
readonly itemCondition: GetListingOffersItemConditionEnum;
|
|
295
260
|
/**
|
|
296
261
|
* Identifies an item in the given marketplace. SellerSKU is qualified by the seller\'s SellerId, which is included with every operation that you submit.
|
|
297
|
-
* @type {string}
|
|
298
|
-
* @memberof ProductPricingApiGetListingOffers
|
|
299
262
|
*/
|
|
300
263
|
readonly sellerSKU: string;
|
|
301
264
|
/**
|
|
302
265
|
* Indicates whether to request Consumer or Business offers. Default is Consumer.
|
|
303
|
-
* @type {'Consumer' | 'Business'}
|
|
304
|
-
* @memberof ProductPricingApiGetListingOffers
|
|
305
266
|
*/
|
|
306
267
|
readonly customerType?: GetListingOffersCustomerTypeEnum;
|
|
307
268
|
}
|
|
308
269
|
/**
|
|
309
270
|
* Request parameters for getListingOffersBatch operation in ProductPricingApi.
|
|
310
|
-
* @export
|
|
311
|
-
* @interface ProductPricingApiGetListingOffersBatchRequest
|
|
312
271
|
*/
|
|
313
272
|
export interface ProductPricingApiGetListingOffersBatchRequest {
|
|
314
273
|
/**
|
|
315
274
|
* The request associated with the `getListingOffersBatch` API call.
|
|
316
|
-
* @type {GetListingOffersBatchRequest}
|
|
317
|
-
* @memberof ProductPricingApiGetListingOffersBatch
|
|
318
275
|
*/
|
|
319
276
|
readonly getListingOffersBatchRequestBody: GetListingOffersBatchRequest;
|
|
320
277
|
}
|
|
321
278
|
/**
|
|
322
279
|
* Request parameters for getPricing operation in ProductPricingApi.
|
|
323
|
-
* @export
|
|
324
|
-
* @interface ProductPricingApiGetPricingRequest
|
|
325
280
|
*/
|
|
326
281
|
export interface ProductPricingApiGetPricingRequest {
|
|
327
282
|
/**
|
|
328
283
|
* A marketplace identifier. Specifies the marketplace for which prices are returned.
|
|
329
|
-
* @type {string}
|
|
330
|
-
* @memberof ProductPricingApiGetPricing
|
|
331
284
|
*/
|
|
332
285
|
readonly marketplaceId: string;
|
|
333
286
|
/**
|
|
334
287
|
* Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter.
|
|
335
|
-
* @type {'Asin' | 'Sku'}
|
|
336
|
-
* @memberof ProductPricingApiGetPricing
|
|
337
288
|
*/
|
|
338
289
|
readonly itemType: GetPricingItemTypeEnum;
|
|
339
290
|
/**
|
|
340
291
|
* A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace.
|
|
341
|
-
* @type {Array<string>}
|
|
342
|
-
* @memberof ProductPricingApiGetPricing
|
|
343
292
|
*/
|
|
344
293
|
readonly asins?: Array<string>;
|
|
345
294
|
/**
|
|
346
295
|
* A list of up to twenty seller SKU values used to identify items in the given marketplace.
|
|
347
|
-
* @type {Array<string>}
|
|
348
|
-
* @memberof ProductPricingApiGetPricing
|
|
349
296
|
*/
|
|
350
297
|
readonly skus?: Array<string>;
|
|
351
298
|
/**
|
|
352
299
|
* Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club.
|
|
353
|
-
* @type {'New' | 'Used' | 'Collectible' | 'Refurbished' | 'Club'}
|
|
354
|
-
* @memberof ProductPricingApiGetPricing
|
|
355
300
|
*/
|
|
356
301
|
readonly itemCondition?: GetPricingItemConditionEnum;
|
|
357
302
|
/**
|
|
358
303
|
* Indicates whether to request pricing information for the seller\'s B2C or B2B offers. Default is B2C.
|
|
359
|
-
* @type {'B2C' | 'B2B'}
|
|
360
|
-
* @memberof ProductPricingApiGetPricing
|
|
361
304
|
*/
|
|
362
305
|
readonly offerType?: GetPricingOfferTypeEnum;
|
|
363
306
|
}
|
|
364
307
|
/**
|
|
365
308
|
* ProductPricingApi - object-oriented interface
|
|
366
|
-
* @export
|
|
367
|
-
* @class ProductPricingApi
|
|
368
|
-
* @extends {BaseAPI}
|
|
369
309
|
*/
|
|
370
310
|
export declare class ProductPricingApi extends BaseAPI {
|
|
371
311
|
/**
|
|
@@ -373,7 +313,6 @@ export declare class ProductPricingApi extends BaseAPI {
|
|
|
373
313
|
* @param {ProductPricingApiGetCompetitivePricingRequest} requestParameters Request parameters.
|
|
374
314
|
* @param {*} [options] Override http request option.
|
|
375
315
|
* @throws {RequiredError}
|
|
376
|
-
* @memberof ProductPricingApi
|
|
377
316
|
*/
|
|
378
317
|
getCompetitivePricing(requestParameters: ProductPricingApiGetCompetitivePricingRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetPricingResponse, any>>;
|
|
379
318
|
/**
|
|
@@ -381,7 +320,6 @@ export declare class ProductPricingApi extends BaseAPI {
|
|
|
381
320
|
* @param {ProductPricingApiGetItemOffersRequest} requestParameters Request parameters.
|
|
382
321
|
* @param {*} [options] Override http request option.
|
|
383
322
|
* @throws {RequiredError}
|
|
384
|
-
* @memberof ProductPricingApi
|
|
385
323
|
*/
|
|
386
324
|
getItemOffers(requestParameters: ProductPricingApiGetItemOffersRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetOffersResponse, any>>;
|
|
387
325
|
/**
|
|
@@ -389,7 +327,6 @@ export declare class ProductPricingApi extends BaseAPI {
|
|
|
389
327
|
* @param {ProductPricingApiGetItemOffersBatchRequest} requestParameters Request parameters.
|
|
390
328
|
* @param {*} [options] Override http request option.
|
|
391
329
|
* @throws {RequiredError}
|
|
392
|
-
* @memberof ProductPricingApi
|
|
393
330
|
*/
|
|
394
331
|
getItemOffersBatch(requestParameters: ProductPricingApiGetItemOffersBatchRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetItemOffersBatchResponse, any>>;
|
|
395
332
|
/**
|
|
@@ -397,7 +334,6 @@ export declare class ProductPricingApi extends BaseAPI {
|
|
|
397
334
|
* @param {ProductPricingApiGetListingOffersRequest} requestParameters Request parameters.
|
|
398
335
|
* @param {*} [options] Override http request option.
|
|
399
336
|
* @throws {RequiredError}
|
|
400
|
-
* @memberof ProductPricingApi
|
|
401
337
|
*/
|
|
402
338
|
getListingOffers(requestParameters: ProductPricingApiGetListingOffersRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetOffersResponse, any>>;
|
|
403
339
|
/**
|
|
@@ -405,7 +341,6 @@ export declare class ProductPricingApi extends BaseAPI {
|
|
|
405
341
|
* @param {ProductPricingApiGetListingOffersBatchRequest} requestParameters Request parameters.
|
|
406
342
|
* @param {*} [options] Override http request option.
|
|
407
343
|
* @throws {RequiredError}
|
|
408
|
-
* @memberof ProductPricingApi
|
|
409
344
|
*/
|
|
410
345
|
getListingOffersBatch(requestParameters: ProductPricingApiGetListingOffersBatchRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetListingOffersBatchResponse, any>>;
|
|
411
346
|
/**
|
|
@@ -413,29 +348,19 @@ export declare class ProductPricingApi extends BaseAPI {
|
|
|
413
348
|
* @param {ProductPricingApiGetPricingRequest} requestParameters Request parameters.
|
|
414
349
|
* @param {*} [options] Override http request option.
|
|
415
350
|
* @throws {RequiredError}
|
|
416
|
-
* @memberof ProductPricingApi
|
|
417
351
|
*/
|
|
418
352
|
getPricing(requestParameters: ProductPricingApiGetPricingRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetPricingResponse, any>>;
|
|
419
353
|
}
|
|
420
|
-
/**
|
|
421
|
-
* @export
|
|
422
|
-
*/
|
|
423
354
|
export declare const GetCompetitivePricingItemTypeEnum: {
|
|
424
355
|
readonly Asin: "Asin";
|
|
425
356
|
readonly Sku: "Sku";
|
|
426
357
|
};
|
|
427
358
|
export type GetCompetitivePricingItemTypeEnum = typeof GetCompetitivePricingItemTypeEnum[keyof typeof GetCompetitivePricingItemTypeEnum];
|
|
428
|
-
/**
|
|
429
|
-
* @export
|
|
430
|
-
*/
|
|
431
359
|
export declare const GetCompetitivePricingCustomerTypeEnum: {
|
|
432
360
|
readonly Consumer: "Consumer";
|
|
433
361
|
readonly Business: "Business";
|
|
434
362
|
};
|
|
435
363
|
export type GetCompetitivePricingCustomerTypeEnum = typeof GetCompetitivePricingCustomerTypeEnum[keyof typeof GetCompetitivePricingCustomerTypeEnum];
|
|
436
|
-
/**
|
|
437
|
-
* @export
|
|
438
|
-
*/
|
|
439
364
|
export declare const GetItemOffersItemConditionEnum: {
|
|
440
365
|
readonly New: "New";
|
|
441
366
|
readonly Used: "Used";
|
|
@@ -444,17 +369,11 @@ export declare const GetItemOffersItemConditionEnum: {
|
|
|
444
369
|
readonly Club: "Club";
|
|
445
370
|
};
|
|
446
371
|
export type GetItemOffersItemConditionEnum = typeof GetItemOffersItemConditionEnum[keyof typeof GetItemOffersItemConditionEnum];
|
|
447
|
-
/**
|
|
448
|
-
* @export
|
|
449
|
-
*/
|
|
450
372
|
export declare const GetItemOffersCustomerTypeEnum: {
|
|
451
373
|
readonly Consumer: "Consumer";
|
|
452
374
|
readonly Business: "Business";
|
|
453
375
|
};
|
|
454
376
|
export type GetItemOffersCustomerTypeEnum = typeof GetItemOffersCustomerTypeEnum[keyof typeof GetItemOffersCustomerTypeEnum];
|
|
455
|
-
/**
|
|
456
|
-
* @export
|
|
457
|
-
*/
|
|
458
377
|
export declare const GetListingOffersItemConditionEnum: {
|
|
459
378
|
readonly New: "New";
|
|
460
379
|
readonly Used: "Used";
|
|
@@ -463,25 +382,16 @@ export declare const GetListingOffersItemConditionEnum: {
|
|
|
463
382
|
readonly Club: "Club";
|
|
464
383
|
};
|
|
465
384
|
export type GetListingOffersItemConditionEnum = typeof GetListingOffersItemConditionEnum[keyof typeof GetListingOffersItemConditionEnum];
|
|
466
|
-
/**
|
|
467
|
-
* @export
|
|
468
|
-
*/
|
|
469
385
|
export declare const GetListingOffersCustomerTypeEnum: {
|
|
470
386
|
readonly Consumer: "Consumer";
|
|
471
387
|
readonly Business: "Business";
|
|
472
388
|
};
|
|
473
389
|
export type GetListingOffersCustomerTypeEnum = typeof GetListingOffersCustomerTypeEnum[keyof typeof GetListingOffersCustomerTypeEnum];
|
|
474
|
-
/**
|
|
475
|
-
* @export
|
|
476
|
-
*/
|
|
477
390
|
export declare const GetPricingItemTypeEnum: {
|
|
478
391
|
readonly Asin: "Asin";
|
|
479
392
|
readonly Sku: "Sku";
|
|
480
393
|
};
|
|
481
394
|
export type GetPricingItemTypeEnum = typeof GetPricingItemTypeEnum[keyof typeof GetPricingItemTypeEnum];
|
|
482
|
-
/**
|
|
483
|
-
* @export
|
|
484
|
-
*/
|
|
485
395
|
export declare const GetPricingItemConditionEnum: {
|
|
486
396
|
readonly New: "New";
|
|
487
397
|
readonly Used: "Used";
|
|
@@ -490,9 +400,6 @@ export declare const GetPricingItemConditionEnum: {
|
|
|
490
400
|
readonly Club: "Club";
|
|
491
401
|
};
|
|
492
402
|
export type GetPricingItemConditionEnum = typeof GetPricingItemConditionEnum[keyof typeof GetPricingItemConditionEnum];
|
|
493
|
-
/**
|
|
494
|
-
* @export
|
|
495
|
-
*/
|
|
496
403
|
export declare const GetPricingOfferTypeEnum: {
|
|
497
404
|
readonly B2C: "B2C";
|
|
498
405
|
readonly B2B: "B2B";
|
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|
|
@@ -12,54 +12,17 @@
|
|
|
12
12
|
import type { Configuration } from "./configuration";
|
|
13
13
|
import type { RequestArgs } from "./base";
|
|
14
14
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
16
|
/**
|
|
21
17
|
*
|
|
22
18
|
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
19
|
*/
|
|
25
20
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
21
|
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
22
|
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
23
|
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @export
|
|
44
|
-
*/
|
|
45
24
|
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @export
|
|
49
|
-
*/
|
|
50
25
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
26
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
27
|
export declare const toPathString: (url: URL) => string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
28
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|