@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.
Files changed (151) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/api.ts +1 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +1 -1
  8. package/dist/api.js +1 -1
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +1 -1
  16. package/dist/esm/api.js +1 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/src/api/company-api.d.ts +1 -1
  26. package/dist/esm/src/api/company-api.js +20 -2
  27. package/dist/esm/src/api/export-api.d.ts +1 -1
  28. package/dist/esm/src/api/export-api.js +5 -2
  29. package/dist/esm/src/api/health-api.d.ts +1 -1
  30. package/dist/esm/src/api/health-api.js +5 -2
  31. package/dist/esm/src/api/log-api.d.ts +1 -1
  32. package/dist/esm/src/api/log-api.js +8 -2
  33. package/dist/esm/src/api/receive-api.d.ts +16 -16
  34. package/dist/esm/src/api/receive-api.js +26 -14
  35. package/dist/esm/src/api/send-api.d.ts +16 -11
  36. package/dist/esm/src/api/send-api.js +56 -13
  37. package/dist/esm/src/api/status-api.d.ts +1 -1
  38. package/dist/esm/src/api/status-api.js +5 -2
  39. package/dist/esm/src/api/update-api.d.ts +1 -1
  40. package/dist/esm/src/api/update-api.js +8 -2
  41. package/dist/esm/src/api/webhook-api.d.ts +1 -1
  42. package/dist/esm/src/api/webhook-api.js +23 -2
  43. package/dist/esm/src/models/company.d.ts +3 -3
  44. package/dist/esm/src/models/company.js +1 -1
  45. package/dist/esm/src/models/document-data.d.ts +1 -1
  46. package/dist/esm/src/models/document-data.js +1 -1
  47. package/dist/esm/src/models/event.d.ts +2 -2
  48. package/dist/esm/src/models/event.js +1 -1
  49. package/dist/esm/src/models/model-error.d.ts +1 -1
  50. package/dist/esm/src/models/model-error.js +1 -1
  51. package/dist/esm/src/models/problem-details.d.ts +1 -1
  52. package/dist/esm/src/models/problem-details.js +1 -1
  53. package/dist/esm/src/models/receive.d.ts +5 -5
  54. package/dist/esm/src/models/receive.js +1 -1
  55. package/dist/esm/src/models/send-reduced.d.ts +17 -1
  56. package/dist/esm/src/models/send-reduced.js +12 -2
  57. package/dist/esm/src/models/send.d.ts +21 -5
  58. package/dist/esm/src/models/send.js +12 -1
  59. package/dist/esm/src/models/status.d.ts +9 -1
  60. package/dist/esm/src/models/status.js +1 -1
  61. package/dist/esm/src/models/update.d.ts +2 -2
  62. package/dist/esm/src/models/update.js +1 -1
  63. package/dist/esm/src/models/web-hook-history.d.ts +7 -3
  64. package/dist/esm/src/models/web-hook-history.js +1 -1
  65. package/dist/esm/src/models/web-hook.d.ts +8 -4
  66. package/dist/esm/src/models/web-hook.js +1 -1
  67. package/dist/index.d.ts +1 -1
  68. package/dist/index.js +1 -1
  69. package/dist/src/api/company-api.d.ts +1 -1
  70. package/dist/src/api/company-api.js +19 -1
  71. package/dist/src/api/export-api.d.ts +1 -1
  72. package/dist/src/api/export-api.js +4 -1
  73. package/dist/src/api/health-api.d.ts +1 -1
  74. package/dist/src/api/health-api.js +4 -1
  75. package/dist/src/api/log-api.d.ts +1 -1
  76. package/dist/src/api/log-api.js +7 -1
  77. package/dist/src/api/receive-api.d.ts +16 -16
  78. package/dist/src/api/receive-api.js +25 -13
  79. package/dist/src/api/send-api.d.ts +16 -11
  80. package/dist/src/api/send-api.js +55 -12
  81. package/dist/src/api/status-api.d.ts +1 -1
  82. package/dist/src/api/status-api.js +4 -1
  83. package/dist/src/api/update-api.d.ts +1 -1
  84. package/dist/src/api/update-api.js +7 -1
  85. package/dist/src/api/webhook-api.d.ts +1 -1
  86. package/dist/src/api/webhook-api.js +22 -1
  87. package/dist/src/models/company.d.ts +3 -3
  88. package/dist/src/models/company.js +1 -1
  89. package/dist/src/models/document-data.d.ts +1 -1
  90. package/dist/src/models/document-data.js +1 -1
  91. package/dist/src/models/event.d.ts +2 -2
  92. package/dist/src/models/event.js +1 -1
  93. package/dist/src/models/model-error.d.ts +1 -1
  94. package/dist/src/models/model-error.js +1 -1
  95. package/dist/src/models/problem-details.d.ts +1 -1
  96. package/dist/src/models/problem-details.js +1 -1
  97. package/dist/src/models/receive.d.ts +5 -5
  98. package/dist/src/models/receive.js +1 -1
  99. package/dist/src/models/send-reduced.d.ts +17 -1
  100. package/dist/src/models/send-reduced.js +13 -1
  101. package/dist/src/models/send.d.ts +21 -5
  102. package/dist/src/models/send.js +13 -2
  103. package/dist/src/models/status.d.ts +9 -1
  104. package/dist/src/models/status.js +1 -1
  105. package/dist/src/models/update.d.ts +2 -2
  106. package/dist/src/models/update.js +1 -1
  107. package/dist/src/models/web-hook-history.d.ts +7 -3
  108. package/dist/src/models/web-hook-history.js +1 -1
  109. package/dist/src/models/web-hook.d.ts +8 -4
  110. package/dist/src/models/web-hook.js +1 -1
  111. package/docs/Company.md +4 -4
  112. package/docs/CompanyApi.md +6 -6
  113. package/docs/Event.md +3 -3
  114. package/docs/ExportApi.md +1 -1
  115. package/docs/HealthApi.md +1 -1
  116. package/docs/LogApi.md +2 -2
  117. package/docs/Receive.md +12 -12
  118. package/docs/ReceiveApi.md +7 -7
  119. package/docs/Send.md +15 -13
  120. package/docs/SendApi.md +16 -13
  121. package/docs/SendReduced.md +2 -0
  122. package/docs/Status.md +4 -0
  123. package/docs/StatusApi.md +1 -1
  124. package/docs/Update.md +3 -3
  125. package/docs/UpdateApi.md +2 -2
  126. package/docs/WebHook.md +7 -5
  127. package/docs/WebHookHistory.md +6 -4
  128. package/docs/WebhookApi.md +7 -7
  129. package/index.ts +1 -1
  130. package/package.json +1 -1
  131. package/src/api/company-api.ts +25 -1
  132. package/src/api/export-api.ts +5 -1
  133. package/src/api/health-api.ts +5 -1
  134. package/src/api/log-api.ts +9 -1
  135. package/src/api/receive-api.ts +32 -16
  136. package/src/api/send-api.ts +71 -14
  137. package/src/api/status-api.ts +5 -1
  138. package/src/api/update-api.ts +9 -1
  139. package/src/api/webhook-api.ts +29 -1
  140. package/src/models/company.ts +3 -3
  141. package/src/models/document-data.ts +1 -1
  142. package/src/models/event.ts +2 -2
  143. package/src/models/model-error.ts +1 -1
  144. package/src/models/problem-details.ts +1 -1
  145. package/src/models/receive.ts +5 -5
  146. package/src/models/send-reduced.ts +20 -1
  147. package/src/models/send.ts +22 -5
  148. package/src/models/status.ts +9 -1
  149. package/src/models/update.ts +2 -2
  150. package/src/models/web-hook-history.ts +7 -3
  151. package/src/models/web-hook.ts +8 -4
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -60,6 +60,9 @@ const SendApiAxiosParamCreator = function (configuration) {
60
60
  const localVarHeaderParameter = {};
61
61
  const localVarQueryParameter = {};
62
62
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
63
+ // authentication Basic required
64
+ // http basic authentication required
65
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
63
66
  if (validate !== undefined) {
64
67
  localVarQueryParameter['validate'] = validate;
65
68
  }
@@ -81,7 +84,7 @@ const SendApiAxiosParamCreator = function (configuration) {
81
84
  };
82
85
  }),
