@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
@@ -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.6.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).
@@ -34,7 +34,7 @@ import type { Receive } from '../../src/models';
34
34
  export const ReceiveApiAxiosParamCreator = function (configuration?: Configuration) {
35
35
  return {
36
36
  /**
37
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
37
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
38
38
  * @summary List incoming invoices
39
39
  * @param {number} [companyId] Company id
40
40
  * @param {string} [identifier] SDI identifier.
@@ -70,6 +70,10 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
70
70
  const localVarHeaderParameter = {} as any;
71
71
  const localVarQueryParameter = {} as any;
72
72
 
73
+ // authentication Basic required
74
+ // http basic authentication required
75
+ setBasicAuthToObject(localVarRequestOptions, configuration)
76
+
73
77
  if (companyId !== undefined) {
74
78
  localVarQueryParameter['company_id'] = companyId;
75
79
  }
@@ -166,7 +170,7 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
166
170
  };
167
171
  },
168
172
  /**
169
- * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
173
+ * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
170
174
  * @summary Delete an incoming invoice by id
171
175
  * @param {number} id Item id
172
176
  * @param {*} [options] Override http request option.
@@ -188,6 +192,10 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
188
192
  const localVarHeaderParameter = {} as any;
189
193
  const localVarQueryParameter = {} as any;
190
194
 
195
+ // authentication Basic required
196
+ // http basic authentication required
197
+ setBasicAuthToObject(localVarRequestOptions, configuration)
198
+
191
199
  localVarHeaderParameter['Accept'] = 'application/json';
192
200
 
193
201
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -200,7 +208,7 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
200
208
  };
201
209
  },
202
210
  /**
203
- * Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
211
+ * Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
204
212
  * @summary Get an incoming invoice by id
205
213
  * @param {number} id Item id
206
214
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
@@ -223,6 +231,10 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
223
231
  const localVarHeaderParameter = {} as any;
224
232
  const localVarQueryParameter = {} as any;
225
233
 
234
+ // authentication Basic required
235
+ // http basic authentication required
236
+ setBasicAuthToObject(localVarRequestOptions, configuration)
237
+
226
238
  if (includePayload !== undefined) {
227
239
  localVarQueryParameter['include_payload'] = includePayload;
228
240
  }
@@ -261,6 +273,10 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
261
273
  const localVarHeaderParameter = {} as any;
262
274
  const localVarQueryParameter = {} as any;
263
275
 
276
+ // authentication Basic required
277
+ // http basic authentication required
278
+ setBasicAuthToObject(localVarRequestOptions, configuration)
279
+
264
280
  localVarHeaderParameter['Accept'] = 'application/problem+json';
265
281
 
266
282
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -282,7 +298,7 @@ export const ReceiveApiFp = function(configuration?: Configuration) {
282
298
  const localVarAxiosParamCreator = ReceiveApiAxiosParamCreator(configuration)
283
299
  return {
284
300
  /**
285
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
301
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
286
302
  * @summary List incoming invoices
287
303
  * @param {number} [companyId] Company id
288
304
  * @param {string} [identifier] SDI identifier.
@@ -312,7 +328,7 @@ export const ReceiveApiFp = function(configuration?: Configuration) {
312
328
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
313
329
  },
314
330
  /**
315
- * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
331
+ * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
316
332
  * @summary Delete an incoming invoice by id
317
333
  * @param {number} id Item id
318
334
  * @param {*} [options] Override http request option.
@@ -325,7 +341,7 @@ export const ReceiveApiFp = function(configuration?: Configuration) {
325
341
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
326
342
  },
327
343
  /**
328
- * Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
344
+ * Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
329
345
  * @summary Get an incoming invoice by id
330
346
  * @param {number} id Item id
331
347
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
@@ -361,7 +377,7 @@ export const ReceiveApiFactory = function (configuration?: Configuration, basePa
361
377
  const localVarFp = ReceiveApiFp(configuration)
362
378
  return {
363
379
  /**
364
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
380
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
365
381
  * @summary List incoming invoices
366
382
  * @param {number} [companyId] Company id
367
383
  * @param {string} [identifier] SDI identifier.
@@ -388,7 +404,7 @@ export const ReceiveApiFactory = function (configuration?: Configuration, basePa
388
404
  return localVarFp.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(axios, basePath));
389
405
  },
390
406
  /**
391
- * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
407
+ * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
392
408
  * @summary Delete an incoming invoice by id
393
409
  * @param {number} id Item id
394
410
  * @param {*} [options] Override http request option.
@@ -398,7 +414,7 @@ export const ReceiveApiFactory = function (configuration?: Configuration, basePa
398
414
  return localVarFp.receiveIdDelete(id, options).then((request) => request(axios, basePath));
399
415
  },
400
416
  /**
401
- * Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
417
+ * Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
402
418
  * @summary Get an incoming invoice by id
403
419
  * @param {number} id Item id
404
420
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
@@ -426,7 +442,7 @@ export const ReceiveApiFactory = function (configuration?: Configuration, basePa
426
442
  */
427
443
  export interface ReceiveApiInterface {
428
444
  /**
429
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
445
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
430
446
  * @summary List incoming invoices
431
447
  * @param {number} [companyId] Company id
432
448
  * @param {string} [identifier] SDI identifier.
@@ -452,7 +468,7 @@ export interface ReceiveApiInterface {
452
468
  receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>>;
453
469
 
454
470
  /**
455
- * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
471
+ * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
456
472
  * @summary Delete an incoming invoice by id
457
473
  * @param {number} id Item id
458
474
  * @param {*} [options] Override http request option.
@@ -461,7 +477,7 @@ export interface ReceiveApiInterface {
461
477
  receiveIdDelete(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Receive>;
462
478
 
463
479
  /**
464
- * Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
480
+ * Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
465
481
  * @summary Get an incoming invoice by id
466
482
  * @param {number} id Item id
467
483
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
@@ -486,7 +502,7 @@ export interface ReceiveApiInterface {
486
502
  */
487
503
  export class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
488
504
  /**
489
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
505
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
490
506
  * @summary List incoming invoices
491
507
  * @param {number} [companyId] Company id
492
508
  * @param {string} [identifier] SDI identifier.
@@ -514,7 +530,7 @@ export class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
514
530
  }
515
531
 
516
532
  /**
517
- * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
533
+ * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
518
534
  * @summary Delete an incoming invoice by id
519
535
  * @param {number} id Item id
520
536
  * @param {*} [options] Override http request option.
@@ -525,7 +541,7 @@ export class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
525
541
  }
526
542
 
527
543
  /**
528
- * Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
544
+ * Retrieve an incoming invoice by its internal id. The `id` is unique and assigned by the system when the invoice is received. Returns invoice metadata; set `include_payload` to true to include the full invoice content. The invoice is marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). Inbound invoices are routed to your account via the recipient VAT number, so the recipient company must exist in Invoicetronic for the invoice to be matched. If an invoice arrives before its company has been registered, it is held by our SDI infrastructure and automatically re-processed once the company is created—no invoice is lost. See [Prerequisites](https://invoicetronic.com/en/docs/prerequisites/) for the recommended setup order.
529
545
  * @summary Get an incoming invoice by id
530
546
  * @param {number} id Item id
531
547
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
@@ -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.6.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).
@@ -58,6 +58,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
58
58
  const localVarQueryParameter = {} as any;
59
59
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
60
60
 
61
+ // authentication Basic required
62
+ // http basic authentication required
63
+ setBasicAuthToObject(localVarRequestOptions, configuration)
64
+
61
65
  if (validate !== undefined) {
62
66
  localVarQueryParameter['validate'] = validate;
63
67
  }
@@ -84,7 +88,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
84
88
  };
85
89
  },
86
90
  /**
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`). 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/).
91
+ * 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/).
88
92
  * @summary List invoices
89
93
  * @param {number} [companyId] Company id
90
94
  * @param {string} [identifier] SDI identifier.
@@ -99,6 +103,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
99
103
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
100
104
  * @param {string} [documentNumber] Document number.
101
105
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
106
+ * @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.
102
107
  * @param {number} [page] Page number.
103
108
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
104
109
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
@@ -106,7 +111,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
106
111
  * @param {*} [options] Override http request option.
107
112
  * @throws {RequiredError}
108
113
  */
109
- sendGet: async (companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
114
+ sendGet: async (companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, ids?: string, page?: number, pageSize?: number, sort?: string, q?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
110
115
  const localVarPath = `/send`;
111
116
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
117
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -119,6 +124,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
119
124
  const localVarHeaderParameter = {} as any;
120
125
  const localVarQueryParameter = {} as any;
121
126
 
127
+ // authentication Basic required
128
+ // http basic authentication required
129
+ setBasicAuthToObject(localVarRequestOptions, configuration)
130
+
122
131
  if (companyId !== undefined) {
123
132
  localVarQueryParameter['company_id'] = companyId;
124
133
  }
@@ -183,6 +192,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
183
192
  localVarQueryParameter['include_payload'] = includePayload;
184
193
  }
185
194
 
195
+ if (ids !== undefined) {
196
+ localVarQueryParameter['ids'] = ids;
197
+ }
198
+
186
199
  if (page !== undefined) {
187
200
  localVarQueryParameter['page'] = page;
188
201
  }
@@ -234,6 +247,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
234
247
  const localVarHeaderParameter = {} as any;
235
248
  const localVarQueryParameter = {} as any;
236
249
 
250
+ // authentication Basic required
251
+ // http basic authentication required
252
+ setBasicAuthToObject(localVarRequestOptions, configuration)
253
+
237
254
  if (includePayload !== undefined) {
238
255
  localVarQueryParameter['include_payload'] = includePayload;
239
256
  }
@@ -272,6 +289,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
272
289
  const localVarHeaderParameter = {} as any;
273
290
  const localVarQueryParameter = {} as any;
274
291
 
292
+ // authentication Basic required
293
+ // http basic authentication required
294
+ setBasicAuthToObject(localVarRequestOptions, configuration)
295
+
275
296
  localVarHeaderParameter['Accept'] = 'application/problem+json';
276
297
 
277
298
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -307,6 +328,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
307
328
  const localVarHeaderParameter = {} as any;
308
329
  const localVarQueryParameter = {} as any;
309
330
 
331
+ // authentication Basic required
332
+ // http basic authentication required
333
+ setBasicAuthToObject(localVarRequestOptions, configuration)
334
+
310
335
  if (includePayload !== undefined) {
311
336
  localVarQueryParameter['include_payload'] = includePayload;
312
337
  }
@@ -346,6 +371,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
346
371
  const localVarHeaderParameter = {} as any;
347
372
  const localVarQueryParameter = {} as any;
348
373
 
374
+ // authentication Basic required
375
+ // http basic authentication required
376
+ setBasicAuthToObject(localVarRequestOptions, configuration)
377
+
349
378
  if (validate !== undefined) {
350
379
  localVarQueryParameter['validate'] = validate;
351
380
  }
@@ -391,6 +420,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
391
420
  const localVarHeaderParameter = {} as any;
392
421
  const localVarQueryParameter = {} as any;
393
422
 
423
+ // authentication Basic required
424
+ // http basic authentication required
425
+ setBasicAuthToObject(localVarRequestOptions, configuration)
426
+
394
427
  if (validate !== undefined) {
395
428
  localVarQueryParameter['validate'] = validate;
396
429
  }
@@ -435,6 +468,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
435
468
  const localVarQueryParameter = {} as any;
436
469
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
437
470
 
471
+ // authentication Basic required
472
+ // http basic authentication required
473
+ setBasicAuthToObject(localVarRequestOptions, configuration)
474
+
438
475
 
439
476
  if (file !== undefined) {
440
477
  localVarFormParams.append('file', file as any);
@@ -474,6 +511,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
474
511
  const localVarHeaderParameter = {} as any;
475
512
  const localVarQueryParameter = {} as any;
476
513
 
514
+ // authentication Basic required
515
+ // http basic authentication required
516
+ setBasicAuthToObject(localVarRequestOptions, configuration)
517
+
477
518
  localVarHeaderParameter['Content-Type'] = 'application/json';
478
519
  localVarHeaderParameter['Accept'] = 'application/json';
479
520
 
@@ -509,6 +550,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
509
550
  const localVarHeaderParameter = {} as any;
510
551
  const localVarQueryParameter = {} as any;
511
552
 
553
+ // authentication Basic required
554
+ // http basic authentication required
555
+ setBasicAuthToObject(localVarRequestOptions, configuration)
556
+
512
557
  localVarHeaderParameter['Content-Type'] = 'application/json';
513
558
  localVarHeaderParameter['Accept'] = 'application/json';
514
559
 
@@ -544,6 +589,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
544
589
  const localVarHeaderParameter = {} as any;
545
590
  const localVarQueryParameter = {} as any;
546
591
 
592
+ // authentication Basic required
593
+ // http basic authentication required
594
+ setBasicAuthToObject(localVarRequestOptions, configuration)
595
+
547
596
  localVarHeaderParameter['Content-Type'] = 'application/xml';
548
597
  localVarHeaderParameter['Accept'] = 'application/json';
549
598
 
@@ -581,6 +630,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
581
630
  const localVarHeaderParameter = {} as any;
582
631
  const localVarQueryParameter = {} as any;
583
632
 
633
+ // authentication Basic required
634
+ // http basic authentication required
635
+ setBasicAuthToObject(localVarRequestOptions, configuration)
636
+
584
637
  if (validate !== undefined) {
585
638
  localVarQueryParameter['validate'] = validate;
586
639
  }
@@ -627,7 +680,7 @@ export const SendApiFp = function(configuration?: Configuration) {
627
680
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
628
681
  },
629
682
  /**
630
- * 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/).
683
+ * 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/).
631
684
  * @summary List invoices
632
685
  * @param {number} [companyId] Company id
633
686
  * @param {string} [identifier] SDI identifier.
@@ -642,6 +695,7 @@ export const SendApiFp = function(configuration?: Configuration) {
642
695
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
643
696
  * @param {string} [documentNumber] Document number.
644
697
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
698
+ * @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.
645
699
  * @param {number} [page] Page number.
646
700
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
647
701
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
@@ -649,8 +703,8 @@ export const SendApiFp = function(configuration?: Configuration) {
649
703
  * @param {*} [options] Override http request option.
650
704
  * @throws {RequiredError}
651
705
  */
652
- async sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Send>>> {
653
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
706
+ async sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, ids?: string, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Send>>> {
707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options);
654
708
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
655
709
  const localVarOperationServerBasePath = operationServerMap['SendApi.sendGet']?.[localVarOperationServerIndex]?.url;
656
710
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -815,7 +869,7 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
815
869
  return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
816
870
  },
817
871
  /**
818
- * 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/).
872
+ * 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/).
819
873
  * @summary List invoices
820
874
  * @param {number} [companyId] Company id
821
875
  * @param {string} [identifier] SDI identifier.
@@ -830,6 +884,7 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
830
884
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
831
885
  * @param {string} [documentNumber] Document number.
832
886
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
887
+ * @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.
833
888
  * @param {number} [page] Page number.
834
889
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
835
890
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
@@ -837,8 +892,8 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
837
892
  * @param {*} [options] Override http request option.
838
893
  * @throws {RequiredError}
839
894
  */
840
- sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>> {
841
- 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));
895
+ sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, ids?: string, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>> {
896
+ 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));
842
897
  },
843
898
  /**
844
899
  * 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/).
@@ -967,7 +1022,7 @@ export interface SendApiInterface {
967
1022
  sendFilePost(file: File, validate?: boolean, signature?: SendFilePostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
968
1023
 
969
1024
  /**
970
- * 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/).
1025
+ * 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/).
971
1026
  * @summary List invoices
972
1027
  * @param {number} [companyId] Company id
973
1028
  * @param {string} [identifier] SDI identifier.
@@ -982,6 +1037,7 @@ export interface SendApiInterface {
982
1037
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
983
1038
  * @param {string} [documentNumber] Document number.
984
1039
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
1040
+ * @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.
985
1041
  * @param {number} [page] Page number.
986
1042
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
987
1043
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
@@ -989,7 +1045,7 @@ export interface SendApiInterface {
989
1045
  * @param {*} [options] Override http request option.
990
1046
  * @throws {RequiredError}
991
1047
  */
992
- sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>>;
1048
+ sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, ids?: string, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>>;
993
1049
 
994
1050
  /**
995
1051
  * 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/).
@@ -1109,7 +1165,7 @@ export class SendApi extends BaseAPI implements SendApiInterface {
1109
1165
  }
1110
1166
 
1111
1167
  /**
1112
- * 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/).
1168
+ * 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/).
1113
1169
  * @summary List invoices
1114
1170
  * @param {number} [companyId] Company id
1115
1171
  * @param {string} [identifier] SDI identifier.
@@ -1124,6 +1180,7 @@ export class SendApi extends BaseAPI implements SendApiInterface {
1124
1180
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
1125
1181
  * @param {string} [documentNumber] Document number.
1126
1182
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
1183
+ * @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.
1127
1184
  * @param {number} [page] Page number.
1128
1185
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
1129
1186
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
@@ -1131,8 +1188,8 @@ export class SendApi extends BaseAPI implements SendApiInterface {
1131
1188
  * @param {*} [options] Override http request option.
1132
1189
  * @throws {RequiredError}
1133
1190
  */
1134
- public sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig) {
1135
- return 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));
1191
+ public sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, ids?: string, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig) {
1192
+ return 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));
1136
1193
  }
