@invoicetronic/ts-sdk 1.6.0 → 1.8.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 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/src/api/company-api.d.ts +1 -1
- package/dist/esm/src/api/company-api.js +20 -2
- package/dist/esm/src/api/export-api.d.ts +1 -1
- package/dist/esm/src/api/export-api.js +5 -2
- package/dist/esm/src/api/health-api.d.ts +1 -1
- package/dist/esm/src/api/health-api.js +5 -2
- package/dist/esm/src/api/log-api.d.ts +1 -1
- package/dist/esm/src/api/log-api.js +8 -2
- package/dist/esm/src/api/receive-api.d.ts +16 -16
- package/dist/esm/src/api/receive-api.js +26 -14
- package/dist/esm/src/api/send-api.d.ts +16 -11
- package/dist/esm/src/api/send-api.js +56 -13
- package/dist/esm/src/api/status-api.d.ts +1 -1
- package/dist/esm/src/api/status-api.js +5 -2
- package/dist/esm/src/api/update-api.d.ts +1 -1
- package/dist/esm/src/api/update-api.js +8 -2
- package/dist/esm/src/api/webhook-api.d.ts +1 -1
- package/dist/esm/src/api/webhook-api.js +23 -2
- package/dist/esm/src/models/company.d.ts +3 -3
- package/dist/esm/src/models/company.js +1 -1
- package/dist/esm/src/models/document-data.d.ts +1 -1
- package/dist/esm/src/models/document-data.js +1 -1
- package/dist/esm/src/models/event.d.ts +2 -2
- package/dist/esm/src/models/event.js +1 -1
- package/dist/esm/src/models/model-error.d.ts +1 -1
- package/dist/esm/src/models/model-error.js +1 -1
- package/dist/esm/src/models/problem-details.d.ts +1 -1
- package/dist/esm/src/models/problem-details.js +1 -1
- package/dist/esm/src/models/receive.d.ts +5 -5
- package/dist/esm/src/models/receive.js +1 -1
- package/dist/esm/src/models/send-reduced.d.ts +17 -1
- package/dist/esm/src/models/send-reduced.js +12 -2
- package/dist/esm/src/models/send.d.ts +21 -5
- package/dist/esm/src/models/send.js +12 -1
- package/dist/esm/src/models/status.d.ts +9 -1
- package/dist/esm/src/models/status.js +1 -1
- package/dist/esm/src/models/update.d.ts +2 -2
- package/dist/esm/src/models/update.js +1 -1
- package/dist/esm/src/models/web-hook-history.d.ts +7 -3
- package/dist/esm/src/models/web-hook-history.js +1 -1
- package/dist/esm/src/models/web-hook.d.ts +8 -4
- package/dist/esm/src/models/web-hook.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/src/api/company-api.d.ts +1 -1
- package/dist/src/api/company-api.js +19 -1
- package/dist/src/api/export-api.d.ts +1 -1
- package/dist/src/api/export-api.js +4 -1
- package/dist/src/api/health-api.d.ts +1 -1
- package/dist/src/api/health-api.js +4 -1
- package/dist/src/api/log-api.d.ts +1 -1
- package/dist/src/api/log-api.js +7 -1
- package/dist/src/api/receive-api.d.ts +16 -16
- package/dist/src/api/receive-api.js +25 -13
- package/dist/src/api/send-api.d.ts +16 -11
- package/dist/src/api/send-api.js +55 -12
- package/dist/src/api/status-api.d.ts +1 -1
- package/dist/src/api/status-api.js +4 -1
- package/dist/src/api/update-api.d.ts +1 -1
- package/dist/src/api/update-api.js +7 -1
- package/dist/src/api/webhook-api.d.ts +1 -1
- package/dist/src/api/webhook-api.js +22 -1
- package/dist/src/models/company.d.ts +3 -3
- package/dist/src/models/company.js +1 -1
- package/dist/src/models/document-data.d.ts +1 -1
- package/dist/src/models/document-data.js +1 -1
- package/dist/src/models/event.d.ts +2 -2
- package/dist/src/models/event.js +1 -1
- package/dist/src/models/model-error.d.ts +1 -1
- package/dist/src/models/model-error.js +1 -1
- package/dist/src/models/problem-details.d.ts +1 -1
- package/dist/src/models/problem-details.js +1 -1
- package/dist/src/models/receive.d.ts +5 -5
- package/dist/src/models/receive.js +1 -1
- package/dist/src/models/send-reduced.d.ts +17 -1
- package/dist/src/models/send-reduced.js +13 -1
- package/dist/src/models/send.d.ts +21 -5
- package/dist/src/models/send.js +13 -2
- package/dist/src/models/status.d.ts +9 -1
- package/dist/src/models/status.js +1 -1
- package/dist/src/models/update.d.ts +2 -2
- package/dist/src/models/update.js +1 -1
- package/dist/src/models/web-hook-history.d.ts +7 -3
- package/dist/src/models/web-hook-history.js +1 -1
- package/dist/src/models/web-hook.d.ts +8 -4
- package/dist/src/models/web-hook.js +1 -1
- package/docs/Company.md +4 -4
- package/docs/CompanyApi.md +6 -6
- package/docs/Event.md +3 -3
- package/docs/ExportApi.md +1 -1
- package/docs/HealthApi.md +1 -1
- package/docs/LogApi.md +2 -2
- package/docs/Receive.md +12 -12
- package/docs/ReceiveApi.md +7 -7
- package/docs/Send.md +15 -13
- package/docs/SendApi.md +16 -13
- package/docs/SendReduced.md +2 -0
- package/docs/Status.md +4 -0
- package/docs/StatusApi.md +1 -1
- package/docs/Update.md +3 -3
- package/docs/UpdateApi.md +2 -2
- package/docs/WebHook.md +7 -5
- package/docs/WebHookHistory.md +6 -4
- package/docs/WebhookApi.md +7 -7
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/api/company-api.ts +25 -1
- package/src/api/export-api.ts +5 -1
- package/src/api/health-api.ts +5 -1
- package/src/api/log-api.ts +9 -1
- package/src/api/receive-api.ts +32 -16
- package/src/api/send-api.ts +71 -14
- package/src/api/status-api.ts +5 -1
- package/src/api/update-api.ts +9 -1
- package/src/api/webhook-api.ts +29 -1
- package/src/models/company.ts +3 -3
- package/src/models/document-data.ts +1 -1
- package/src/models/event.ts +2 -2
- package/src/models/model-error.ts +1 -1
- package/src/models/problem-details.ts +1 -1
- package/src/models/receive.ts +5 -5
- package/src/models/send-reduced.ts +20 -1
- package/src/models/send.ts +22 -5
- package/src/models/status.ts +9 -1
- package/src/models/update.ts +2 -2
- package/src/models/web-hook-history.ts +7 -3
- package/src/models/web-hook.ts +8 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Invoicetronic API
|
|
3
3
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.12.0
|
|
6
6
|
* Contact: info@invoicetronic.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -36,4 +36,20 @@ export interface SendReduced {
|
|
|
36
36
|
* When the invoice was sent to SDI.
|
|
37
37
|
*/
|
|
38
38
|
'date_sent'?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Current SDI state of the invoice. Reflects the most recent update received from SDI.
|
|
41
|
+
*/
|
|
42
|
+
'latest_state'?: SendReducedLatestStateEnum | null;
|
|
39
43
|
}
|
|
44
|
+
export declare const SendReducedLatestStateEnum: {
|
|
45
|
+
readonly Inviato: "Inviato";
|
|
46
|
+
readonly Consegnato: "Consegnato";
|
|
47
|
+
readonly NonConsegnato: "NonConsegnato";
|
|
48
|
+
readonly Scartato: "Scartato";
|
|
49
|
+
readonly AccettatoDalDestinatario: "AccettatoDalDestinatario";
|
|
50
|
+
readonly RifiutatoDalDestinatario: "RifiutatoDalDestinatario";
|
|
51
|
+
readonly ImpossibilitaDiRecapito: "ImpossibilitaDiRecapito";
|
|
52
|
+
readonly DecorrenzaTermini: "DecorrenzaTermini";
|
|
53
|
+
readonly AttestazioneTrasmissioneFattura: "AttestazioneTrasmissioneFattura";
|
|
54
|
+
};
|
|
55
|
+
export type SendReducedLatestStateEnum = typeof SendReducedLatestStateEnum[keyof typeof SendReducedLatestStateEnum];
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Invoicetronic API
|
|
6
6
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.12.0
|
|
9
9
|
* Contact: info@invoicetronic.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,3 +13,15 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SendReducedLatestStateEnum = void 0;
|
|
17
|
+
exports.SendReducedLatestStateEnum = {
|
|
18
|
+
Inviato: 'Inviato',
|
|
19
|
+
Consegnato: 'Consegnato',
|
|
20
|
+
NonConsegnato: 'NonConsegnato',
|
|
21
|
+
Scartato: 'Scartato',
|
|
22
|
+
AccettatoDalDestinatario: 'AccettatoDalDestinatario',
|
|
23
|
+
RifiutatoDalDestinatario: 'RifiutatoDalDestinatario',
|
|
24
|
+
ImpossibilitaDiRecapito: 'ImpossibilitaDiRecapito',
|
|
25
|
+
DecorrenzaTermini: 'DecorrenzaTermini',
|
|
26
|
+
AttestazioneTrasmissioneFattura: 'AttestazioneTrasmissioneFattura'
|
|
27
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Invoicetronic API
|
|
3
3
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.12.0
|
|
6
6
|
* Contact: info@invoicetronic.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,7 +16,7 @@ import type { DocumentData } from './document-data';
|
|
|
16
16
|
*/
|
|
17
17
|
export interface Send {
|
|
18
18
|
/**
|
|
19
|
-
* Unique identifier.
|
|
19
|
+
* Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
|
|
20
20
|
*/
|
|
21
21
|
'id'?: number;
|
|
22
22
|
/**
|
|
@@ -28,11 +28,11 @@ export interface Send {
|
|
|
28
28
|
*/
|
|
29
29
|
'version'?: number;
|
|
30
30
|
/**
|
|
31
|
-
* User id.
|
|
31
|
+
* User id. It is set automatically based on the authenticated user.
|
|
32
32
|
*/
|
|
33
33
|
'user_id'?: number;
|
|
34
34
|
/**
|
|
35
|
-
* Company id.
|
|
35
|
+
* Company id. It is set automatically based on the VAT number extracted from the invoice payload (the sender for `send`, the recipient for `receive`).
|
|
36
36
|
*/
|
|
37
37
|
'company_id'?: number;
|
|
38
38
|
/**
|
|
@@ -48,7 +48,7 @@ export interface Send {
|
|
|
48
48
|
*/
|
|
49
49
|
'identifier'?: string | null;
|
|
50
50
|
/**
|
|
51
|
-
* Xml file name.
|
|
51
|
+
* Xml file name. If not provided on send, it will be auto-generated.
|
|
52
52
|
*/
|
|
53
53
|
'file_name'?: string | null;
|
|
54
54
|
/**
|
|
@@ -85,6 +85,10 @@ export interface Send {
|
|
|
85
85
|
'meta_data'?: {
|
|
86
86
|
[key: string]: string;
|
|
87
87
|
} | null;
|
|
88
|
+
/**
|
|
89
|
+
* Current SDI state of the invoice. Reflects the most recent update received from SDI. Null when no update has been received yet.
|
|
90
|
+
*/
|
|
91
|
+
'latest_state'?: SendLatestStateEnum | null;
|
|
88
92
|
'company'?: Company;
|
|
89
93
|
}
|
|
90
94
|
export declare const SendEncodingEnum: {
|
|
@@ -92,3 +96,15 @@ export declare const SendEncodingEnum: {
|
|
|
92
96
|
readonly Base64: "Base64";
|
|
93
97
|
};
|
|
94
98
|
export type SendEncodingEnum = typeof SendEncodingEnum[keyof typeof SendEncodingEnum];
|
|
99
|
+
export declare const SendLatestStateEnum: {
|
|
100
|
+
readonly Inviato: "Inviato";
|
|
101
|
+
readonly Consegnato: "Consegnato";
|
|
102
|
+
readonly NonConsegnato: "NonConsegnato";
|
|
103
|
+
readonly Scartato: "Scartato";
|
|
104
|
+
readonly AccettatoDalDestinatario: "AccettatoDalDestinatario";
|
|
105
|
+
readonly RifiutatoDalDestinatario: "RifiutatoDalDestinatario";
|
|
106
|
+
readonly ImpossibilitaDiRecapito: "ImpossibilitaDiRecapito";
|
|
107
|
+
readonly DecorrenzaTermini: "DecorrenzaTermini";
|
|
108
|
+
readonly AttestazioneTrasmissioneFattura: "AttestazioneTrasmissioneFattura";
|
|
109
|
+
};
|
|
110
|
+
export type SendLatestStateEnum = typeof SendLatestStateEnum[keyof typeof SendLatestStateEnum];
|
package/dist/src/models/send.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Invoicetronic API
|
|
6
6
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.12.0
|
|
9
9
|
* Contact: info@invoicetronic.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,8 +13,19 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SendEncodingEnum = void 0;
|
|
16
|
+
exports.SendLatestStateEnum = exports.SendEncodingEnum = void 0;
|
|
17
17
|
exports.SendEncodingEnum = {
|
|
18
18
|
Xml: 'Xml',
|
|
19
19
|
Base64: 'Base64'
|
|
20
20
|
};
|
|
21
|
+
exports.SendLatestStateEnum = {
|
|
22
|
+
Inviato: 'Inviato',
|
|
23
|
+
Consegnato: 'Consegnato',
|
|
24
|
+
NonConsegnato: 'NonConsegnato',
|
|
25
|
+
Scartato: 'Scartato',
|
|
26
|
+
AccettatoDalDestinatario: 'AccettatoDalDestinatario',
|
|
27
|
+
RifiutatoDalDestinatario: 'RifiutatoDalDestinatario',
|
|
28
|
+
ImpossibilitaDiRecapito: 'ImpossibilitaDiRecapito',
|
|
29
|
+
DecorrenzaTermini: 'DecorrenzaTermini',
|
|
30
|
+
AttestazioneTrasmissioneFattura: 'AttestazioneTrasmissioneFattura'
|
|
31
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Invoicetronic API
|
|
3
3
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.12.0
|
|
6
6
|
* Contact: info@invoicetronic.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,4 +21,12 @@ export interface Status {
|
|
|
21
21
|
* Signatures left.
|
|
22
22
|
*/
|
|
23
23
|
'signature_left'?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the current API key has an active Desk seat.
|
|
26
|
+
*/
|
|
27
|
+
'has_active_seat'?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the current API key is a sub-key (restricted key).
|
|
30
|
+
*/
|
|
31
|
+
'is_sub_key'?: boolean;
|
|
24
32
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Invoicetronic API
|
|
6
6
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.12.0
|
|
9
9
|
* Contact: info@invoicetronic.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Invoicetronic API
|
|
3
3
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.12.0
|
|
6
6
|
* Contact: info@invoicetronic.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,7 +15,7 @@ import type { SendReduced } from './send-reduced';
|
|
|
15
15
|
*/
|
|
16
16
|
export interface Update {
|
|
17
17
|
/**
|
|
18
|
-
* Unique identifier.
|
|
18
|
+
* Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
|
|
19
19
|
*/
|
|
20
20
|
'id'?: number;
|
|
21
21
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Invoicetronic API
|
|
6
6
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.12.0
|
|
9
9
|
* Contact: info@invoicetronic.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Invoicetronic API
|
|
3
3
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.12.0
|
|
6
6
|
* Contact: info@invoicetronic.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
export interface WebHookHistory {
|
|
16
16
|
/**
|
|
17
|
-
* Unique identifier.
|
|
17
|
+
* Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
|
|
18
18
|
*/
|
|
19
19
|
'id'?: number;
|
|
20
20
|
/**
|
|
@@ -38,9 +38,13 @@ export interface WebHookHistory {
|
|
|
38
38
|
*/
|
|
39
39
|
'event'?: string | null;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* HTTP status code returned by the webhook endpoint. A value of 0 means the request could not be completed due to a network error (e.g., DNS resolution failure, connection refused, or timeout). This typically indicates that the endpoint URL is misconfigured or no longer exists.
|
|
42
42
|
*/
|
|
43
43
|
'status_code'?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Error description, if any. Null when the delivery is successful (2xx). Contains the exception message for network errors (status code 0) or the response body for non-2xx HTTP responses.
|
|
46
|
+
*/
|
|
47
|
+
'error'?: string | null;
|
|
44
48
|
/**
|
|
45
49
|
* Date and time of the request.
|
|
46
50
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Invoicetronic API
|
|
6
6
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.12.0
|
|
9
9
|
* Contact: info@invoicetronic.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Invoicetronic API
|
|
3
3
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.12.0
|
|
6
6
|
* Contact: info@invoicetronic.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
export interface WebHook {
|
|
16
16
|
/**
|
|
17
|
-
* Unique identifier.
|
|
17
|
+
* Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
|
|
18
18
|
*/
|
|
19
19
|
'id'?: number;
|
|
20
20
|
/**
|
|
@@ -26,11 +26,11 @@ export interface WebHook {
|
|
|
26
26
|
*/
|
|
27
27
|
'version'?: number;
|
|
28
28
|
/**
|
|
29
|
-
* User id.
|
|
29
|
+
* User id. It is set automatically based on the authenticated user.
|
|
30
30
|
*/
|
|
31
31
|
'user_id'?: number;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Optional company id. If set, the webhook is restricted to events for that company; if omitted, it fires for all companies on the account.
|
|
34
34
|
*/
|
|
35
35
|
'company_id'?: number | null;
|
|
36
36
|
/**
|
|
@@ -53,4 +53,8 @@ export interface WebHook {
|
|
|
53
53
|
* List of events that trigger the webhook. See Invoicetronic.SupportedEvents.Available for a list of valid event names.
|
|
54
54
|
*/
|
|
55
55
|
'events'?: Array<string> | null;
|
|
56
|
+
/**
|
|
57
|
+
* Timestamp of the last failure notification email sent for this webhook. Set by the notifier service; reset to null on successful delivery.
|
|
58
|
+
*/
|
|
59
|
+
'failure_notified_at'?: string | null;
|
|
56
60
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Invoicetronic API
|
|
6
6
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.12.0
|
|
9
9
|
* Contact: info@invoicetronic.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/Company.md
CHANGED
|
@@ -6,10 +6,10 @@ A company model.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | Unique identifier.
|
|
10
|
-
**created** | **string** | Creation date. It is set automatically. | [optional] [default to undefined]
|
|
11
|
-
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [default to undefined]
|
|
12
|
-
**user_id** | **number** | User id. | [optional] [default to undefined]
|
|
9
|
+
**id** | **number** | Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update. | [optional] [default to undefined]
|
|
10
|
+
**created** | **string** | Creation date. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
11
|
+
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
12
|
+
**user_id** | **number** | User id. It is set automatically based on the authenticated user. | [optional] [readonly] [default to undefined]
|
|
13
13
|
**vat** | **string** | Vat number. Must include the country code. | [default to undefined]
|
|
14
14
|
**fiscal_code** | **string** | Fiscal code. In most cases it\'s the same as the vat number. | [default to undefined]
|
|
15
15
|
**name** | **string** | Name | [default to undefined]
|
package/docs/CompanyApi.md
CHANGED
|
@@ -56,7 +56,7 @@ const { status, data } = await apiInstance.companyGet(
|
|
|
56
56
|
|
|
57
57
|
### Authorization
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
[Basic](../README.md#Basic)
|
|
60
60
|
|
|
61
61
|
### HTTP request headers
|
|
62
62
|
|
|
@@ -111,7 +111,7 @@ const { status, data } = await apiInstance.companyIdDelete(
|
|
|
111
111
|
|
|
112
112
|
### Authorization
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
[Basic](../README.md#Basic)
|
|
115
115
|
|
|
116
116
|
### HTTP request headers
|
|
117
117
|
|
|
@@ -163,7 +163,7 @@ const { status, data } = await apiInstance.companyIdGet(
|
|
|
163
163
|
|
|
164
164
|
### Authorization
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
[Basic](../README.md#Basic)
|
|
167
167
|
|
|
168
168
|
### HTTP request headers
|
|
169
169
|
|
|
@@ -216,7 +216,7 @@ const { status, data } = await apiInstance.companyPost(
|
|
|
216
216
|
|
|
217
217
|
### Authorization
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
[Basic](../README.md#Basic)
|
|
220
220
|
|
|
221
221
|
### HTTP request headers
|
|
222
222
|
|
|
@@ -269,7 +269,7 @@ const { status, data } = await apiInstance.companyPut(
|
|
|
269
269
|
|
|
270
270
|
### Authorization
|
|
271
271
|
|
|
272
|
-
|
|
272
|
+
[Basic](../README.md#Basic)
|
|
273
273
|
|
|
274
274
|
### HTTP request headers
|
|
275
275
|
|
|
@@ -321,7 +321,7 @@ const { status, data } = await apiInstance.companyVatGet(
|
|
|
321
321
|
|
|
322
322
|
### Authorization
|
|
323
323
|
|
|
324
|
-
|
|
324
|
+
[Basic](../README.md#Basic)
|
|
325
325
|
|
|
326
326
|
### HTTP request headers
|
|
327
327
|
|
package/docs/Event.md
CHANGED
|
@@ -6,9 +6,9 @@ An API request log entry.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | Unique identifier.
|
|
10
|
-
**created** | **string** | Creation date. It is set automatically. | [optional] [default to undefined]
|
|
11
|
-
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [default to undefined]
|
|
9
|
+
**id** | **number** | Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update. | [optional] [default to undefined]
|
|
10
|
+
**created** | **string** | Creation date. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
11
|
+
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
12
12
|
**user_id** | **number** | User id. | [optional] [default to undefined]
|
|
13
13
|
**api_key_id** | **number** | Api key id. | [optional] [default to undefined]
|
|
14
14
|
**company_id** | **number** | Company id. | [optional] [default to undefined]
|
package/docs/ExportApi.md
CHANGED
package/docs/HealthApi.md
CHANGED
package/docs/LogApi.md
CHANGED
|
@@ -85,7 +85,7 @@ const { status, data } = await apiInstance.logGet(
|
|
|
85
85
|
|
|
86
86
|
### Authorization
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
[Basic](../README.md#Basic)
|
|
89
89
|
|
|
90
90
|
### HTTP request headers
|
|
91
91
|
|
|
@@ -137,7 +137,7 @@ const { status, data } = await apiInstance.logIdGet(
|
|
|
137
137
|
|
|
138
138
|
### Authorization
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
[Basic](../README.md#Basic)
|
|
141
141
|
|
|
142
142
|
### HTTP request headers
|
|
143
143
|
|
package/docs/Receive.md
CHANGED
|
@@ -6,20 +6,20 @@ A received invoice.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | Unique identifier.
|
|
10
|
-
**created** | **string** | Creation date. It is set automatically. | [optional] [default to undefined]
|
|
11
|
-
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [default to undefined]
|
|
12
|
-
**user_id** | **number** | User id. | [optional] [default to undefined]
|
|
13
|
-
**company_id** | **number** | Company id.
|
|
14
|
-
**committente** | **string** | VAT number of the Cessionario/Committente (customer). This is automatically set based on the recipient\'s VAT number. | [optional] [default to undefined]
|
|
15
|
-
**prestatore** | **string** | VAT number of the Cedente/Prestatore (vendor). This is automatically set based on the sender\'s VAT number. | [optional] [default to undefined]
|
|
16
|
-
**identifier** | **string** | SDI identifier. This is set by the SDI and is guaranteed to be unique within the SDI system. | [optional] [default to undefined]
|
|
17
|
-
**file_name** | **string** | Xml file name. | [optional] [default to undefined]
|
|
9
|
+
**id** | **number** | Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update. | [optional] [default to undefined]
|
|
10
|
+
**created** | **string** | Creation date. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
11
|
+
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
12
|
+
**user_id** | **number** | User id. It is set automatically based on the authenticated user. | [optional] [readonly] [default to undefined]
|
|
13
|
+
**company_id** | **number** | Company id. It is set automatically based on the VAT number extracted from the invoice payload (the sender for `send`, the recipient for `receive`). | [optional] [readonly] [default to undefined]
|
|
14
|
+
**committente** | **string** | VAT number of the Cessionario/Committente (customer). This is automatically set based on the recipient\'s VAT number. | [optional] [readonly] [default to undefined]
|
|
15
|
+
**prestatore** | **string** | VAT number of the Cedente/Prestatore (vendor). This is automatically set based on the sender\'s VAT number. | [optional] [readonly] [default to undefined]
|
|
16
|
+
**identifier** | **string** | SDI identifier. This is set by the SDI and is guaranteed to be unique within the SDI system. | [optional] [readonly] [default to undefined]
|
|
17
|
+
**file_name** | **string** | Xml file name. If not provided on send, it will be auto-generated. | [optional] [default to undefined]
|
|
18
18
|
**format** | **string** | SDI format (FPA12, FPR12, FSM10, ...) | [optional] [default to undefined]
|
|
19
19
|
**payload** | **string** | Xml payload. This is the actual xml content, as string. On send, it can be base64 encoded. If it\'s not, it will be encoded before sending. It is guaranteed to be encrypted at rest. | [default to undefined]
|
|
20
|
-
**last_update** | **string** | Last update from SDI. | [optional] [default to undefined]
|
|
21
|
-
**date_sent** | **string** | When the invoice was sent to SDI. | [optional] [default to undefined]
|
|
22
|
-
**documents** | [**Array<DocumentData>**](DocumentData.md) | The invoices included in the payload. This is set by the system, based on the xml content. | [optional] [default to undefined]
|
|
20
|
+
**last_update** | **string** | Last update from SDI. | [optional] [readonly] [default to undefined]
|
|
21
|
+
**date_sent** | **string** | When the invoice was sent to SDI. | [optional] [readonly] [default to undefined]
|
|
22
|
+
**documents** | [**Array<DocumentData>**](DocumentData.md) | The invoices included in the payload. This is set by the system, based on the xml content. | [optional] [readonly] [default to undefined]
|
|
23
23
|
**encoding** | **string** | Whether the payload is Base64 encoded or a plain XML (text). | [optional] [default to undefined]
|
|
24
24
|
**nome_prestatore** | **string** | Business name of the prestatore (supplier/seller) extracted from the invoice XML. | [optional] [default to undefined]
|
|
25
25
|
**is_read** | **boolean** | Whether the invoice has been read at least once. Set to true only when the invoice is requested with include_payload=true. | [optional] [default to undefined]
|
package/docs/ReceiveApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost*
|
|
|
12
12
|
# **receiveGet**
|
|
13
13
|
> Array<Receive> receiveGet()
|
|
14
14
|
|
|
15
|
-
Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
15
|
+
Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
|
|
16
16
|
|
|
17
17
|
### Example
|
|
18
18
|
|
|
@@ -96,7 +96,7 @@ const { status, data } = await apiInstance.receiveGet(
|
|
|
96
96
|
|
|
97
97
|
### Authorization
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
[Basic](../README.md#Basic)
|
|
100
100
|
|
|
101
101
|
### HTTP request headers
|
|
102
102
|
|
|
@@ -115,7 +115,7 @@ No authorization required
|
|
|
115
115
|
# **receiveIdDelete**
|
|
116
116
|
> Receive receiveIdDelete()
|
|
117
117
|
|
|
118
|
-
Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
118
|
+
Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
|
|
119
119
|
|
|
120
120
|
### Example
|
|
121
121
|
|
|
@@ -148,7 +148,7 @@ const { status, data } = await apiInstance.receiveIdDelete(
|
|
|
148
148
|
|
|
149
149
|
### Authorization
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
[Basic](../README.md#Basic)
|
|
152
152
|
|
|
153
153
|
### HTTP request headers
|
|
154
154
|
|
|
@@ -167,7 +167,7 @@ No authorization required
|
|
|
167
167
|
# **receiveIdGet**
|
|
168
168
|
> Receive receiveIdGet()
|
|
169
169
|
|
|
170
|
-
Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
170
|
+
Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
|
|
171
171
|
|
|
172
172
|
### Example
|
|
173
173
|
|
|
@@ -203,7 +203,7 @@ const { status, data } = await apiInstance.receiveIdGet(
|
|
|
203
203
|
|
|
204
204
|
### Authorization
|
|
205
205
|
|
|
206
|
-
|
|
206
|
+
[Basic](../README.md#Basic)
|
|
207
207
|
|
|
208
208
|
### HTTP request headers
|
|
209
209
|
|
|
@@ -255,7 +255,7 @@ void (empty response body)
|
|
|
255
255
|
|
|
256
256
|
### Authorization
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
[Basic](../README.md#Basic)
|
|
259
259
|
|
|
260
260
|
### HTTP request headers
|
|
261
261
|
|
package/docs/Send.md
CHANGED
|
@@ -6,23 +6,24 @@ A sent invoice.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | Unique identifier.
|
|
10
|
-
**created** | **string** | Creation date. It is set automatically. | [optional] [default to undefined]
|
|
11
|
-
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [default to undefined]
|
|
12
|
-
**user_id** | **number** | User id. | [optional] [default to undefined]
|
|
13
|
-
**company_id** | **number** | Company id.
|
|
14
|
-
**committente** | **string** | VAT number of the Cessionario/Committente (customer). This is automatically set based on the recipient\'s VAT number. | [optional] [default to undefined]
|
|
15
|
-
**prestatore** | **string** | VAT number of the Cedente/Prestatore (vendor). This is automatically set based on the sender\'s VAT number. | [optional] [default to undefined]
|
|
16
|
-
**identifier** | **string** | SDI identifier. This is set by the SDI and is guaranteed to be unique within the SDI system. | [optional] [default to undefined]
|
|
17
|
-
**file_name** | **string** | Xml file name. | [optional] [default to undefined]
|
|
9
|
+
**id** | **number** | Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update. | [optional] [default to undefined]
|
|
10
|
+
**created** | **string** | Creation date. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
11
|
+
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
12
|
+
**user_id** | **number** | User id. It is set automatically based on the authenticated user. | [optional] [readonly] [default to undefined]
|
|
13
|
+
**company_id** | **number** | Company id. It is set automatically based on the VAT number extracted from the invoice payload (the sender for `send`, the recipient for `receive`). | [optional] [readonly] [default to undefined]
|
|
14
|
+
**committente** | **string** | VAT number of the Cessionario/Committente (customer). This is automatically set based on the recipient\'s VAT number. | [optional] [readonly] [default to undefined]
|
|
15
|
+
**prestatore** | **string** | VAT number of the Cedente/Prestatore (vendor). This is automatically set based on the sender\'s VAT number. | [optional] [readonly] [default to undefined]
|
|
16
|
+
**identifier** | **string** | SDI identifier. This is set by the SDI and is guaranteed to be unique within the SDI system. | [optional] [readonly] [default to undefined]
|
|
17
|
+
**file_name** | **string** | Xml file name. If not provided on send, it will be auto-generated. | [optional] [default to undefined]
|
|
18
18
|
**format** | **string** | SDI format (FPA12, FPR12, FSM10, ...) | [optional] [default to undefined]
|
|
19
19
|
**payload** | **string** | Xml payload. This is the actual xml content, as string. On send, it can be base64 encoded. If it\'s not, it will be encoded before sending. It is guaranteed to be encrypted at rest. | [default to undefined]
|
|
20
|
-
**last_update** | **string** | Last update from SDI. | [optional] [default to undefined]
|
|
21
|
-
**date_sent** | **string** | When the invoice was sent to SDI. | [optional] [default to undefined]
|
|
22
|
-
**documents** | [**Array<DocumentData>**](DocumentData.md) | The invoices included in the payload. This is set by the system, based on the xml content. | [optional] [default to undefined]
|
|
20
|
+
**last_update** | **string** | Last update from SDI. | [optional] [readonly] [default to undefined]
|
|
21
|
+
**date_sent** | **string** | When the invoice was sent to SDI. | [optional] [readonly] [default to undefined]
|
|
22
|
+
**documents** | [**Array<DocumentData>**](DocumentData.md) | The invoices included in the payload. This is set by the system, based on the xml content. | [optional] [readonly] [default to undefined]
|
|
23
23
|
**encoding** | **string** | Whether the payload is Base64 encoded or a plain XML (text). | [optional] [default to undefined]
|
|
24
|
-
**nome_committente** | **string** | Business name of the committente (client/buyer) extracted from the invoice XML. | [optional] [default to undefined]
|
|
24
|
+
**nome_committente** | **string** | Business name of the committente (client/buyer) extracted from the invoice XML. | [optional] [readonly] [default to undefined]
|
|
25
25
|
**meta_data** | **{ [key: string]: string; }** | Optional metadata, as json. | [optional] [default to undefined]
|
|
26
|
+
**latest_state** | **string** | Current SDI state of the invoice. Reflects the most recent update received from SDI. Null when no update has been received yet. | [optional] [readonly] [default to undefined]
|
|
26
27
|
**company** | [**Company**](Company.md) | | [optional] [default to undefined]
|
|
27
28
|
|
|
28
29
|
## Example
|
|
@@ -48,6 +49,7 @@ const instance: Send = {
|
|
|
48
49
|
encoding,
|
|
49
50
|
nome_committente,
|
|
50
51
|
meta_data,
|
|
52
|
+
latest_state,
|
|
51
53
|
company,
|
|
52
54
|
};
|
|
53
55
|
```
|