@sp-api-sdk/invoices-api-2024-06-19 2.1.3 → 2.1.4
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/invoices-api.js +7 -7
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/export-status.js +1 -1
- package/dist/cjs/api-model/models/file-format.js +1 -1
- package/dist/cjs/api-model/models/government-invoice-creation-status.js +1 -1
- package/dist/es/api-model/api/invoices-api.js +7 -7
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/export-status.js +1 -1
- package/dist/es/api-model/models/file-format.js +1 -1
- package/dist/es/api-model/models/government-invoice-creation-status.js +1 -1
- package/package.json +4 -4
|
@@ -109,7 +109,7 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
109
109
|
// verify required parameter 'invoiceType' is not null or undefined
|
|
110
110
|
(0, common_1.assertParamExists)('getGovernmentInvoiceDocument', 'invoiceType', invoiceType);
|
|
111
111
|
const localVarPath = `/tax/invoices/2024-06-19/governmentInvoiceRequests/{shipmentId}`
|
|
112
|
-
.replace(
|
|
112
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
113
113
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
114
114
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
115
|
let baseOptions;
|
|
@@ -209,7 +209,7 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
209
209
|
// verify required parameter 'invoiceId' is not null or undefined
|
|
210
210
|
(0, common_1.assertParamExists)('getInvoice', 'invoiceId', invoiceId);
|
|
211
211
|
const localVarPath = `/tax/invoices/2024-06-19/invoices/{invoiceId}`
|
|
212
|
-
.replace(
|
|
212
|
+
.replace('{invoiceId}', encodeURIComponent(String(invoiceId)));
|
|
213
213
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
214
214
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
215
|
let baseOptions;
|
|
@@ -359,7 +359,7 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
359
359
|
// verify required parameter 'invoicesDocumentId' is not null or undefined
|
|
360
360
|
(0, common_1.assertParamExists)('getInvoicesDocument', 'invoicesDocumentId', invoicesDocumentId);
|
|
361
361
|
const localVarPath = `/tax/invoices/2024-06-19/documents/{invoicesDocumentId}`
|
|
362
|
-
.replace(
|
|
362
|
+
.replace('{invoicesDocumentId}', encodeURIComponent(String(invoicesDocumentId)));
|
|
363
363
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
364
364
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
365
365
|
let baseOptions;
|
|
@@ -388,7 +388,7 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
388
388
|
// verify required parameter 'exportId' is not null or undefined
|
|
389
389
|
(0, common_1.assertParamExists)('getInvoicesExport', 'exportId', exportId);
|
|
390
390
|
const localVarPath = `/tax/invoices/2024-06-19/exports/{exportId}`
|
|
391
|
-
.replace(
|
|
391
|
+
.replace('{exportId}', encodeURIComponent(String(exportId)));
|
|
392
392
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
393
393
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
394
394
|
let baseOptions;
|
|
@@ -819,14 +819,14 @@ class InvoicesApi extends base_1.BaseAPI {
|
|
|
819
819
|
exports.InvoicesApi = InvoicesApi;
|
|
820
820
|
exports.GetInvoicesSortOrderEnum = {
|
|
821
821
|
Desc: 'DESC',
|
|
822
|
-
Asc: 'ASC'
|
|
822
|
+
Asc: 'ASC',
|
|
823
823
|
};
|
|
824
824
|
exports.GetInvoicesSortByEnum = {
|
|
825
|
-
StartDateTime: 'START_DATE_TIME'
|
|
825
|
+
StartDateTime: 'START_DATE_TIME',
|
|
826
826
|
};
|
|
827
827
|
exports.GetInvoicesExportsStatusEnum = {
|
|
828
828
|
Requested: 'REQUESTED',
|
|
829
829
|
Processing: 'PROCESSING',
|
|
830
830
|
Done: 'DONE',
|
|
831
|
-
Error: 'ERROR'
|
|
831
|
+
Error: 'ERROR',
|
|
832
832
|
};
|
|
@@ -91,8 +91,8 @@ class Configuration {
|
|
|
91
91
|
* @return True if the given MIME is JSON, false otherwise.
|
|
92
92
|
*/
|
|
93
93
|
isJsonMime(mime) {
|
|
94
|
-
const jsonMime =
|
|
95
|
-
return mime !== null &&
|
|
94
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
95
|
+
return mime !== null && jsonMime.test(mime);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
exports.Configuration = Configuration;
|
|
@@ -103,7 +103,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
// verify required parameter 'invoiceType' is not null or undefined
|
|
104
104
|
assertParamExists('getGovernmentInvoiceDocument', 'invoiceType', invoiceType);
|
|
105
105
|
const localVarPath = `/tax/invoices/2024-06-19/governmentInvoiceRequests/{shipmentId}`
|
|
106
|
-
.replace(
|
|
106
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
107
107
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
108
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
109
109
|
let baseOptions;
|
|
@@ -203,7 +203,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
203
203
|
// verify required parameter 'invoiceId' is not null or undefined
|
|
204
204
|
assertParamExists('getInvoice', 'invoiceId', invoiceId);
|
|
205
205
|
const localVarPath = `/tax/invoices/2024-06-19/invoices/{invoiceId}`
|
|
206
|
-
.replace(
|
|
206
|
+
.replace('{invoiceId}', encodeURIComponent(String(invoiceId)));
|
|
207
207
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
208
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
209
209
|
let baseOptions;
|
|
@@ -353,7 +353,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
353
353
|
// verify required parameter 'invoicesDocumentId' is not null or undefined
|
|
354
354
|
assertParamExists('getInvoicesDocument', 'invoicesDocumentId', invoicesDocumentId);
|
|
355
355
|
const localVarPath = `/tax/invoices/2024-06-19/documents/{invoicesDocumentId}`
|
|
356
|
-
.replace(
|
|
356
|
+
.replace('{invoicesDocumentId}', encodeURIComponent(String(invoicesDocumentId)));
|
|
357
357
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
358
358
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
359
359
|
let baseOptions;
|
|
@@ -382,7 +382,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
382
382
|
// verify required parameter 'exportId' is not null or undefined
|
|
383
383
|
assertParamExists('getInvoicesExport', 'exportId', exportId);
|
|
384
384
|
const localVarPath = `/tax/invoices/2024-06-19/exports/{exportId}`
|
|
385
|
-
.replace(
|
|
385
|
+
.replace('{exportId}', encodeURIComponent(String(exportId)));
|
|
386
386
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
387
387
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
388
388
|
let baseOptions;
|
|
@@ -809,14 +809,14 @@ export class InvoicesApi extends BaseAPI {
|
|
|
809
809
|
}
|
|
810
810
|
export const GetInvoicesSortOrderEnum = {
|
|
811
811
|
Desc: 'DESC',
|
|
812
|
-
Asc: 'ASC'
|
|
812
|
+
Asc: 'ASC',
|
|
813
813
|
};
|
|
814
814
|
export const GetInvoicesSortByEnum = {
|
|
815
|
-
StartDateTime: 'START_DATE_TIME'
|
|
815
|
+
StartDateTime: 'START_DATE_TIME',
|
|
816
816
|
};
|
|
817
817
|
export const GetInvoicesExportsStatusEnum = {
|
|
818
818
|
Requested: 'REQUESTED',
|
|
819
819
|
Processing: 'PROCESSING',
|
|
820
820
|
Done: 'DONE',
|
|
821
|
-
Error: 'ERROR'
|
|
821
|
+
Error: 'ERROR',
|
|
822
822
|
};
|
|
@@ -88,7 +88,7 @@ export class Configuration {
|
|
|
88
88
|
* @return True if the given MIME is JSON, false otherwise.
|
|
89
89
|
*/
|
|
90
90
|
isJsonMime(mime) {
|
|
91
|
-
const jsonMime =
|
|
92
|
-
return mime !== null &&
|
|
91
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
92
|
+
return mime !== null && jsonMime.test(mime);
|
|
93
93
|
}
|
|
94
94
|
}
|
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.1.
|
|
5
|
+
"version": "2.1.4",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.31",
|
|
22
|
+
"axios": "^1.15.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"invoices api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|