@sp-api-sdk/product-pricing-api-2022-05-01 2.1.1 → 2.1.3

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.
@@ -30,7 +30,7 @@ const base_1 = require("../base");
30
30
  const ProductPricingApiAxiosParamCreator = function (configuration) {
31
31
  return {
32
32
  /**
33
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
33
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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
34
  * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
35
35
  * @param {*} [options] Override http request option.
36
36
  * @throws {RequiredError}
@@ -98,7 +98,7 @@ const ProductPricingApiFp = function (configuration) {
98
98
  const localVarAxiosParamCreator = (0, exports.ProductPricingApiAxiosParamCreator)(configuration);
99
99
  return {
100
100
  /**
101
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
101
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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).
102
102
  * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
103
103
  * @param {*} [options] Override http request option.
104
104
  * @throws {RequiredError}
@@ -128,7 +128,7 @@ const ProductPricingApiFactory = function (configuration, basePath, axios) {
128
128
  const localVarFp = (0, exports.ProductPricingApiFp)(configuration);
129
129
  return {
130
130
  /**
131
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
131
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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).
132
132
  * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
133
133
  * @param {*} [options] Override http request option.
134
134
  * @throws {RequiredError}
@@ -156,7 +156,7 @@ exports.ProductPricingApiFactory = ProductPricingApiFactory;
156
156
  */
157
157
  class ProductPricingApi extends base_1.BaseAPI {
158
158
  /**
159
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
159
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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).
160
160
  * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
161
161
  * @param {*} [options] Override http request option.
162
162
  * @throws {RequiredError}
@@ -11,6 +11,13 @@ exports.clientRateLimits = [
11
11
  rate: 0.033,
12
12
  burst: 1,
13
13
  },
14
+ {
15
+ method: 'post',
16
+ // eslint-disable-next-line prefer-regex-literals
17
+ urlRegex: new RegExp('^/batches/products/pricing/2022-05-01/items/competitiveSummary$'),
18
+ rate: 0.033,
19
+ burst: 1,
20
+ },
14
21
  ];
15
22
  class ProductPricingApiClient extends api_model_1.ProductPricingApi {
16
23
  constructor(configuration) {
@@ -24,7 +24,7 @@ import { BASE_PATH, BaseAPI } from '../base';
24
24
  export const ProductPricingApiAxiosParamCreator = function (configuration) {
25
25
  return {
26
26
  /**
27
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
27
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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).
28
28
  * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
29
29
  * @param {*} [options] Override http request option.
30
30
  * @throws {RequiredError}
@@ -91,7 +91,7 @@ export const ProductPricingApiFp = function (configuration) {
91
91
  const localVarAxiosParamCreator = ProductPricingApiAxiosParamCreator(configuration);
92
92
  return {
93
93
  /**
94
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
94
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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).
95
95
  * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
96
96
  * @param {*} [options] Override http request option.
97
97
  * @throws {RequiredError}
@@ -120,7 +120,7 @@ export const ProductPricingApiFactory = function (configuration, basePath, axios
120
120
  const localVarFp = ProductPricingApiFp(configuration);
121
121
  return {
122
122
  /**
123
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
123
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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).
124
124
  * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
125
125
  * @param {*} [options] Override http request option.
126
126
  * @throws {RequiredError}
@@ -147,7 +147,7 @@ export const ProductPricingApiFactory = function (configuration, basePath, axios
147
147
  */
148
148
  export class ProductPricingApi extends BaseAPI {
149
149
  /**
150
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
150
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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).
151
151
  * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
152
152
  * @param {*} [options] Override http request option.
153
153
  * @throws {RequiredError}
@@ -8,6 +8,13 @@ export const clientRateLimits = [
8
8
  rate: 0.033,
9
9
  burst: 1,
10
10
  },
11
+ {
12
+ method: 'post',
13
+ // eslint-disable-next-line prefer-regex-literals
14
+ urlRegex: new RegExp('^/batches/products/pricing/2022-05-01/items/competitiveSummary$'),
15
+ rate: 0.033,
16
+ burst: 1,
17
+ },
11
18
  ];
12
19
  export class ProductPricingApiClient extends ProductPricingApi {
13
20
  constructor(configuration) {
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
+ import globalAxios from 'axios';
14
15
  import { RequestArgs, BaseAPI } from '../base';
15
16
  import { CompetitiveSummaryBatchRequest } from '../models';
16
17
  import { CompetitiveSummaryBatchResponse } from '../models';
@@ -22,7 +23,7 @@ import { GetFeaturedOfferExpectedPriceBatchResponse } from '../models';
22
23
  */
23
24
  export declare const ProductPricingApiAxiosParamCreator: (configuration?: Configuration) => {
24
25
  /**
25
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
26
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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).
26
27
  * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
27
28
  * @param {*} [options] Override http request option.
28
29
  * @throws {RequiredError}
@@ -42,7 +43,7 @@ export declare const ProductPricingApiAxiosParamCreator: (configuration?: Config
42
43
  */
43
44
  export declare const ProductPricingApiFp: (configuration?: Configuration) => {
44
45
  /**
45
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
46
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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).
46
47
  * @param {CompetitiveSummaryBatchRequest} requests The batch of `getCompetitiveSummary` requests.
47
48
  * @param {*} [options] Override http request option.
48
49
  * @throws {RequiredError}
@@ -62,7 +63,7 @@ export declare const ProductPricingApiFp: (configuration?: Configuration) => {
62
63
  */
63
64
  export declare const ProductPricingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
64
65
  /**
65
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
66
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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).
66
67
  * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
67
68
  * @param {*} [options] Override http request option.
68
69
  * @throws {RequiredError}
@@ -110,13 +111,13 @@ export interface ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest {
110
111
  */
111
112
  export declare class ProductPricingApi extends BaseAPI {
112
113
  /**
113
- * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination
114
+ * Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that 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).
114
115
  * @param {ProductPricingApiGetCompetitiveSummaryRequest} requestParameters Request parameters.
115
116
  * @param {*} [options] Override http request option.
116
117
  * @throws {RequiredError}
117
118
  * @memberof ProductPricingApi
118
119
  */
119
- getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompetitiveSummaryBatchResponse, any>>;
120
+ getCompetitiveSummary(requestParameters: ProductPricingApiGetCompetitiveSummaryRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<CompetitiveSummaryBatchResponse, any>>;
120
121
  /**
121
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).
122
123
  * @param {ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest} requestParameters Request parameters.
@@ -124,5 +125,5 @@ export declare class ProductPricingApi extends BaseAPI {
124
125
  * @throws {RequiredError}
125
126
  * @memberof ProductPricingApi
126
127
  */
127
- getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFeaturedOfferExpectedPriceBatchResponse, any>>;
128
+ getFeaturedOfferExpectedPriceBatch(requestParameters: ProductPricingApiGetFeaturedOfferExpectedPriceBatchRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetFeaturedOfferExpectedPriceBatchResponse, any>>;
128
129
  }
@@ -28,7 +28,7 @@ export interface ModelError {
28
28
  */
29
29
  'message': string;
30
30
  /**
31
- * Additional information that can help the caller understand or fix the issue.
31
+ * Additional details that can help the caller understand or fix the issue.
32
32
  * @type {string}
33
33
  * @memberof ModelError
34
34
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/product-pricing-api-2022-05-01",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@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.1.1",
5
+ "version": "2.1.3",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.0.3",
21
+ "@sp-api-sdk/common": "2.0.4",
22
22
  "axios": "^1.6.2"
23
23
  },
24
24
  "repository": {
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "product pricing api"
42
42
  ],
43
- "gitHead": "c81279baeb662780ae3cb42fb60fa11670fed191"
43
+ "gitHead": "96729dd2eabfca855da5eb33f271c0b09b449972"
44
44
  }