@invoicetronic/ts-sdk 1.5.0 → 1.6.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 +2 -20
- package/dist/esm/src/api/export-api.d.ts +1 -1
- package/dist/esm/src/api/export-api.js +2 -5
- package/dist/esm/src/api/health-api.d.ts +1 -1
- package/dist/esm/src/api/health-api.js +2 -5
- package/dist/esm/src/api/log-api.d.ts +11 -6
- package/dist/esm/src/api/log-api.js +16 -15
- package/dist/esm/src/api/receive-api.d.ts +1 -1
- package/dist/esm/src/api/receive-api.js +2 -14
- package/dist/esm/src/api/send-api.d.ts +1 -1
- package/dist/esm/src/api/send-api.js +2 -38
- package/dist/esm/src/api/status-api.d.ts +1 -1
- package/dist/esm/src/api/status-api.js +2 -5
- package/dist/esm/src/api/update-api.d.ts +1 -1
- package/dist/esm/src/api/update-api.js +2 -8
- package/dist/esm/src/api/webhook-api.d.ts +1 -1
- package/dist/esm/src/api/webhook-api.js +2 -23
- package/dist/esm/src/models/company.d.ts +1 -1
- 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 +5 -1
- package/dist/esm/src/models/event.js +1 -1
- package/dist/esm/src/models/index.d.ts +0 -1
- package/dist/esm/src/models/index.js +0 -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 +2 -2
- package/dist/esm/src/models/receive.js +1 -1
- package/dist/esm/src/models/send-reduced.d.ts +1 -1
- package/dist/esm/src/models/send-reduced.js +1 -1
- package/dist/esm/src/models/send.d.ts +2 -2
- package/dist/esm/src/models/send.js +1 -1
- package/dist/esm/src/models/status.d.ts +1 -1
- package/dist/esm/src/models/status.js +1 -1
- package/dist/esm/src/models/update.d.ts +1 -1
- package/dist/esm/src/models/update.js +1 -1
- package/dist/esm/src/models/web-hook-history.d.ts +1 -1
- package/dist/esm/src/models/web-hook-history.js +1 -1
- package/dist/esm/src/models/web-hook.d.ts +2 -2
- 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 +1 -19
- package/dist/src/api/export-api.d.ts +1 -1
- package/dist/src/api/export-api.js +1 -4
- package/dist/src/api/health-api.d.ts +1 -1
- package/dist/src/api/health-api.js +1 -4
- package/dist/src/api/log-api.d.ts +11 -6
- package/dist/src/api/log-api.js +15 -14
- package/dist/src/api/receive-api.d.ts +1 -1
- package/dist/src/api/receive-api.js +1 -13
- package/dist/src/api/send-api.d.ts +1 -1
- package/dist/src/api/send-api.js +1 -37
- package/dist/src/api/status-api.d.ts +1 -1
- package/dist/src/api/status-api.js +1 -4
- package/dist/src/api/update-api.d.ts +1 -1
- package/dist/src/api/update-api.js +1 -7
- package/dist/src/api/webhook-api.d.ts +1 -1
- package/dist/src/api/webhook-api.js +1 -22
- package/dist/src/models/company.d.ts +1 -1
- 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 +5 -1
- package/dist/src/models/event.js +1 -1
- package/dist/src/models/index.d.ts +0 -1
- package/dist/src/models/index.js +0 -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 +2 -2
- package/dist/src/models/receive.js +1 -1
- package/dist/src/models/send-reduced.d.ts +1 -1
- package/dist/src/models/send-reduced.js +1 -1
- package/dist/src/models/send.d.ts +2 -2
- package/dist/src/models/send.js +1 -1
- package/dist/src/models/status.d.ts +1 -1
- package/dist/src/models/status.js +1 -1
- package/dist/src/models/update.d.ts +1 -1
- package/dist/src/models/update.js +1 -1
- package/dist/src/models/web-hook-history.d.ts +1 -1
- package/dist/src/models/web-hook-history.js +1 -1
- package/dist/src/models/web-hook.d.ts +2 -2
- package/dist/src/models/web-hook.js +1 -1
- package/docs/CompanyApi.md +6 -13
- package/docs/Event.md +2 -0
- package/docs/ExportApi.md +1 -1
- package/docs/HealthApi.md +1 -1
- package/docs/LogApi.md +6 -4
- package/docs/Receive.md +1 -1
- package/docs/ReceiveApi.md +4 -8
- package/docs/Send.md +1 -1
- package/docs/SendApi.md +12 -22
- package/docs/StatusApi.md +1 -1
- package/docs/UpdateApi.md +2 -3
- package/docs/WebHook.md +1 -1
- package/docs/WebhookApi.md +7 -14
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/api/company-api.ts +1 -27
- package/src/api/export-api.ts +1 -5
- package/src/api/health-api.ts +1 -5
- package/src/api/log-api.ts +18 -19
- package/src/api/receive-api.ts +1 -19
- package/src/api/send-api.ts +1 -51
- package/src/api/status-api.ts +1 -5
- package/src/api/update-api.ts +1 -11
- package/src/api/webhook-api.ts +1 -31
- package/src/models/company.ts +1 -1
- package/src/models/document-data.ts +1 -1
- package/src/models/event.ts +5 -1
- package/src/models/index.ts +0 -1
- package/src/models/model-error.ts +1 -1
- package/src/models/problem-details.ts +1 -1
- package/src/models/receive.ts +2 -2
- package/src/models/send-reduced.ts +1 -1
- package/src/models/send.ts +2 -2
- package/src/models/status.ts +1 -1
- package/src/models/update.ts +1 -1
- package/src/models/web-hook-history.ts +1 -1
- package/src/models/web-hook.ts +2 -2
- package/dist/esm/src/models/problem-http-result.d.ts +0 -17
- package/dist/esm/src/models/problem-http-result.js +0 -14
- package/dist/src/models/problem-http-result.d.ts +0 -17
- package/dist/src/models/problem-http-result.js +0 -15
- package/docs/ProblemHttpResult.md +0 -24
- package/src/models/problem-http-result.ts +0 -25
package/docs/CompanyApi.md
CHANGED
|
@@ -56,7 +56,7 @@ const { status, data } = await apiInstance.companyGet(
|
|
|
56
56
|
|
|
57
57
|
### Authorization
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
No authorization required
|
|
60
60
|
|
|
61
61
|
### HTTP request headers
|
|
62
62
|
|
|
@@ -69,7 +69,6 @@ const { status, data } = await apiInstance.companyGet(
|
|
|
69
69
|
|-------------|-------------|------------------|
|
|
70
70
|
|**200** | OK | - |
|
|
71
71
|
|**404** | Not Found | - |
|
|
72
|
-
|**400** | Bad Request | - |
|
|
73
72
|
|
|
74
73
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
75
74
|
|
|
@@ -112,7 +111,7 @@ const { status, data } = await apiInstance.companyIdDelete(
|
|
|
112
111
|
|
|
113
112
|
### Authorization
|
|
114
113
|
|
|
115
|
-
|
|
114
|
+
No authorization required
|
|
116
115
|
|
|
117
116
|
### HTTP request headers
|
|
118
117
|
|
|
@@ -124,9 +123,6 @@ const { status, data } = await apiInstance.companyIdDelete(
|
|
|
124
123
|
| Status code | Description | Response headers |
|
|
125
124
|
|-------------|-------------|------------------|
|
|
126
125
|
|**200** | OK | - |
|
|
127
|
-
|**422** | Unprocessable Content | - |
|
|
128
|
-
|**400** | Bad Request | - |
|
|
129
|
-
|**409** | Conflict | - |
|
|
130
126
|
|**404** | Not Found | - |
|
|
131
127
|
|
|
132
128
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -167,7 +163,7 @@ const { status, data } = await apiInstance.companyIdGet(
|
|
|
167
163
|
|
|
168
164
|
### Authorization
|
|
169
165
|
|
|
170
|
-
|
|
166
|
+
No authorization required
|
|
171
167
|
|
|
172
168
|
### HTTP request headers
|
|
173
169
|
|
|
@@ -220,7 +216,7 @@ const { status, data } = await apiInstance.companyPost(
|
|
|
220
216
|
|
|
221
217
|
### Authorization
|
|
222
218
|
|
|
223
|
-
|
|
219
|
+
No authorization required
|
|
224
220
|
|
|
225
221
|
### HTTP request headers
|
|
226
222
|
|
|
@@ -232,7 +228,6 @@ const { status, data } = await apiInstance.companyPost(
|
|
|
232
228
|
| Status code | Description | Response headers |
|
|
233
229
|
|-------------|-------------|------------------|
|
|
234
230
|
|**201** | Created | - |
|
|
235
|
-
|**400** | Bad Request | - |
|
|
236
231
|
|**422** | Unprocessable Content | - |
|
|
237
232
|
|
|
238
233
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -274,7 +269,7 @@ const { status, data } = await apiInstance.companyPut(
|
|
|
274
269
|
|
|
275
270
|
### Authorization
|
|
276
271
|
|
|
277
|
-
|
|
272
|
+
No authorization required
|
|
278
273
|
|
|
279
274
|
### HTTP request headers
|
|
280
275
|
|
|
@@ -287,7 +282,6 @@ const { status, data } = await apiInstance.companyPut(
|
|
|
287
282
|
|-------------|-------------|------------------|
|
|
288
283
|
|**200** | OK | - |
|
|
289
284
|
|**422** | Unprocessable Content | - |
|
|
290
|
-
|**400** | Bad Request | - |
|
|
291
285
|
|
|
292
286
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
293
287
|
|
|
@@ -327,7 +321,7 @@ const { status, data } = await apiInstance.companyVatGet(
|
|
|
327
321
|
|
|
328
322
|
### Authorization
|
|
329
323
|
|
|
330
|
-
|
|
324
|
+
No authorization required
|
|
331
325
|
|
|
332
326
|
### HTTP request headers
|
|
333
327
|
|
|
@@ -340,7 +334,6 @@ const { status, data } = await apiInstance.companyVatGet(
|
|
|
340
334
|
|-------------|-------------|------------------|
|
|
341
335
|
|**200** | OK | - |
|
|
342
336
|
|**404** | Not Found | - |
|
|
343
|
-
|**400** | Bad Request | - |
|
|
344
337
|
|
|
345
338
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
346
339
|
|
package/docs/Event.md
CHANGED
|
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**date_time** | **string** | Date and time of the request. | [optional] [default to undefined]
|
|
20
20
|
**error** | **string** | Response error. | [optional] [default to undefined]
|
|
21
21
|
**resource_id** | **number** | ID of the resource created or modified by this request. | [optional] [default to undefined]
|
|
22
|
+
**user_agent** | **string** | User-Agent header from the HTTP request. | [optional] [default to undefined]
|
|
22
23
|
**success** | **boolean** | Whether the request was successful. | [optional] [readonly] [default to undefined]
|
|
23
24
|
**query** | **string** | Request query. Only used for internal logging, not sent to webhooks. | [optional] [default to undefined]
|
|
24
25
|
**response_body** | **string** | Response payload. It is guaranteed to be encrypted at rest. | [optional] [default to undefined]
|
|
@@ -42,6 +43,7 @@ const instance: Event = {
|
|
|
42
43
|
date_time,
|
|
43
44
|
error,
|
|
44
45
|
resource_id,
|
|
46
|
+
user_agent,
|
|
45
47
|
success,
|
|
46
48
|
query,
|
|
47
49
|
response_body,
|
package/docs/ExportApi.md
CHANGED
package/docs/HealthApi.md
CHANGED
package/docs/LogApi.md
CHANGED
|
@@ -37,6 +37,7 @@ let query: string; // (optional) (default to undefined)
|
|
|
37
37
|
let success: boolean; // (optional) (default to undefined)
|
|
38
38
|
let dateTimeFrom: string; //Date and time of the event (optional) (default to undefined)
|
|
39
39
|
let dateTimeTo: string; //Date and time of the event (optional) (default to undefined)
|
|
40
|
+
let userAgent: string; // (optional) (default to undefined)
|
|
40
41
|
|
|
41
42
|
const { status, data } = await apiInstance.logGet(
|
|
42
43
|
companyId,
|
|
@@ -52,7 +53,8 @@ const { status, data } = await apiInstance.logGet(
|
|
|
52
53
|
query,
|
|
53
54
|
success,
|
|
54
55
|
dateTimeFrom,
|
|
55
|
-
dateTimeTo
|
|
56
|
+
dateTimeTo,
|
|
57
|
+
userAgent
|
|
56
58
|
);
|
|
57
59
|
```
|
|
58
60
|
|
|
@@ -74,6 +76,7 @@ const { status, data } = await apiInstance.logGet(
|
|
|
74
76
|
| **success** | [**boolean**] | | (optional) defaults to undefined|
|
|
75
77
|
| **dateTimeFrom** | [**string**] | Date and time of the event | (optional) defaults to undefined|
|
|
76
78
|
| **dateTimeTo** | [**string**] | Date and time of the event | (optional) defaults to undefined|
|
|
79
|
+
| **userAgent** | [**string**] | | (optional) defaults to undefined|
|
|
77
80
|
|
|
78
81
|
|
|
79
82
|
### Return type
|
|
@@ -82,7 +85,7 @@ const { status, data } = await apiInstance.logGet(
|
|
|
82
85
|
|
|
83
86
|
### Authorization
|
|
84
87
|
|
|
85
|
-
|
|
88
|
+
No authorization required
|
|
86
89
|
|
|
87
90
|
### HTTP request headers
|
|
88
91
|
|
|
@@ -95,7 +98,6 @@ const { status, data } = await apiInstance.logGet(
|
|
|
95
98
|
|-------------|-------------|------------------|
|
|
96
99
|
|**200** | OK | - |
|
|
97
100
|
|**404** | Not Found | - |
|
|
98
|
-
|**400** | Bad Request | - |
|
|
99
101
|
|
|
100
102
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
101
103
|
|
|
@@ -135,7 +137,7 @@ const { status, data } = await apiInstance.logIdGet(
|
|
|
135
137
|
|
|
136
138
|
### Authorization
|
|
137
139
|
|
|
138
|
-
|
|
140
|
+
No authorization required
|
|
139
141
|
|
|
140
142
|
### HTTP request headers
|
|
141
143
|
|
package/docs/Receive.md
CHANGED
|
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**created** | **string** | Creation date. It is set automatically. | [optional] [default to undefined]
|
|
11
11
|
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [default to undefined]
|
|
12
12
|
**user_id** | **number** | User id. | [optional] [default to undefined]
|
|
13
|
-
**company_id** | **number** | Company id. On send, this is the sender and must be set in advance. On receive, it will be
|
|
13
|
+
**company_id** | **number** | 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. | [optional] [default to undefined]
|
|
14
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
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
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]
|
package/docs/ReceiveApi.md
CHANGED
|
@@ -96,7 +96,7 @@ const { status, data } = await apiInstance.receiveGet(
|
|
|
96
96
|
|
|
97
97
|
### Authorization
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
No authorization required
|
|
100
100
|
|
|
101
101
|
### HTTP request headers
|
|
102
102
|
|
|
@@ -109,7 +109,6 @@ const { status, data } = await apiInstance.receiveGet(
|
|
|
109
109
|
|-------------|-------------|------------------|
|
|
110
110
|
|**200** | OK | - |
|
|
111
111
|
|**404** | Not Found | - |
|
|
112
|
-
|**400** | Bad Request | - |
|
|
113
112
|
|
|
114
113
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
115
114
|
|
|
@@ -149,7 +148,7 @@ const { status, data } = await apiInstance.receiveIdDelete(
|
|
|
149
148
|
|
|
150
149
|
### Authorization
|
|
151
150
|
|
|
152
|
-
|
|
151
|
+
No authorization required
|
|
153
152
|
|
|
154
153
|
### HTTP request headers
|
|
155
154
|
|
|
@@ -161,9 +160,6 @@ const { status, data } = await apiInstance.receiveIdDelete(
|
|
|
161
160
|
| Status code | Description | Response headers |
|
|
162
161
|
|-------------|-------------|------------------|
|
|
163
162
|
|**200** | OK | - |
|
|
164
|
-
|**422** | Unprocessable Content | - |
|
|
165
|
-
|**400** | Bad Request | - |
|
|
166
|
-
|**409** | Conflict | - |
|
|
167
163
|
|**404** | Not Found | - |
|
|
168
164
|
|
|
169
165
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -207,7 +203,7 @@ const { status, data } = await apiInstance.receiveIdGet(
|
|
|
207
203
|
|
|
208
204
|
### Authorization
|
|
209
205
|
|
|
210
|
-
|
|
206
|
+
No authorization required
|
|
211
207
|
|
|
212
208
|
### HTTP request headers
|
|
213
209
|
|
|
@@ -259,7 +255,7 @@ void (empty response body)
|
|
|
259
255
|
|
|
260
256
|
### Authorization
|
|
261
257
|
|
|
262
|
-
|
|
258
|
+
No authorization required
|
|
263
259
|
|
|
264
260
|
### HTTP request headers
|
|
265
261
|
|
package/docs/Send.md
CHANGED
|
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**created** | **string** | Creation date. It is set automatically. | [optional] [default to undefined]
|
|
11
11
|
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [default to undefined]
|
|
12
12
|
**user_id** | **number** | User id. | [optional] [default to undefined]
|
|
13
|
-
**company_id** | **number** | Company id. On send, this is the sender and must be set in advance. On receive, it will be
|
|
13
|
+
**company_id** | **number** | 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. | [optional] [default to undefined]
|
|
14
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
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
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]
|
package/docs/SendApi.md
CHANGED
|
@@ -59,7 +59,7 @@ const { status, data } = await apiInstance.sendFilePost(
|
|
|
59
59
|
|
|
60
60
|
### Authorization
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
No authorization required
|
|
63
63
|
|
|
64
64
|
### HTTP request headers
|
|
65
65
|
|
|
@@ -71,7 +71,6 @@ const { status, data } = await apiInstance.sendFilePost(
|
|
|
71
71
|
| Status code | Description | Response headers |
|
|
72
72
|
|-------------|-------------|------------------|
|
|
73
73
|
|**201** | Created | - |
|
|
74
|
-
|**400** | Bad Request | - |
|
|
75
74
|
|**422** | Unprocessable Content | - |
|
|
76
75
|
|
|
77
76
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -160,7 +159,7 @@ const { status, data } = await apiInstance.sendGet(
|
|
|
160
159
|
|
|
161
160
|
### Authorization
|
|
162
161
|
|
|
163
|
-
|
|
162
|
+
No authorization required
|
|
164
163
|
|
|
165
164
|
### HTTP request headers
|
|
166
165
|
|
|
@@ -173,7 +172,6 @@ const { status, data } = await apiInstance.sendGet(
|
|
|
173
172
|
|-------------|-------------|------------------|
|
|
174
173
|
|**200** | OK | - |
|
|
175
174
|
|**404** | Not Found | - |
|
|
176
|
-
|**400** | Bad Request | - |
|
|
177
175
|
|
|
178
176
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
179
177
|
|
|
@@ -216,7 +214,7 @@ const { status, data } = await apiInstance.sendIdGet(
|
|
|
216
214
|
|
|
217
215
|
### Authorization
|
|
218
216
|
|
|
219
|
-
|
|
217
|
+
No authorization required
|
|
220
218
|
|
|
221
219
|
### HTTP request headers
|
|
222
220
|
|
|
@@ -268,7 +266,7 @@ void (empty response body)
|
|
|
268
266
|
|
|
269
267
|
### Authorization
|
|
270
268
|
|
|
271
|
-
|
|
269
|
+
No authorization required
|
|
272
270
|
|
|
273
271
|
### HTTP request headers
|
|
274
272
|
|
|
@@ -323,7 +321,7 @@ const { status, data } = await apiInstance.sendIdentifierGet(
|
|
|
323
321
|
|
|
324
322
|
### Authorization
|
|
325
323
|
|
|
326
|
-
|
|
324
|
+
No authorization required
|
|
327
325
|
|
|
328
326
|
### HTTP request headers
|
|
329
327
|
|
|
@@ -336,7 +334,6 @@ const { status, data } = await apiInstance.sendIdentifierGet(
|
|
|
336
334
|
|-------------|-------------|------------------|
|
|
337
335
|
|**200** | OK | - |
|
|
338
336
|
|**404** | Not Found | - |
|
|
339
|
-
|**400** | Bad Request | - |
|
|
340
337
|
|
|
341
338
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
342
339
|
|
|
@@ -382,7 +379,7 @@ const { status, data } = await apiInstance.sendJsonPost(
|
|
|
382
379
|
|
|
383
380
|
### Authorization
|
|
384
381
|
|
|
385
|
-
|
|
382
|
+
No authorization required
|
|
386
383
|
|
|
387
384
|
### HTTP request headers
|
|
388
385
|
|
|
@@ -394,7 +391,6 @@ const { status, data } = await apiInstance.sendJsonPost(
|
|
|
394
391
|
| Status code | Description | Response headers |
|
|
395
392
|
|-------------|-------------|------------------|
|
|
396
393
|
|**201** | Created | - |
|
|
397
|
-
|**400** | Bad Request | - |
|
|
398
394
|
|**422** | Unprocessable Content | - |
|
|
399
395
|
|
|
400
396
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -442,7 +438,7 @@ const { status, data } = await apiInstance.sendPost(
|
|
|
442
438
|
|
|
443
439
|
### Authorization
|
|
444
440
|
|
|
445
|
-
|
|
441
|
+
No authorization required
|
|
446
442
|
|
|
447
443
|
### HTTP request headers
|
|
448
444
|
|
|
@@ -454,7 +450,6 @@ const { status, data } = await apiInstance.sendPost(
|
|
|
454
450
|
| Status code | Description | Response headers |
|
|
455
451
|
|-------------|-------------|------------------|
|
|
456
452
|
|**201** | Created | - |
|
|
457
|
-
|**400** | Bad Request | - |
|
|
458
453
|
|**422** | Unprocessable Content | - |
|
|
459
454
|
|
|
460
455
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -495,7 +490,7 @@ void (empty response body)
|
|
|
495
490
|
|
|
496
491
|
### Authorization
|
|
497
492
|
|
|
498
|
-
|
|
493
|
+
No authorization required
|
|
499
494
|
|
|
500
495
|
### HTTP request headers
|
|
501
496
|
|
|
@@ -507,7 +502,6 @@ void (empty response body)
|
|
|
507
502
|
| Status code | Description | Response headers |
|
|
508
503
|
|-------------|-------------|------------------|
|
|
509
504
|
|**204** | No Content | - |
|
|
510
|
-
|**400** | Bad Request | - |
|
|
511
505
|
|**422** | Unprocessable Content | - |
|
|
512
506
|
|
|
513
507
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -548,7 +542,7 @@ void (empty response body)
|
|
|
548
542
|
|
|
549
543
|
### Authorization
|
|
550
544
|
|
|
551
|
-
|
|
545
|
+
No authorization required
|
|
552
546
|
|
|
553
547
|
### HTTP request headers
|
|
554
548
|
|
|
@@ -560,7 +554,6 @@ void (empty response body)
|
|
|
560
554
|
| Status code | Description | Response headers |
|
|
561
555
|
|-------------|-------------|------------------|
|
|
562
556
|
|**204** | No Content | - |
|
|
563
|
-
|**400** | Bad Request | - |
|
|
564
557
|
|**422** | Unprocessable Content | - |
|
|
565
558
|
|
|
566
559
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -602,7 +595,7 @@ void (empty response body)
|
|
|
602
595
|
|
|
603
596
|
### Authorization
|
|
604
597
|
|
|
605
|
-
|
|
598
|
+
No authorization required
|
|
606
599
|
|
|
607
600
|
### HTTP request headers
|
|
608
601
|
|
|
@@ -614,7 +607,6 @@ void (empty response body)
|
|
|
614
607
|
| Status code | Description | Response headers |
|
|
615
608
|
|-------------|-------------|------------------|
|
|
616
609
|
|**204** | No Content | - |
|
|
617
|
-
|**400** | Bad Request | - |
|
|
618
610
|
|**422** | Unprocessable Content | - |
|
|
619
611
|
|
|
620
612
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -655,7 +647,7 @@ void (empty response body)
|
|
|
655
647
|
|
|
656
648
|
### Authorization
|
|
657
649
|
|
|
658
|
-
|
|
650
|
+
No authorization required
|
|
659
651
|
|
|
660
652
|
### HTTP request headers
|
|
661
653
|
|
|
@@ -667,7 +659,6 @@ void (empty response body)
|
|
|
667
659
|
| Status code | Description | Response headers |
|
|
668
660
|
|-------------|-------------|------------------|
|
|
669
661
|
|**204** | No Content | - |
|
|
670
|
-
|**400** | Bad Request | - |
|
|
671
662
|
|**422** | Unprocessable Content | - |
|
|
672
663
|
|
|
673
664
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -714,7 +705,7 @@ const { status, data } = await apiInstance.sendXmlPost(
|
|
|
714
705
|
|
|
715
706
|
### Authorization
|
|
716
707
|
|
|
717
|
-
|
|
708
|
+
No authorization required
|
|
718
709
|
|
|
719
710
|
### HTTP request headers
|
|
720
711
|
|
|
@@ -726,7 +717,6 @@ const { status, data } = await apiInstance.sendXmlPost(
|
|
|
726
717
|
| Status code | Description | Response headers |
|
|
727
718
|
|-------------|-------------|------------------|
|
|
728
719
|
|**201** | Created | - |
|
|
729
|
-
|**400** | Bad Request | - |
|
|
730
720
|
|**422** | Unprocessable Content | - |
|
|
731
721
|
|
|
732
722
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
package/docs/StatusApi.md
CHANGED
package/docs/UpdateApi.md
CHANGED
|
@@ -79,7 +79,7 @@ const { status, data } = await apiInstance.updateGet(
|
|
|
79
79
|
|
|
80
80
|
### Authorization
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
No authorization required
|
|
83
83
|
|
|
84
84
|
### HTTP request headers
|
|
85
85
|
|
|
@@ -92,7 +92,6 @@ const { status, data } = await apiInstance.updateGet(
|
|
|
92
92
|
|-------------|-------------|------------------|
|
|
93
93
|
|**200** | OK | - |
|
|
94
94
|
|**404** | Not Found | - |
|
|
95
|
-
|**400** | Bad Request | - |
|
|
96
95
|
|
|
97
96
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
98
97
|
|
|
@@ -132,7 +131,7 @@ const { status, data } = await apiInstance.updateIdGet(
|
|
|
132
131
|
|
|
133
132
|
### Authorization
|
|
134
133
|
|
|
135
|
-
|
|
134
|
+
No authorization required
|
|
136
135
|
|
|
137
136
|
### HTTP request headers
|
|
138
137
|
|
package/docs/WebHook.md
CHANGED
|
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**enabled** | **boolean** | Whether the webhook is enabled. On creation, this is set to `true`. | [optional] [default to undefined]
|
|
16
16
|
**secret** | **string** | 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. | [optional] [default to undefined]
|
|
17
17
|
**description** | **string** | An optional description. | [optional] [default to undefined]
|
|
18
|
-
**events** | **Array<string>** | List of events that trigger the webhook.
|
|
18
|
+
**events** | **Array<string>** | List of events that trigger the webhook. See Invoicetronic.SupportedEvents.Available for a list of valid event names. | [optional] [default to undefined]
|
|
19
19
|
|
|
20
20
|
## Example
|
|
21
21
|
|
package/docs/WebhookApi.md
CHANGED
|
@@ -69,7 +69,7 @@ const { status, data } = await apiInstance.webhookGet(
|
|
|
69
69
|
|
|
70
70
|
### Authorization
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
No authorization required
|
|
73
73
|
|
|
74
74
|
### HTTP request headers
|
|
75
75
|
|
|
@@ -82,7 +82,6 @@ const { status, data } = await apiInstance.webhookGet(
|
|
|
82
82
|
|-------------|-------------|------------------|
|
|
83
83
|
|**200** | OK | - |
|
|
84
84
|
|**404** | Not Found | - |
|
|
85
|
-
|**400** | Bad Request | - |
|
|
86
85
|
|
|
87
86
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
88
87
|
|
|
@@ -122,7 +121,7 @@ const { status, data } = await apiInstance.webhookIdDelete(
|
|
|
122
121
|
|
|
123
122
|
### Authorization
|
|
124
123
|
|
|
125
|
-
|
|
124
|
+
No authorization required
|
|
126
125
|
|
|
127
126
|
### HTTP request headers
|
|
128
127
|
|
|
@@ -134,9 +133,6 @@ const { status, data } = await apiInstance.webhookIdDelete(
|
|
|
134
133
|
| Status code | Description | Response headers |
|
|
135
134
|
|-------------|-------------|------------------|
|
|
136
135
|
|**200** | OK | - |
|
|
137
|
-
|**422** | Unprocessable Content | - |
|
|
138
|
-
|**400** | Bad Request | - |
|
|
139
|
-
|**409** | Conflict | - |
|
|
140
136
|
|**404** | Not Found | - |
|
|
141
137
|
|
|
142
138
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -177,7 +173,7 @@ const { status, data } = await apiInstance.webhookIdGet(
|
|
|
177
173
|
|
|
178
174
|
### Authorization
|
|
179
175
|
|
|
180
|
-
|
|
176
|
+
No authorization required
|
|
181
177
|
|
|
182
178
|
### HTTP request headers
|
|
183
179
|
|
|
@@ -230,7 +226,7 @@ const { status, data } = await apiInstance.webhookPost(
|
|
|
230
226
|
|
|
231
227
|
### Authorization
|
|
232
228
|
|
|
233
|
-
|
|
229
|
+
No authorization required
|
|
234
230
|
|
|
235
231
|
### HTTP request headers
|
|
236
232
|
|
|
@@ -242,7 +238,6 @@ const { status, data } = await apiInstance.webhookPost(
|
|
|
242
238
|
| Status code | Description | Response headers |
|
|
243
239
|
|-------------|-------------|------------------|
|
|
244
240
|
|**201** | Created | - |
|
|
245
|
-
|**400** | Bad Request | - |
|
|
246
241
|
|**422** | Unprocessable Content | - |
|
|
247
242
|
|
|
248
243
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -284,7 +279,7 @@ const { status, data } = await apiInstance.webhookPut(
|
|
|
284
279
|
|
|
285
280
|
### Authorization
|
|
286
281
|
|
|
287
|
-
|
|
282
|
+
No authorization required
|
|
288
283
|
|
|
289
284
|
### HTTP request headers
|
|
290
285
|
|
|
@@ -297,7 +292,6 @@ const { status, data } = await apiInstance.webhookPut(
|
|
|
297
292
|
|-------------|-------------|------------------|
|
|
298
293
|
|**200** | OK | - |
|
|
299
294
|
|**422** | Unprocessable Content | - |
|
|
300
|
-
|**400** | Bad Request | - |
|
|
301
295
|
|
|
302
296
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
303
297
|
|
|
@@ -346,7 +340,7 @@ const { status, data } = await apiInstance.webhookhistoryGet(
|
|
|
346
340
|
|
|
347
341
|
### Authorization
|
|
348
342
|
|
|
349
|
-
|
|
343
|
+
No authorization required
|
|
350
344
|
|
|
351
345
|
### HTTP request headers
|
|
352
346
|
|
|
@@ -359,7 +353,6 @@ const { status, data } = await apiInstance.webhookhistoryGet(
|
|
|
359
353
|
|-------------|-------------|------------------|
|
|
360
354
|
|**200** | OK | - |
|
|
361
355
|
|**404** | Not Found | - |
|
|
362
|
-
|**400** | Bad Request | - |
|
|
363
356
|
|
|
364
357
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
365
358
|
|
|
@@ -399,7 +392,7 @@ const { status, data } = await apiInstance.webhookhistoryIdGet(
|
|
|
399
392
|
|
|
400
393
|
### Authorization
|
|
401
394
|
|
|
402
|
-
|
|
395
|
+
No authorization required
|
|
403
396
|
|
|
404
397
|
### HTTP request headers
|
|
405
398
|
|
package/index.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.6.1
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|