@sp-api-sdk/invoices-api-2024-06-19 2.0.12 → 2.0.15

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.
@@ -48,6 +48,7 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
48
48
  const localVarHeaderParameter = {};
49
49
  const localVarQueryParameter = {};
50
50
  localVarHeaderParameter['Content-Type'] = 'application/json';
51
+ localVarHeaderParameter['Accept'] = 'application/json';
51
52
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
52
53
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
53
54
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -83,6 +84,7 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
83
84
  if (marketplaceId !== undefined) {
84
85
  localVarQueryParameter['marketplaceId'] = marketplaceId;
85
86
  }
87
+ localVarHeaderParameter['Accept'] = 'application/json';
86
88
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
87
89
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
90
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -169,6 +171,7 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
169
171
  if (sortBy !== undefined) {
170
172
  localVarQueryParameter['sortBy'] = sortBy;
171
173
  }
174
+ localVarHeaderParameter['Accept'] = 'application/json';
172
175
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
173
176
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
177
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -199,6 +202,7 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
199
202
  if (marketplaceId !== undefined) {
200
203
  localVarQueryParameter['marketplaceId'] = marketplaceId;
201
204
  }
205
+ localVarHeaderParameter['Accept'] = 'application/json';
202
206
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
203
207
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
204
208
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -227,6 +231,7 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
227
231
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
228
232
  const localVarHeaderParameter = {};
229
233
  const localVarQueryParameter = {};
234
+ localVarHeaderParameter['Accept'] = 'application/json';
230
235
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
231
236
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
232
237
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -255,6 +260,7 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
255
260
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
256
261
  const localVarHeaderParameter = {};
257
262
  const localVarQueryParameter = {};
263
+ localVarHeaderParameter['Accept'] = 'application/json';
258
264
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
259
265
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
266
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -309,6 +315,7 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
309
315
  if (status !== undefined) {
310
316
  localVarQueryParameter['status'] = status;
311
317
  }
318
+ localVarHeaderParameter['Accept'] = 'application/json';
312
319
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
313
320
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
321
  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
  * The Selling Partner API for Invoices.
6
5
  * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
@@ -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 = {
@@ -42,6 +42,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration) {
42
42
  const localVarHeaderParameter = {};
43
43
  const localVarQueryParameter = {};
44
44
  localVarHeaderParameter['Content-Type'] = 'application/json';
45
+ localVarHeaderParameter['Accept'] = 'application/json';
45
46
  setSearchParams(localVarUrlObj, localVarQueryParameter);
46
47
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47
48
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -77,6 +78,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration) {
77
78
  if (marketplaceId !== undefined) {
78
79
  localVarQueryParameter['marketplaceId'] = marketplaceId;
79
80
  }
81
+ localVarHeaderParameter['Accept'] = 'application/json';
80
82
  setSearchParams(localVarUrlObj, localVarQueryParameter);
81
83
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
82
84
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -163,6 +165,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration) {
163
165
  if (sortBy !== undefined) {
164
166
  localVarQueryParameter['sortBy'] = sortBy;
165
167
  }
168
+ localVarHeaderParameter['Accept'] = 'application/json';
166
169
  setSearchParams(localVarUrlObj, localVarQueryParameter);
167
170
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
168
171
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -193,6 +196,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration) {
193
196
  if (marketplaceId !== undefined) {
194
197
  localVarQueryParameter['marketplaceId'] = marketplaceId;
195
198
  }
199
+ localVarHeaderParameter['Accept'] = 'application/json';
196
200
  setSearchParams(localVarUrlObj, localVarQueryParameter);
197
201
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
198
202
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -221,6 +225,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration) {
221
225
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
222
226
  const localVarHeaderParameter = {};
223
227
  const localVarQueryParameter = {};
228
+ localVarHeaderParameter['Accept'] = 'application/json';
224
229
  setSearchParams(localVarUrlObj, localVarQueryParameter);
225
230
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
231
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -249,6 +254,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration) {
249
254
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
250
255
  const localVarHeaderParameter = {};
251
256
  const localVarQueryParameter = {};
257
+ localVarHeaderParameter['Accept'] = 'application/json';
252
258
  setSearchParams(localVarUrlObj, localVarQueryParameter);
253
259
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
260
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -303,6 +309,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration) {
303
309
  if (status !== undefined) {
304
310
  localVarQueryParameter['status'] = status;
305
311
  }
312
+ localVarHeaderParameter['Accept'] = 'application/json';
306
313
  setSearchParams(localVarUrlObj, localVarQueryParameter);
307
314
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
308
315
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1,5 +1,4 @@
1
1
  /* tslint:disable */
2
- /* eslint-disable */
3
2
  /**
4
3
  * The Selling Partner API for Invoices.
5
4
  * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
@@ -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/invoices-api-2024-06-19",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.",
5
- "version": "2.0.12",
5
+ "version": "2.0.15",
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
  "invoices api"
42
42
  ],
43
- "gitHead": "3a1ed2407423d0d3b294a0fdc7d9bba38ad2c845"
43
+ "gitHead": "b3fe13460a11917282a12b5bdbcfaf565b9b773e"
44
44
  }