@invoicetronic/ts-sdk 1.0.0 → 1.1.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 -0
- package/README.md +2 -2
- package/base.ts +0 -24
- package/common.ts +1 -38
- package/configuration.ts +25 -19
- package/dist/base.d.ts +0 -24
- package/dist/base.js +0 -19
- package/dist/common.d.ts +0 -37
- package/dist/common.js +0 -37
- package/dist/configuration.d.ts +24 -17
- package/dist/configuration.js +2 -2
- package/dist/esm/base.d.ts +0 -24
- package/dist/esm/base.js +0 -19
- package/dist/esm/common.d.ts +0 -37
- package/dist/esm/common.js +0 -37
- package/dist/esm/configuration.d.ts +24 -17
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/src/api/company-api.d.ts +5 -23
- package/dist/esm/src/api/company-api.js +0 -11
- package/dist/esm/src/api/log-api.d.ts +2 -14
- package/dist/esm/src/api/log-api.js +0 -8
- package/dist/esm/src/api/receive-api.d.ts +3 -17
- package/dist/esm/src/api/receive-api.js +0 -9
- package/dist/esm/src/api/send-api.d.ts +11 -53
- package/dist/esm/src/api/send-api.js +0 -29
- package/dist/esm/src/api/status-api.d.ts +1 -11
- package/dist/esm/src/api/status-api.js +0 -7
- package/dist/esm/src/api/update-api.d.ts +2 -17
- package/dist/esm/src/api/update-api.js +0 -11
- package/dist/esm/src/api/webhook-api.d.ts +7 -29
- package/dist/esm/src/api/webhook-api.js +0 -13
- package/dist/esm/src/models/allegati.d.ts +0 -30
- package/dist/esm/src/models/altri-dati-gestionali.d.ts +0 -25
- package/dist/esm/src/models/anagrafica.d.ts +0 -30
- package/dist/esm/src/models/cedente-prestatore.d.ts +0 -35
- package/dist/esm/src/models/cessionario-committente.d.ts +0 -25
- package/dist/esm/src/models/codice-articolo.d.ts +0 -15
- package/dist/esm/src/models/company.d.ts +0 -16
- package/dist/esm/src/models/contatti-trasmittente.d.ts +0 -15
- package/dist/esm/src/models/contatti.d.ts +0 -20
- package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -45
- package/dist/esm/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -20
- package/dist/esm/src/models/dati-anagrafici-vettore.d.ts +0 -25
- package/dist/esm/src/models/dati-anagrafici.d.ts +0 -20
- package/dist/esm/src/models/dati-beni-servizi.d.ts +0 -15
- package/dist/esm/src/models/dati-bollo.d.ts +0 -15
- package/dist/esm/src/models/dati-cassa-previdenziale.d.ts +0 -45
- package/dist/esm/src/models/dati-contratto.d.ts +0 -40
- package/dist/esm/src/models/dati-convenzione.d.ts +0 -40
- package/dist/esm/src/models/dati-ddt.d.ts +0 -20
- package/dist/esm/src/models/dati-fatture-collegate.d.ts +0 -40
- package/dist/esm/src/models/dati-generali-documento.d.ts +0 -65
- package/dist/esm/src/models/dati-generali.d.ts +0 -55
- package/dist/esm/src/models/dati-ordine-acquisto.d.ts +0 -40
- package/dist/esm/src/models/dati-pagamento.d.ts +0 -15
- package/dist/esm/src/models/dati-ricezione.d.ts +0 -40
- package/dist/esm/src/models/dati-riepilogo.d.ts +0 -45
- package/dist/esm/src/models/dati-ritenuta.d.ts +0 -25
- package/dist/esm/src/models/dati-sal.d.ts +0 -10
- package/dist/esm/src/models/dati-trasmissione.d.ts +0 -35
- package/dist/esm/src/models/dati-trasporto.d.ts +0 -70
- package/dist/esm/src/models/dati-veicoli.d.ts +0 -15
- package/dist/esm/src/models/dettaglio-linee.d.ts +0 -85
- package/dist/esm/src/models/dettaglio-pagamento.d.ts +0 -110
- package/dist/esm/src/models/document-data.d.ts +0 -15
- package/dist/esm/src/models/event.d.ts +8 -39
- package/dist/esm/src/models/fattura-elettronica-body.d.ts +0 -30
- package/dist/esm/src/models/fattura-elettronica-header.d.ts +0 -35
- package/dist/esm/src/models/fattura-ordinaria.d.ts +0 -20
- package/dist/esm/src/models/fattura-principale.d.ts +0 -15
- package/dist/esm/src/models/id-fiscale-iva.d.ts +0 -15
- package/dist/esm/src/models/id-trasmittente.d.ts +0 -15
- package/dist/esm/src/models/indirizzo-resa.d.ts +0 -35
- package/dist/esm/src/models/iscrizione-rea.d.ts +0 -30
- package/dist/esm/src/models/model-error.d.ts +0 -8
- package/dist/esm/src/models/problem-details.d.ts +0 -30
- package/dist/esm/src/models/problem-http-result.d.ts +0 -20
- package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -25
- package/dist/esm/src/models/rappresentante-fiscale.d.ts +0 -10
- package/dist/esm/src/models/receive.d.ts +0 -39
- package/dist/esm/src/models/sconto-maggiorazione.d.ts +0 -20
- package/dist/esm/src/models/sede-cedente-prestatore.d.ts +0 -35
- package/dist/esm/src/models/sede-cessionario-committente.d.ts +0 -35
- package/dist/esm/src/models/send-reduced.d.ts +0 -12
- package/dist/esm/src/models/send.d.ts +0 -42
- package/dist/esm/src/models/stabile-organizzazione.d.ts +0 -35
- package/dist/esm/src/models/status.d.ts +0 -9
- package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -10
- package/dist/esm/src/models/update.d.ts +0 -34
- package/dist/esm/src/models/web-hook-history.d.ts +0 -20
- package/dist/esm/src/models/web-hook.d.ts +0 -25
- package/dist/src/api/company-api.d.ts +5 -23
- package/dist/src/api/company-api.js +0 -11
- package/dist/src/api/log-api.d.ts +2 -14
- package/dist/src/api/log-api.js +0 -8
- package/dist/src/api/receive-api.d.ts +3 -17
- package/dist/src/api/receive-api.js +0 -9
- package/dist/src/api/send-api.d.ts +11 -53
- package/dist/src/api/send-api.js +0 -29
- package/dist/src/api/status-api.d.ts +1 -11
- package/dist/src/api/status-api.js +0 -7
- package/dist/src/api/update-api.d.ts +2 -17
- package/dist/src/api/update-api.js +0 -11
- package/dist/src/api/webhook-api.d.ts +7 -29
- package/dist/src/api/webhook-api.js +0 -13
- package/dist/src/models/allegati.d.ts +0 -30
- package/dist/src/models/altri-dati-gestionali.d.ts +0 -25
- package/dist/src/models/anagrafica.d.ts +0 -30
- package/dist/src/models/cedente-prestatore.d.ts +0 -35
- package/dist/src/models/cessionario-committente.d.ts +0 -25
- package/dist/src/models/codice-articolo.d.ts +0 -15
- package/dist/src/models/company.d.ts +0 -16
- package/dist/src/models/contatti-trasmittente.d.ts +0 -15
- package/dist/src/models/contatti.d.ts +0 -20
- package/dist/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -45
- package/dist/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -20
- package/dist/src/models/dati-anagrafici-vettore.d.ts +0 -25
- package/dist/src/models/dati-anagrafici.d.ts +0 -20
- package/dist/src/models/dati-beni-servizi.d.ts +0 -15
- package/dist/src/models/dati-bollo.d.ts +0 -15
- package/dist/src/models/dati-cassa-previdenziale.d.ts +0 -45
- package/dist/src/models/dati-contratto.d.ts +0 -40
- package/dist/src/models/dati-convenzione.d.ts +0 -40
- package/dist/src/models/dati-ddt.d.ts +0 -20
- package/dist/src/models/dati-fatture-collegate.d.ts +0 -40
- package/dist/src/models/dati-generali-documento.d.ts +0 -65
- package/dist/src/models/dati-generali.d.ts +0 -55
- package/dist/src/models/dati-ordine-acquisto.d.ts +0 -40
- package/dist/src/models/dati-pagamento.d.ts +0 -15
- package/dist/src/models/dati-ricezione.d.ts +0 -40
- package/dist/src/models/dati-riepilogo.d.ts +0 -45
- package/dist/src/models/dati-ritenuta.d.ts +0 -25
- package/dist/src/models/dati-sal.d.ts +0 -10
- package/dist/src/models/dati-trasmissione.d.ts +0 -35
- package/dist/src/models/dati-trasporto.d.ts +0 -70
- package/dist/src/models/dati-veicoli.d.ts +0 -15
- package/dist/src/models/dettaglio-linee.d.ts +0 -85
- package/dist/src/models/dettaglio-pagamento.d.ts +0 -110
- package/dist/src/models/document-data.d.ts +0 -15
- package/dist/src/models/event.d.ts +8 -39
- package/dist/src/models/fattura-elettronica-body.d.ts +0 -30
- package/dist/src/models/fattura-elettronica-header.d.ts +0 -35
- package/dist/src/models/fattura-ordinaria.d.ts +0 -20
- package/dist/src/models/fattura-principale.d.ts +0 -15
- package/dist/src/models/id-fiscale-iva.d.ts +0 -15
- package/dist/src/models/id-trasmittente.d.ts +0 -15
- package/dist/src/models/indirizzo-resa.d.ts +0 -35
- package/dist/src/models/iscrizione-rea.d.ts +0 -30
- package/dist/src/models/model-error.d.ts +0 -8
- package/dist/src/models/problem-details.d.ts +0 -30
- package/dist/src/models/problem-http-result.d.ts +0 -20
- package/dist/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -25
- package/dist/src/models/rappresentante-fiscale.d.ts +0 -10
- package/dist/src/models/receive.d.ts +0 -39
- package/dist/src/models/sconto-maggiorazione.d.ts +0 -20
- package/dist/src/models/sede-cedente-prestatore.d.ts +0 -35
- package/dist/src/models/sede-cessionario-committente.d.ts +0 -35
- package/dist/src/models/send-reduced.d.ts +0 -12
- package/dist/src/models/send.d.ts +0 -42
- package/dist/src/models/stabile-organizzazione.d.ts +0 -35
- package/dist/src/models/status.d.ts +0 -9
- package/dist/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -10
- package/dist/src/models/update.d.ts +0 -34
- package/dist/src/models/web-hook-history.d.ts +0 -20
- package/dist/src/models/web-hook.d.ts +0 -25
- package/docs/Event.md +4 -2
- package/package.json +1 -1
- package/src/api/company-api.ts +0 -18
- package/src/api/log-api.ts +0 -12
- package/src/api/receive-api.ts +0 -14
- package/src/api/send-api.ts +0 -42
- package/src/api/status-api.ts +0 -10
- package/src/api/update-api.ts +0 -15
- package/src/api/webhook-api.ts +0 -22
- package/src/models/allegati.ts +0 -30
- package/src/models/altri-dati-gestionali.ts +0 -25
- package/src/models/anagrafica.ts +0 -30
- package/src/models/cedente-prestatore.ts +0 -35
- package/src/models/cessionario-committente.ts +0 -25
- package/src/models/codice-articolo.ts +0 -15
- package/src/models/company.ts +0 -16
- package/src/models/contatti-trasmittente.ts +0 -15
- package/src/models/contatti.ts +0 -20
- package/src/models/dati-anagrafici-cedente-prestatore.ts +0 -45
- package/src/models/dati-anagrafici-cessionario-committente.ts +0 -20
- package/src/models/dati-anagrafici-vettore.ts +0 -25
- package/src/models/dati-anagrafici.ts +0 -20
- package/src/models/dati-beni-servizi.ts +0 -15
- package/src/models/dati-bollo.ts +0 -15
- package/src/models/dati-cassa-previdenziale.ts +0 -45
- package/src/models/dati-contratto.ts +0 -40
- package/src/models/dati-convenzione.ts +0 -40
- package/src/models/dati-ddt.ts +0 -20
- package/src/models/dati-fatture-collegate.ts +0 -40
- package/src/models/dati-generali-documento.ts +0 -65
- package/src/models/dati-generali.ts +0 -55
- package/src/models/dati-ordine-acquisto.ts +0 -40
- package/src/models/dati-pagamento.ts +0 -15
- package/src/models/dati-ricezione.ts +0 -40
- package/src/models/dati-riepilogo.ts +0 -45
- package/src/models/dati-ritenuta.ts +0 -25
- package/src/models/dati-sal.ts +0 -10
- package/src/models/dati-trasmissione.ts +0 -35
- package/src/models/dati-trasporto.ts +0 -70
- package/src/models/dati-veicoli.ts +0 -15
- package/src/models/dettaglio-linee.ts +0 -85
- package/src/models/dettaglio-pagamento.ts +0 -110
- package/src/models/document-data.ts +0 -15
- package/src/models/event.ts +8 -39
- package/src/models/fattura-elettronica-body.ts +0 -30
- package/src/models/fattura-elettronica-header.ts +0 -35
- package/src/models/fattura-ordinaria.ts +0 -20
- package/src/models/fattura-principale.ts +0 -15
- package/src/models/id-fiscale-iva.ts +0 -15
- package/src/models/id-trasmittente.ts +0 -15
- package/src/models/indirizzo-resa.ts +0 -35
- package/src/models/iscrizione-rea.ts +0 -30
- package/src/models/model-error.ts +0 -8
- package/src/models/problem-details.ts +0 -30
- package/src/models/problem-http-result.ts +0 -20
- package/src/models/rappresentante-fiscale-cessionario-committente.ts +0 -25
- package/src/models/rappresentante-fiscale.ts +0 -10
- package/src/models/receive.ts +0 -39
- package/src/models/sconto-maggiorazione.ts +0 -20
- package/src/models/sede-cedente-prestatore.ts +0 -35
- package/src/models/sede-cessionario-committente.ts +0 -35
- package/src/models/send-reduced.ts +0 -12
- package/src/models/send.ts +0 -42
- package/src/models/stabile-organizzazione.ts +0 -35
- package/src/models/status.ts +0 -9
- package/src/models/terzo-intermediario-osoggetto-emittente.ts +0 -10
- package/src/models/update.ts +0 -34
- package/src/models/web-hook-history.ts +0 -20
- package/src/models/web-hook.ts +0 -25
|
@@ -10,112 +10,73 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DocumentData } from './document-data';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Receive
|
|
17
|
-
*/
|
|
18
13
|
export interface Receive {
|
|
19
14
|
/**
|
|
20
15
|
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof Receive
|
|
23
16
|
*/
|
|
24
17
|
'id'?: number;
|
|
25
18
|
/**
|
|
26
19
|
* Creation date. It is set automatically.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof Receive
|
|
29
20
|
*/
|
|
30
21
|
'created'?: string;
|
|
31
22
|
/**
|
|
32
23
|
* Row version, for optimistic concurrency. It is set automatically.
|
|
33
|
-
* @type {number}
|
|
34
|
-
* @memberof Receive
|
|
35
24
|
*/
|
|
36
25
|
'version'?: number;
|
|
37
26
|
/**
|
|
38
27
|
* User id.
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof Receive
|
|
41
28
|
*/
|
|
42
29
|
'user_id'?: number;
|
|
43
30
|
/**
|
|
44
31
|
* Company id. On send, this is the sender and must be set in advance. On receive, it will be automatically set based on the recipient\'s VAT number. If a matching company is not found, the invoice will be rejected until the company is created.
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof Receive
|
|
47
32
|
*/
|
|
48
33
|
'company_id'?: number;
|
|
49
34
|
/**
|
|
50
35
|
* VAT number of the Cessionario/Committente (customer). This is automatically set based on the recipient\'s VAT number.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof Receive
|
|
53
36
|
*/
|
|
54
37
|
'committente'?: string | null;
|
|
55
38
|
/**
|
|
56
39
|
* VAT number of the Cedente/Prestatore (vendor). This is automatically set based on the sender\'s VAT number.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof Receive
|
|
59
40
|
*/
|
|
60
41
|
'prestatore'?: string | null;
|
|
61
42
|
/**
|
|
62
43
|
* SDI identifier. This is set by the SDI and is guaranted to be unique within the SDI system.
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof Receive
|
|
65
44
|
*/
|
|
66
45
|
'identifier'?: string | null;
|
|
67
46
|
/**
|
|
68
47
|
* Xml file name.
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof Receive
|
|
71
48
|
*/
|
|
72
49
|
'file_name'?: string | null;
|
|
73
50
|
/**
|
|
74
51
|
* SDI format (FPA12, FPR12, FSM10, ...)
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof Receive
|
|
77
52
|
*/
|
|
78
53
|
'format'?: string | null;
|
|
79
54
|
/**
|
|
80
55
|
* Xml payloaad. 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 cyphered at rest.
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof Receive
|
|
83
56
|
*/
|
|
84
57
|
'payload'?: string | null;
|
|
85
58
|
/**
|
|
86
59
|
* Last update from SDI.
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof Receive
|
|
89
60
|
*/
|
|
90
61
|
'last_update'?: string | null;
|
|
91
62
|
/**
|
|
92
63
|
* When the invoice was sent to SDI.
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof Receive
|
|
95
64
|
*/
|
|
96
65
|
'date_sent'?: string | null;
|
|
97
66
|
/**
|
|
98
67
|
* The invoices included in the payload. This is set by the system, based on the xml content.
|
|
99
|
-
* @type {Array<DocumentData>}
|
|
100
|
-
* @memberof Receive
|
|
101
68
|
*/
|
|
102
69
|
'documents'?: Array<DocumentData> | null;
|
|
103
70
|
/**
|
|
104
71
|
* Whether the payload is Base64 encoded or a plain XML (text).
|
|
105
|
-
* @type {string}
|
|
106
|
-
* @memberof Receive
|
|
107
72
|
*/
|
|
108
73
|
'encoding'?: ReceiveEncodingEnum;
|
|
109
74
|
/**
|
|
110
75
|
* Wether the invoice has been read at least once.
|
|
111
|
-
* @type {boolean}
|
|
112
|
-
* @memberof Receive
|
|
113
76
|
*/
|
|
114
77
|
'is_read'?: boolean;
|
|
115
78
|
/**
|
|
116
79
|
* SDI message id.
|
|
117
|
-
* @type {string}
|
|
118
|
-
* @memberof Receive
|
|
119
80
|
*/
|
|
120
81
|
'message_id'?: string | null;
|
|
121
82
|
}
|
|
@@ -9,28 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ScontoMaggiorazione
|
|
16
|
-
*/
|
|
17
12
|
export interface ScontoMaggiorazione {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ScontoMaggiorazione
|
|
22
|
-
*/
|
|
23
13
|
'tipo'?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof ScontoMaggiorazione
|
|
28
|
-
*/
|
|
29
14
|
'percentuale'?: number | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ScontoMaggiorazione
|
|
34
|
-
*/
|
|
35
15
|
'importo'?: number | null;
|
|
36
16
|
}
|
|
@@ -9,46 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface SedeCedentePrestatore
|
|
16
|
-
*/
|
|
17
12
|
export interface SedeCedentePrestatore {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SedeCedentePrestatore
|
|
22
|
-
*/
|
|
23
13
|
'indirizzo'?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SedeCedentePrestatore
|
|
28
|
-
*/
|
|
29
14
|
'numero_civico'?: string | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof SedeCedentePrestatore
|
|
34
|
-
*/
|
|
35
15
|
'cap'?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof SedeCedentePrestatore
|
|
40
|
-
*/
|
|
41
16
|
'comune'?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof SedeCedentePrestatore
|
|
46
|
-
*/
|
|
47
17
|
'provincia'?: string | null;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof SedeCedentePrestatore
|
|
52
|
-
*/
|
|
53
18
|
'nazione'?: string | null;
|
|
54
19
|
}
|
|
@@ -9,46 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface SedeCessionarioCommittente
|
|
16
|
-
*/
|
|
17
12
|
export interface SedeCessionarioCommittente {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SedeCessionarioCommittente
|
|
22
|
-
*/
|
|
23
13
|
'indirizzo'?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SedeCessionarioCommittente
|
|
28
|
-
*/
|
|
29
14
|
'numero_civico'?: string | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof SedeCessionarioCommittente
|
|
34
|
-
*/
|
|
35
15
|
'cap'?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof SedeCessionarioCommittente
|
|
40
|
-
*/
|
|
41
16
|
'comune'?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof SedeCessionarioCommittente
|
|
46
|
-
*/
|
|
47
17
|
'provincia'?: string | null;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof SedeCessionarioCommittente
|
|
52
|
-
*/
|
|
53
18
|
'nazione'?: string | null;
|
|
54
19
|
}
|
|
@@ -12,40 +12,28 @@
|
|
|
12
12
|
import type { DocumentData } from './document-data';
|
|
13
13
|
/**
|
|
14
14
|
* Reduced Send data for Update responses, containing only the essential fields.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface SendReduced
|
|
17
15
|
*/
|
|
18
16
|
export interface SendReduced {
|
|
19
17
|
/**
|
|
20
18
|
* SDI identifier.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof SendReduced
|
|
23
19
|
*/
|
|
24
20
|
'identifier'?: string | null;
|
|
25
21
|
/**
|
|
26
22
|
* VAT number of the Cedente/Prestatore (vendor).
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof SendReduced
|
|
29
23
|
*/
|
|
30
24
|
'prestatore'?: string | null;
|
|
31
25
|
/**
|
|
32
26
|
* Optional metadata, as json.
|
|
33
|
-
* @type {{ [key: string]: string; }}
|
|
34
|
-
* @memberof SendReduced
|
|
35
27
|
*/
|
|
36
28
|
'meta_data'?: {
|
|
37
29
|
[key: string]: string;
|
|
38
30
|
} | null;
|
|
39
31
|
/**
|
|
40
32
|
* The invoices included in the payload.
|
|
41
|
-
* @type {Array<DocumentData>}
|
|
42
|
-
* @memberof SendReduced
|
|
43
33
|
*/
|
|
44
34
|
'documents'?: Array<DocumentData> | null;
|
|
45
35
|
/**
|
|
46
36
|
* When the invoice was sent to SDI.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof SendReduced
|
|
49
37
|
*/
|
|
50
38
|
'date_sent'?: string | null;
|
|
51
39
|
}
|
|
@@ -11,115 +11,73 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Company } from './company';
|
|
13
13
|
import type { DocumentData } from './document-data';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface Send
|
|
18
|
-
*/
|
|
19
14
|
export interface Send {
|
|
20
15
|
/**
|
|
21
16
|
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof Send
|
|
24
17
|
*/
|
|
25
18
|
'id'?: number;
|
|
26
19
|
/**
|
|
27
20
|
* Creation date. It is set automatically.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof Send
|
|
30
21
|
*/
|
|
31
22
|
'created'?: string;
|
|
32
23
|
/**
|
|
33
24
|
* Row version, for optimistic concurrency. It is set automatically.
|
|
34
|
-
* @type {number}
|
|
35
|
-
* @memberof Send
|
|
36
25
|
*/
|
|
37
26
|
'version'?: number;
|
|
38
27
|
/**
|
|
39
28
|
* User id.
|
|
40
|
-
* @type {number}
|
|
41
|
-
* @memberof Send
|
|
42
29
|
*/
|
|
43
30
|
'user_id'?: number;
|
|
44
31
|
/**
|
|
45
32
|
* Company id. On send, this is the sender and must be set in advance. On receive, it will be automatically set based on the recipient\'s VAT number. If a matching company is not found, the invoice will be rejected until the company is created.
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof Send
|
|
48
33
|
*/
|
|
49
34
|
'company_id'?: number;
|
|
50
35
|
/**
|
|
51
36
|
* VAT number of the Cessionario/Committente (customer). This is automatically set based on the recipient\'s VAT number.
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof Send
|
|
54
37
|
*/
|
|
55
38
|
'committente'?: string | null;
|
|
56
39
|
/**
|
|
57
40
|
* VAT number of the Cedente/Prestatore (vendor). This is automatically set based on the sender\'s VAT number.
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof Send
|
|
60
41
|
*/
|
|
61
42
|
'prestatore'?: string | null;
|
|
62
43
|
/**
|
|
63
44
|
* SDI identifier. This is set by the SDI and is guaranted to be unique within the SDI system.
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof Send
|
|
66
45
|
*/
|
|
67
46
|
'identifier'?: string | null;
|
|
68
47
|
/**
|
|
69
48
|
* Xml file name.
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof Send
|
|
72
49
|
*/
|
|
73
50
|
'file_name'?: string | null;
|
|
74
51
|
/**
|
|
75
52
|
* SDI format (FPA12, FPR12, FSM10, ...)
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof Send
|
|
78
53
|
*/
|
|
79
54
|
'format'?: string | null;
|
|
80
55
|
/**
|
|
81
56
|
* Xml payloaad. 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 cyphered at rest.
|
|
82
|
-
* @type {string}
|
|
83
|
-
* @memberof Send
|
|
84
57
|
*/
|
|
85
58
|
'payload'?: string | null;
|
|
86
59
|
/**
|
|
87
60
|
* Last update from SDI.
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof Send
|
|
90
61
|
*/
|
|
91
62
|
'last_update'?: string | null;
|
|
92
63
|
/**
|
|
93
64
|
* When the invoice was sent to SDI.
|
|
94
|
-
* @type {string}
|
|
95
|
-
* @memberof Send
|
|
96
65
|
*/
|
|
97
66
|
'date_sent'?: string | null;
|
|
98
67
|
/**
|
|
99
68
|
* The invoices included in the payload. This is set by the system, based on the xml content.
|
|
100
|
-
* @type {Array<DocumentData>}
|
|
101
|
-
* @memberof Send
|
|
102
69
|
*/
|
|
103
70
|
'documents'?: Array<DocumentData> | null;
|
|
104
71
|
/**
|
|
105
72
|
* Whether the payload is Base64 encoded or a plain XML (text).
|
|
106
|
-
* @type {string}
|
|
107
|
-
* @memberof Send
|
|
108
73
|
*/
|
|
109
74
|
'encoding'?: SendEncodingEnum;
|
|
110
75
|
/**
|
|
111
76
|
* Optional metadata, as json.
|
|
112
|
-
* @type {{ [key: string]: string; }}
|
|
113
|
-
* @memberof Send
|
|
114
77
|
*/
|
|
115
78
|
'meta_data'?: {
|
|
116
79
|
[key: string]: string;
|
|
117
80
|
} | null;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @type {Company}
|
|
121
|
-
* @memberof Send
|
|
122
|
-
*/
|
|
123
81
|
'company'?: Company;
|
|
124
82
|
}
|
|
125
83
|
export declare const SendEncodingEnum: {
|
|
@@ -9,46 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface StabileOrganizzazione
|
|
16
|
-
*/
|
|
17
12
|
export interface StabileOrganizzazione {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof StabileOrganizzazione
|
|
22
|
-
*/
|
|
23
13
|
'indirizzo'?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof StabileOrganizzazione
|
|
28
|
-
*/
|
|
29
14
|
'numero_civico'?: string | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof StabileOrganizzazione
|
|
34
|
-
*/
|
|
35
15
|
'cap'?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof StabileOrganizzazione
|
|
40
|
-
*/
|
|
41
16
|
'comune'?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof StabileOrganizzazione
|
|
46
|
-
*/
|
|
47
17
|
'provincia'?: string | null;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof StabileOrganizzazione
|
|
52
|
-
*/
|
|
53
18
|
'nazione'?: string | null;
|
|
54
19
|
}
|
|
@@ -9,22 +9,13 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Status
|
|
16
|
-
*/
|
|
17
12
|
export interface Status {
|
|
18
13
|
/**
|
|
19
14
|
* Operations (invoices and validations) left.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof Status
|
|
22
15
|
*/
|
|
23
16
|
'operation_left'?: number;
|
|
24
17
|
/**
|
|
25
18
|
* Signatures left.
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof Status
|
|
28
19
|
*/
|
|
29
20
|
'signature_left'?: number;
|
|
30
21
|
}
|
|
@@ -10,16 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DatiAnagrafici } from './dati-anagrafici';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface TerzoIntermediarioOSoggettoEmittente
|
|
17
|
-
*/
|
|
18
13
|
export interface TerzoIntermediarioOSoggettoEmittente {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {DatiAnagrafici}
|
|
22
|
-
* @memberof TerzoIntermediarioOSoggettoEmittente
|
|
23
|
-
*/
|
|
24
14
|
'dati_anagrafici'?: DatiAnagrafici;
|
|
25
15
|
}
|
|
@@ -10,89 +10,55 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SendReduced } from './send-reduced';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Update
|
|
17
|
-
*/
|
|
18
13
|
export interface Update {
|
|
19
14
|
/**
|
|
20
15
|
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof Update
|
|
23
16
|
*/
|
|
24
17
|
'id'?: number;
|
|
25
18
|
/**
|
|
26
19
|
* Creation date. It is set automatically.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof Update
|
|
29
20
|
*/
|
|
30
21
|
'created'?: string;
|
|
31
22
|
/**
|
|
32
23
|
* Row version, for optimistic concurrency. It is set automatically.
|
|
33
|
-
* @type {number}
|
|
34
|
-
* @memberof Update
|
|
35
24
|
*/
|
|
36
25
|
'version'?: number;
|
|
37
26
|
/**
|
|
38
27
|
* User id.
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof Update
|
|
41
28
|
*/
|
|
42
29
|
'user_id'?: number;
|
|
43
30
|
/**
|
|
44
31
|
* Company id.
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof Update
|
|
47
32
|
*/
|
|
48
33
|
'company_id'?: number;
|
|
49
34
|
/**
|
|
50
35
|
* Send id. This is the id of the sent invoice to which this update refers to.
|
|
51
|
-
* @type {number}
|
|
52
|
-
* @memberof Update
|
|
53
36
|
*/
|
|
54
37
|
'send_id'?: number;
|
|
55
38
|
/**
|
|
56
39
|
* Last update from SDI.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof Update
|
|
59
40
|
*/
|
|
60
41
|
'last_update'?: string;
|
|
61
42
|
/**
|
|
62
43
|
* State of the document. Theses are the possible values, as per the SDI documentation:
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof Update
|
|
65
44
|
*/
|
|
66
45
|
'state'?: UpdateStateEnum;
|
|
67
46
|
/**
|
|
68
47
|
* Description for the state.
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof Update
|
|
71
48
|
*/
|
|
72
49
|
'description'?: string | null;
|
|
73
50
|
/**
|
|
74
51
|
* SDI message id.
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof Update
|
|
77
52
|
*/
|
|
78
53
|
'message_id'?: string | null;
|
|
79
54
|
/**
|
|
80
55
|
* SDI errors, if any.
|
|
81
|
-
* @type {Array<Error>}
|
|
82
|
-
* @memberof Update
|
|
83
56
|
*/
|
|
84
57
|
'errors'?: Array<Error> | null;
|
|
85
58
|
/**
|
|
86
59
|
* Wether the item has been read at least once.
|
|
87
|
-
* @type {boolean}
|
|
88
|
-
* @memberof Update
|
|
89
60
|
*/
|
|
90
61
|
'is_read'?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {SendReduced}
|
|
94
|
-
* @memberof Update
|
|
95
|
-
*/
|
|
96
62
|
'send'?: SendReduced;
|
|
97
63
|
}
|
|
98
64
|
export declare const UpdateStateEnum: {
|
|
@@ -11,62 +11,42 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Webhook history.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface WebHookHistory
|
|
16
14
|
*/
|
|
17
15
|
export interface WebHookHistory {
|
|
18
16
|
/**
|
|
19
17
|
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof WebHookHistory
|
|
22
18
|
*/
|
|
23
19
|
'id'?: number;
|
|
24
20
|
/**
|
|
25
21
|
* Creation date. It is set automatically.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof WebHookHistory
|
|
28
22
|
*/
|
|
29
23
|
'created'?: string;
|
|
30
24
|
/**
|
|
31
25
|
* Row version, for optimistic concurrency. It is set automatically.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof WebHookHistory
|
|
34
26
|
*/
|
|
35
27
|
'version'?: number;
|
|
36
28
|
/**
|
|
37
29
|
* Webhook id.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof WebHookHistory
|
|
40
30
|
*/
|
|
41
31
|
'web_hook_id'?: number;
|
|
42
32
|
/**
|
|
43
33
|
* User id.
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof WebHookHistory
|
|
46
34
|
*/
|
|
47
35
|
'user_id'?: number;
|
|
48
36
|
/**
|
|
49
37
|
* Event name.
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof WebHookHistory
|
|
52
38
|
*/
|
|
53
39
|
'event'?: string | null;
|
|
54
40
|
/**
|
|
55
41
|
* Status code.
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof WebHookHistory
|
|
58
42
|
*/
|
|
59
43
|
'status_code'?: number;
|
|
60
44
|
/**
|
|
61
45
|
* Date and time of the request.
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof WebHookHistory
|
|
64
46
|
*/
|
|
65
47
|
'date_time'?: string;
|
|
66
48
|
/**
|
|
67
49
|
* Wether the request was successful.
|
|
68
|
-
* @type {boolean}
|
|
69
|
-
* @memberof WebHookHistory
|
|
70
50
|
*/
|
|
71
51
|
'success'?: boolean;
|
|
72
52
|
}
|
|
@@ -9,70 +9,45 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface WebHook
|
|
16
|
-
*/
|
|
17
12
|
export interface WebHook {
|
|
18
13
|
/**
|
|
19
14
|
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof WebHook
|
|
22
15
|
*/
|
|
23
16
|
'id'?: number;
|
|
24
17
|
/**
|
|
25
18
|
* Creation date. It is set automatically.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof WebHook
|
|
28
19
|
*/
|
|
29
20
|
'created'?: string;
|
|
30
21
|
/**
|
|
31
22
|
* Row version, for optimistic concurrency. It is set automatically.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof WebHook
|
|
34
23
|
*/
|
|
35
24
|
'version'?: number;
|
|
36
25
|
/**
|
|
37
26
|
* User id.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof WebHook
|
|
40
27
|
*/
|
|
41
28
|
'user_id'?: number;
|
|
42
29
|
/**
|
|
43
30
|
* Company id.
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof WebHook
|
|
46
31
|
*/
|
|
47
32
|
'company_id'?: number | null;
|
|
48
33
|
/**
|
|
49
34
|
* The url of your application\'s endpoint that will receive a POST request when the webhook is fired.
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof WebHook
|
|
52
35
|
*/
|
|
53
36
|
'url'?: string | null;
|
|
54
37
|
/**
|
|
55
38
|
* Wether the webhook is enabled. On creation, this is set to `true`.
|
|
56
|
-
* @type {boolean}
|
|
57
|
-
* @memberof WebHook
|
|
58
39
|
*/
|
|
59
40
|
'enabled'?: boolean;
|
|
60
41
|
/**
|
|
61
42
|
* The secret used to generate webhook signatures, only returned on creation. You should store this value securely and validate it on every call, to ensure that the caller is InvoicetronicApi.
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof WebHook
|
|
64
43
|
*/
|
|
65
44
|
'secret'?: string | null;
|
|
66
45
|
/**
|
|
67
46
|
* An optional description.
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof WebHook
|
|
70
47
|
*/
|
|
71
48
|
'description'?: string | null;
|
|
72
49
|
/**
|
|
73
50
|
* List of events to that trigger the webhook. See Invoicetronic.SupportedEvents.Available for a list of valid event names.
|
|
74
|
-
* @type {Array<string>}
|
|
75
|
-
* @memberof WebHook
|
|
76
51
|
*/
|
|
77
52
|
'events'?: Array<string> | null;
|
|
78
53
|
}
|