@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/docs/SendApi.md
CHANGED
|
@@ -59,7 +59,7 @@ const { status, data } = await apiInstance.sendFilePost(
|
|
|
59
59
|
|
|
60
60
|
### Authorization
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
[Basic](../README.md#Basic)
|
|
63
63
|
|
|
64
64
|
### HTTP request headers
|
|
65
65
|
|
|
@@ -78,7 +78,7 @@ No authorization required
|
|
|
78
78
|
# **sendGet**
|
|
79
79
|
> Array<Send> sendGet()
|
|
80
80
|
|
|
81
|
-
Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
81
|
+
Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Use `ids` to fetch specific Send records in a single call (comma-separated, up to 100). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
82
82
|
|
|
83
83
|
### Example
|
|
84
84
|
|
|
@@ -104,6 +104,7 @@ let documentDateFrom: string; //UTC ISO 8601 (2024-11-29T12:34:56Z) (optional) (
|
|
|
104
104
|
let documentDateTo: string; //UTC ISO 8601 (2024-11-29T12:34:56Z) (optional) (default to undefined)
|
|
105
105
|
let documentNumber: string; //Document number. (optional) (default to undefined)
|
|
106
106
|
let includePayload: boolean; //Include payload in the response. Defaults to false. (optional) (default to undefined)
|
|
107
|
+
let ids: string; //Comma-separated list of Send ids (max 100). Filters the collection to the matching rows; unknown or unauthorized ids are silently skipped. (optional) (default to undefined)
|
|
107
108
|
let page: number; //Page number. (optional) (default to 1)
|
|
108
109
|
let pageSize: number; //Items per page. Cannot be greater than 200. (optional) (default to 100)
|
|
109
110
|
let sort: string; //Sort by field. Prefix with \'-\' for descending order. (optional) (default to undefined)
|
|
@@ -123,6 +124,7 @@ const { status, data } = await apiInstance.sendGet(
|
|
|
123
124
|
documentDateTo,
|
|
124
125
|
documentNumber,
|
|
125
126
|
includePayload,
|
|
127
|
+
ids,
|
|
126
128
|
page,
|
|
127
129
|
pageSize,
|
|
128
130
|
sort,
|
|
@@ -147,6 +149,7 @@ const { status, data } = await apiInstance.sendGet(
|
|
|
147
149
|
| **documentDateTo** | [**string**] | UTC ISO 8601 (2024-11-29T12:34:56Z) | (optional) defaults to undefined|
|
|
148
150
|
| **documentNumber** | [**string**] | Document number. | (optional) defaults to undefined|
|
|
149
151
|
| **includePayload** | [**boolean**] | Include payload in the response. Defaults to false. | (optional) defaults to undefined|
|
|
152
|
+
| **ids** | [**string**] | Comma-separated list of Send ids (max 100). Filters the collection to the matching rows; unknown or unauthorized ids are silently skipped. | (optional) defaults to undefined|
|
|
150
153
|
| **page** | [**number**] | Page number. | (optional) defaults to 1|
|
|
151
154
|
| **pageSize** | [**number**] | Items per page. Cannot be greater than 200. | (optional) defaults to 100|
|
|
152
155
|
| **sort** | [**string**] | Sort by field. Prefix with \'-\' for descending order. | (optional) defaults to undefined|
|
|
@@ -159,7 +162,7 @@ const { status, data } = await apiInstance.sendGet(
|
|
|
159
162
|
|
|
160
163
|
### Authorization
|
|
161
164
|
|
|
162
|
-
|
|
165
|
+
[Basic](../README.md#Basic)
|
|
163
166
|
|
|
164
167
|
### HTTP request headers
|
|
165
168
|
|
|
@@ -214,7 +217,7 @@ const { status, data } = await apiInstance.sendIdGet(
|
|
|
214
217
|
|
|
215
218
|
### Authorization
|
|
216
219
|
|
|
217
|
-
|
|
220
|
+
[Basic](../README.md#Basic)
|
|
218
221
|
|
|
219
222
|
### HTTP request headers
|
|
220
223
|
|
|
@@ -266,7 +269,7 @@ void (empty response body)
|
|
|
266
269
|
|
|
267
270
|
### Authorization
|
|
268
271
|
|
|
269
|
-
|
|
272
|
+
[Basic](../README.md#Basic)
|
|
270
273
|
|
|
271
274
|
### HTTP request headers
|
|
272
275
|
|
|
@@ -321,7 +324,7 @@ const { status, data } = await apiInstance.sendIdentifierGet(
|
|
|
321
324
|
|
|
322
325
|
### Authorization
|
|
323
326
|
|
|
324
|
-
|
|
327
|
+
[Basic](../README.md#Basic)
|
|
325
328
|
|
|
326
329
|
### HTTP request headers
|
|
327
330
|
|
|
@@ -379,7 +382,7 @@ const { status, data } = await apiInstance.sendJsonPost(
|
|
|
379
382
|
|
|
380
383
|
### Authorization
|
|
381
384
|
|
|
382
|
-
|
|
385
|
+
[Basic](../README.md#Basic)
|
|
383
386
|
|
|
384
387
|
### HTTP request headers
|
|
385
388
|
|
|
@@ -438,7 +441,7 @@ const { status, data } = await apiInstance.sendPost(
|
|
|
438
441
|
|
|
439
442
|
### Authorization
|
|
440
443
|
|
|
441
|
-
|
|
444
|
+
[Basic](../README.md#Basic)
|
|
442
445
|
|
|
443
446
|
### HTTP request headers
|
|
444
447
|
|
|
@@ -490,7 +493,7 @@ void (empty response body)
|
|
|
490
493
|
|
|
491
494
|
### Authorization
|
|
492
495
|
|
|
493
|
-
|
|
496
|
+
[Basic](../README.md#Basic)
|
|
494
497
|
|
|
495
498
|
### HTTP request headers
|
|
496
499
|
|
|
@@ -542,7 +545,7 @@ void (empty response body)
|
|
|
542
545
|
|
|
543
546
|
### Authorization
|
|
544
547
|
|
|
545
|
-
|
|
548
|
+
[Basic](../README.md#Basic)
|
|
546
549
|
|
|
547
550
|
### HTTP request headers
|
|
548
551
|
|
|
@@ -595,7 +598,7 @@ void (empty response body)
|
|
|
595
598
|
|
|
596
599
|
### Authorization
|
|
597
600
|
|
|
598
|
-
|
|
601
|
+
[Basic](../README.md#Basic)
|
|
599
602
|
|
|
600
603
|
### HTTP request headers
|
|
601
604
|
|
|
@@ -647,7 +650,7 @@ void (empty response body)
|
|
|
647
650
|
|
|
648
651
|
### Authorization
|
|
649
652
|
|
|
650
|
-
|
|
653
|
+
[Basic](../README.md#Basic)
|
|
651
654
|
|
|
652
655
|
### HTTP request headers
|
|
653
656
|
|
|
@@ -705,7 +708,7 @@ const { status, data } = await apiInstance.sendXmlPost(
|
|
|
705
708
|
|
|
706
709
|
### Authorization
|
|
707
710
|
|
|
708
|
-
|
|
711
|
+
[Basic](../README.md#Basic)
|
|
709
712
|
|
|
710
713
|
### HTTP request headers
|
|
711
714
|
|
package/docs/SendReduced.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**meta_data** | **{ [key: string]: string; }** | Optional metadata, as json. | [optional] [default to undefined]
|
|
12
12
|
**documents** | [**Array<DocumentData>**](DocumentData.md) | The invoices included in the payload. | [optional] [default to undefined]
|
|
13
13
|
**date_sent** | **string** | When the invoice was sent to SDI. | [optional] [default to undefined]
|
|
14
|
+
**latest_state** | **string** | Current SDI state of the invoice. Reflects the most recent update received from SDI. | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -23,6 +24,7 @@ const instance: SendReduced = {
|
|
|
23
24
|
meta_data,
|
|
24
25
|
documents,
|
|
25
26
|
date_sent,
|
|
27
|
+
latest_state,
|
|
26
28
|
};
|
|
27
29
|
```
|
|
28
30
|
|
package/docs/Status.md
CHANGED
|
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
|
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**operation_left** | **number** | Operations (invoices and validations) left. | [optional] [default to undefined]
|
|
10
10
|
**signature_left** | **number** | Signatures left. | [optional] [default to undefined]
|
|
11
|
+
**has_active_seat** | **boolean** | Whether the current API key has an active Desk seat. | [optional] [default to undefined]
|
|
12
|
+
**is_sub_key** | **boolean** | Whether the current API key is a sub-key (restricted key). | [optional] [default to undefined]
|
|
11
13
|
|
|
12
14
|
## Example
|
|
13
15
|
|
|
@@ -17,6 +19,8 @@ import { Status } from '@invoicetronic/ts-sdk';
|
|
|
17
19
|
const instance: Status = {
|
|
18
20
|
operation_left,
|
|
19
21
|
signature_left,
|
|
22
|
+
has_active_seat,
|
|
23
|
+
is_sub_key,
|
|
20
24
|
};
|
|
21
25
|
```
|
|
22
26
|
|
package/docs/StatusApi.md
CHANGED
package/docs/Update.md
CHANGED
|
@@ -6,9 +6,9 @@ An SDI status update for a sent invoice.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | Unique identifier.
|
|
10
|
-
**created** | **string** | Creation date. It is set automatically. | [optional] [default to undefined]
|
|
11
|
-
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [default to undefined]
|
|
9
|
+
**id** | **number** | Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update. | [optional] [default to undefined]
|
|
10
|
+
**created** | **string** | Creation date. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
11
|
+
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
12
12
|
**user_id** | **number** | User id. | [optional] [default to undefined]
|
|
13
13
|
**company_id** | **number** | Company id. | [optional] [default to undefined]
|
|
14
14
|
**send_id** | **number** | Send id. This is the id of the sent invoice to which this update refers to. | [optional] [default to undefined]
|
package/docs/UpdateApi.md
CHANGED
|
@@ -79,7 +79,7 @@ const { status, data } = await apiInstance.updateGet(
|
|
|
79
79
|
|
|
80
80
|
### Authorization
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
[Basic](../README.md#Basic)
|
|
83
83
|
|
|
84
84
|
### HTTP request headers
|
|
85
85
|
|
|
@@ -131,7 +131,7 @@ const { status, data } = await apiInstance.updateIdGet(
|
|
|
131
131
|
|
|
132
132
|
### Authorization
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
[Basic](../README.md#Basic)
|
|
135
135
|
|
|
136
136
|
### HTTP request headers
|
|
137
137
|
|
package/docs/WebHook.md
CHANGED
|
@@ -6,16 +6,17 @@ A webhook subscription.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | Unique identifier.
|
|
10
|
-
**created** | **string** | Creation date. It is set automatically. | [optional] [default to undefined]
|
|
11
|
-
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [default to undefined]
|
|
12
|
-
**user_id** | **number** | User id. | [optional] [default to undefined]
|
|
13
|
-
**company_id** | **number** |
|
|
9
|
+
**id** | **number** | Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update. | [optional] [default to undefined]
|
|
10
|
+
**created** | **string** | Creation date. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
11
|
+
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
12
|
+
**user_id** | **number** | User id. It is set automatically based on the authenticated user. | [optional] [readonly] [default to undefined]
|
|
13
|
+
**company_id** | **number** | Optional company id. If set, the webhook is restricted to events for that company; if omitted, it fires for all companies on the account. | [optional] [default to undefined]
|
|
14
14
|
**url** | **string** | The url of your application\'s endpoint that will receive a POST request when the webhook is fired. | [default to undefined]
|
|
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
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
|
+
**failure_notified_at** | **string** | Timestamp of the last failure notification email sent for this webhook. Set by the notifier service; reset to null on successful delivery. | [optional] [readonly] [default to undefined]
|
|
19
20
|
|
|
20
21
|
## Example
|
|
21
22
|
|
|
@@ -33,6 +34,7 @@ const instance: WebHook = {
|
|
|
33
34
|
secret,
|
|
34
35
|
description,
|
|
35
36
|
events,
|
|
37
|
+
failure_notified_at,
|
|
36
38
|
};
|
|
37
39
|
```
|
|
38
40
|
|
package/docs/WebHookHistory.md
CHANGED
|
@@ -6,13 +6,14 @@ Webhook history.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | Unique identifier.
|
|
10
|
-
**created** | **string** | Creation date. It is set automatically. | [optional] [default to undefined]
|
|
11
|
-
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [default to undefined]
|
|
9
|
+
**id** | **number** | Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update. | [optional] [default to undefined]
|
|
10
|
+
**created** | **string** | Creation date. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
11
|
+
**version** | **number** | Row version, for optimistic concurrency. It is set automatically. | [optional] [readonly] [default to undefined]
|
|
12
12
|
**web_hook_id** | **number** | Webhook id. | [optional] [default to undefined]
|
|
13
13
|
**user_id** | **number** | User id. | [optional] [default to undefined]
|
|
14
14
|
**event** | **string** | Event name. | [optional] [default to undefined]
|
|
15
|
-
**status_code** | **number** |
|
|
15
|
+
**status_code** | **number** | 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. | [optional] [default to undefined]
|
|
16
|
+
**error** | **string** | 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. | [optional] [default to undefined]
|
|
16
17
|
**date_time** | **string** | Date and time of the request. | [optional] [default to undefined]
|
|
17
18
|
**success** | **boolean** | Whether the request was successful. | [optional] [readonly] [default to undefined]
|
|
18
19
|
|
|
@@ -29,6 +30,7 @@ const instance: WebHookHistory = {
|
|
|
29
30
|
user_id,
|
|
30
31
|
event,
|
|
31
32
|
status_code,
|
|
33
|
+
error,
|
|
32
34
|
date_time,
|
|
33
35
|
success,
|
|
34
36
|
};
|
package/docs/WebhookApi.md
CHANGED
|
@@ -69,7 +69,7 @@ const { status, data } = await apiInstance.webhookGet(
|
|
|
69
69
|
|
|
70
70
|
### Authorization
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
[Basic](../README.md#Basic)
|
|
73
73
|
|
|
74
74
|
### HTTP request headers
|
|
75
75
|
|
|
@@ -121,7 +121,7 @@ const { status, data } = await apiInstance.webhookIdDelete(
|
|
|
121
121
|
|
|
122
122
|
### Authorization
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
[Basic](../README.md#Basic)
|
|
125
125
|
|
|
126
126
|
### HTTP request headers
|
|
127
127
|
|
|
@@ -173,7 +173,7 @@ const { status, data } = await apiInstance.webhookIdGet(
|
|
|
173
173
|
|
|
174
174
|
### Authorization
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
[Basic](../README.md#Basic)
|
|
177
177
|
|
|
178
178
|
### HTTP request headers
|
|
179
179
|
|
|
@@ -226,7 +226,7 @@ const { status, data } = await apiInstance.webhookPost(
|
|
|
226
226
|
|
|
227
227
|
### Authorization
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
[Basic](../README.md#Basic)
|
|
230
230
|
|
|
231
231
|
### HTTP request headers
|
|
232
232
|
|
|
@@ -279,7 +279,7 @@ const { status, data } = await apiInstance.webhookPut(
|
|
|
279
279
|
|
|
280
280
|
### Authorization
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
[Basic](../README.md#Basic)
|
|
283
283
|
|
|
284
284
|
### HTTP request headers
|
|
285
285
|
|
|
@@ -340,7 +340,7 @@ const { status, data } = await apiInstance.webhookhistoryGet(
|
|
|
340
340
|
|
|
341
341
|
### Authorization
|
|
342
342
|
|
|
343
|
-
|
|
343
|
+
[Basic](../README.md#Basic)
|
|
344
344
|
|
|
345
345
|
### HTTP request headers
|
|
346
346
|
|
|
@@ -392,7 +392,7 @@ const { status, data } = await apiInstance.webhookhistoryIdGet(
|
|
|
392
392
|
|
|
393
393
|
### Authorization
|
|
394
394
|
|
|
395
|
-
|
|
395
|
+
[Basic](../README.md#Basic)
|
|
396
396
|
|
|
397
397
|
### HTTP request headers
|
|
398
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.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/package.json
CHANGED
package/src/api/company-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).
|
|
@@ -56,6 +56,10 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
56
56
|
const localVarHeaderParameter = {} as any;
|
|
57
57
|
const localVarQueryParameter = {} as any;
|
|
58
58
|
|
|
59
|
+
// authentication Basic required
|
|
60
|
+
// http basic authentication required
|
|
61
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
62
|
+
|
|
59
63
|
if (page !== undefined) {
|
|
60
64
|
localVarQueryParameter['page'] = page;
|
|
61
65
|
}
|
|
@@ -107,6 +111,10 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
107
111
|
const localVarHeaderParameter = {} as any;
|
|
108
112
|
const localVarQueryParameter = {} as any;
|
|
109
113
|
|
|
114
|
+
// authentication Basic required
|
|
115
|
+
// http basic authentication required
|
|
116
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
117
|
+
|
|
110
118
|
if (force !== undefined) {
|
|
111
119
|
localVarQueryParameter['force'] = force;
|
|
112
120
|
}
|
|
@@ -145,6 +153,10 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
145
153
|
const localVarHeaderParameter = {} as any;
|
|
146
154
|
const localVarQueryParameter = {} as any;
|
|
147
155
|
|
|
156
|
+
// authentication Basic required
|
|
157
|
+
// http basic authentication required
|
|
158
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
159
|
+
|
|
148
160
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
149
161
|
|
|
150
162
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -178,6 +190,10 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
178
190
|
const localVarHeaderParameter = {} as any;
|
|
179
191
|
const localVarQueryParameter = {} as any;
|
|
180
192
|
|
|
193
|
+
// authentication Basic required
|
|
194
|
+
// http basic authentication required
|
|
195
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
196
|
+
|
|
181
197
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
182
198
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
183
199
|
|
|
@@ -213,6 +229,10 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
213
229
|
const localVarHeaderParameter = {} as any;
|
|
214
230
|
const localVarQueryParameter = {} as any;
|
|
215
231
|
|
|
232
|
+
// authentication Basic required
|
|
233
|
+
// http basic authentication required
|
|
234
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
235
|
+
|
|
216
236
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
217
237
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
218
238
|
|
|
@@ -249,6 +269,10 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
249
269
|
const localVarHeaderParameter = {} as any;
|
|
250
270
|
const localVarQueryParameter = {} as any;
|
|
251
271
|
|
|
272
|
+
// authentication Basic required
|
|
273
|
+
// http basic authentication required
|
|
274
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
275
|
+
|
|
252
276
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
253
277
|
|
|
254
278
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
package/src/api/export-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).
|
|
@@ -57,6 +57,10 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
57
57
|
const localVarHeaderParameter = {} as any;
|
|
58
58
|
const localVarQueryParameter = {} as any;
|
|
59
59
|
|
|
60
|
+
// authentication Basic required
|
|
61
|
+
// http basic authentication required
|
|
62
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
63
|
+
|
|
60
64
|
if (type !== undefined) {
|
|
61
65
|
localVarQueryParameter['type'] = type;
|
|
62
66
|
}
|
package/src/api/health-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).
|
|
@@ -48,6 +48,10 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
48
48
|
const localVarHeaderParameter = {} as any;
|
|
49
49
|
const localVarQueryParameter = {} as any;
|
|
50
50
|
|
|
51
|
+
// authentication Basic required
|
|
52
|
+
// http basic authentication required
|
|
53
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
54
|
+
|
|
51
55
|
|
|
52
56
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53
57
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
package/src/api/log-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).
|
|
@@ -65,6 +65,10 @@ export const LogApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
65
65
|
const localVarHeaderParameter = {} as any;
|
|
66
66
|
const localVarQueryParameter = {} as any;
|
|
67
67
|
|
|
68
|
+
// authentication Basic required
|
|
69
|
+
// http basic authentication required
|
|
70
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
71
|
+
|
|
68
72
|
if (companyId !== undefined) {
|
|
69
73
|
localVarQueryParameter['company_id'] = companyId;
|
|
70
74
|
}
|
|
@@ -167,6 +171,10 @@ export const LogApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
167
171
|
const localVarHeaderParameter = {} as any;
|
|
168
172
|
const localVarQueryParameter = {} as any;
|
|
169
173
|
|
|
174
|
+
// authentication Basic required
|
|
175
|
+
// http basic authentication required
|
|
176
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
177
|
+
|
|
170
178
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
171
179
|
|
|
172
180
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|