83
86
  /**
84
- * 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/).
87
+ * 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/).
85
88
  * @summary List invoices
86
89
  * @param {number} [companyId] Company id
87
90
  * @param {string} [identifier] SDI identifier.
@@ -96,6 +99,7 @@ const SendApiAxiosParamCreator = function (configuration) {
96
99
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
97
100
  * @param {string} [documentNumber] Document number.
98
101
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
102
+ * @param {string} [ids] Comma-separated list of Send ids (max 100). Filters the collection to the matching rows; unknown or unauthorized ids are silently skipped.
99
103
  * @param {number} [page] Page number.
100
104
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
101
105
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
@@ -103,7 +107,7 @@ const SendApiAxiosParamCreator = function (configuration) {
103
107
  * @param {*} [options] Override http request option.
104
108
  * @throws {RequiredError}
105
109
  */
106
- sendGet: (companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, q_1, ...args_1) => __awaiter(this, [companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, q_1, ...args_1], void 0, function* (companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options = {}) {
110
+ sendGet: (companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, ids_1, page_1, pageSize_1, sort_1, q_1, ...args_1) => __awaiter(this, [companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, ids_1, page_1, pageSize_1, sort_1, q_1, ...args_1], void 0, function* (companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options = {}) {
107
111
  const localVarPath = `/send`;
108
112
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
109
113
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -114,6 +118,9 @@ const SendApiAxiosParamCreator = function (configuration) {
114
118
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
115
119
  const localVarHeaderParameter = {};
116
120
  const localVarQueryParameter = {};
121
+ // authentication Basic required
122
+ // http basic authentication required
123
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
117
124
  if (companyId !== undefined) {
118
125
  localVarQueryParameter['company_id'] = companyId;
119
126
  }
@@ -165,6 +172,9 @@ const SendApiAxiosParamCreator = function (configuration) {
165
172
  if (includePayload !== undefined) {
166
173
  localVarQueryParameter['include_payload'] = includePayload;
167
174
  }
175
+ if (ids !== undefined) {
176
+ localVarQueryParameter['ids'] = ids;
177
+ }
168
178
  if (page !== undefined) {
169
179
  localVarQueryParameter['page'] = page;
170
180
  }
@@ -208,6 +218,9 @@ const SendApiAxiosParamCreator = function (configuration) {
208
218
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
209
219
  const localVarHeaderParameter = {};
210
220
  const localVarQueryParameter = {};
221
+ // authentication Basic required
222
+ // http basic authentication required
223
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
211
224
  if (includePayload !== undefined) {
212
225
  localVarQueryParameter['include_payload'] = includePayload;
213
226
  }
@@ -241,6 +254,9 @@ const SendApiAxiosParamCreator = function (configuration) {
241
254
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
242
255
  const localVarHeaderParameter = {};
243
256
  const localVarQueryParameter = {};
257
+ // authentication Basic required
258
+ // http basic authentication required
259
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
244
260
  localVarHeaderParameter['Accept'] = 'application/problem+json';
245
261
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
246
262
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -272,6 +288,9 @@ const SendApiAxiosParamCreator = function (configuration) {
272
288
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
273
289
  const localVarHeaderParameter = {};
274
290
  const localVarQueryParameter = {};
291
+ // authentication Basic required
292
+ // http basic authentication required
293
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
275
294
  if (includePayload !== undefined) {
276
295
  localVarQueryParameter['include_payload'] = includePayload;
277
296
  }
@@ -306,6 +325,9 @@ const SendApiAxiosParamCreator = function (configuration) {
306
325
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
307
326
  const localVarHeaderParameter = {};
308
327
  const localVarQueryParameter = {};
328
+ // authentication Basic required
329
+ // http basic authentication required
330
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
309
331
  if (validate !== undefined) {
310
332
  localVarQueryParameter['validate'] = validate;
311
333
  }
@@ -345,6 +367,9 @@ const SendApiAxiosParamCreator = function (configuration) {
345
367
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
346
368
  const localVarHeaderParameter = {};
347
369
  const localVarQueryParameter = {};
370
+ // authentication Basic required
371
+ // http basic authentication required
372
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
348
373
  if (validate !== undefined) {
349
374
  localVarQueryParameter['validate'] = validate;
350
375
  }
@@ -383,6 +408,9 @@ const SendApiAxiosParamCreator = function (configuration) {
383
408
  const localVarHeaderParameter = {};
384
409
  const localVarQueryParameter = {};
385
410
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
411
+ // authentication Basic required
412
+ // http basic authentication required
413
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
386
414
  if (file !== undefined) {
387
415
  localVarFormParams.append('file', file);
388
416
  }
@@ -417,6 +445,9 @@ const SendApiAxiosParamCreator = function (configuration) {
417
445
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
418
446
  const localVarHeaderParameter = {};
419
447
  const localVarQueryParameter = {};
448
+ // authentication Basic required
449
+ // http basic authentication required
450
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
420
451
  localVarHeaderParameter['Content-Type'] = 'application/json';
421
452
  localVarHeaderParameter['Accept'] = 'application/json';
422
453
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -448,6 +479,9 @@ const SendApiAxiosParamCreator = function (configuration) {
448
479
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
449
480
  const localVarHeaderParameter = {};
450
481
  const localVarQueryParameter = {};
482
+ // authentication Basic required
483
+ // http basic authentication required
484
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
451
485
  localVarHeaderParameter['Content-Type'] = 'application/json';
452
486
  localVarHeaderParameter['Accept'] = 'application/json';
453
487
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -479,6 +513,9 @@ const SendApiAxiosParamCreator = function (configuration) {
479
513
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
480
514
  const localVarHeaderParameter = {};
481
515
  const localVarQueryParameter = {};
516
+ // authentication Basic required
517
+ // http basic authentication required
518
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
482
519
  localVarHeaderParameter['Content-Type'] = 'application/xml';
483
520
  localVarHeaderParameter['Accept'] = 'application/json';
484
521
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -512,6 +549,9 @@ const SendApiAxiosParamCreator = function (configuration) {
512
549
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
513
550
  const localVarHeaderParameter = {};
514
551
  const localVarQueryParameter = {};
552
+ // authentication Basic required
553
+ // http basic authentication required
554
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
515
555
  if (validate !== undefined) {
516
556
  localVarQueryParameter['validate'] = validate;
517
557
  }
@@ -557,7 +597,7 @@ const SendApiFp = function (configuration) {
557
597
  });
558
598
  },
559
599
  /**
560
- * 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/).
600
+ * 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/).
561
601
  * @summary List invoices
562
602
  * @param {number} [companyId] Company id
563
603
  * @param {string} [identifier] SDI identifier.
@@ -572,6 +612,7 @@ const SendApiFp = function (configuration) {
572
612
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
573
613
  * @param {string} [documentNumber] Document number.
574
614
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
615
+ * @param {string} [ids] Comma-separated list of Send ids (max 100). Filters the collection to the matching rows; unknown or unauthorized ids are silently skipped.
575
616
  * @param {number} [page] Page number.
576
617
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
577
618
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
@@ -579,10 +620,10 @@ const SendApiFp = function (configuration) {
579
620
  * @param {*} [options] Override http request option.
580
621
  * @throws {RequiredError}
581
622
  */
582
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
623
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options) {
583
624
  return __awaiter(this, void 0, void 0, function* () {
584
625
  var _a, _b, _c;
585
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
626
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options);
586
627
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
587
628
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
588
629
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -778,7 +819,7 @@ const SendApiFactory = function (configuration, basePath, axios) {
778
819
  return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
779
820
  },
780
821
  /**
781
- * 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/).
822
+ * 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/).
782
823
  * @summary List invoices
783
824
  * @param {number} [companyId] Company id
784
825
  * @param {string} [identifier] SDI identifier.
@@ -793,6 +834,7 @@ const SendApiFactory = function (configuration, basePath, axios) {
793
834
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
794
835
  * @param {string} [documentNumber] Document number.
795
836
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
837
+ * @param {string} [ids] Comma-separated list of Send ids (max 100). Filters the collection to the matching rows; unknown or unauthorized ids are silently skipped.
796
838
  * @param {number} [page] Page number.
797
839
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
798
840
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
@@ -800,8 +842,8 @@ const SendApiFactory = function (configuration, basePath, axios) {
800
842
  * @param {*} [options] Override http request option.
801
843
  * @throws {RequiredError}
802
844
  */
803
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
804
- return localVarFp.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(axios, basePath));
845
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options) {
846
+ return localVarFp.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options).then((request) => request(axios, basePath));
805
847
  },
806
848
  /**
807
849
  * Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. 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/).
@@ -931,7 +973,7 @@ class SendApi extends base_1.BaseAPI {
931
973
  return (0, exports.SendApiFp)(this.configuration).sendFilePost(file, validate, signature, options).then((request) => request(this.axios, this.basePath));
932
974
  }
933
975
  /**
934
- * 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/).
976
+ * 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/).
935
977
  * @summary List invoices
936
978
  * @param {number} [companyId] Company id
937
979
  * @param {string} [identifier] SDI identifier.
@@ -946,6 +988,7 @@ class SendApi extends base_1.BaseAPI {
946
988
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
947
989
  * @param {string} [documentNumber] Document number.
948
990
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
991
+ * @param {string} [ids] Comma-separated list of Send ids (max 100). Filters the collection to the matching rows; unknown or unauthorized ids are silently skipped.
949
992
  * @param {number} [page] Page number.
950
993
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
951
994
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
@@ -953,8 +996,8 @@ class SendApi extends base_1.BaseAPI {
953
996
  * @param {*} [options] Override http request option.
954
997
  * @throws {RequiredError}
955
998
  */
956
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
957
- return (0, exports.SendApiFp)(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
999
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options) {
1000
+ return (0, exports.SendApiFp)(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
958
1001
  }
959
1002
  /**
960
1003
  * Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. 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/).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -54,6 +54,9 @@ const StatusApiAxiosParamCreator = function (configuration) {
54
54
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
55
55
  const localVarHeaderParameter = {};
56
56
  const localVarQueryParameter = {};
57
+ // authentication Basic required
58
+ // http basic authentication required
59
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
57
60
  localVarHeaderParameter['Accept'] = 'application/json';
58
61
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
59
62
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -67,6 +67,9 @@ const UpdateApiAxiosParamCreator = function (configuration) {
67
67
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
68
68
  const localVarHeaderParameter = {};
69
69
  const localVarQueryParameter = {};
70
+ // authentication Basic required
71
+ // http basic authentication required
72
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
70
73
  if (companyId !== undefined) {
71
74
  localVarQueryParameter['company_id'] = companyId;
72
75
  }
@@ -144,6 +147,9 @@ const UpdateApiAxiosParamCreator = function (configuration) {
144
147
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
145
148
  const localVarHeaderParameter = {};
146
149
  const localVarQueryParameter = {};
150
+ // authentication Basic required
151
+ // http basic authentication required
152
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
147
153
  localVarHeaderParameter['Accept'] = 'application/json';
148
154
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
149
155
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -62,6 +62,9 @@ const WebhookApiAxiosParamCreator = function (configuration) {
62
62
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
63
63
  const localVarHeaderParameter = {};
64
64
  const localVarQueryParameter = {};
65
+ // authentication Basic required
66
+ // http basic authentication required
67
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
65
68
  if (companyId !== undefined) {
66
69
  localVarQueryParameter['company_id'] = companyId;
67
70
  }
@@ -116,6 +119,9 @@ const WebhookApiAxiosParamCreator = function (configuration) {
116
119
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
117
120
  const localVarHeaderParameter = {};
118
121
  const localVarQueryParameter = {};
122
+ // authentication Basic required
123
+ // http basic authentication required
124
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
119
125
  localVarHeaderParameter['Accept'] = 'application/json';
120
126
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
121
127
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -146,6 +152,9 @@ const WebhookApiAxiosParamCreator = function (configuration) {
146
152
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
147
153
  const localVarHeaderParameter = {};
148
154
  const localVarQueryParameter = {};
155
+ // authentication Basic required
156
+ // http basic authentication required
157
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
149
158
  localVarHeaderParameter['Accept'] = 'application/json';
150
159
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
151
160
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -175,6 +184,9 @@ const WebhookApiAxiosParamCreator = function (configuration) {
175
184
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
176
185
  const localVarHeaderParameter = {};
177
186
  const localVarQueryParameter = {};
187
+ // authentication Basic required
188
+ // http basic authentication required
189
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
178
190
  localVarHeaderParameter['Content-Type'] = 'application/json';
179
191
  localVarHeaderParameter['Accept'] = 'application/json';
180
192
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -206,6 +218,9 @@ const WebhookApiAxiosParamCreator = function (configuration) {
206
218
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
207
219
  const localVarHeaderParameter = {};
208
220
  const localVarQueryParameter = {};
221
+ // authentication Basic required
222
+ // http basic authentication required
223
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
209
224
  localVarHeaderParameter['Content-Type'] = 'application/json';
210
225
  localVarHeaderParameter['Accept'] = 'application/json';
211
226
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -238,6 +253,9 @@ const WebhookApiAxiosParamCreator = function (configuration) {
238
253
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
239
254
  const localVarHeaderParameter = {};
240
255
  const localVarQueryParameter = {};
256
+ // authentication Basic required
257
+ // http basic authentication required
258
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
241
259
  if (page !== undefined) {
242
260
  localVarQueryParameter['page'] = page;
243
261
  }
@@ -280,6 +298,9 @@ const WebhookApiAxiosParamCreator = function (configuration) {
280
298
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
281
299
  const localVarHeaderParameter = {};
282
300
  const localVarQueryParameter = {};
301
+ // authentication Basic required
302
+ // http basic authentication required
303
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
283
304
  localVarHeaderParameter['Accept'] = 'application/json';
284
305
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
285
306
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,7 +14,7 @@
14
14
  */
15
15
  export interface Company {
16
16
  /**
17
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
17
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
18
18
  */
19
19
  'id'?: number;
20
20
  /**
@@ -26,7 +26,7 @@ export interface Company {
26
26
  */
27
27
  'version'?: number;
28
28
  /**
29
- * User id.
29
+ * User id. It is set automatically based on the authenticated user.
30
30
  */
31
31
  'user_id'?: number;
32
32
  /**
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,7 +14,7 @@
14
14
  */
15
15
  export interface Event {
16
16
  /**
17
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
17
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
18
18
  */
19
19
  'id'?: number;
20
20
  /**
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,7 +15,7 @@ import type { DocumentData } from './document-data';
15
15
  */
16
16
  export interface Receive {
17
17
  /**
18
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
18
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
19
19
  */
20
20
  'id'?: number;
21
21
  /**
@@ -27,11 +27,11 @@ export interface Receive {
27
27
  */
28
28
  'version'?: number;
29
29
  /**
30
- * User id.
30
+ * User id. It is set automatically based on the authenticated user.
31
31
  */
32
32
  'user_id'?: number;
33
33
  /**
34
- * 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.
34
+ * Company id. It is set automatically based on the VAT number extracted from the invoice payload (the sender for `send`, the recipient for `receive`).
35
35
  */
36
36
  'company_id'?: number;
37
37
  /**
@@ -47,7 +47,7 @@ export interface Receive {
47
47
  */
48
48
  'identifier'?: string | null;
49
49
  /**
50
- * Xml file name.
50
+ * Xml file name. If not provided on send, it will be auto-generated.
51
51
  */
52
52
  'file_name'?: string | null;
53
53
  /**
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).