1137
1194
 
1138
1195
  /**
@@ -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.6.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).
@@ -50,6 +50,10 @@ export const StatusApiAxiosParamCreator = function (configuration?: Configuratio
50
50
  const localVarHeaderParameter = {} as any;
51
51
  const localVarQueryParameter = {} as any;
52
52
 
53
+ // authentication Basic required
54
+ // http basic authentication required
55
+ setBasicAuthToObject(localVarRequestOptions, configuration)
56
+
53
57
  localVarHeaderParameter['Accept'] = 'application/json';
54
58
 
55
59
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -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.6.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).
@@ -63,6 +63,10 @@ export const UpdateApiAxiosParamCreator = function (configuration?: Configuratio
63
63
  const localVarHeaderParameter = {} as any;
64
64
  const localVarQueryParameter = {} as any;
65
65
 
66
+ // authentication Basic required
67
+ // http basic authentication required
68
+ setBasicAuthToObject(localVarRequestOptions, configuration)
69
+
66
70
  if (companyId !== undefined) {
67
71
  localVarQueryParameter['company_id'] = companyId;
68
72
  }
@@ -157,6 +161,10 @@ export const UpdateApiAxiosParamCreator = function (configuration?: Configuratio
157
161
  const localVarHeaderParameter = {} as any;
158
162
  const localVarQueryParameter = {} as any;
159
163
 
164
+ // authentication Basic required
165
+ // http basic authentication required
166
+ setBasicAuthToObject(localVarRequestOptions, configuration)
167
+
160
168
  localVarHeaderParameter['Accept'] = 'application/json';
161
169
 
162
170
  setSearchParams(localVarUrlObj, localVarQueryParameter);