@invoicetronic/ts-sdk 1.4.0 → 1.5.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 (90) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/api.ts +1 -0
  4. package/configuration.ts +1 -1
  5. package/dist/api.d.ts +1 -0
  6. package/dist/api.js +1 -0
  7. package/dist/configuration.js +1 -1
  8. package/dist/esm/api.d.ts +1 -0
  9. package/dist/esm/api.js +1 -0
  10. package/dist/esm/configuration.js +1 -1
  11. package/dist/esm/src/api/company-api.d.ts +15 -10
  12. package/dist/esm/src/api/company-api.js +18 -11
  13. package/dist/esm/src/api/export-api.d.ts +10 -16
  14. package/dist/esm/src/api/export-api.js +4 -9
  15. package/dist/esm/src/api/health-api.d.ts +74 -0
  16. package/dist/esm/src/api/health-api.js +120 -0
  17. package/dist/esm/src/api/receive-api.d.ts +15 -10
  18. package/dist/esm/src/api/receive-api.js +18 -11
  19. package/dist/esm/src/api/send-api.d.ts +55 -51
  20. package/dist/esm/src/api/send-api.js +74 -67
  21. package/dist/esm/src/api/update-api.d.ts +10 -10
  22. package/dist/esm/src/api/update-api.js +8 -8
  23. package/dist/esm/src/models/document-data.d.ts +15 -0
  24. package/dist/esm/src/models/document-data.js +14 -0
  25. package/dist/esm/src/models/index.d.ts +5 -0
  26. package/dist/esm/src/models/index.js +5 -0
  27. package/dist/esm/src/models/model-error.d.ts +28 -0
  28. package/dist/esm/src/models/model-error.js +14 -0
  29. package/dist/esm/src/models/problem-details.d.ts +19 -0
  30. package/dist/esm/src/models/problem-details.js +14 -0
  31. package/dist/esm/src/models/problem-http-result.d.ts +17 -0
  32. package/dist/esm/src/models/problem-http-result.js +14 -0
  33. package/dist/esm/src/models/receive.d.ts +4 -0
  34. package/dist/esm/src/models/send-reduced.d.ts +39 -0
  35. package/dist/esm/src/models/send-reduced.js +14 -0
  36. package/dist/esm/src/models/send.d.ts +4 -0
  37. package/dist/src/api/company-api.d.ts +15 -10
  38. package/dist/src/api/company-api.js +18 -11
  39. package/dist/src/api/export-api.d.ts +10 -16
  40. package/dist/src/api/export-api.js +5 -10
  41. package/dist/src/api/health-api.d.ts +74 -0
  42. package/dist/src/api/health-api.js +127 -0
  43. package/dist/src/api/receive-api.d.ts +15 -10
  44. package/dist/src/api/receive-api.js +18 -11
  45. package/dist/src/api/send-api.d.ts +55 -51
  46. package/dist/src/api/send-api.js +74 -67
  47. package/dist/src/api/update-api.d.ts +10 -10
  48. package/dist/src/api/update-api.js +8 -8
  49. package/dist/src/models/document-data.d.ts +15 -0
  50. package/dist/src/models/document-data.js +15 -0
  51. package/dist/src/models/index.d.ts +5 -0
  52. package/dist/src/models/index.js +5 -0
  53. package/dist/src/models/model-error.d.ts +28 -0
  54. package/dist/src/models/model-error.js +15 -0
  55. package/dist/src/models/problem-details.d.ts +19 -0
  56. package/dist/src/models/problem-details.js +15 -0
  57. package/dist/src/models/problem-http-result.d.ts +17 -0
  58. package/dist/src/models/problem-http-result.js +15 -0
  59. package/dist/src/models/receive.d.ts +4 -0
  60. package/dist/src/models/send-reduced.d.ts +39 -0
  61. package/dist/src/models/send-reduced.js +15 -0
  62. package/dist/src/models/send.d.ts +4 -0
  63. package/docs/CompanyApi.md +5 -2
  64. package/docs/DocumentData.md +22 -0
  65. package/docs/Error.md +25 -0
  66. package/docs/ExportApi.md +2 -2
  67. package/docs/HealthApi.md +54 -0
  68. package/docs/ProblemDetails.md +28 -0
  69. package/docs/ProblemHttpResult.md +24 -0
  70. package/docs/Receive.md +2 -0
  71. package/docs/ReceiveApi.md +5 -2
  72. package/docs/Send.md +2 -0
  73. package/docs/SendApi.md +25 -26
  74. package/docs/SendReduced.md +29 -0
  75. package/docs/UpdateApi.md +2 -2
  76. package/package.json +1 -1
  77. package/src/api/company-api.ts +22 -13
  78. package/src/api/export-api.ts +10 -16
  79. package/src/api/health-api.ts +135 -0
  80. package/src/api/receive-api.ts +22 -13
  81. package/src/api/send-api.ts +86 -79
  82. package/src/api/update-api.ts +10 -10
  83. package/src/models/document-data.ts +21 -0
  84. package/src/models/index.ts +5 -0
  85. package/src/models/model-error.ts +34 -0
  86. package/src/models/problem-details.ts +26 -0
  87. package/src/models/problem-http-result.ts +25 -0
  88. package/src/models/receive.ts +4 -0
  89. package/src/models/send-reduced.ts +45 -0
  90. package/src/models/send.ts +4 -0
