@invoicetronic/ts-sdk 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/api.ts +2 -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 +2 -1
  8. package/dist/api.js +2 -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 +2 -1
  16. package/dist/esm/api.js +2 -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 +16 -11
  26. package/dist/esm/src/api/company-api.js +20 -31
  27. package/dist/esm/src/api/export-api.d.ts +11 -17
  28. package/dist/esm/src/api/export-api.js +6 -14
  29. package/dist/esm/src/api/health-api.d.ts +74 -0
  30. package/dist/esm/src/api/health-api.js +117 -0
  31. package/dist/esm/src/api/log-api.d.ts +11 -6
  32. package/dist/esm/src/api/log-api.js +16 -15
  33. package/dist/esm/src/api/receive-api.d.ts +16 -11
  34. package/dist/esm/src/api/receive-api.js +20 -25
  35. package/dist/esm/src/api/send-api.d.ts +56 -52
  36. package/dist/esm/src/api/send-api.js +76 -105
  37. package/dist/esm/src/api/status-api.d.ts +1 -1
  38. package/dist/esm/src/api/status-api.js +2 -5
  39. package/dist/esm/src/api/update-api.d.ts +11 -11
  40. package/dist/esm/src/api/update-api.js +10 -16
  41. package/dist/esm/src/api/webhook-api.d.ts +1 -1
  42. package/dist/esm/src/api/webhook-api.js +2 -23
  43. package/dist/esm/src/models/company.d.ts +1 -1
  44. package/dist/esm/src/models/company.js +1 -1
  45. package/dist/esm/src/models/document-data.d.ts +15 -0
  46. package/dist/esm/src/models/document-data.js +14 -0
  47. package/dist/esm/src/models/event.d.ts +5 -1
  48. package/dist/esm/src/models/event.js +1 -1
  49. package/dist/esm/src/models/index.d.ts +4 -0
  50. package/dist/esm/src/models/index.js +4 -0
  51. package/dist/esm/src/models/model-error.d.ts +28 -0
  52. package/dist/esm/src/models/model-error.js +14 -0
  53. package/dist/esm/src/models/problem-details.d.ts +19 -0
  54. package/dist/esm/src/models/problem-details.js +14 -0
  55. package/dist/esm/src/models/receive.d.ts +6 -2
  56. package/dist/esm/src/models/receive.js +1 -1
  57. package/dist/esm/src/models/send-reduced.d.ts +39 -0
  58. package/dist/esm/src/models/send-reduced.js +14 -0
  59. package/dist/esm/src/models/send.d.ts +6 -2
  60. package/dist/esm/src/models/send.js +1 -1
  61. package/dist/esm/src/models/status.d.ts +1 -1
  62. package/dist/esm/src/models/status.js +1 -1
  63. package/dist/esm/src/models/update.d.ts +1 -1
  64. package/dist/esm/src/models/update.js +1 -1
  65. package/dist/esm/src/models/web-hook-history.d.ts +1 -1
  66. package/dist/esm/src/models/web-hook-history.js +1 -1
  67. package/dist/esm/src/models/web-hook.d.ts +2 -2
  68. package/dist/esm/src/models/web-hook.js +1 -1
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/src/api/company-api.d.ts +16 -11
  72. package/dist/src/api/company-api.js +19 -30
  73. package/dist/src/api/export-api.d.ts +11 -17
  74. package/dist/src/api/export-api.js +6 -14
  75. package/dist/src/api/health-api.d.ts +74 -0
  76. package/dist/src/api/health-api.js +124 -0
  77. package/dist/src/api/log-api.d.ts +11 -6
  78. package/dist/src/api/log-api.js +15 -14
  79. package/dist/src/api/receive-api.d.ts +16 -11
  80. package/dist/src/api/receive-api.js +19 -24
  81. package/dist/src/api/send-api.d.ts +56 -52
  82. package/dist/src/api/send-api.js +75 -104
  83. package/dist/src/api/status-api.d.ts +1 -1
  84. package/dist/src/api/status-api.js +1 -4
  85. package/dist/src/api/update-api.d.ts +11 -11
  86. package/dist/src/api/update-api.js +9 -15
  87. package/dist/src/api/webhook-api.d.ts +1 -1
  88. package/dist/src/api/webhook-api.js +1 -22
  89. package/dist/src/models/company.d.ts +1 -1
  90. package/dist/src/models/company.js +1 -1
  91. package/dist/src/models/document-data.d.ts +15 -0
  92. package/dist/src/models/document-data.js +15 -0
  93. package/dist/src/models/event.d.ts +5 -1
  94. package/dist/src/models/event.js +1 -1
  95. package/dist/src/models/index.d.ts +4 -0
  96. package/dist/src/models/index.js +4 -0
  97. package/dist/src/models/model-error.d.ts +28 -0
  98. package/dist/src/models/model-error.js +15 -0
  99. package/dist/src/models/problem-details.d.ts +19 -0
  100. package/dist/src/models/problem-details.js +15 -0
  101. package/dist/src/models/receive.d.ts +6 -2
  102. package/dist/src/models/receive.js +1 -1
  103. package/dist/src/models/send-reduced.d.ts +39 -0
  104. package/dist/src/models/send-reduced.js +15 -0
  105. package/dist/src/models/send.d.ts +6 -2
  106. package/dist/src/models/send.js +1 -1
  107. package/dist/src/models/status.d.ts +1 -1
  108. package/dist/src/models/status.js +1 -1
  109. package/dist/src/models/update.d.ts +1 -1
  110. package/dist/src/models/update.js +1 -1
  111. package/dist/src/models/web-hook-history.d.ts +1 -1
  112. package/dist/src/models/web-hook-history.js +1 -1
  113. package/dist/src/models/web-hook.d.ts +2 -2
  114. package/dist/src/models/web-hook.js +1 -1
  115. package/docs/CompanyApi.md +11 -15
  116. package/docs/DocumentData.md +22 -0
  117. package/docs/Error.md +25 -0
  118. package/docs/Event.md +2 -0
  119. package/docs/ExportApi.md +3 -3
  120. package/docs/HealthApi.md +54 -0
  121. package/docs/LogApi.md +6 -4
  122. package/docs/ProblemDetails.md +28 -0
  123. package/docs/Receive.md +3 -1
  124. package/docs/ReceiveApi.md +9 -10
  125. package/docs/Send.md +3 -1
  126. package/docs/SendApi.md +37 -48
  127. package/docs/SendReduced.md +29 -0
  128. package/docs/StatusApi.md +1 -1
  129. package/docs/UpdateApi.md +4 -5
  130. package/docs/WebHook.md +1 -1
  131. package/docs/WebhookApi.md +7 -14
  132. package/index.ts +1 -1
  133. package/package.json +1 -1
  134. package/src/api/company-api.ts +23 -40
  135. package/src/api/export-api.ts +11 -21
  136. package/src/api/health-api.ts +131 -0
  137. package/src/api/log-api.ts +18 -19
  138. package/src/api/receive-api.ts +23 -32
  139. package/src/api/send-api.ts +87 -130
  140. package/src/api/status-api.ts +1 -5
  141. package/src/api/update-api.ts +11 -21
  142. package/src/api/webhook-api.ts +1 -31
  143. package/src/models/company.ts +1 -1
  144. package/src/models/document-data.ts +21 -0
  145. package/src/models/event.ts +5 -1
  146. package/src/models/index.ts +4 -0
  147. package/src/models/model-error.ts +34 -0
  148. package/src/models/problem-details.ts +26 -0
  149. package/src/models/receive.ts +6 -2
  150. package/src/models/send-reduced.ts +45 -0
  151. package/src/models/send.ts +6 -2
  152. package/src/models/status.ts +1 -1
  153. package/src/models/update.ts +1 -1
  154. package/src/models/web-hook-history.ts +1 -1
  155. package/src/models/web-hook.ts +2 -2
