@sp-api-sdk/product-pricing-api-2022-05-01 3.1.4 → 3.2.1
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 -8
- 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/competitive-summary-included-data.js +0 -2
- package/dist/cjs/api-model/models/condition.js +0 -2
- package/dist/cjs/api-model/models/featured-offer-segment.js +2 -1
- package/dist/cjs/api-model/models/fulfillment-type.js +0 -2
- package/dist/cjs/api-model/models/http-method.js +0 -2
- package/dist/cjs/api-model/models/lowest-priced-offers-input.js +1 -1
- package/dist/es/api-model/api/product-pricing-api.js +0 -8
- 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/competitive-summary-included-data.js +0 -2
- package/dist/es/api-model/models/condition.js +0 -2
- package/dist/es/api-model/models/featured-offer-segment.js +2 -1
- package/dist/es/api-model/models/fulfillment-type.js +0 -2
- package/dist/es/api-model/models/http-method.js +0 -2
- package/dist/es/api-model/models/lowest-priced-offers-input.js +1 -1
- package/dist/types/api-model/api/product-pricing-api.d.ts +0 -16
- 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/batch-request.d.ts +0 -13
- package/dist/types/api-model/models/batch-response.d.ts +0 -9
- package/dist/types/api-model/models/competitive-summary-batch-request.d.ts +0 -4
- package/dist/types/api-model/models/competitive-summary-batch-response.d.ts +0 -4
- package/dist/types/api-model/models/competitive-summary-included-data.d.ts +0 -2
- package/dist/types/api-model/models/competitive-summary-request.d.ts +1 -18
- package/dist/types/api-model/models/competitive-summary-response-body.d.ts +1 -15
- package/dist/types/api-model/models/competitive-summary-response.d.ts +0 -12
- package/dist/types/api-model/models/condition.d.ts +0 -2
- package/dist/types/api-model/models/errors.d.ts +0 -4
- package/dist/types/api-model/models/featured-buying-option.d.ts +0 -6
- package/dist/types/api-model/models/featured-offer-expected-price-request-params.d.ts +1 -12
- package/dist/types/api-model/models/featured-offer-expected-price-request.d.ts +0 -1
- package/dist/types/api-model/models/featured-offer-expected-price-response-all-of.d.ts +0 -15
- package/dist/types/api-model/models/featured-offer-expected-price-response-body.d.ts +0 -11
- package/dist/types/api-model/models/featured-offer-expected-price-response.d.ts +0 -1
- package/dist/types/api-model/models/featured-offer-expected-price-result.d.ts +0 -19
- package/dist/types/api-model/models/featured-offer-expected-price.d.ts +0 -12
- package/dist/types/api-model/models/featured-offer-segment.d.ts +1 -9
- package/dist/types/api-model/models/featured-offer.d.ts +0 -17
- package/dist/types/api-model/models/fulfillment-type.d.ts +0 -2
- package/dist/types/api-model/models/get-featured-offer-expected-price-batch-request.d.ts +0 -4
- package/dist/types/api-model/models/get-featured-offer-expected-price-batch-response.d.ts +0 -4
- package/dist/types/api-model/models/http-method.d.ts +0 -2
- package/dist/types/api-model/models/http-status-line.d.ts +0 -6
- package/dist/types/api-model/models/lowest-priced-offer.d.ts +0 -9
- package/dist/types/api-model/models/lowest-priced-offers-input.d.ts +1 -10
- 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-identifier.d.ts +1 -16
- package/dist/types/api-model/models/offer.d.ts +0 -33
- package/dist/types/api-model/models/points.d.ts +0 -9
- package/dist/types/api-model/models/postal-code.d.ts +0 -6
- package/dist/types/api-model/models/price.d.ts +0 -17
- package/dist/types/api-model/models/prime-details.d.ts +0 -4
- package/dist/types/api-model/models/reference-price.d.ts +1 -10
- package/dist/types/api-model/models/sample-location.d.ts +0 -7
- package/dist/types/api-model/models/segment-details.d.ts +0 -9
- package/dist/types/api-model/models/segment.d.ts +0 -7
- package/dist/types/api-model/models/segmented-featured-offer-all-of.d.ts +0 -4
- package/dist/types/api-model/models/segmented-featured-offer.d.ts +0 -1
- package/dist/types/api-model/models/shipping-option.d.ts +0 -9
- package/package.json +25 -4
|
@@ -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>;
|
|
@@ -23,49 +23,32 @@ export declare class Configuration {
|
|
|
23
23
|
/**
|
|
24
24
|
* parameter for apiKey security
|
|
25
25
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
26
|
*/
|
|
28
27
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
28
|
/**
|
|
30
29
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
30
|
*/
|
|
35
31
|
username?: string;
|
|
36
32
|
/**
|
|
37
33
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
34
|
*/
|
|
42
35
|
password?: string;
|
|
43
36
|
/**
|
|
44
37
|
* parameter for oauth2 security
|
|
45
38
|
* @param name security name
|
|
46
39
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
40
|
*/
|
|
49
41
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
42
|
/**
|
|
51
43
|
* override base path
|
|
52
|
-
*
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof Configuration
|
|
55
44
|
*/
|
|
56
45
|
basePath?: string;
|
|
57
46
|
/**
|
|
58
47
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
48
|
*/
|
|
63
49
|
serverIndex?: number;
|
|
64
50
|
/**
|
|
65
51
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
52
|
*/
|
|
70
53
|
baseOptions?: any;
|
|
71
54
|
/**
|
|
@@ -12,34 +12,21 @@
|
|
|
12
12
|
import type { HttpMethod } from './http-method';
|
|
13
13
|
/**
|
|
14
14
|
* The common properties for individual requests within a batch.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface BatchRequest
|
|
17
15
|
*/
|
|
18
16
|
export interface BatchRequest {
|
|
19
17
|
/**
|
|
20
18
|
* The URI associated with an individual request within a batch. For `FeaturedOfferExpectedPrice`, this is `/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice`.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof BatchRequest
|
|
23
19
|
*/
|
|
24
20
|
'uri': string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {HttpMethod}
|
|
28
|
-
* @memberof BatchRequest
|
|
29
|
-
*/
|
|
30
21
|
'method': HttpMethod;
|
|
31
22
|
/**
|
|
32
23
|
* Additional HTTP body information that is associated with an individual request within a batch.
|
|
33
|
-
* @type {{ [key: string]: object; }}
|
|
34
|
-
* @memberof BatchRequest
|
|
35
24
|
*/
|
|
36
25
|
'body'?: {
|
|
37
26
|
[key: string]: object;
|
|
38
27
|
};
|
|
39
28
|
/**
|
|
40
29
|
* A mapping of additional HTTP headers to send or receive for an individual request within a batch.
|
|
41
|
-
* @type {{ [key: string]: string; }}
|
|
42
|
-
* @memberof BatchRequest
|
|
43
30
|
*/
|
|
44
31
|
'headers'?: {
|
|
45
32
|
[key: string]: string;
|
|
@@ -12,22 +12,13 @@
|
|
|
12
12
|
import type { HttpStatusLine } from './http-status-line';
|
|
13
13
|
/**
|
|
14
14
|
* The common properties for responses to individual requests within a batch.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface BatchResponse
|
|
17
15
|
*/
|
|
18
16
|
export interface BatchResponse {
|
|
19
17
|
/**
|
|
20
18
|
* A mapping of additional HTTP headers to send or receive for an individual request within a batch.
|
|
21
|
-
* @type {{ [key: string]: string; }}
|
|
22
|
-
* @memberof BatchResponse
|
|
23
19
|
*/
|
|
24
20
|
'headers': {
|
|
25
21
|
[key: string]: string;
|
|
26
22
|
};
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {HttpStatusLine}
|
|
30
|
-
* @memberof BatchResponse
|
|
31
|
-
*/
|
|
32
23
|
'status': HttpStatusLine;
|
|
33
24
|
}
|
|
@@ -12,14 +12,10 @@
|
|
|
12
12
|
import type { CompetitiveSummaryRequest } from './competitive-summary-request';
|
|
13
13
|
/**
|
|
14
14
|
* The `competitiveSummary` batch request data.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CompetitiveSummaryBatchRequest
|
|
17
15
|
*/
|
|
18
16
|
export interface CompetitiveSummaryBatchRequest {
|
|
19
17
|
/**
|
|
20
18
|
* A batched list of `competitiveSummary` requests.
|
|
21
|
-
* @type {Array<CompetitiveSummaryRequest>}
|
|
22
|
-
* @memberof CompetitiveSummaryBatchRequest
|
|
23
19
|
*/
|
|
24
20
|
'requests': Array<CompetitiveSummaryRequest>;
|
|
25
21
|
}
|
|
@@ -12,14 +12,10 @@
|
|
|
12
12
|
import type { CompetitiveSummaryResponse } from './competitive-summary-response';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the `competitiveSummaryBatch` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CompetitiveSummaryBatchResponse
|
|
17
15
|
*/
|
|
18
16
|
export interface CompetitiveSummaryBatchResponse {
|
|
19
17
|
/**
|
|
20
18
|
* The response list for the `competitiveSummaryBatch` operation.
|
|
21
|
-
* @type {Array<CompetitiveSummaryResponse>}
|
|
22
|
-
* @memberof CompetitiveSummaryBatchResponse
|
|
23
19
|
*/
|
|
24
20
|
'responses': Array<CompetitiveSummaryResponse>;
|
|
25
21
|
}
|
|
@@ -14,44 +14,27 @@ import type { HttpMethod } from './http-method';
|
|
|
14
14
|
import type { LowestPricedOffersInput } from './lowest-priced-offers-input';
|
|
15
15
|
/**
|
|
16
16
|
* An individual `competitiveSummary` request for an ASIN and `marketplaceId`.
|
|
17
|
-
* @export
|
|
18
|
-
* @interface CompetitiveSummaryRequest
|
|
19
17
|
*/
|
|
20
18
|
export interface CompetitiveSummaryRequest {
|
|
21
19
|
/**
|
|
22
20
|
* The ASIN of the item.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof CompetitiveSummaryRequest
|
|
25
21
|
*/
|
|
26
22
|
'asin': string;
|
|
27
23
|
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof CompetitiveSummaryRequest
|
|
24
|
+
* The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
31
25
|
*/
|
|
32
26
|
'marketplaceId': string;
|
|
33
27
|
/**
|
|
34
28
|
* The list of requested competitive pricing data for the product.
|
|
35
|
-
* @type {Array<CompetitiveSummaryIncludedData>}
|
|
36
|
-
* @memberof CompetitiveSummaryRequest
|
|
37
29
|
*/
|
|
38
30
|
'includedData': Array<CompetitiveSummaryIncludedData>;
|
|
39
31
|
/**
|
|
40
32
|
* The list of `lowestPricedOffersInput` parameters that are used to build `lowestPricedOffers` in the response. This attribute is only valid if `lowestPricedOffers` is requested in `includedData`
|
|
41
|
-
* @type {Array<LowestPricedOffersInput>}
|
|
42
|
-
* @memberof CompetitiveSummaryRequest
|
|
43
33
|
*/
|
|
44
34
|
'lowestPricedOffersInputs'?: Array<LowestPricedOffersInput>;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {HttpMethod}
|
|
48
|
-
* @memberof CompetitiveSummaryRequest
|
|
49
|
-
*/
|
|
50
35
|
'method': HttpMethod;
|
|
51
36
|
/**
|
|
52
37
|
* The URI associated with the individual APIs that are called as part of the batch request.
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof CompetitiveSummaryRequest
|
|
55
38
|
*/
|
|
56
39
|
'uri': string;
|
|
57
40
|
}
|
|
@@ -14,44 +14,30 @@ import type { LowestPricedOffer } from './lowest-priced-offer';
|
|
|
14
14
|
import type { ReferencePrice } from './reference-price';
|
|
15
15
|
/**
|
|
16
16
|
* The `competitiveSummaryResponse` body for a requested ASIN and `marketplaceId`.
|
|
17
|
-
* @export
|
|
18
|
-
* @interface CompetitiveSummaryResponseBody
|
|
19
17
|
*/
|
|
20
18
|
export interface CompetitiveSummaryResponseBody {
|
|
21
19
|
/**
|
|
22
20
|
* The ASIN of the item.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof CompetitiveSummaryResponseBody
|
|
25
21
|
*/
|
|
26
22
|
'asin': string;
|
|
27
23
|
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof CompetitiveSummaryResponseBody
|
|
24
|
+
* The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
31
25
|
*/
|
|
32
26
|
'marketplaceId': string;
|
|
33
27
|
/**
|
|
34
28
|
* A list of featured buying options for the specified ASIN `marketplaceId` combination.
|
|
35
|
-
* @type {Array<FeaturedBuyingOption>}
|
|
36
|
-
* @memberof CompetitiveSummaryResponseBody
|
|
37
29
|
*/
|
|
38
30
|
'featuredBuyingOptions'?: Array<FeaturedBuyingOption>;
|
|
39
31
|
/**
|
|
40
32
|
* A list of lowest priced offers for the specified ASIN `marketplaceId` combination.
|
|
41
|
-
* @type {Array<LowestPricedOffer>}
|
|
42
|
-
* @memberof CompetitiveSummaryResponseBody
|
|
43
33
|
*/
|
|
44
34
|
'lowestPricedOffers'?: Array<LowestPricedOffer>;
|
|
45
35
|
/**
|
|
46
36
|
* A list of reference prices for the specified ASIN `marketplaceId` combination.
|
|
47
|
-
* @type {Array<ReferencePrice>}
|
|
48
|
-
* @memberof CompetitiveSummaryResponseBody
|
|
49
37
|
*/
|
|
50
38
|
'referencePrices'?: Array<ReferencePrice>;
|
|
51
39
|
/**
|
|
52
40
|
* A list of error responses that are returned when a request is unsuccessful.
|
|
53
|
-
* @type {Array<Error>}
|
|
54
|
-
* @memberof CompetitiveSummaryResponseBody
|
|
55
41
|
*/
|
|
56
42
|
'errors'?: Array<Error>;
|
|
57
43
|
}
|
|
@@ -13,20 +13,8 @@ import type { CompetitiveSummaryResponseBody } from './competitive-summary-respo
|
|
|
13
13
|
import type { HttpStatusLine } from './http-status-line';
|
|
14
14
|
/**
|
|
15
15
|
* The response for the individual `competitiveSummary` request in the batch operation.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface CompetitiveSummaryResponse
|
|
18
16
|
*/
|
|
19
17
|
export interface CompetitiveSummaryResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {HttpStatusLine}
|
|
23
|
-
* @memberof CompetitiveSummaryResponse
|
|
24
|
-
*/
|
|
25
18
|
'status': HttpStatusLine;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {CompetitiveSummaryResponseBody}
|
|
29
|
-
* @memberof CompetitiveSummaryResponse
|
|
30
|
-
*/
|
|
31
19
|
'body': CompetitiveSummaryResponseBody;
|
|
32
20
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* A list of error responses returned when a request is unsuccessful.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Errors
|
|
16
14
|
*/
|
|
17
15
|
export interface Errors {
|
|
18
16
|
/**
|
|
19
17
|
* A list of error responses that are returned when a request is unsuccessful.
|
|
20
|
-
* @type {Array<Error>}
|
|
21
|
-
* @memberof Errors
|
|
22
18
|
*/
|
|
23
19
|
'errors': Array<Error>;
|
|
24
20
|
}
|
|
@@ -12,20 +12,14 @@
|
|
|
12
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
|
-
* @export
|
|
16
|
-
* @interface FeaturedBuyingOption
|
|
17
15
|
*/
|
|
18
16
|
export interface FeaturedBuyingOption {
|
|
19
17
|
/**
|
|
20
18
|
* The buying option type for the featured offer. `buyingOptionType` represents the buying options that a customer receives on the detail page, such as `B2B`, `Fresh`, and `Subscribe n Save`. `buyingOptionType` currently supports `NEW` as a value.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof FeaturedBuyingOption
|
|
23
19
|
*/
|
|
24
20
|
'buyingOptionType': FeaturedBuyingOptionBuyingOptionTypeEnum;
|
|
25
21
|
/**
|
|
26
22
|
* A list of segmented featured offers for the current buying option type. A segment can be considered as a group of regional contexts that all have the same featured offer. A regional context is a combination of factors such as customer type, region, or postal code and buying option.
|
|
27
|
-
* @type {Array<SegmentedFeaturedOffer>}
|
|
28
|
-
* @memberof FeaturedBuyingOption
|
|
29
23
|
*/
|
|
30
24
|
'segmentedFeaturedOffers': Array<SegmentedFeaturedOffer>;
|
|
31
25
|
}
|
|
@@ -12,26 +12,15 @@
|
|
|
12
12
|
import type { Segment } from './segment';
|
|
13
13
|
/**
|
|
14
14
|
* The parameters for an individual request.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface FeaturedOfferExpectedPriceRequestParams
|
|
17
15
|
*/
|
|
18
16
|
export interface FeaturedOfferExpectedPriceRequestParams {
|
|
19
17
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof FeaturedOfferExpectedPriceRequestParams
|
|
18
|
+
* The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
23
19
|
*/
|
|
24
20
|
'marketplaceId': string;
|
|
25
21
|
/**
|
|
26
22
|
* The seller SKU of the item.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof FeaturedOfferExpectedPriceRequestParams
|
|
29
23
|
*/
|
|
30
24
|
'sku': string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {Segment}
|
|
34
|
-
* @memberof FeaturedOfferExpectedPriceRequestParams
|
|
35
|
-
*/
|
|
36
25
|
'segment'?: Segment;
|
|
37
26
|
}
|
|
@@ -14,6 +14,5 @@ import type { FeaturedOfferExpectedPriceRequestParams } from './featured-offer-e
|
|
|
14
14
|
/**
|
|
15
15
|
* @type FeaturedOfferExpectedPriceRequest
|
|
16
16
|
* An individual FOEP request for a particular SKU.
|
|
17
|
-
* @export
|
|
18
17
|
*/
|
|
19
18
|
export type FeaturedOfferExpectedPriceRequest = BatchRequest & FeaturedOfferExpectedPriceRequestParams;
|
|
@@ -11,22 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { FeaturedOfferExpectedPriceRequestParams } from './featured-offer-expected-price-request-params';
|
|
13
13
|
import type { FeaturedOfferExpectedPriceResponseBody } from './featured-offer-expected-price-response-body';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface FeaturedOfferExpectedPriceResponseAllOf
|
|
18
|
-
*/
|
|
19
14
|
export interface FeaturedOfferExpectedPriceResponseAllOf {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {FeaturedOfferExpectedPriceRequestParams}
|
|
23
|
-
* @memberof FeaturedOfferExpectedPriceResponseAllOf
|
|
24
|
-
*/
|
|
25
15
|
'request': FeaturedOfferExpectedPriceRequestParams;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {FeaturedOfferExpectedPriceResponseBody}
|
|
29
|
-
* @memberof FeaturedOfferExpectedPriceResponseAllOf
|
|
30
|
-
*/
|
|
31
16
|
'body'?: FeaturedOfferExpectedPriceResponseBody;
|
|
32
17
|
}
|
|
@@ -13,26 +13,15 @@ import type { FeaturedOfferExpectedPriceResult } from './featured-offer-expected
|
|
|
13
13
|
import type { OfferIdentifier } from './offer-identifier';
|
|
14
14
|
/**
|
|
15
15
|
* The FOEP response data for a requested SKU.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface FeaturedOfferExpectedPriceResponseBody
|
|
18
16
|
*/
|
|
19
17
|
export interface FeaturedOfferExpectedPriceResponseBody {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {OfferIdentifier}
|
|
23
|
-
* @memberof FeaturedOfferExpectedPriceResponseBody
|
|
24
|
-
*/
|
|
25
18
|
'offerIdentifier'?: OfferIdentifier;
|
|
26
19
|
/**
|
|
27
20
|
* A list of FOEP results for the requested offer.
|
|
28
|
-
* @type {Array<FeaturedOfferExpectedPriceResult>}
|
|
29
|
-
* @memberof FeaturedOfferExpectedPriceResponseBody
|
|
30
21
|
*/
|
|
31
22
|
'featuredOfferExpectedPriceResults'?: Array<FeaturedOfferExpectedPriceResult>;
|
|
32
23
|
/**
|
|
33
24
|
* A list of error responses that are returned when a request is unsuccessful.
|
|
34
|
-
* @type {Array<Error>}
|
|
35
|
-
* @memberof FeaturedOfferExpectedPriceResponseBody
|
|
36
25
|
*/
|
|
37
26
|
'errors'?: Array<Error>;
|
|
38
27
|
}
|
|
@@ -14,6 +14,5 @@ import type { FeaturedOfferExpectedPriceResponseAllOf } from './featured-offer-e
|
|
|
14
14
|
/**
|
|
15
15
|
* @type FeaturedOfferExpectedPriceResponse
|
|
16
16
|
* Schema for an individual FOEP response.
|
|
17
|
-
* @export
|
|
18
17
|
*/
|
|
19
18
|
export type FeaturedOfferExpectedPriceResponse = BatchResponse & FeaturedOfferExpectedPriceResponseAllOf;
|
|
@@ -13,32 +13,13 @@ import type { FeaturedOffer } from './featured-offer';
|
|
|
13
13
|
import type { FeaturedOfferExpectedPrice } from './featured-offer-expected-price';
|
|
14
14
|
/**
|
|
15
15
|
* The FOEP result data for the requested offer.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface FeaturedOfferExpectedPriceResult
|
|
18
16
|
*/
|
|
19
17
|
export interface FeaturedOfferExpectedPriceResult {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {FeaturedOfferExpectedPrice}
|
|
23
|
-
* @memberof FeaturedOfferExpectedPriceResult
|
|
24
|
-
*/
|
|
25
18
|
'featuredOfferExpectedPrice'?: FeaturedOfferExpectedPrice;
|
|
26
19
|
/**
|
|
27
20
|
* The status of the FOEP computation. Possible values include `VALID_FOEP`, `NO_COMPETING_OFFER`, `OFFER_NOT_ELIGIBLE`, `OFFER_NOT_FOUND`, and `ASIN_NOT_ELIGIBLE`. Additional values might be added in the future.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof FeaturedOfferExpectedPriceResult
|
|
30
21
|
*/
|
|
31
22
|
'resultStatus': string;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {FeaturedOffer}
|
|
35
|
-
* @memberof FeaturedOfferExpectedPriceResult
|
|
36
|
-
*/
|
|
37
23
|
'competingFeaturedOffer'?: FeaturedOffer;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {FeaturedOffer}
|
|
41
|
-
* @memberof FeaturedOfferExpectedPriceResult
|
|
42
|
-
*/
|
|
43
24
|
'currentFeaturedOffer'?: FeaturedOffer;
|
|
44
25
|
}
|
|
@@ -13,20 +13,8 @@ import type { MoneyType } from './money-type';
|
|
|
13
13
|
import type { Points } from './points';
|
|
14
14
|
/**
|
|
15
15
|
* The item price at or below which the target offer may be featured.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface FeaturedOfferExpectedPrice
|
|
18
16
|
*/
|
|
19
17
|
export interface FeaturedOfferExpectedPrice {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {MoneyType}
|
|
23
|
-
* @memberof FeaturedOfferExpectedPrice
|
|
24
|
-
*/
|
|
25
18
|
'listingPrice': MoneyType;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {Points}
|
|
29
|
-
* @memberof FeaturedOfferExpectedPrice
|
|
30
|
-
*/
|
|
31
19
|
'points'?: Points;
|
|
32
20
|
}
|
|
@@ -12,25 +12,17 @@
|
|
|
12
12
|
import type { SegmentDetails } from './segment-details';
|
|
13
13
|
/**
|
|
14
14
|
* Describes the segment in which the offer is featured.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface FeaturedOfferSegment
|
|
17
15
|
*/
|
|
18
16
|
export interface FeaturedOfferSegment {
|
|
19
17
|
/**
|
|
20
18
|
* The customer membership type that makes up this segment
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof FeaturedOfferSegment
|
|
23
19
|
*/
|
|
24
20
|
'customerMembership': FeaturedOfferSegmentCustomerMembershipEnum;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {SegmentDetails}
|
|
28
|
-
* @memberof FeaturedOfferSegment
|
|
29
|
-
*/
|
|
30
21
|
'segmentDetails': SegmentDetails;
|
|
31
22
|
}
|
|
32
23
|
export declare const FeaturedOfferSegmentCustomerMembershipEnum: {
|
|
33
24
|
readonly Prime: "PRIME";
|
|
34
25
|
readonly NonPrime: "NON_PRIME";
|
|
26
|
+
readonly Default: "DEFAULT";
|
|
35
27
|
};
|
|
36
28
|
export type FeaturedOfferSegmentCustomerMembershipEnum = typeof FeaturedOfferSegmentCustomerMembershipEnum[keyof typeof FeaturedOfferSegmentCustomerMembershipEnum];
|
|
@@ -14,26 +14,9 @@ import type { OfferIdentifier } from './offer-identifier';
|
|
|
14
14
|
import type { Price } from './price';
|
|
15
15
|
/**
|
|
16
16
|
* Schema for `currentFeaturedOffer` or `competingFeaturedOffer`.
|
|
17
|
-
* @export
|
|
18
|
-
* @interface FeaturedOffer
|
|
19
17
|
*/
|
|
20
18
|
export interface FeaturedOffer {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {OfferIdentifier}
|
|
24
|
-
* @memberof FeaturedOffer
|
|
25
|
-
*/
|
|
26
19
|
'offerIdentifier': OfferIdentifier;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {Condition}
|
|
30
|
-
* @memberof FeaturedOffer
|
|
31
|
-
*/
|
|
32
20
|
'condition'?: Condition;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {Price}
|
|
36
|
-
* @memberof FeaturedOffer
|
|
37
|
-
*/
|
|
38
21
|
'price'?: Price;
|
|
39
22
|
}
|
|
@@ -12,14 +12,10 @@
|
|
|
12
12
|
import type { FeaturedOfferExpectedPriceRequest } from './featured-offer-expected-price-request';
|
|
13
13
|
/**
|
|
14
14
|
* The request body for the `getFeaturedOfferExpectedPriceBatch` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetFeaturedOfferExpectedPriceBatchRequest
|
|
17
15
|
*/
|
|
18
16
|
export interface GetFeaturedOfferExpectedPriceBatchRequest {
|
|
19
17
|
/**
|
|
20
18
|
* A batched list of FOEP requests.
|
|
21
|
-
* @type {Array<FeaturedOfferExpectedPriceRequest>}
|
|
22
|
-
* @memberof GetFeaturedOfferExpectedPriceBatchRequest
|
|
23
19
|
*/
|
|
24
20
|
'requests'?: Array<FeaturedOfferExpectedPriceRequest>;
|
|
25
21
|
}
|
|
@@ -12,14 +12,10 @@
|
|
|
12
12
|
import type { FeaturedOfferExpectedPriceResponse } from './featured-offer-expected-price-response';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the `getFeaturedOfferExpectedPriceBatch` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetFeaturedOfferExpectedPriceBatchResponse
|
|
17
15
|
*/
|
|
18
16
|
export interface GetFeaturedOfferExpectedPriceBatchResponse {
|
|
19
17
|
/**
|
|
20
18
|
* A batched list of FOEP responses.
|
|
21
|
-
* @type {Array<FeaturedOfferExpectedPriceResponse>}
|
|
22
|
-
* @memberof GetFeaturedOfferExpectedPriceBatchResponse
|
|
23
19
|
*/
|
|
24
20
|
'responses'?: Array<FeaturedOfferExpectedPriceResponse>;
|
|
25
21
|
}
|