@@ -84,7 +84,7 @@ const SendApiAxiosParamCreator = function (configuration) {
84
84
  };
85
85
  }),
86
86
  /**
87
- * 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/).
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/).
88
88
  * @summary List invoices
89
89
  * @param {number} [companyId] Company id
90
90
  * @param {string} [identifier] SDI identifier.
@@ -102,10 +102,11 @@ const SendApiAxiosParamCreator = function (configuration) {
102
102
  * @param {number} [page] Page number.
103
103
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
104
104
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
105
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
105
106
  * @param {*} [options] Override http request option.
106
107
  * @throws {RequiredError}
107
108
  */
108
- 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 = {}) {
109
+ 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 = {}) {
109
110
  const localVarPath = `/send`;
110
111
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
111
112
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -179,6 +180,9 @@ const SendApiAxiosParamCreator = function (configuration) {
179
180
  if (sort !== undefined) {
180
181
  localVarQueryParameter['sort'] = sort;
181
182
  }
183
+ if (q !== undefined) {
184
+ localVarQueryParameter['q'] = q;
185
+ }
182
186
  localVarHeaderParameter['Accept'] = 'application/json';
183
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
188
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -298,15 +302,15 @@ const SendApiAxiosParamCreator = function (configuration) {
298
302
  /**
299
303
  * 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).
300
304
  * @summary Add an invoice by json
301
- * @param {FatturaOrdinaria} fatturaOrdinaria
305
+ * @param {object} body
302
306
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
303
307
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
304
308
  * @param {*} [options] Override http request option.
305
309
  * @throws {RequiredError}
306
310
  */
307
- 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 = {}) {
308
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
309
- (0, common_1.assertParamExists)('sendJsonPost', 'fatturaOrdinaria', fatturaOrdinaria);
311
+ 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 = {}) {
312
+ // verify required parameter 'body' is not null or undefined
313
+ (0, common_1.assertParamExists)('sendJsonPost', 'body', body);
310
314
  const localVarPath = `/send/json`;
311
315
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
312
316
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -331,7 +335,7 @@ const SendApiAxiosParamCreator = function (configuration) {
331
335
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
332
336
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
333
337
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
334
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
338
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
335
339
  return {
336
340
  url: (0, common_1.toPathString)(localVarUrlObj),
337
341
  options: localVarRequestOptions,
@@ -420,13 +424,13 @@ const SendApiAxiosParamCreator = function (configuration) {
420
424
  /**
421
425
  * 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/).
422
426
  * @summary Validate an invoice by json
423
- * @param {FatturaOrdinaria} fatturaOrdinaria
427
+ * @param {object} body
424
428
  * @param {*} [options] Override http request option.
425
429
  * @throws {RequiredError}
426
430
  */
427
- sendValidateJsonPost: (fatturaOrdinaria_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, ...args_1], void 0, function* (fatturaOrdinaria, options = {}) {
428
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
429
- (0, common_1.assertParamExists)('sendValidateJsonPost', 'fatturaOrdinaria', fatturaOrdinaria);
431
+ sendValidateJsonPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
432
+ // verify required parameter 'body' is not null or undefined
433
+ (0, common_1.assertParamExists)('sendValidateJsonPost', 'body', body);
430
434
  const localVarPath = `/send/validate/json`;
431
435
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
432
436
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -445,7 +449,7 @@ const SendApiAxiosParamCreator = function (configuration) {
445
449
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
446
450
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
447
451
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
448
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
452
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
449
453
  return {
450
454
  url: (0, common_1.toPathString)(localVarUrlObj),
451
455
  options: localVarRequestOptions,
@@ -488,13 +492,13 @@ const SendApiAxiosParamCreator = function (configuration) {
488
492
  /**
489
493
  * 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/).
490
494
  * @summary Validate an invoice by xml
491
- * @param {FatturaOrdinaria} fatturaOrdinaria
495
+ * @param {object} body
492
496
  * @param {*} [options] Override http request option.
493
497
  * @throws {RequiredError}
494
498
  */
495
- sendValidateXmlPost: (fatturaOrdinaria_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, ...args_1], void 0, function* (fatturaOrdinaria, options = {}) {
496
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
497
- (0, common_1.assertParamExists)('sendValidateXmlPost', 'fatturaOrdinaria', fatturaOrdinaria);
499
+ sendValidateXmlPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
500
+ // verify required parameter 'body' is not null or undefined
501
+ (0, common_1.assertParamExists)('sendValidateXmlPost', 'body', body);
498
502
  const localVarPath = `/send/validate/xml`;
499
503
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
500
504
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -513,7 +517,7 @@ const SendApiAxiosParamCreator = function (configuration) {
513
517
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
514
518
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
515
519
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
516
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
520
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
517
521
  return {
518
522
  url: (0, common_1.toPathString)(localVarUrlObj),
519
523
  options: localVarRequestOptions,
@@ -522,15 +526,15 @@ const SendApiAxiosParamCreator = function (configuration) {
522
526
  /**
523
527
  * 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).
524
528
  * @summary Add an invoice by xml
525
- * @param {FatturaOrdinaria} fatturaOrdinaria
529
+ * @param {object} body
526
530
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
527
531
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
528
532
  * @param {*} [options] Override http request option.
529
533
  * @throws {RequiredError}
530
534
  */
531
- 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 = {}) {
532
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
533
- (0, common_1.assertParamExists)('sendXmlPost', 'fatturaOrdinaria', fatturaOrdinaria);
535
+ 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 = {}) {
536
+ // verify required parameter 'body' is not null or undefined
537
+ (0, common_1.assertParamExists)('sendXmlPost', 'body', body);
534
538
  const localVarPath = `/send/xml`;
535
539
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
536
540
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -555,7 +559,7 @@ const SendApiAxiosParamCreator = function (configuration) {
555
559
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
556
560
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
557
561
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
558
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
562
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
559
563
  return {
560
564
  url: (0, common_1.toPathString)(localVarUrlObj),
561
565
  options: localVarRequestOptions,
@@ -589,7 +593,7 @@ const SendApiFp = function (configuration) {
589
593
  });
590
594
  },
591
595
  /**
592
- * 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/).
596
+ * 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/).
593
597
  * @summary List invoices
594
598
  * @param {number} [companyId] Company id
595
599
  * @param {string} [identifier] SDI identifier.
@@ -607,13 +611,14 @@ const SendApiFp = function (configuration) {
607
611
  * @param {number} [page] Page number.
608
612
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
609
613
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
614
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
610
615
  * @param {*} [options] Override http request option.
611
616
  * @throws {RequiredError}
612
617
  */
613
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
618
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
614
619
  return __awaiter(this, void 0, void 0, function* () {
615
620
  var _a, _b, _c;
616
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
621
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
617
622
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
618
623
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
619
624
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -672,16 +677,16 @@ const SendApiFp = function (configuration) {
672
677
  /**
673
678
  * 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).
674
679
  * @summary Add an invoice by json
675
- * @param {FatturaOrdinaria} fatturaOrdinaria
680
+ * @param {object} body
676
681
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
677
682
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
678
683
  * @param {*} [options] Override http request option.
679
684
  * @throws {RequiredError}
680
685
  */
681
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
686
+ sendJsonPost(body, validate, signature, options) {
682
687
  return __awaiter(this, void 0, void 0, function* () {
683
688
  var _a, _b, _c;
684
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(fatturaOrdinaria, validate, signature, options);
689
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(body, validate, signature, options);
685
690
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
686
691
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
687
692
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -724,14 +729,14 @@ const SendApiFp = function (configuration) {
724
729
  /**
725
730
  * 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/).
726
731
  * @summary Validate an invoice by json
727
- * @param {FatturaOrdinaria} fatturaOrdinaria
732
+ * @param {object} body
728
733
  * @param {*} [options] Override http request option.
729
734
  * @throws {RequiredError}
730
735
  */
731
- sendValidateJsonPost(fatturaOrdinaria, options) {
736
+ sendValidateJsonPost(body, options) {
732
737
  return __awaiter(this, void 0, void 0, function* () {
733
738
  var _a, _b, _c;
734
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(fatturaOrdinaria, options);
739
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(body, options);
735
740
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
736
741
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidateJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
737
742
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -756,14 +761,14 @@ const SendApiFp = function (configuration) {
756
761
  /**
757
762
  * 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/).
758
763
  * @summary Validate an invoice by xml
759
- * @param {FatturaOrdinaria} fatturaOrdinaria
764
+ * @param {object} body
760
765
  * @param {*} [options] Override http request option.
761
766
  * @throws {RequiredError}
762
767
  */
763
- sendValidateXmlPost(fatturaOrdinaria, options) {
768
+ sendValidateXmlPost(body, options) {
764
769
  return __awaiter(this, void 0, void 0, function* () {
765
770
  var _a, _b, _c;
766
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(fatturaOrdinaria, options);
771
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(body, options);
767
772
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
768
773
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidateXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
769
774
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -772,16 +777,16 @@ const SendApiFp = function (configuration) {
772
777
  /**
773
778
  * 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).
774
779
  * @summary Add an invoice by xml
775
- * @param {FatturaOrdinaria} fatturaOrdinaria
780
+ * @param {object} body
776
781
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
777
782
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
778
783
  * @param {*} [options] Override http request option.
779
784
  * @throws {RequiredError}
780
785
  */
781
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
786
+ sendXmlPost(body, validate, signature, options) {
782
787
  return __awaiter(this, void 0, void 0, function* () {
783
788
  var _a, _b, _c;
784
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(fatturaOrdinaria, validate, signature, options);
789
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(body, validate, signature, options);
785
790
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
786
791
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
787
792
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -809,7 +814,7 @@ const SendApiFactory = function (configuration, basePath, axios) {
809
814
  return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
810
815
  },
811
816
  /**
812
- * 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/).
817
+ * 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/).
813
818
  * @summary List invoices
814
819
  * @param {number} [companyId] Company id
815
820
  * @param {string} [identifier] SDI identifier.
@@ -827,11 +832,12 @@ const SendApiFactory = function (configuration, basePath, axios) {
827
832
  * @param {number} [page] Page number.
828
833
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
829
834
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
835
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
830
836
  * @param {*} [options] Override http request option.
831
837
  * @throws {RequiredError}
832
838
  */
833
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
834
- 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));
839
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
840
+ 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));
835
841
  },
836
842
  /**
837
843
  * 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/).
@@ -868,14 +874,14 @@ const SendApiFactory = function (configuration, basePath, axios) {
868
874
  /**
869
875
  * 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).
870
876
  * @summary Add an invoice by json
871
- * @param {FatturaOrdinaria} fatturaOrdinaria
877
+ * @param {object} body
872
878
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
873
879
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
874
880
  * @param {*} [options] Override http request option.
875
881
  * @throws {RequiredError}
876
882
  */
877
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
878
- return localVarFp.sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
883
+ sendJsonPost(body, validate, signature, options) {
884
+ return localVarFp.sendJsonPost(body, validate, signature, options).then((request) => request(axios, basePath));
879
885
  },
880
886
  /**
881
887
  * 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).
@@ -902,12 +908,12 @@ const SendApiFactory = function (configuration, basePath, axios) {
902
908
  /**
903
909
  * 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/).
904
910
  * @summary Validate an invoice by json
905
- * @param {FatturaOrdinaria} fatturaOrdinaria
911
+ * @param {object} body
906
912
  * @param {*} [options] Override http request option.
907
913
  * @throws {RequiredError}
908
914
  */
909
- sendValidateJsonPost(fatturaOrdinaria, options) {
910
- return localVarFp.sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
915
+ sendValidateJsonPost(body, options) {
916
+ return localVarFp.sendValidateJsonPost(body, options).then((request) => request(axios, basePath));
911
917
  },
912
918
  /**
913
919
  * 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/).
@@ -922,24 +928,24 @@ const SendApiFactory = function (configuration, basePath, axios) {
922
928
  /**
923
929
  * 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/).
924
930
  * @summary Validate an invoice by xml
925
- * @param {FatturaOrdinaria} fatturaOrdinaria
931
+ * @param {object} body
926
932
  * @param {*} [options] Override http request option.
927
933
  * @throws {RequiredError}
928
934
  */
929
- sendValidateXmlPost(fatturaOrdinaria, options) {
930
- return localVarFp.sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
935
+ sendValidateXmlPost(body, options) {
936
+ return localVarFp.sendValidateXmlPost(body, options).then((request) => request(axios, basePath));
931
937
  },
932
938
  /**
933
939
  * 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).
934
940
  * @summary Add an invoice by xml
935
- * @param {FatturaOrdinaria} fatturaOrdinaria
941
+ * @param {object} body
936
942
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
937
943
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
938
944
  * @param {*} [options] Override http request option.
939
945
  * @throws {RequiredError}
940
946
  */
941
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
942
- return localVarFp.sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
947
+ sendXmlPost(body, validate, signature, options) {
948
+ return localVarFp.sendXmlPost(body, validate, signature, options).then((request) => request(axios, basePath));
943
949
  },
944
950
  };
945
951
  };
@@ -961,7 +967,7 @@ class SendApi extends base_1.BaseAPI {
961
967
  return (0, exports.SendApiFp)(this.configuration).sendFilePost(file, validate, signature, options).then((request) => request(this.axios, this.basePath));
962
968
  }
963
969
  /**
964
- * 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/).
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/).
965
971
  * @summary List invoices
966
972
  * @param {number} [companyId] Company id
967
973
  * @param {string} [identifier] SDI identifier.
@@ -979,11 +985,12 @@ class SendApi extends base_1.BaseAPI {
979
985
  * @param {number} [page] Page number.
980
986
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
981
987
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
988
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
982
989
  * @param {*} [options] Override http request option.
983
990
  * @throws {RequiredError}
984
991
  */
985
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
986
- return (0, exports.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));
992
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
993
+ return (0, exports.SendApiFp)(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
987
994
  }
988
995
  /**
989
996
  * 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/).
@@ -1020,14 +1027,14 @@ class SendApi extends base_1.BaseAPI {
1020
1027
  /**
1021
1028
  * 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).
1022
1029
  * @summary Add an invoice by json
1023
- * @param {FatturaOrdinaria} fatturaOrdinaria
1030
+ * @param {object} body
1024
1031
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
1025
1032
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
1026
1033
  * @param {*} [options] Override http request option.
1027
1034
  * @throws {RequiredError}
1028
1035
  */
1029
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
1030
- return (0, exports.SendApiFp)(this.configuration).sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
1036
+ sendJsonPost(body, validate, signature, options) {
1037
+ return (0, exports.SendApiFp)(this.configuration).sendJsonPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
1031
1038
  }
1032
1039
  /**
1033
1040
  * 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).
@@ -1054,12 +1061,12 @@ class SendApi extends base_1.BaseAPI {
1054
1061
  /**
1055
1062
  * 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/).
1056
1063
  * @summary Validate an invoice by json
1057
- * @param {FatturaOrdinaria} fatturaOrdinaria
1064
+ * @param {object} body
1058
1065
  * @param {*} [options] Override http request option.
1059
1066
  * @throws {RequiredError}
1060
1067
  */
1061
- sendValidateJsonPost(fatturaOrdinaria, options) {
1062
- return (0, exports.SendApiFp)(this.configuration).sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
1068
+ sendValidateJsonPost(body, options) {
1069
+ return (0, exports.SendApiFp)(this.configuration).sendValidateJsonPost(body, options).then((request) => request(this.axios, this.basePath));
1063
1070
  }
1064
1071
  /**
1065
1072
  * 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/).
@@ -1074,24 +1081,24 @@ class SendApi extends base_1.BaseAPI {
1074
1081
  /**
1075
1082
  * 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/).
1076
1083
  * @summary Validate an invoice by xml
1077
- * @param {FatturaOrdinaria} fatturaOrdinaria
1084
+ * @param {object} body
1078
1085
  * @param {*} [options] Override http request option.
1079
1086
  * @throws {RequiredError}
1080
1087
  */
1081
- sendValidateXmlPost(fatturaOrdinaria, options) {
1082
- return (0, exports.SendApiFp)(this.configuration).sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
1088
+ sendValidateXmlPost(body, options) {
1089
+ return (0, exports.SendApiFp)(this.configuration).sendValidateXmlPost(body, options).then((request) => request(this.axios, this.basePath));
1083
1090
  }
1084
1091
  /**
1085
1092
  * 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).
1086
1093
  * @summary Add an invoice by xml
1087
- * @param {FatturaOrdinaria} fatturaOrdinaria
1094
+ * @param {object} body
1088
1095
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
1089
1096
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
1090
1097
  * @param {*} [options] Override http request option.
1091
1098
  * @throws {RequiredError}
1092
1099
  */
1093
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
1094
- return (0, exports.SendApiFp)(this.configuration).sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
1100
+ sendXmlPost(body, validate, signature, options) {
1101
+ return (0, exports.SendApiFp)(this.configuration).sendXmlPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
1095
1102
  }
1096
1103
  }
1097
1104
  exports.SendApi = SendApi;
@@ -18,7 +18,7 @@ import type { Update } from '../../src/models';
18
18
  */
19
19
  export declare const UpdateApiAxiosParamCreator: (configuration?: Configuration) => {
20
20
  /**
21
- * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
21
+ * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
22
22
  * @summary List updates
23
23
  * @param {number} [companyId] Company id
24
24
  * @param {string} [identifier] SDI identifier.
@@ -38,7 +38,7 @@ export declare const UpdateApiAxiosParamCreator: (configuration?: Configuration)
38
38
  */
39
39
  updateGet: (companyId?: number, identifier?: string, prestatore?: string, unread?: boolean, sendId?: number, state?: UpdateGetStateEnum, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40
40
  /**
41
- * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
41
+ * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
42
42
  * @summary Get an update by id
43
43
  * @param {number} id Item id
44
44
  * @param {*} [options] Override http request option.
@@ -51,7 +51,7 @@ export declare const UpdateApiAxiosParamCreator: (configuration?: Configuration)
51
51
  */
52
52
  export declare const UpdateApiFp: (configuration?: Configuration) => {
53
53
  /**
54
- * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
54
+ * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
55
55
  * @summary List updates
56
56
  * @param {number} [companyId] Company id
57
57
  * @param {string} [identifier] SDI identifier.
@@ -71,7 +71,7 @@ export declare const UpdateApiFp: (configuration?: Configuration) => {
71
71
  */
72
72
  updateGet(companyId?: number, identifier?: string, prestatore?: string, unread?: boolean, sendId?: number, state?: UpdateGetStateEnum, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Update>>>;
73
73
  /**
74
- * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
74
+ * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
75
75
  * @summary Get an update by id
76
76
  * @param {number} id Item id
77
77
  * @param {*} [options] Override http request option.
@@ -84,7 +84,7 @@ export declare const UpdateApiFp: (configuration?: Configuration) => {
84
84
  */
85
85
  export declare const UpdateApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
86
86
  /**
87
- * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
87
+ * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
88
88
  * @summary List updates
89
89
  * @param {number} [companyId] Company id
90
90
  * @param {string} [identifier] SDI identifier.
@@ -104,7 +104,7 @@ export declare const UpdateApiFactory: (configuration?: Configuration, basePath?
104
104
  */
105
105
  updateGet(companyId?: number, identifier?: string, prestatore?: string, unread?: boolean, sendId?: number, state?: UpdateGetStateEnum, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Update>>;
106
106
  /**
107
- * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
107
+ * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
108
108
  * @summary Get an update by id
109
109
  * @param {number} id Item id
110
110
  * @param {*} [options] Override http request option.
@@ -117,7 +117,7 @@ export declare const UpdateApiFactory: (configuration?: Configuration, basePath?
117
117
  */
118
118
  export interface UpdateApiInterface {
119
119
  /**
120
- * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
120
+ * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
121
121
  * @summary List updates
122
122
  * @param {number} [companyId] Company id
123
123
  * @param {string} [identifier] SDI identifier.
@@ -137,7 +137,7 @@ export interface UpdateApiInterface {
137
137
  */
138
138
  updateGet(companyId?: number, identifier?: string, prestatore?: string, unread?: boolean, sendId?: number, state?: UpdateGetStateEnum, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Update>>;
139
139
  /**
140
- * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
140
+ * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
141
141
  * @summary Get an update by id
142
142
  * @param {number} id Item id
143
143
  * @param {*} [options] Override http request option.
@@ -150,7 +150,7 @@ export interface UpdateApiInterface {
150
150
  */
151
151
  export declare class UpdateApi extends BaseAPI implements UpdateApiInterface {
152
152
  /**
153
- * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
153
+ * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
154
154
  * @summary List updates
155
155
  * @param {number} [companyId] Company id
156
156
  * @param {string} [identifier] SDI identifier.
@@ -170,7 +170,7 @@ export declare class UpdateApi extends BaseAPI implements UpdateApiInterface {
170
170
  */
171
171
  updateGet(companyId?: number, identifier?: string, prestatore?: string, unread?: boolean, sendId?: number, state?: UpdateGetStateEnum, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Update[], any, {}>>;
172
172
  /**
173
- * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
173
+ * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
174
174
  * @summary Get an update by id
175
175
  * @param {number} id Item id
176
176
  * @param {*} [options] Override http request option.