@@ -4,7 +4,7 @@
4
4
  * Invoicetronic API
5
5
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
6
6
  *
7
- * The version of the OpenAPI document: 1
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: info@invoicetronic.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ import globalAxios from 'axios';
26
26
  import { URL } from 'url';
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
29
- import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../../common';
29
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../../common';
30
30
  // @ts-ignore
31
31
  import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
32
32
  /**
@@ -57,9 +57,6 @@ export const SendApiAxiosParamCreator = function (configuration) {
57
57
  const localVarHeaderParameter = {};
58
58
  const localVarQueryParameter = {};
59
59
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
60
- // authentication Basic required
61
- // http basic authentication required
62
- setBasicAuthToObject(localVarRequestOptions, configuration);
63
60
  if (validate !== undefined) {
64
61
  localVarQueryParameter['validate'] = validate;
65
62
  }
@@ -81,7 +78,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
81
78
  };
82
79
  }),
83
80
  /**
84
- * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
81
+ * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). 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
82
  * @summary List invoices
86
83
  * @param {number} [companyId] Company id
87
84
  * @param {string} [identifier] SDI identifier.
@@ -99,10 +96,11 @@ export const SendApiAxiosParamCreator = function (configuration) {
99
96
  * @param {number} [page] Page number.
100
97
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
101
98
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
99
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
102
100
  * @param {*} [options] Override http request option.
103
101
  * @throws {RequiredError}
104
102
  */
