@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
package/src/api/webhook-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -62,6 +62,10 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
62
62
|
const localVarHeaderParameter = {} as any;
|
|
63
63
|
const localVarQueryParameter = {} as any;
|
|
64
64
|
|
|
65
|
+
// authentication Basic required
|
|
66
|
+
// http basic authentication required
|
|
67
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
68
|
+
|
|
65
69
|
if (companyId !== undefined) {
|
|
66
70
|
localVarQueryParameter['company_id'] = companyId;
|
|
67
71
|
}
|
|
@@ -128,6 +132,10 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
128
132
|
const localVarHeaderParameter = {} as any;
|
|
129
133
|
const localVarQueryParameter = {} as any;
|
|
130
134
|
|
|
135
|
+
// authentication Basic required
|
|
136
|
+
// http basic authentication required
|
|
137
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
138
|
+
|
|
131
139
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
132
140
|
|
|
133
141
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -162,6 +170,10 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
162
170
|
const localVarHeaderParameter = {} as any;
|
|
163
171
|
const localVarQueryParameter = {} as any;
|
|
164
172
|
|
|
173
|
+
// authentication Basic required
|
|
174
|
+
// http basic authentication required
|
|
175
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
176
|
+
|
|
165
177
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
166
178
|
|
|
167
179
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -195,6 +207,10 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
195
207
|
const localVarHeaderParameter = {} as any;
|
|
196
208
|
const localVarQueryParameter = {} as any;
|
|
197
209
|
|
|
210
|
+
// authentication Basic required
|
|
211
|
+
// http basic authentication required
|
|
212
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
213
|
+
|
|
198
214
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
199
215
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
200
216
|
|
|
@@ -230,6 +246,10 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
230
246
|
const localVarHeaderParameter = {} as any;
|
|
231
247
|
const localVarQueryParameter = {} as any;
|
|
232
248
|
|
|
249
|
+
// authentication Basic required
|
|
250
|
+
// http basic authentication required
|
|
251
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
252
|
+
|
|
233
253
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
234
254
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
235
255
|
|
|
@@ -266,6 +286,10 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
266
286
|
const localVarHeaderParameter = {} as any;
|
|
267
287
|
const localVarQueryParameter = {} as any;
|
|
268
288
|
|
|
289
|
+
// authentication Basic required
|
|
290
|
+
// http basic authentication required
|
|
291
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
292
|
+
|
|
269
293
|
if (page !== undefined) {
|
|
270
294
|
localVarQueryParameter['page'] = page;
|
|
271
295
|
}
|
|
@@ -316,6 +340,10 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
316
340
|
const localVarHeaderParameter = {} as any;
|
|
317
341
|
const localVarQueryParameter = {} as any;
|
|
318
342
|
|
|
343
|
+
// authentication Basic required
|
|
344
|
+
// http basic authentication required
|
|
345
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
346
|
+
|
|
319
347
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
320
348
|
|
|
321
349
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
package/src/models/company.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
export interface Company {
|
|
21
21
|
/**
|
|
22
|
-
* Unique identifier.
|
|
22
|
+
* 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.
|
|
23
23
|
*/
|
|
24
24
|
'id'?: number;
|
|
25
25
|
/**
|
|
@@ -31,7 +31,7 @@ export interface Company {
|
|
|
31
31
|
*/
|
|
32
32
|
'version'?: number;
|
|
33
33
|
/**
|
|
34
|
-
* User id.
|
|
34
|
+
* User id. It is set automatically based on the authenticated user.
|
|
35
35
|
*/
|
|
36
36
|
'user_id'?: number;
|
|
37
37
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/event.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
export interface Event {
|
|
21
21
|
/**
|
|
22
|
-
* Unique identifier.
|
|
22
|
+
* 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.
|
|
23
23
|
*/
|
|
24
24
|
'id'?: number;
|
|
25
25
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/receive.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ import type { DocumentData } from './document-data';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface Receive {
|
|
24
24
|
/**
|
|
25
|
-
* Unique identifier.
|
|
25
|
+
* 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.
|
|
26
26
|
*/
|
|
27
27
|
'id'?: number;
|
|
28
28
|
/**
|
|
@@ -34,11 +34,11 @@ export interface Receive {
|
|
|
34
34
|
*/
|
|
35
35
|
'version'?: number;
|
|
36
36
|
/**
|
|
37
|
-
* User id.
|
|
37
|
+
* User id. It is set automatically based on the authenticated user.
|
|
38
38
|
*/
|
|
39
39
|
'user_id'?: number;
|
|
40
40
|
/**
|
|
41
|
-
* Company id.
|
|
41
|
+
* Company id. It is set automatically based on the VAT number extracted from the invoice payload (the sender for `send`, the recipient for `receive`).
|
|
42
42
|
*/
|
|
43
43
|
'company_id'?: number;
|
|
44
44
|
/**
|
|
@@ -54,7 +54,7 @@ export interface Receive {
|
|
|
54
54
|
*/
|
|
55
55
|
'identifier'?: string | null;
|
|
56
56
|
/**
|
|
57
|
-
* Xml file name.
|
|
57
|
+
* Xml file name. If not provided on send, it will be auto-generated.
|
|
58
58
|
*/
|
|
59
59
|
'file_name'?: string | null;
|
|
60
60
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -41,5 +41,24 @@ export interface SendReduced {
|
|
|
41
41
|
* When the invoice was sent to SDI.
|
|
42
42
|
*/
|
|
43
43
|
'date_sent'?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Current SDI state of the invoice. Reflects the most recent update received from SDI.
|
|
46
|
+
*/
|
|
47
|
+
'latest_state'?: SendReducedLatestStateEnum | null;
|
|
44
48
|
}
|
|
45
49
|
|
|
50
|
+
export const SendReducedLatestStateEnum = {
|
|
51
|
+
Inviato: 'Inviato',
|
|
52
|
+
Consegnato: 'Consegnato',
|
|
53
|
+
NonConsegnato: 'NonConsegnato',
|
|
54
|
+
Scartato: 'Scartato',
|
|
55
|
+
AccettatoDalDestinatario: 'AccettatoDalDestinatario',
|
|
56
|
+
RifiutatoDalDestinatario: 'RifiutatoDalDestinatario',
|
|
57
|
+
ImpossibilitaDiRecapito: 'ImpossibilitaDiRecapito',
|
|
58
|
+
DecorrenzaTermini: 'DecorrenzaTermini',
|
|
59
|
+
AttestazioneTrasmissioneFattura: 'AttestazioneTrasmissioneFattura'
|
|
60
|
+
} as const;
|
|
61
|
+
|
|
62
|
+
export type SendReducedLatestStateEnum = typeof SendReducedLatestStateEnum[keyof typeof SendReducedLatestStateEnum];
|
|
63
|
+
|
|
64
|
+
|
package/src/models/send.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,7 +25,7 @@ import type { DocumentData } from './document-data';
|
|
|
25
25
|
*/
|
|
26
26
|
export interface Send {
|
|
27
27
|
/**
|
|
28
|
-
* Unique identifier.
|
|
28
|
+
* 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.
|
|
29
29
|
*/
|
|
30
30
|
'id'?: number;
|
|
31
31
|
/**
|
|
@@ -37,11 +37,11 @@ export interface Send {
|
|
|
37
37
|
*/
|
|
38
38
|
'version'?: number;
|
|
39
39
|
/**
|
|
40
|
-
* User id.
|
|
40
|
+
* User id. It is set automatically based on the authenticated user.
|
|
41
41
|
*/
|
|
42
42
|
'user_id'?: number;
|
|
43
43
|
/**
|
|
44
|
-
* Company id.
|
|
44
|
+
* Company id. It is set automatically based on the VAT number extracted from the invoice payload (the sender for `send`, the recipient for `receive`).
|
|
45
45
|
*/
|
|
46
46
|
'company_id'?: number;
|
|
47
47
|
/**
|
|
@@ -57,7 +57,7 @@ export interface Send {
|
|
|
57
57
|
*/
|
|
58
58
|
'identifier'?: string | null;
|
|
59
59
|
/**
|
|
60
|
-
* Xml file name.
|
|
60
|
+
* Xml file name. If not provided on send, it will be auto-generated.
|
|
61
61
|
*/
|
|
62
62
|
'file_name'?: string | null;
|
|
63
63
|
/**
|
|
@@ -92,6 +92,10 @@ export interface Send {
|
|
|
92
92
|
* Optional metadata, as json.
|
|
93
93
|
*/
|
|
94
94
|
'meta_data'?: { [key: string]: string; } | null;
|
|
95
|
+
/**
|
|
96
|
+
* Current SDI state of the invoice. Reflects the most recent update received from SDI. Null when no update has been received yet.
|
|
97
|
+
*/
|
|
98
|
+
'latest_state'?: SendLatestStateEnum | null;
|
|
95
99
|
'company'?: Company;
|
|
96
100
|
}
|
|
97
101
|
|
|
@@ -101,5 +105,18 @@ export const SendEncodingEnum = {
|
|
|
101
105
|
} as const;
|
|
102
106
|
|
|
103
107
|
export type SendEncodingEnum = typeof SendEncodingEnum[keyof typeof SendEncodingEnum];
|
|
108
|
+
export const SendLatestStateEnum = {
|
|
109
|
+
Inviato: 'Inviato',
|
|
110
|
+
Consegnato: 'Consegnato',
|
|
111
|
+
NonConsegnato: 'NonConsegnato',
|
|
112
|
+
Scartato: 'Scartato',
|
|
113
|
+
AccettatoDalDestinatario: 'AccettatoDalDestinatario',
|
|
114
|
+
RifiutatoDalDestinatario: 'RifiutatoDalDestinatario',
|
|
115
|
+
ImpossibilitaDiRecapito: 'ImpossibilitaDiRecapito',
|
|
116
|
+
DecorrenzaTermini: 'DecorrenzaTermini',
|
|
117
|
+
AttestazioneTrasmissioneFattura: 'AttestazioneTrasmissioneFattura'
|
|
118
|
+
} as const;
|
|
119
|
+
|
|
120
|
+
export type SendLatestStateEnum = typeof SendLatestStateEnum[keyof typeof SendLatestStateEnum];
|
|
104
121
|
|
|
105
122
|
|
package/src/models/status.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,5 +26,13 @@ export interface Status {
|
|
|
26
26
|
* Signatures left.
|
|
27
27
|
*/
|
|
28
28
|
'signature_left'?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the current API key has an active Desk seat.
|
|
31
|
+
*/
|
|
32
|
+
'has_active_seat'?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the current API key is a sub-key (restricted key).
|
|
35
|
+
*/
|
|
36
|
+
'is_sub_key'?: boolean;
|
|
29
37
|
}
|
|
30
38
|
|
package/src/models/update.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ import type { SendReduced } from './send-reduced';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface Update {
|
|
24
24
|
/**
|
|
25
|
-
* Unique identifier.
|
|
25
|
+
* 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.
|
|
26
26
|
*/
|
|
27
27
|
'id'?: number;
|
|
28
28
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
export interface WebHookHistory {
|
|
21
21
|
/**
|
|
22
|
-
* Unique identifier.
|
|
22
|
+
* 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.
|
|
23
23
|
*/
|
|
24
24
|
'id'?: number;
|
|
25
25
|
/**
|
|
@@ -43,9 +43,13 @@ export interface WebHookHistory {
|
|
|
43
43
|
*/
|
|
44
44
|
'event'?: string | null;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* 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.
|
|
47
47
|
*/
|
|
48
48
|
'status_code'?: number;
|
|
49
|
+
/**
|
|
50
|
+
* 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.
|
|
51
|
+
*/
|
|
52
|
+
'error'?: string | null;
|
|
49
53
|
/**
|
|
50
54
|
* Date and time of the request.
|
|
51
55
|
*/
|
package/src/models/web-hook.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* 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/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
export interface WebHook {
|
|
21
21
|
/**
|
|
22
|
-
* Unique identifier.
|
|
22
|
+
* 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.
|
|
23
23
|
*/
|
|
24
24
|
'id'?: number;
|
|
25
25
|
/**
|
|
@@ -31,11 +31,11 @@ export interface WebHook {
|
|
|
31
31
|
*/
|
|
32
32
|
'version'?: number;
|
|
33
33
|
/**
|
|
34
|
-
* User id.
|
|
34
|
+
* User id. It is set automatically based on the authenticated user.
|
|
35
35
|
*/
|
|
36
36
|
'user_id'?: number;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Optional company id. If set, the webhook is restricted to events for that company; if omitted, it fires for all companies on the account.
|
|
39
39
|
*/
|
|
40
40
|
'company_id'?: number | null;
|
|
41
41
|
/**
|
|
@@ -58,5 +58,9 @@ export interface WebHook {
|
|
|
58
58
|
* List of events that trigger the webhook. See Invoicetronic.SupportedEvents.Available for a list of valid event names.
|
|
59
59
|
*/
|
|
60
60
|
'events'?: Array<string> | null;
|
|
61
|
+
/**
|
|
62
|
+
* Timestamp of the last failure notification email sent for this webhook. Set by the notifier service; reset to null on successful delivery.
|
|
63
|
+
*/
|
|
64
|
+
'failure_notified_at'?: string | null;
|
|
61
65
|
}
|
|
62
66
|
|