@sp-api-sdk/product-pricing-api-v0 3.1.10 → 3.1.13

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.
@@ -68,6 +68,7 @@ const ProductPricingApiAxiosParamCreator = function (configuration) {
68
68
  if (customerType !== undefined) {
69
69
  localVarQueryParameter['CustomerType'] = customerType;
70
70
  }
71
+ localVarHeaderParameter['Accept'] = 'application/json';
71
72
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
72
73
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
73
74
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -112,6 +113,7 @@ const ProductPricingApiAxiosParamCreator = function (configuration) {
112
113
  if (customerType !== undefined) {
113
114
  localVarQueryParameter['CustomerType'] = customerType;
114
115
  }
116
+ localVarHeaderParameter['Accept'] = 'application/json';
115
117
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
116
118
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
117
119
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -140,6 +142,7 @@ const ProductPricingApiAxiosParamCreator = function (configuration) {
140
142
  const localVarHeaderParameter = {};
141
143
  const localVarQueryParameter = {};
142
144
  localVarHeaderParameter['Content-Type'] = 'application/json';
145
+ localVarHeaderParameter['Accept'] = 'application/json';
143
146
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
144
147
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
145
148
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -185,6 +188,7 @@ const ProductPricingApiAxiosParamCreator = function (configuration) {
185
188
  if (customerType !== undefined) {
186
189
  localVarQueryParameter['CustomerType'] = customerType;
187
190
  }
191
+ localVarHeaderParameter['Accept'] = 'application/json';
188
192
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
189
193
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
190
194
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -213,6 +217,7 @@ const ProductPricingApiAxiosParamCreator = function (configuration) {
213
217
  const localVarHeaderParameter = {};
214
218
  const localVarQueryParameter = {};
215
219
  localVarHeaderParameter['Content-Type'] = 'application/json';
220
+ localVarHeaderParameter['Accept'] = 'application/json';
216
221
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
217
222
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
218
223
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -266,6 +271,7 @@ const ProductPricingApiAxiosParamCreator = function (configuration) {
266
271
  if (offerType !== undefined) {
267
272
  localVarQueryParameter['OfferType'] = offerType;
268
273
  }
274
+ localVarHeaderParameter['Accept'] = 'application/json';
269
275
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
270
276
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
271
277
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  /* tslint:disable */
3
- /* eslint-disable */
4
3
  /**
5
4
  * Selling Partner API for Pricing
6
5
  * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
@@ -34,6 +33,17 @@ class Configuration {
34
33
  * @param scopes oauth2 scope
35
34
  */
36
35
  accessToken;
36
+ /**
37
+ * parameter for aws4 signature security
38
+ * @param {Object} AWS4Signature - AWS4 Signature security
39
+ * @param {string} options.region - aws region
40
+ * @param {string} options.service - name of the service.
41
+ * @param {string} credentials.accessKeyId - aws access key id
42
+ * @param {string} credentials.secretAccessKey - aws access key
43
+ * @param {string} credentials.sessionToken - aws session token
44
+ * @memberof Configuration
45
+ */
46
+ awsv4;
37
47
  /**
38
48
  * override base path
39
49
  */
@@ -59,6 +69,7 @@ class Configuration {
59
69
  this.username = param.username;
60
70
  this.password = param.password;
61
71
  this.accessToken = param.accessToken;
72
+ this.awsv4 = param.awsv4;
62
73
  this.basePath = param.basePath;
63
74
  this.serverIndex = param.serverIndex;
64
75
  this.baseOptions = {
@@ -62,6 +62,7 @@ export const ProductPricingApiAxiosParamCreator = function (configuration) {
62
62
  if (customerType !== undefined) {
63
63
  localVarQueryParameter['CustomerType'] = customerType;
64
64
  }
65
+ localVarHeaderParameter['Accept'] = 'application/json';
65
66
  setSearchParams(localVarUrlObj, localVarQueryParameter);
66
67
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
68
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -106,6 +107,7 @@ export const ProductPricingApiAxiosParamCreator = function (configuration) {
106
107
  if (customerType !== undefined) {
107
108
  localVarQueryParameter['CustomerType'] = customerType;
108
109
  }
110
+ localVarHeaderParameter['Accept'] = 'application/json';
109
111
  setSearchParams(localVarUrlObj, localVarQueryParameter);
110
112
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
111
113
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -134,6 +136,7 @@ export const ProductPricingApiAxiosParamCreator = function (configuration) {
134
136
  const localVarHeaderParameter = {};
135
137
  const localVarQueryParameter = {};
136
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
139
+ localVarHeaderParameter['Accept'] = 'application/json';
137
140
  setSearchParams(localVarUrlObj, localVarQueryParameter);
138
141
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
139
142
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -179,6 +182,7 @@ export const ProductPricingApiAxiosParamCreator = function (configuration) {
179
182
  if (customerType !== undefined) {
180
183
  localVarQueryParameter['CustomerType'] = customerType;
181
184
  }
185
+ localVarHeaderParameter['Accept'] = 'application/json';
182
186
  setSearchParams(localVarUrlObj, localVarQueryParameter);
183
187
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
184
188
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -207,6 +211,7 @@ export const ProductPricingApiAxiosParamCreator = function (configuration) {
207
211
  const localVarHeaderParameter = {};
208
212
  const localVarQueryParameter = {};
209
213
  localVarHeaderParameter['Content-Type'] = 'application/json';
214
+ localVarHeaderParameter['Accept'] = 'application/json';
210
215
  setSearchParams(localVarUrlObj, localVarQueryParameter);
211
216
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
212
217
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -260,6 +265,7 @@ export const ProductPricingApiAxiosParamCreator = function (configuration) {
260
265
  if (offerType !== undefined) {
261
266
  localVarQueryParameter['OfferType'] = offerType;
262
267
  }
268
+ localVarHeaderParameter['Accept'] = 'application/json';
263
269
  setSearchParams(localVarUrlObj, localVarQueryParameter);
264
270
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
265
271
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1,5 +1,4 @@
1
1
  /* tslint:disable */
2
- /* eslint-disable */
3
2
  /**
4
3
  * Selling Partner API for Pricing
5
4
  * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
@@ -31,6 +30,17 @@ export class Configuration {
31
30
  * @param scopes oauth2 scope
32
31
  */
33
32
  accessToken;
33
+ /**
34
+ * parameter for aws4 signature security
35
+ * @param {Object} AWS4Signature - AWS4 Signature security
36
+ * @param {string} options.region - aws region
37
+ * @param {string} options.service - name of the service.
38
+ * @param {string} credentials.accessKeyId - aws access key id
39
+ * @param {string} credentials.secretAccessKey - aws access key
40
+ * @param {string} credentials.sessionToken - aws session token
41
+ * @memberof Configuration
42
+ */
43
+ awsv4;
34
44
  /**
35
45
  * override base path
36
46
  */
@@ -56,6 +66,7 @@ export class Configuration {
56
66
  this.username = param.username;
57
67
  this.password = param.password;
58
68
  this.accessToken = param.accessToken;
69
+ this.awsv4 = param.awsv4;
59
70
  this.basePath = param.basePath;
60
71
  this.serverIndex = param.serverIndex;
61
72
  this.baseOptions = {
@@ -9,11 +9,23 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ interface AWSv4Configuration {
13
+ options?: {
14
+ region?: string;
15
+ service?: string;
16
+ };
17
+ credentials?: {
18
+ accessKeyId?: string;
19
+ secretAccessKey?: string;
20
+ sessionToken?: string;
21
+ };
22
+ }
12
23
  export interface ConfigurationParameters {
13
24
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
25
  username?: string;
15
26
  password?: string;
16
27
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
28
+ awsv4?: AWSv4Configuration;
17
29
  basePath?: string;
18
30
  serverIndex?: number;
19
31
  baseOptions?: any;
@@ -39,6 +51,17 @@ export declare class Configuration {
39
51
  * @param scopes oauth2 scope
40
52
  */
41
53
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
54
+ /**
55
+ * parameter for aws4 signature security
56
+ * @param {Object} AWS4Signature - AWS4 Signature security
57
+ * @param {string} options.region - aws region
58
+ * @param {string} options.service - name of the service.
59
+ * @param {string} credentials.accessKeyId - aws access key id
60
+ * @param {string} credentials.secretAccessKey - aws access key
61
+ * @param {string} credentials.sessionToken - aws session token
62
+ * @memberof Configuration
63
+ */
64
+ awsv4?: AWSv4Configuration;
42
65
  /**
43
66
  * override base path
44
67
  */
@@ -72,3 +95,4 @@ export declare class Configuration {
72
95
  */
73
96
  isJsonMime(mime: string): boolean;
74
97
  }
98
+ export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/product-pricing-api-v0",
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 information for Amazon Marketplace products.",
5
- "version": "3.1.10",
5
+ "version": "3.1.13",
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.1.21",
21
+ "@sp-api-sdk/common": "2.1.24",
22
22
  "axios": "^1.13.2"
23
23
  },
24
24
  "repository": {
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "product pricing api"
42
42
  ],
43
- "gitHead": "3a1ed2407423d0d3b294a0fdc7d9bba38ad2c845"
43
+ "gitHead": "b3fe13460a11917282a12b5bdbcfaf565b9b773e"
44
44
  }