@invoicetronic/ts-sdk 1.4.0 → 1.5.0
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/CHANGELOG.md +1 -1
- package/README.md +2 -2
- package/api.ts +1 -0
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/src/api/company-api.d.ts +15 -10
- package/dist/esm/src/api/company-api.js +18 -11
- package/dist/esm/src/api/export-api.d.ts +10 -16
- package/dist/esm/src/api/export-api.js +4 -9
- package/dist/esm/src/api/health-api.d.ts +74 -0
- package/dist/esm/src/api/health-api.js +120 -0
- package/dist/esm/src/api/receive-api.d.ts +15 -10
- package/dist/esm/src/api/receive-api.js +18 -11
- package/dist/esm/src/api/send-api.d.ts +55 -51
- package/dist/esm/src/api/send-api.js +74 -67
- package/dist/esm/src/api/update-api.d.ts +10 -10
- package/dist/esm/src/api/update-api.js +8 -8
- package/dist/esm/src/models/document-data.d.ts +15 -0
- package/dist/esm/src/models/document-data.js +14 -0
- package/dist/esm/src/models/index.d.ts +5 -0
- package/dist/esm/src/models/index.js +5 -0
- package/dist/esm/src/models/model-error.d.ts +28 -0
- package/dist/esm/src/models/model-error.js +14 -0
- package/dist/esm/src/models/problem-details.d.ts +19 -0
- package/dist/esm/src/models/problem-details.js +14 -0
- package/dist/esm/src/models/problem-http-result.d.ts +17 -0
- package/dist/esm/src/models/problem-http-result.js +14 -0
- package/dist/esm/src/models/receive.d.ts +4 -0
- package/dist/esm/src/models/send-reduced.d.ts +39 -0
- package/dist/esm/src/models/send-reduced.js +14 -0
- package/dist/esm/src/models/send.d.ts +4 -0
- package/dist/src/api/company-api.d.ts +15 -10
- package/dist/src/api/company-api.js +18 -11
- package/dist/src/api/export-api.d.ts +10 -16
- package/dist/src/api/export-api.js +5 -10
- package/dist/src/api/health-api.d.ts +74 -0
- package/dist/src/api/health-api.js +127 -0
- package/dist/src/api/receive-api.d.ts +15 -10
- package/dist/src/api/receive-api.js +18 -11
- package/dist/src/api/send-api.d.ts +55 -51
- package/dist/src/api/send-api.js +74 -67
- package/dist/src/api/update-api.d.ts +10 -10
- package/dist/src/api/update-api.js +8 -8
- package/dist/src/models/document-data.d.ts +15 -0
- package/dist/src/models/document-data.js +15 -0
- package/dist/src/models/index.d.ts +5 -0
- package/dist/src/models/index.js +5 -0
- package/dist/src/models/model-error.d.ts +28 -0
- package/dist/src/models/model-error.js +15 -0
- package/dist/src/models/problem-details.d.ts +19 -0
- package/dist/src/models/problem-details.js +15 -0
- package/dist/src/models/problem-http-result.d.ts +17 -0
- package/dist/src/models/problem-http-result.js +15 -0
- package/dist/src/models/receive.d.ts +4 -0
- package/dist/src/models/send-reduced.d.ts +39 -0
- package/dist/src/models/send-reduced.js +15 -0
- package/dist/src/models/send.d.ts +4 -0
- package/docs/CompanyApi.md +5 -2
- package/docs/DocumentData.md +22 -0
- package/docs/Error.md +25 -0
- package/docs/ExportApi.md +2 -2
- package/docs/HealthApi.md +54 -0
- package/docs/ProblemDetails.md +28 -0
- package/docs/ProblemHttpResult.md +24 -0
- package/docs/Receive.md +2 -0
- package/docs/ReceiveApi.md +5 -2
- package/docs/Send.md +2 -0
- package/docs/SendApi.md +25 -26
- package/docs/SendReduced.md +29 -0
- package/docs/UpdateApi.md +2 -2
- package/package.json +1 -1
- package/src/api/company-api.ts +22 -13
- package/src/api/export-api.ts +10 -16
- package/src/api/health-api.ts +135 -0
- package/src/api/receive-api.ts +22 -13
- package/src/api/send-api.ts +86 -79
- package/src/api/update-api.ts +10 -10
- package/src/models/document-data.ts +21 -0
- package/src/models/index.ts +5 -0
- package/src/models/model-error.ts +34 -0
- package/src/models/problem-details.ts +26 -0
- package/src/models/problem-http-result.ts +25 -0
- package/src/models/receive.ts +4 -0
- package/src/models/send-reduced.ts +45 -0
- package/src/models/send.ts +4 -0
package/src/api/send-api.ts
CHANGED
|
@@ -25,8 +25,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../../base';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import type { FatturaOrdinaria } from '../../src/models';
|
|
29
|
-
// @ts-ignore
|
|
30
28
|
import type { ProblemDetails } from '../../src/models';
|
|
31
29
|
// @ts-ignore
|
|
32
30
|
import type { ProblemHttpResult } from '../../src/models';
|
|
@@ -92,7 +90,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
92
90
|
};
|
|
93
91
|
},
|
|
94
92
|
/**
|
|
95
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
93
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
96
94
|
* @summary List invoices
|
|
97
95
|
* @param {number} [companyId] Company id
|
|
98
96
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -110,10 +108,11 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
110
108
|
* @param {number} [page] Page number.
|
|
111
109
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
112
110
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
111
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
113
112
|
* @param {*} [options] Override http request option.
|
|
114
113
|
* @throws {RequiredError}
|
|
115
114
|
*/
|
|
116
|
-
sendGet: async (companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
115
|
+
sendGet: async (companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
117
116
|
const localVarPath = `/send`;
|
|
118
117
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
119
118
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -206,6 +205,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
206
205
|
localVarQueryParameter['sort'] = sort;
|
|
207
206
|
}
|
|
208
207
|
|
|
208
|
+
if (q !== undefined) {
|
|
209
|
+
localVarQueryParameter['q'] = q;
|
|
210
|
+
}
|
|
211
|
+
|
|
209
212
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
210
213
|
|
|
211
214
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -344,15 +347,15 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
344
347
|
/**
|
|
345
348
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
346
349
|
* @summary Add an invoice by json
|
|
347
|
-
* @param {
|
|
350
|
+
* @param {object} body
|
|
348
351
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
349
352
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
350
353
|
* @param {*} [options] Override http request option.
|
|
351
354
|
* @throws {RequiredError}
|
|
352
355
|
*/
|
|
353
|
-
sendJsonPost: async (
|
|
354
|
-
// verify required parameter '
|
|
355
|
-
assertParamExists('sendJsonPost', '
|
|
356
|
+
sendJsonPost: async (body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
357
|
+
// verify required parameter 'body' is not null or undefined
|
|
358
|
+
assertParamExists('sendJsonPost', 'body', body)
|
|
356
359
|
const localVarPath = `/send/json`;
|
|
357
360
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
358
361
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -383,7 +386,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
383
386
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
384
387
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
385
388
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
386
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
389
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
387
390
|
|
|
388
391
|
return {
|
|
389
392
|
url: toPathString(localVarUrlObj),
|
|
@@ -486,13 +489,13 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
486
489
|
/**
|
|
487
490
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
488
491
|
* @summary Validate an invoice by json
|
|
489
|
-
* @param {
|
|
492
|
+
* @param {object} body
|
|
490
493
|
* @param {*} [options] Override http request option.
|
|
491
494
|
* @throws {RequiredError}
|
|
492
495
|
*/
|
|
493
|
-
sendValidateJsonPost: async (
|
|
494
|
-
// verify required parameter '
|
|
495
|
-
assertParamExists('sendValidateJsonPost', '
|
|
496
|
+
sendValidateJsonPost: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
497
|
+
// verify required parameter 'body' is not null or undefined
|
|
498
|
+
assertParamExists('sendValidateJsonPost', 'body', body)
|
|
496
499
|
const localVarPath = `/send/validate/json`;
|
|
497
500
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
498
501
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -515,7 +518,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
515
518
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
516
519
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
517
520
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
518
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
521
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
519
522
|
|
|
520
523
|
return {
|
|
521
524
|
url: toPathString(localVarUrlObj),
|
|
@@ -564,13 +567,13 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
564
567
|
/**
|
|
565
568
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
566
569
|
* @summary Validate an invoice by xml
|
|
567
|
-
* @param {
|
|
570
|
+
* @param {object} body
|
|
568
571
|
* @param {*} [options] Override http request option.
|
|
569
572
|
* @throws {RequiredError}
|
|
570
573
|
*/
|
|
571
|
-
sendValidateXmlPost: async (
|
|
572
|
-
// verify required parameter '
|
|
573
|
-
assertParamExists('sendValidateXmlPost', '
|
|
574
|
+
sendValidateXmlPost: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
575
|
+
// verify required parameter 'body' is not null or undefined
|
|
576
|
+
assertParamExists('sendValidateXmlPost', 'body', body)
|
|
574
577
|
const localVarPath = `/send/validate/xml`;
|
|
575
578
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
576
579
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -593,7 +596,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
593
596
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
594
597
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
595
598
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
596
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
599
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
597
600
|
|
|
598
601
|
return {
|
|
599
602
|
url: toPathString(localVarUrlObj),
|
|
@@ -603,15 +606,15 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
603
606
|
/**
|
|
604
607
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
605
608
|
* @summary Add an invoice by xml
|
|
606
|
-
* @param {
|
|
609
|
+
* @param {object} body
|
|
607
610
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
608
611
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
609
612
|
* @param {*} [options] Override http request option.
|
|
610
613
|
* @throws {RequiredError}
|
|
611
614
|
*/
|
|
612
|
-
sendXmlPost: async (
|
|
613
|
-
// verify required parameter '
|
|
614
|
-
assertParamExists('sendXmlPost', '
|
|
615
|
+
sendXmlPost: async (body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
616
|
+
// verify required parameter 'body' is not null or undefined
|
|
617
|
+
assertParamExists('sendXmlPost', 'body', body)
|
|
615
618
|
const localVarPath = `/send/xml`;
|
|
616
619
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
617
620
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -642,7 +645,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
642
645
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
643
646
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
644
647
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
645
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
648
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
646
649
|
|
|
647
650
|
return {
|
|
648
651
|
url: toPathString(localVarUrlObj),
|
|
@@ -674,7 +677,7 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
674
677
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
675
678
|
},
|
|
676
679
|
/**
|
|
677
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
680
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
678
681
|
* @summary List invoices
|
|
679
682
|
* @param {number} [companyId] Company id
|
|
680
683
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -692,11 +695,12 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
692
695
|
* @param {number} [page] Page number.
|
|
693
696
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
694
697
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
698
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
695
699
|
* @param {*} [options] Override http request option.
|
|
696
700
|
* @throws {RequiredError}
|
|
697
701
|
*/
|
|
698
|
-
async sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Send>>> {
|
|
699
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
|
|
702
|
+
async sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Send>>> {
|
|
703
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
|
|
700
704
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
701
705
|
const localVarOperationServerBasePath = operationServerMap['SendApi.sendGet']?.[localVarOperationServerIndex]?.url;
|
|
702
706
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -745,14 +749,14 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
745
749
|
/**
|
|
746
750
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
747
751
|
* @summary Add an invoice by json
|
|
748
|
-
* @param {
|
|
752
|
+
* @param {object} body
|
|
749
753
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
750
754
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
751
755
|
* @param {*} [options] Override http request option.
|
|
752
756
|
* @throws {RequiredError}
|
|
753
757
|
*/
|
|
754
|
-
async sendJsonPost(
|
|
755
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendJsonPost(
|
|
758
|
+
async sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>> {
|
|
759
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendJsonPost(body, validate, signature, options);
|
|
756
760
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
757
761
|
const localVarOperationServerBasePath = operationServerMap['SendApi.sendJsonPost']?.[localVarOperationServerIndex]?.url;
|
|
758
762
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -788,12 +792,12 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
788
792
|
/**
|
|
789
793
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
790
794
|
* @summary Validate an invoice by json
|
|
791
|
-
* @param {
|
|
795
|
+
* @param {object} body
|
|
792
796
|
* @param {*} [options] Override http request option.
|
|
793
797
|
* @throws {RequiredError}
|
|
794
798
|
*/
|
|
795
|
-
async sendValidateJsonPost(
|
|
796
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateJsonPost(
|
|
799
|
+
async sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
800
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateJsonPost(body, options);
|
|
797
801
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
798
802
|
const localVarOperationServerBasePath = operationServerMap['SendApi.sendValidateJsonPost']?.[localVarOperationServerIndex]?.url;
|
|
799
803
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -814,12 +818,12 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
814
818
|
/**
|
|
815
819
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
816
820
|
* @summary Validate an invoice by xml
|
|
817
|
-
* @param {
|
|
821
|
+
* @param {object} body
|
|
818
822
|
* @param {*} [options] Override http request option.
|
|
819
823
|
* @throws {RequiredError}
|
|
820
824
|
*/
|
|
821
|
-
async sendValidateXmlPost(
|
|
822
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateXmlPost(
|
|
825
|
+
async sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
826
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateXmlPost(body, options);
|
|
823
827
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
824
828
|
const localVarOperationServerBasePath = operationServerMap['SendApi.sendValidateXmlPost']?.[localVarOperationServerIndex]?.url;
|
|
825
829
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -827,14 +831,14 @@ export const SendApiFp = function(configuration?: Configuration) {
|
|
|
827
831
|
/**
|
|
828
832
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
829
833
|
* @summary Add an invoice by xml
|
|
830
|
-
* @param {
|
|
834
|
+
* @param {object} body
|
|
831
835
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
832
836
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
833
837
|
* @param {*} [options] Override http request option.
|
|
834
838
|
* @throws {RequiredError}
|
|
835
839
|
*/
|
|
836
|
-
async sendXmlPost(
|
|
837
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendXmlPost(
|
|
840
|
+
async sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>> {
|
|
841
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendXmlPost(body, validate, signature, options);
|
|
838
842
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
839
843
|
const localVarOperationServerBasePath = operationServerMap['SendApi.sendXmlPost']?.[localVarOperationServerIndex]?.url;
|
|
840
844
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -861,7 +865,7 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
|
|
|
861
865
|
return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
|
|
862
866
|
},
|
|
863
867
|
/**
|
|
864
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
868
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
865
869
|
* @summary List invoices
|
|
866
870
|
* @param {number} [companyId] Company id
|
|
867
871
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -879,11 +883,12 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
|
|
|
879
883
|
* @param {number} [page] Page number.
|
|
880
884
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
881
885
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
886
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
882
887
|
* @param {*} [options] Override http request option.
|
|
883
888
|
* @throws {RequiredError}
|
|
884
889
|
*/
|
|
885
|
-
sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>> {
|
|
886
|
-
return localVarFp.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(axios, basePath));
|
|
890
|
+
sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>> {
|
|
891
|
+
return localVarFp.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(axios, basePath));
|
|
887
892
|
},
|
|
888
893
|
/**
|
|
889
894
|
* Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -920,14 +925,14 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
|
|
|
920
925
|
/**
|
|
921
926
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
922
927
|
* @summary Add an invoice by json
|
|
923
|
-
* @param {
|
|
928
|
+
* @param {object} body
|
|
924
929
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
925
930
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
926
931
|
* @param {*} [options] Override http request option.
|
|
927
932
|
* @throws {RequiredError}
|
|
928
933
|
*/
|
|
929
|
-
sendJsonPost(
|
|
930
|
-
return localVarFp.sendJsonPost(
|
|
934
|
+
sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send> {
|
|
935
|
+
return localVarFp.sendJsonPost(body, validate, signature, options).then((request) => request(axios, basePath));
|
|
931
936
|
},
|
|
932
937
|
/**
|
|
933
938
|
* Add a new invoice using a structured Send object. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
@@ -954,12 +959,12 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
|
|
|
954
959
|
/**
|
|
955
960
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
956
961
|
* @summary Validate an invoice by json
|
|
957
|
-
* @param {
|
|
962
|
+
* @param {object} body
|
|
958
963
|
* @param {*} [options] Override http request option.
|
|
959
964
|
* @throws {RequiredError}
|
|
960
965
|
*/
|
|
961
|
-
sendValidateJsonPost(
|
|
962
|
-
return localVarFp.sendValidateJsonPost(
|
|
966
|
+
sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
967
|
+
return localVarFp.sendValidateJsonPost(body, options).then((request) => request(axios, basePath));
|
|
963
968
|
},
|
|
964
969
|
/**
|
|
965
970
|
* Validate an invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -974,24 +979,24 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
|
|
|
974
979
|
/**
|
|
975
980
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
976
981
|
* @summary Validate an invoice by xml
|
|
977
|
-
* @param {
|
|
982
|
+
* @param {object} body
|
|
978
983
|
* @param {*} [options] Override http request option.
|
|
979
984
|
* @throws {RequiredError}
|
|
980
985
|
*/
|
|
981
|
-
sendValidateXmlPost(
|
|
982
|
-
return localVarFp.sendValidateXmlPost(
|
|
986
|
+
sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
987
|
+
return localVarFp.sendValidateXmlPost(body, options).then((request) => request(axios, basePath));
|
|
983
988
|
},
|
|
984
989
|
/**
|
|
985
990
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
986
991
|
* @summary Add an invoice by xml
|
|
987
|
-
* @param {
|
|
992
|
+
* @param {object} body
|
|
988
993
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
989
994
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
990
995
|
* @param {*} [options] Override http request option.
|
|
991
996
|
* @throws {RequiredError}
|
|
992
997
|
*/
|
|
993
|
-
sendXmlPost(
|
|
994
|
-
return localVarFp.sendXmlPost(
|
|
998
|
+
sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send> {
|
|
999
|
+
return localVarFp.sendXmlPost(body, validate, signature, options).then((request) => request(axios, basePath));
|
|
995
1000
|
},
|
|
996
1001
|
};
|
|
997
1002
|
};
|
|
@@ -1012,7 +1017,7 @@ export interface SendApiInterface {
|
|
|
1012
1017
|
sendFilePost(file: File, validate?: boolean, signature?: SendFilePostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
|
|
1013
1018
|
|
|
1014
1019
|
/**
|
|
1015
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
1020
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
1016
1021
|
* @summary List invoices
|
|
1017
1022
|
* @param {number} [companyId] Company id
|
|
1018
1023
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -1030,10 +1035,11 @@ export interface SendApiInterface {
|
|
|
1030
1035
|
* @param {number} [page] Page number.
|
|
1031
1036
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
1032
1037
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
1038
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
1033
1039
|
* @param {*} [options] Override http request option.
|
|
1034
1040
|
* @throws {RequiredError}
|
|
1035
1041
|
*/
|
|
1036
|
-
sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>>;
|
|
1042
|
+
sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>>;
|
|
1037
1043
|
|
|
1038
1044
|
/**
|
|
1039
1045
|
* Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -1067,13 +1073,13 @@ export interface SendApiInterface {
|
|
|
1067
1073
|
/**
|
|
1068
1074
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
1069
1075
|
* @summary Add an invoice by json
|
|
1070
|
-
* @param {
|
|
1076
|
+
* @param {object} body
|
|
1071
1077
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1072
1078
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1073
1079
|
* @param {*} [options] Override http request option.
|
|
1074
1080
|
* @throws {RequiredError}
|
|
1075
1081
|
*/
|
|
1076
|
-
sendJsonPost(
|
|
1082
|
+
sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
|
|
1077
1083
|
|
|
1078
1084
|
/**
|
|
1079
1085
|
* Add a new invoice using a structured Send object. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
@@ -1098,11 +1104,11 @@ export interface SendApiInterface {
|
|
|
1098
1104
|
/**
|
|
1099
1105
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
1100
1106
|
* @summary Validate an invoice by json
|
|
1101
|
-
* @param {
|
|
1107
|
+
* @param {object} body
|
|
1102
1108
|
* @param {*} [options] Override http request option.
|
|
1103
1109
|
* @throws {RequiredError}
|
|
1104
1110
|
*/
|
|
1105
|
-
sendValidateJsonPost(
|
|
1111
|
+
sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1106
1112
|
|
|
1107
1113
|
/**
|
|
1108
1114
|
* Validate an invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -1116,22 +1122,22 @@ export interface SendApiInterface {
|
|
|
1116
1122
|
/**
|
|
1117
1123
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
1118
1124
|
* @summary Validate an invoice by xml
|
|
1119
|
-
* @param {
|
|
1125
|
+
* @param {object} body
|
|
1120
1126
|
* @param {*} [options] Override http request option.
|
|
1121
1127
|
* @throws {RequiredError}
|
|
1122
1128
|
*/
|
|
1123
|
-
sendValidateXmlPost(
|
|
1129
|
+
sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1124
1130
|
|
|
1125
1131
|
/**
|
|
1126
1132
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
1127
1133
|
* @summary Add an invoice by xml
|
|
1128
|
-
* @param {
|
|
1134
|
+
* @param {object} body
|
|
1129
1135
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1130
1136
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1131
1137
|
* @param {*} [options] Override http request option.
|
|
1132
1138
|
* @throws {RequiredError}
|
|
1133
1139
|
*/
|
|
1134
|
-
sendXmlPost(
|
|
1140
|
+
sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
|
|
1135
1141
|
|
|
1136
1142
|
}
|
|
1137
1143
|
|
|
@@ -1153,7 +1159,7 @@ export class SendApi extends BaseAPI implements SendApiInterface {
|
|
|
1153
1159
|
}
|
|
1154
1160
|
|
|
1155
1161
|
/**
|
|
1156
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
1162
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
1157
1163
|
* @summary List invoices
|
|
1158
1164
|
* @param {number} [companyId] Company id
|
|
1159
1165
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -1171,11 +1177,12 @@ export class SendApi extends BaseAPI implements SendApiInterface {
|
|
|
1171
1177
|
* @param {number} [page] Page number.
|
|
1172
1178
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
1173
1179
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
1180
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
1174
1181
|
* @param {*} [options] Override http request option.
|
|
1175
1182
|
* @throws {RequiredError}
|
|
1176
1183
|
*/
|
|
1177
|
-
public sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig) {
|
|
1178
|
-
return SendApiFp(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
|
|
1184
|
+
public sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig) {
|
|
1185
|
+
return SendApiFp(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
|
|
1179
1186
|
}
|
|
1180
1187
|
|
|
1181
1188
|
/**
|
|
@@ -1216,14 +1223,14 @@ export class SendApi extends BaseAPI implements SendApiInterface {
|
|
|
1216
1223
|
/**
|
|
1217
1224
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
1218
1225
|
* @summary Add an invoice by json
|
|
1219
|
-
* @param {
|
|
1226
|
+
* @param {object} body
|
|
1220
1227
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1221
1228
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1222
1229
|
* @param {*} [options] Override http request option.
|
|
1223
1230
|
* @throws {RequiredError}
|
|
1224
1231
|
*/
|
|
1225
|
-
public sendJsonPost(
|
|
1226
|
-
return SendApiFp(this.configuration).sendJsonPost(
|
|
1232
|
+
public sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig) {
|
|
1233
|
+
return SendApiFp(this.configuration).sendJsonPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
1227
1234
|
}
|
|
1228
1235
|
|
|
1229
1236
|
/**
|
|
@@ -1253,12 +1260,12 @@ export class SendApi extends BaseAPI implements SendApiInterface {
|
|
|
1253
1260
|
/**
|
|
1254
1261
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
1255
1262
|
* @summary Validate an invoice by json
|
|
1256
|
-
* @param {
|
|
1263
|
+
* @param {object} body
|
|
1257
1264
|
* @param {*} [options] Override http request option.
|
|
1258
1265
|
* @throws {RequiredError}
|
|
1259
1266
|
*/
|
|
1260
|
-
public sendValidateJsonPost(
|
|
1261
|
-
return SendApiFp(this.configuration).sendValidateJsonPost(
|
|
1267
|
+
public sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig) {
|
|
1268
|
+
return SendApiFp(this.configuration).sendValidateJsonPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
1262
1269
|
}
|
|
1263
1270
|
|
|
1264
1271
|
/**
|
|
@@ -1275,25 +1282,25 @@ export class SendApi extends BaseAPI implements SendApiInterface {
|
|
|
1275
1282
|
/**
|
|
1276
1283
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
1277
1284
|
* @summary Validate an invoice by xml
|
|
1278
|
-
* @param {
|
|
1285
|
+
* @param {object} body
|
|
1279
1286
|
* @param {*} [options] Override http request option.
|
|
1280
1287
|
* @throws {RequiredError}
|
|
1281
1288
|
*/
|
|
1282
|
-
public sendValidateXmlPost(
|
|
1283
|
-
return SendApiFp(this.configuration).sendValidateXmlPost(
|
|
1289
|
+
public sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig) {
|
|
1290
|
+
return SendApiFp(this.configuration).sendValidateXmlPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
1284
1291
|
}
|
|
1285
1292
|
|
|
1286
1293
|
/**
|
|
1287
1294
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
1288
1295
|
* @summary Add an invoice by xml
|
|
1289
|
-
* @param {
|
|
1296
|
+
* @param {object} body
|
|
1290
1297
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1291
1298
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1292
1299
|
* @param {*} [options] Override http request option.
|
|
1293
1300
|
* @throws {RequiredError}
|
|
1294
1301
|
*/
|
|
1295
|
-
public sendXmlPost(
|
|
1296
|
-
return SendApiFp(this.configuration).sendXmlPost(
|
|
1302
|
+
public sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig) {
|
|
1303
|
+
return SendApiFp(this.configuration).sendXmlPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
1297
1304
|
}
|
|
1298
1305
|
}
|
|
1299
1306
|
|