105
- 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, ...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, ...args_1], void 0, function* (companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options = {}) {
103
+ 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 = {}) {
106
104
  const localVarPath = `/send`;
107
105
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
108
106
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -113,9 +111,6 @@ export const SendApiAxiosParamCreator = function (configuration) {
113
111
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
114
112
  const localVarHeaderParameter = {};
115
113
  const localVarQueryParameter = {};
116
- // authentication Basic required
117
- // http basic authentication required
118
- setBasicAuthToObject(localVarRequestOptions, configuration);
119
114
  if (companyId !== undefined) {
120
115
  localVarQueryParameter['company_id'] = companyId;
121
116
  }
@@ -176,6 +171,9 @@ export const SendApiAxiosParamCreator = function (configuration) {
176
171
  if (sort !== undefined) {
177
172
  localVarQueryParameter['sort'] = sort;
178
173
  }
174
+ if (q !== undefined) {
175
+ localVarQueryParameter['q'] = q;
176
+ }
179
177
  localVarHeaderParameter['Accept'] = 'application/json';
180
178
  setSearchParams(localVarUrlObj, localVarQueryParameter);
181
179
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -207,9 +205,6 @@ export const SendApiAxiosParamCreator = function (configuration) {
207
205
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
208
206
  const localVarHeaderParameter = {};
209
207
  const localVarQueryParameter = {};
210
- // authentication Basic required
211
- // http basic authentication required
212
- setBasicAuthToObject(localVarRequestOptions, configuration);
213
208
  if (includePayload !== undefined) {
214
209
  localVarQueryParameter['include_payload'] = includePayload;
215
210
  }
@@ -243,9 +238,6 @@ export const SendApiAxiosParamCreator = function (configuration) {
243
238
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
244
239
  const localVarHeaderParameter = {};
245
240
  const localVarQueryParameter = {};
246
- // authentication Basic required
247
- // http basic authentication required
248
- setBasicAuthToObject(localVarRequestOptions, configuration);
249
241
  localVarHeaderParameter['Accept'] = 'application/problem+json';
250
242
  setSearchParams(localVarUrlObj, localVarQueryParameter);
251
243
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -277,9 +269,6 @@ export const SendApiAxiosParamCreator = function (configuration) {
277
269
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
278
270
  const localVarHeaderParameter = {};
279
271
  const localVarQueryParameter = {};
280
- // authentication Basic required
281
- // http basic authentication required
282
- setBasicAuthToObject(localVarRequestOptions, configuration);
283
272
  if (includePayload !== undefined) {
284
273
  localVarQueryParameter['include_payload'] = includePayload;
285
274
  }
@@ -295,15 +284,15 @@ export const SendApiAxiosParamCreator = function (configuration) {
295
284
  /**
296
285
  * Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **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/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
297
286
  * @summary Add an invoice by json
298
- * @param {FatturaOrdinaria} fatturaOrdinaria
287
+ * @param {object} body
299
288
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
300
289
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
301
290
  * @param {*} [options] Override http request option.
302
291
  * @throws {RequiredError}
303
292
  */
304
- sendJsonPost: (fatturaOrdinaria_1, validate_1, signature_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, validate_1, signature_1, ...args_1], void 0, function* (fatturaOrdinaria, validate, signature, options = {}) {
305
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
306
- assertParamExists('sendJsonPost', 'fatturaOrdinaria', fatturaOrdinaria);
293
+ sendJsonPost: (body_1, validate_1, signature_1, ...args_1) => __awaiter(this, [body_1, validate_1, signature_1, ...args_1], void 0, function* (body, validate, signature, options = {}) {
294
+ // verify required parameter 'body' is not null or undefined
295
+ assertParamExists('sendJsonPost', 'body', body);
307
296
  const localVarPath = `/send/json`;
308
297
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
309
298
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -314,9 +303,6 @@ export const SendApiAxiosParamCreator = function (configuration) {
314
303
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
315
304
  const localVarHeaderParameter = {};
316
305
  const localVarQueryParameter = {};
317
- // authentication Basic required
318
- // http basic authentication required
319
- setBasicAuthToObject(localVarRequestOptions, configuration);
320
306
  if (validate !== undefined) {
321
307
  localVarQueryParameter['validate'] = validate;
322
308
  }
@@ -328,7 +314,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
328
314
  setSearchParams(localVarUrlObj, localVarQueryParameter);
329
315
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
330
316
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
331
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration);
317
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
332
318
  return {
333
319
  url: toPathString(localVarUrlObj),
334
320
  options: localVarRequestOptions,
@@ -356,9 +342,6 @@ export const SendApiAxiosParamCreator = function (configuration) {
356
342
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
357
343
  const localVarHeaderParameter = {};
358
344
  const localVarQueryParameter = {};
359
- // authentication Basic required
360
- // http basic authentication required
361
- setBasicAuthToObject(localVarRequestOptions, configuration);
362
345
  if (validate !== undefined) {
363
346
  localVarQueryParameter['validate'] = validate;
364
347
  }
@@ -397,9 +380,6 @@ export const SendApiAxiosParamCreator = function (configuration) {
397
380
  const localVarHeaderParameter = {};
398
381
  const localVarQueryParameter = {};
399
382
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
400
- // authentication Basic required
401
- // http basic authentication required
402
- setBasicAuthToObject(localVarRequestOptions, configuration);
403
383
  if (file !== undefined) {
404
384
  localVarFormParams.append('file', file);
405
385
  }
@@ -417,13 +397,13 @@ export const SendApiAxiosParamCreator = function (configuration) {
417
397
  /**
418
398
  * Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **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/).
419
399
  * @summary Validate an invoice by json
420
- * @param {FatturaOrdinaria} fatturaOrdinaria
400
+ * @param {object} body
421
401
  * @param {*} [options] Override http request option.
422
402
  * @throws {RequiredError}
423
403
  */
424
- sendValidateJsonPost: (fatturaOrdinaria_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, ...args_1], void 0, function* (fatturaOrdinaria, options = {}) {
425
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
426
- assertParamExists('sendValidateJsonPost', 'fatturaOrdinaria', fatturaOrdinaria);
404
+ sendValidateJsonPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
405
+ // verify required parameter 'body' is not null or undefined
406
+ assertParamExists('sendValidateJsonPost', 'body', body);
427
407
  const localVarPath = `/send/validate/json`;
428
408
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
429
409
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -434,15 +414,12 @@ export const SendApiAxiosParamCreator = function (configuration) {
434
414
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
435
415
  const localVarHeaderParameter = {};
436
416
  const localVarQueryParameter = {};
437
- // authentication Basic required
438
- // http basic authentication required
439
- setBasicAuthToObject(localVarRequestOptions, configuration);
440
417
  localVarHeaderParameter['Content-Type'] = 'application/json';
441
418
  localVarHeaderParameter['Accept'] = 'application/json';
442
419
  setSearchParams(localVarUrlObj, localVarQueryParameter);
443
420
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
444
421
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
445
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration);
422
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
446
423
  return {
447
424
  url: toPathString(localVarUrlObj),
448
425
  options: localVarRequestOptions,
@@ -468,9 +445,6 @@ export const SendApiAxiosParamCreator = function (configuration) {
468
445
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
469
446
  const localVarHeaderParameter = {};
470
447
  const localVarQueryParameter = {};
471
- // authentication Basic required
472
- // http basic authentication required
473
- setBasicAuthToObject(localVarRequestOptions, configuration);
474
448
  localVarHeaderParameter['Content-Type'] = 'application/json';
475
449
  localVarHeaderParameter['Accept'] = 'application/json';
476
450
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -485,13 +459,13 @@ export const SendApiAxiosParamCreator = function (configuration) {
485
459
  /**
486
460
  * Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **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/).
487
461
  * @summary Validate an invoice by xml
488
- * @param {FatturaOrdinaria} fatturaOrdinaria
462
+ * @param {object} body
489
463
  * @param {*} [options] Override http request option.
490
464
  * @throws {RequiredError}
491
465
  */
492
- sendValidateXmlPost: (fatturaOrdinaria_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, ...args_1], void 0, function* (fatturaOrdinaria, options = {}) {
493
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
494
- assertParamExists('sendValidateXmlPost', 'fatturaOrdinaria', fatturaOrdinaria);
466
+ sendValidateXmlPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
467
+ // verify required parameter 'body' is not null or undefined
468
+ assertParamExists('sendValidateXmlPost', 'body', body);
495
469
  const localVarPath = `/send/validate/xml`;
496
470
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
497
471
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -502,15 +476,12 @@ export const SendApiAxiosParamCreator = function (configuration) {
502
476
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
503
477
  const localVarHeaderParameter = {};
504
478
  const localVarQueryParameter = {};
505
- // authentication Basic required
506
- // http basic authentication required
507
- setBasicAuthToObject(localVarRequestOptions, configuration);
508
479
  localVarHeaderParameter['Content-Type'] = 'application/xml';
509
480
  localVarHeaderParameter['Accept'] = 'application/json';
510
481
  setSearchParams(localVarUrlObj, localVarQueryParameter);
511
482
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
512
483
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
513
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration);
484
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
514
485
  return {
515
486
  url: toPathString(localVarUrlObj),
516
487
  options: localVarRequestOptions,
@@ -519,15 +490,15 @@ export const SendApiAxiosParamCreator = function (configuration) {
519
490
  /**
520
491
  * Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **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/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
521
492
  * @summary Add an invoice by xml
522
- * @param {FatturaOrdinaria} fatturaOrdinaria
493
+ * @param {object} body
523
494
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
524
495
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
525
496
  * @param {*} [options] Override http request option.
526
497
  * @throws {RequiredError}
527
498
  */
528
- sendXmlPost: (fatturaOrdinaria_1, validate_1, signature_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, validate_1, signature_1, ...args_1], void 0, function* (fatturaOrdinaria, validate, signature, options = {}) {
529
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
530
- assertParamExists('sendXmlPost', 'fatturaOrdinaria', fatturaOrdinaria);
499
+ sendXmlPost: (body_1, validate_1, signature_1, ...args_1) => __awaiter(this, [body_1, validate_1, signature_1, ...args_1], void 0, function* (body, validate, signature, options = {}) {
500
+ // verify required parameter 'body' is not null or undefined
501
+ assertParamExists('sendXmlPost', 'body', body);
531
502
  const localVarPath = `/send/xml`;
532
503
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
533
504
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -538,9 +509,6 @@ export const SendApiAxiosParamCreator = function (configuration) {
538
509
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
539
510
  const localVarHeaderParameter = {};
540
511
  const localVarQueryParameter = {};
541
- // authentication Basic required
542
- // http basic authentication required
543
- setBasicAuthToObject(localVarRequestOptions, configuration);
544
512
  if (validate !== undefined) {
545
513
  localVarQueryParameter['validate'] = validate;
546
514
  }
@@ -552,7 +520,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
552
520
  setSearchParams(localVarUrlObj, localVarQueryParameter);
553
521
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
554
522
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
555
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration);
523
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
556
524
  return {
557
525
  url: toPathString(localVarUrlObj),
558
526
  options: localVarRequestOptions,
@@ -585,7 +553,7 @@ export const SendApiFp = function (configuration) {
585
553
  });
586
554
  },
587
555
  /**
588
- * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and document number. 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/).
556
+ * 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/).
589
557
  * @summary List invoices
590
558
  * @param {number} [companyId] Company id
591
559
  * @param {string} [identifier] SDI identifier.
@@ -603,13 +571,14 @@ export const SendApiFp = function (configuration) {
603
571
  * @param {number} [page] Page number.
604
572
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
605
573
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
574
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
606
575
  * @param {*} [options] Override http request option.
607
576
  * @throws {RequiredError}
608
577
  */
609
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
578
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
610
579
  return __awaiter(this, void 0, void 0, function* () {
611
580
  var _a, _b, _c;
612
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
581
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
613
582
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
614
583
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
615
584
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -668,16 +637,16 @@ export const SendApiFp = function (configuration) {
668
637
  /**
669
638
  * Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **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/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
670
639
  * @summary Add an invoice by json
671
- * @param {FatturaOrdinaria} fatturaOrdinaria
640
+ * @param {object} body
672
641
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
673
642
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
674
643
  * @param {*} [options] Override http request option.
675
644
  * @throws {RequiredError}
676
645
  */
677
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
646
+ sendJsonPost(body, validate, signature, options) {
678
647
  return __awaiter(this, void 0, void 0, function* () {
679
648
  var _a, _b, _c;
680
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(fatturaOrdinaria, validate, signature, options);
649
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(body, validate, signature, options);
681
650
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
682
651
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
683
652
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -720,14 +689,14 @@ export const SendApiFp = function (configuration) {
720
689
  /**
721
690
  * Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **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/).
722
691
  * @summary Validate an invoice by json
723
- * @param {FatturaOrdinaria} fatturaOrdinaria
692
+ * @param {object} body
724
693
  * @param {*} [options] Override http request option.
725
694
  * @throws {RequiredError}
726
695
  */
727
- sendValidateJsonPost(fatturaOrdinaria, options) {
696
+ sendValidateJsonPost(body, options) {
728
697
  return __awaiter(this, void 0, void 0, function* () {
729
698
  var _a, _b, _c;
730
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(fatturaOrdinaria, options);
699
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(body, options);
731
700
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
732
701
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendValidateJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
733
702
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -752,14 +721,14 @@ export const SendApiFp = function (configuration) {
752
721
  /**
753
722
  * Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **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/).
754
723
  * @summary Validate an invoice by xml
755
- * @param {FatturaOrdinaria} fatturaOrdinaria
724
+ * @param {object} body
756
725
  * @param {*} [options] Override http request option.
757
726
  * @throws {RequiredError}
758
727
  */
759
- sendValidateXmlPost(fatturaOrdinaria, options) {
728
+ sendValidateXmlPost(body, options) {
760
729
  return __awaiter(this, void 0, void 0, function* () {
761
730
  var _a, _b, _c;
762
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(fatturaOrdinaria, options);
731
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(body, options);
763
732
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
764
733
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendValidateXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
765
734
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -768,16 +737,16 @@ export const SendApiFp = function (configuration) {
768
737
  /**
769
738
  * Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **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/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
770
739
  * @summary Add an invoice by xml
771
- * @param {FatturaOrdinaria} fatturaOrdinaria
740
+ * @param {object} body
772
741
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
773
742
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
774
743
  * @param {*} [options] Override http request option.
775
744
  * @throws {RequiredError}
776
745
  */
777
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
746
+ sendXmlPost(body, validate, signature, options) {
778
747
  return __awaiter(this, void 0, void 0, function* () {
779
748
  var _a, _b, _c;
780
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(fatturaOrdinaria, validate, signature, options);
749
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(body, validate, signature, options);
781
750
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
782
751
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
783
752
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -804,7 +773,7 @@ export const SendApiFactory = function (configuration, basePath, axios) {
804
773
  return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
805
774
  },
806
775
  /**
807
- * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and document number. 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/).
776
+ * 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/).
808
777
  * @summary List invoices
809
778
  * @param {number} [companyId] Company id
810
779
  * @param {string} [identifier] SDI identifier.
@@ -822,11 +791,12 @@ export const SendApiFactory = function (configuration, basePath, axios) {
822
791
  * @param {number} [page] Page number.
823
792
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
824
793
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
794
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
825
795
  * @param {*} [options] Override http request option.
826
796
  * @throws {RequiredError}
827
797
  */
828
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
829
- return localVarFp.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(axios, basePath));
798
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
799
+ 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));
830
800
  },
831
801
  /**
832
802
  * 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/).
@@ -863,14 +833,14 @@ export const SendApiFactory = function (configuration, basePath, axios) {
863
833
  /**
864
834
  * Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **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/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
865
835
  * @summary Add an invoice by json
866
- * @param {FatturaOrdinaria} fatturaOrdinaria
836
+ * @param {object} body
867
837
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
868
838
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
869
839
  * @param {*} [options] Override http request option.
870
840
  * @throws {RequiredError}
871
841
  */
872
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
873
- return localVarFp.sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
842
+ sendJsonPost(body, validate, signature, options) {
843
+ return localVarFp.sendJsonPost(body, validate, signature, options).then((request) => request(axios, basePath));
874
844
  },
875
845
  /**
876
846
  * Add a new invoice using a structured Send object. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **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/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
@@ -897,12 +867,12 @@ export const SendApiFactory = function (configuration, basePath, axios) {
897
867
  /**
898
868
  * Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **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/).
899
869
  * @summary Validate an invoice by json
900
- * @param {FatturaOrdinaria} fatturaOrdinaria
870
+ * @param {object} body
901
871
  * @param {*} [options] Override http request option.
902
872
  * @throws {RequiredError}
903
873
  */
904
- sendValidateJsonPost(fatturaOrdinaria, options) {
905
- return localVarFp.sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
874
+ sendValidateJsonPost(body, options) {
875
+ return localVarFp.sendValidateJsonPost(body, options).then((request) => request(axios, basePath));
906
876
  },
907
877
  /**
908
878
  * Validate an invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **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/).
@@ -917,24 +887,24 @@ export const SendApiFactory = function (configuration, basePath, axios) {
917
887
  /**
918
888
  * Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **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/).
919
889
  * @summary Validate an invoice by xml
920
- * @param {FatturaOrdinaria} fatturaOrdinaria
890
+ * @param {object} body
921
891
  * @param {*} [options] Override http request option.
922
892
  * @throws {RequiredError}
923
893
  */
924
- sendValidateXmlPost(fatturaOrdinaria, options) {
925
- return localVarFp.sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
894
+ sendValidateXmlPost(body, options) {
895
+ return localVarFp.sendValidateXmlPost(body, options).then((request) => request(axios, basePath));
926
896
  },
927
897
  /**
928
898
  * Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **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/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
929
899
  * @summary Add an invoice by xml
930
- * @param {FatturaOrdinaria} fatturaOrdinaria
900
+ * @param {object} body
931
901
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
932
902
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
933
903
  * @param {*} [options] Override http request option.
934
904
  * @throws {RequiredError}
935
905
  */
936
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
937
- return localVarFp.sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
906
+ sendXmlPost(body, validate, signature, options) {
907
+ return localVarFp.sendXmlPost(body, validate, signature, options).then((request) => request(axios, basePath));
938
908
  },
939
909
  };
940
910
  };
@@ -955,7 +925,7 @@ export class SendApi extends BaseAPI {
955
925
  return SendApiFp(this.configuration).sendFilePost(file, validate, signature, options).then((request) => request(this.axios, this.basePath));
956
926
  }
957
927
  /**
958
- * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and document number. 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/).
928
+ * 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/).
959
929
  * @summary List invoices
960
930
  * @param {number} [companyId] Company id
961
931
  * @param {string} [identifier] SDI identifier.
@@ -973,11 +943,12 @@ export class SendApi extends BaseAPI {
973
943
  * @param {number} [page] Page number.
974
944
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
975
945
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
946
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
976
947
  * @param {*} [options] Override http request option.
977
948
  * @throws {RequiredError}
978
949
  */
979
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
980
- return SendApiFp(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
950
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
951
+ 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));
981
952
  }
982
953
  /**
983
954
  * 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/).
@@ -1014,14 +985,14 @@ export class SendApi extends BaseAPI {
1014
985
  /**
1015
986
  * Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **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/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
1016
987
  * @summary Add an invoice by json
1017
- * @param {FatturaOrdinaria} fatturaOrdinaria
988
+ * @param {object} body
1018
989
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
1019
990
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
1020
991
  * @param {*} [options] Override http request option.
1021
992
  * @throws {RequiredError}
1022
993
  */
1023
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
1024
- return SendApiFp(this.configuration).sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
994
+ sendJsonPost(body, validate, signature, options) {
995
+ return SendApiFp(this.configuration).sendJsonPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
1025
996
  }
1026
997
  /**
1027
998
  * Add a new invoice using a structured Send object. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **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/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
@@ -1048,12 +1019,12 @@ export class SendApi extends BaseAPI {
1048
1019
  /**
1049
1020
  * Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **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/).
1050
1021
  * @summary Validate an invoice by json
1051
- * @param {FatturaOrdinaria} fatturaOrdinaria
1022
+ * @param {object} body
1052
1023
  * @param {*} [options] Override http request option.
1053
1024
  * @throws {RequiredError}
1054
1025
  */
1055
- sendValidateJsonPost(fatturaOrdinaria, options) {
1056
- return SendApiFp(this.configuration).sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
1026
+ sendValidateJsonPost(body, options) {
1027
+ return SendApiFp(this.configuration).sendValidateJsonPost(body, options).then((request) => request(this.axios, this.basePath));
1057
1028
  }
1058
1029
  /**
1059
1030
  * Validate an invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **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/).
@@ -1068,24 +1039,24 @@ export class SendApi extends BaseAPI {
1068
1039
  /**
1069
1040
  * Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **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/).
1070
1041
  * @summary Validate an invoice by xml
1071
- * @param {FatturaOrdinaria} fatturaOrdinaria
1042
+ * @param {object} body
1072
1043
  * @param {*} [options] Override http request option.
1073
1044
  * @throws {RequiredError}
1074
1045
  */
1075
- sendValidateXmlPost(fatturaOrdinaria, options) {
1076
- return SendApiFp(this.configuration).sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
1046
+ sendValidateXmlPost(body, options) {
1047
+ return SendApiFp(this.configuration).sendValidateXmlPost(body, options).then((request) => request(this.axios, this.basePath));
1077
1048
  }
1078
1049
  /**
1079
1050
  * Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **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/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
1080
1051
  * @summary Add an invoice by xml
1081
- * @param {FatturaOrdinaria} fatturaOrdinaria
1052
+ * @param {object} body
1082
1053
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
1083
1054
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
1084
1055
  * @param {*} [options] Override http request option.
1085
1056
  * @throws {RequiredError}
1086
1057
  */
1087
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
1088
- return SendApiFp(this.configuration).sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
1058
+ sendXmlPost(body, validate, signature, options) {
1059
+ return SendApiFp(this.configuration).sendXmlPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
1089
1060
  }
1090
1061
  }
1091
1062
  export const SendFilePostSignatureEnum = {
@@ -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
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Invoicetronic API
5
5
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
6
6
  *
7
- * The version of the OpenAPI document: 1
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: info@invoicetronic.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ import globalAxios from 'axios';
26
26
  import { URL } from 'url';
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
29
- import { DUMMY_BASE_URL, setBasicAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../../common';
29
+ import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../../common';
30
30
  // @ts-ignore
31
31
  import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
32
32
  /**
@@ -51,9 +51,6 @@ export const StatusApiAxiosParamCreator = function (configuration) {
51
51
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
52
52
  const localVarHeaderParameter = {};
53
53
  const localVarQueryParameter = {};
54
- // authentication Basic required
55
- // http basic authentication required
56
- setBasicAuthToObject(localVarRequestOptions, configuration);
57
54
  localVarHeaderParameter['Accept'] = 'application/json';
58
55
  setSearchParams(localVarUrlObj, localVarQueryParameter);
59
56
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};