@invoicetronic/ts-sdk 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/api.ts +1 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +1 -1
  8. package/dist/api.js +1 -1
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +1 -1
  16. package/dist/esm/api.js +1 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/src/api/company-api.d.ts +1 -1
  26. package/dist/esm/src/api/company-api.js +1 -1
  27. package/dist/esm/src/api/export-api.d.ts +1 -1
  28. package/dist/esm/src/api/export-api.js +1 -1
  29. package/dist/esm/src/api/health-api.d.ts +1 -1
  30. package/dist/esm/src/api/health-api.js +1 -1
  31. package/dist/esm/src/api/log-api.d.ts +1 -1
  32. package/dist/esm/src/api/log-api.js +1 -1
  33. package/dist/esm/src/api/receive-api.d.ts +16 -16
  34. package/dist/esm/src/api/receive-api.js +13 -13
  35. package/dist/esm/src/api/send-api.d.ts +16 -11
  36. package/dist/esm/src/api/send-api.js +19 -12
  37. package/dist/esm/src/api/status-api.d.ts +1 -1
  38. package/dist/esm/src/api/status-api.js +1 -1
  39. package/dist/esm/src/api/update-api.d.ts +1 -1
  40. package/dist/esm/src/api/update-api.js +1 -1
  41. package/dist/esm/src/api/webhook-api.d.ts +1 -1
  42. package/dist/esm/src/api/webhook-api.js +1 -1
  43. package/dist/esm/src/models/company.d.ts +3 -3
  44. package/dist/esm/src/models/company.js +1 -1
  45. package/dist/esm/src/models/document-data.d.ts +1 -1
  46. package/dist/esm/src/models/document-data.js +1 -1
  47. package/dist/esm/src/models/event.d.ts +2 -2
  48. package/dist/esm/src/models/event.js +1 -1
  49. package/dist/esm/src/models/model-error.d.ts +1 -1
  50. package/dist/esm/src/models/model-error.js +1 -1
  51. package/dist/esm/src/models/problem-details.d.ts +1 -1
  52. package/dist/esm/src/models/problem-details.js +1 -1
  53. package/dist/esm/src/models/receive.d.ts +5 -5
  54. package/dist/esm/src/models/receive.js +1 -1
  55. package/dist/esm/src/models/send-reduced.d.ts +17 -1
  56. package/dist/esm/src/models/send-reduced.js +12 -2
  57. package/dist/esm/src/models/send.d.ts +21 -5
  58. package/dist/esm/src/models/send.js +12 -1
  59. package/dist/esm/src/models/status.d.ts +9 -1
  60. package/dist/esm/src/models/status.js +1 -1
  61. package/dist/esm/src/models/update.d.ts +2 -2
  62. package/dist/esm/src/models/update.js +1 -1
  63. package/dist/esm/src/models/web-hook-history.d.ts +7 -3
  64. package/dist/esm/src/models/web-hook-history.js +1 -1
  65. package/dist/esm/src/models/web-hook.d.ts +8 -4
  66. package/dist/esm/src/models/web-hook.js +1 -1
  67. package/dist/index.d.ts +1 -1
  68. package/dist/index.js +1 -1
  69. package/dist/src/api/company-api.d.ts +1 -1
  70. package/dist/src/api/company-api.js +1 -1
  71. package/dist/src/api/export-api.d.ts +1 -1
  72. package/dist/src/api/export-api.js +1 -1
  73. package/dist/src/api/health-api.d.ts +1 -1
  74. package/dist/src/api/health-api.js +1 -1
  75. package/dist/src/api/log-api.d.ts +1 -1
  76. package/dist/src/api/log-api.js +1 -1
  77. package/dist/src/api/receive-api.d.ts +16 -16
  78. package/dist/src/api/receive-api.js +13 -13
  79. package/dist/src/api/send-api.d.ts +16 -11
  80. package/dist/src/api/send-api.js +19 -12
  81. package/dist/src/api/status-api.d.ts +1 -1
  82. package/dist/src/api/status-api.js +1 -1
  83. package/dist/src/api/update-api.d.ts +1 -1
  84. package/dist/src/api/update-api.js +1 -1
  85. package/dist/src/api/webhook-api.d.ts +1 -1
  86. package/dist/src/api/webhook-api.js +1 -1
  87. package/dist/src/models/company.d.ts +3 -3
  88. package/dist/src/models/company.js +1 -1
  89. package/dist/src/models/document-data.d.ts +1 -1
  90. package/dist/src/models/document-data.js +1 -1
  91. package/dist/src/models/event.d.ts +2 -2
  92. package/dist/src/models/event.js +1 -1
  93. package/dist/src/models/model-error.d.ts +1 -1
  94. package/dist/src/models/model-error.js +1 -1
  95. package/dist/src/models/problem-details.d.ts +1 -1
  96. package/dist/src/models/problem-details.js +1 -1
  97. package/dist/src/models/receive.d.ts +5 -5
  98. package/dist/src/models/receive.js +1 -1
  99. package/dist/src/models/send-reduced.d.ts +17 -1
  100. package/dist/src/models/send-reduced.js +13 -1
  101. package/dist/src/models/send.d.ts +21 -5
  102. package/dist/src/models/send.js +13 -2
  103. package/dist/src/models/status.d.ts +9 -1
  104. package/dist/src/models/status.js +1 -1
  105. package/dist/src/models/update.d.ts +2 -2
  106. package/dist/src/models/update.js +1 -1
  107. package/dist/src/models/web-hook-history.d.ts +7 -3
  108. package/dist/src/models/web-hook-history.js +1 -1
  109. package/dist/src/models/web-hook.d.ts +8 -4
  110. package/dist/src/models/web-hook.js +1 -1
  111. package/docs/Company.md +4 -4
  112. package/docs/Event.md +3 -3
  113. package/docs/Receive.md +12 -12
  114. package/docs/ReceiveApi.md +3 -3
  115. package/docs/Send.md +15 -13
  116. package/docs/SendApi.md +4 -1
  117. package/docs/SendReduced.md +2 -0
  118. package/docs/Status.md +4 -0
  119. package/docs/Update.md +3 -3
  120. package/docs/WebHook.md +7 -5
  121. package/docs/WebHookHistory.md +6 -4
  122. package/index.ts +1 -1
  123. package/package.json +1 -1
  124. package/src/api/company-api.ts +1 -1
  125. package/src/api/export-api.ts +1 -1
  126. package/src/api/health-api.ts +1 -1
  127. package/src/api/log-api.ts +1 -1
  128. package/src/api/receive-api.ts +16 -16
  129. package/src/api/send-api.ts +23 -14
  130. package/src/api/status-api.ts +1 -1
  131. package/src/api/update-api.ts +1 -1
  132. package/src/api/webhook-api.ts +1 -1
  133. package/src/models/company.ts +3 -3
  134. package/src/models/document-data.ts +1 -1
  135. package/src/models/event.ts +2 -2
  136. package/src/models/model-error.ts +1 -1
  137. package/src/models/problem-details.ts +1 -1
  138. package/src/models/receive.ts +5 -5
  139. package/src/models/send-reduced.ts +20 -1
  140. package/src/models/send.ts +22 -5
  141. package/src/models/status.ts +9 -1
  142. package/src/models/update.ts +2 -2
  143. package/src/models/web-hook-history.ts +7 -3
  144. package/src/models/web-hook.ts +8 -4
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
87
+ * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Use `ids` to fetch specific Send records in a single call (comma-separated, up to 100). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
88
88
  * @summary List invoices
89
89
  * @param {number} [companyId] Company id
90
90
  * @param {string} [identifier] SDI identifier.
@@ -99,6 +99,7 @@ const SendApiAxiosParamCreator = function (configuration) {
99
99
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
100
100
  * @param {string} [documentNumber] Document number.
101
101
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
102
+ * @param {string} [ids] Comma-separated list of Send ids (max 100). Filters the collection to the matching rows; unknown or unauthorized ids are silently skipped.
102
103
  * @param {number} [page] Page number.
103
104
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
104
105
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
@@ -106,7 +107,7 @@ const SendApiAxiosParamCreator = function (configuration) {
106
107
  * @param {*} [options] Override http request option.
107
108
  * @throws {RequiredError}
108
109
  */
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 = {}) {
110
+ sendGet: (companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, ids_1, page_1, pageSize_1, sort_1, q_1, ...args_1) => __awaiter(this, [companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, ids_1, page_1, pageSize_1, sort_1, q_1, ...args_1], void 0, function* (companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options = {}) {
110
111
  const localVarPath = `/send`;
111
112
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
113
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -171,6 +172,9 @@ const SendApiAxiosParamCreator = function (configuration) {
171
172
  if (includePayload !== undefined) {
172
173
  localVarQueryParameter['include_payload'] = includePayload;
173
174
  }
175
+ if (ids !== undefined) {
176
+ localVarQueryParameter['ids'] = ids;
177
+ }
174
178
  if (page !== undefined) {
175
179
  localVarQueryParameter['page'] = page;
176
180
  }
@@ -593,7 +597,7 @@ const SendApiFp = function (configuration) {
593
597
  });
594
598
  },
595
599
  /**
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/).
600
+ * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Use `ids` to fetch specific Send records in a single call (comma-separated, up to 100). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
597
601
  * @summary List invoices
598
602
  * @param {number} [companyId] Company id
599
603
  * @param {string} [identifier] SDI identifier.
@@ -608,6 +612,7 @@ const SendApiFp = function (configuration) {
608
612
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
609
613
  * @param {string} [documentNumber] Document number.
610
614
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
615
+ * @param {string} [ids] Comma-separated list of Send ids (max 100). Filters the collection to the matching rows; unknown or unauthorized ids are silently skipped.
611
616
  * @param {number} [page] Page number.
612
617
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
613
618
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
@@ -615,10 +620,10 @@ const SendApiFp = function (configuration) {
615
620
  * @param {*} [options] Override http request option.
616
621
  * @throws {RequiredError}
617
622
  */
618
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
623
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options) {
619
624
  return __awaiter(this, void 0, void 0, function* () {
620
625
  var _a, _b, _c;
621
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
626
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options);
622
627
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
623
628
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
624
629
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -814,7 +819,7 @@ const SendApiFactory = function (configuration, basePath, axios) {
814
819
  return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
815
820
  },
816
821
  /**
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/).
822
+ * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Use `ids` to fetch specific Send records in a single call (comma-separated, up to 100). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
818
823
  * @summary List invoices
819
824
  * @param {number} [companyId] Company id
820
825
  * @param {string} [identifier] SDI identifier.
@@ -829,6 +834,7 @@ const SendApiFactory = function (configuration, basePath, axios) {
829
834
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
830
835
  * @param {string} [documentNumber] Document number.
831
836
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
837
+ * @param {string} [ids] Comma-separated list of Send ids (max 100). Filters the collection to the matching rows; unknown or unauthorized ids are silently skipped.
832
838
  * @param {number} [page] Page number.
833
839
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
834
840
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
@@ -836,8 +842,8 @@ const SendApiFactory = function (configuration, basePath, axios) {
836
842
  * @param {*} [options] Override http request option.
837
843
  * @throws {RequiredError}
838
844
  */
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));
845
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options) {
846
+ return localVarFp.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options).then((request) => request(axios, basePath));
841
847
  },
842
848
  /**
843
849
  * Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
@@ -967,7 +973,7 @@ class SendApi extends base_1.BaseAPI {
967
973
  return (0, exports.SendApiFp)(this.configuration).sendFilePost(file, validate, signature, options).then((request) => request(this.axios, this.basePath));
968
974
  }
969
975
  /**
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/).
976
+ * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Use `ids` to fetch specific Send records in a single call (comma-separated, up to 100). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
971
977
  * @summary List invoices
972
978
  * @param {number} [companyId] Company id
973
979
  * @param {string} [identifier] SDI identifier.
@@ -982,6 +988,7 @@ class SendApi extends base_1.BaseAPI {
982
988
  * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
983
989
  * @param {string} [documentNumber] Document number.
984
990
  * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
991
+ * @param {string} [ids] Comma-separated list of Send ids (max 100). Filters the collection to the matching rows; unknown or unauthorized ids are silently skipped.
985
992
  * @param {number} [page] Page number.
986
993
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
987
994
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
@@ -989,8 +996,8 @@ class SendApi extends base_1.BaseAPI {
989
996
  * @param {*} [options] Override http request option.
990
997
  * @throws {RequiredError}
991
998
  */
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));
999
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options) {
1000
+ return (0, exports.SendApiFp)(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, ids, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
994
1001
  }
995
1002
  /**
996
1003
  * Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,7 +14,7 @@
14
14
  */
15
15
  export interface Company {
16
16
  /**
17
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
17
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
18
18
  */
19
19
  'id'?: number;
20
20
  /**
@@ -26,7 +26,7 @@ export interface Company {
26
26
  */
27
27
  'version'?: number;
28
28
  /**
29
- * User id.
29
+ * User id. It is set automatically based on the authenticated user.
30
30
  */
31
31
  'user_id'?: number;
32
32
  /**
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,7 +14,7 @@
14
14
  */
15
15
  export interface Event {
16
16
  /**
17
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
17
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
18
18
  */
19
19
  'id'?: number;
20
20
  /**
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,7 +15,7 @@ import type { DocumentData } from './document-data';
15
15
  */
16
16
  export interface Receive {
17
17
  /**
18
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
18
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
19
19
  */
20
20
  'id'?: number;
21
21
  /**
@@ -27,11 +27,11 @@ export interface Receive {
27
27
  */
28
28
  'version'?: number;
29
29
  /**
30
- * User id.
30
+ * User id. It is set automatically based on the authenticated user.
31
31
  */
32
32
  'user_id'?: number;
33
33
  /**
34
- * Company id. On send, this is the sender and must be set in advance. On receive, it will be automatically set based on the recipient\'s VAT number. If a matching company is not found, the invoice will be rejected until the company is created.
34
+ * Company id. It is set automatically based on the VAT number extracted from the invoice payload (the sender for `send`, the recipient for `receive`).
35
35
  */
36
36
  'company_id'?: number;
37
37
  /**
@@ -47,7 +47,7 @@ export interface Receive {
47
47
  */
48
48
  'identifier'?: string | null;
49
49
  /**
50
- * Xml file name.
50
+ * Xml file name. If not provided on send, it will be auto-generated.
51
51
  */
52
52
  'file_name'?: string | null;
53
53
  /**
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,4 +36,20 @@ export interface SendReduced {
36
36
  * When the invoice was sent to SDI.
37
37
  */
38
38
  'date_sent'?: string | null;
39
+ /**
40
+ * Current SDI state of the invoice. Reflects the most recent update received from SDI.
41
+ */
42
+ 'latest_state'?: SendReducedLatestStateEnum | null;
39
43
  }
44
+ export declare const SendReducedLatestStateEnum: {
45
+ readonly Inviato: "Inviato";
46
+ readonly Consegnato: "Consegnato";
47
+ readonly NonConsegnato: "NonConsegnato";
48
+ readonly Scartato: "Scartato";
49
+ readonly AccettatoDalDestinatario: "AccettatoDalDestinatario";
50
+ readonly RifiutatoDalDestinatario: "RifiutatoDalDestinatario";
51
+ readonly ImpossibilitaDiRecapito: "ImpossibilitaDiRecapito";
52
+ readonly DecorrenzaTermini: "DecorrenzaTermini";
53
+ readonly AttestazioneTrasmissioneFattura: "AttestazioneTrasmissioneFattura";
54
+ };
55
+ export type SendReducedLatestStateEnum = typeof SendReducedLatestStateEnum[keyof typeof SendReducedLatestStateEnum];
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,3 +13,15 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SendReducedLatestStateEnum = void 0;
17
+ exports.SendReducedLatestStateEnum = {
18
+ Inviato: 'Inviato',
19
+ Consegnato: 'Consegnato',
20
+ NonConsegnato: 'NonConsegnato',
21
+ Scartato: 'Scartato',
22
+ AccettatoDalDestinatario: 'AccettatoDalDestinatario',
23
+ RifiutatoDalDestinatario: 'RifiutatoDalDestinatario',
24
+ ImpossibilitaDiRecapito: 'ImpossibilitaDiRecapito',
25
+ DecorrenzaTermini: 'DecorrenzaTermini',
26
+ AttestazioneTrasmissioneFattura: 'AttestazioneTrasmissioneFattura'
27
+ };
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,7 +16,7 @@ import type { DocumentData } from './document-data';
16
16
  */
17
17
  export interface Send {
18
18
  /**
19
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
19
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
20
20
  */
21
21
  'id'?: number;
22
22
  /**
@@ -28,11 +28,11 @@ export interface Send {
28
28
  */
29
29
  'version'?: number;
30
30
  /**
31
- * User id.
31
+ * User id. It is set automatically based on the authenticated user.
32
32
  */
33
33
  'user_id'?: number;
34
34
  /**
35
- * Company id. On send, this is the sender and must be set in advance. On receive, it will be automatically set based on the recipient\'s VAT number. If a matching company is not found, the invoice will be rejected until the company is created.
35
+ * Company id. It is set automatically based on the VAT number extracted from the invoice payload (the sender for `send`, the recipient for `receive`).
36
36
  */
37
37
  'company_id'?: number;
38
38
  /**
@@ -48,7 +48,7 @@ export interface Send {
48
48
  */
49
49
  'identifier'?: string | null;
50
50
  /**
51
- * Xml file name.
51
+ * Xml file name. If not provided on send, it will be auto-generated.
52
52
  */
53
53
  'file_name'?: string | null;
54
54
  /**
@@ -85,6 +85,10 @@ export interface Send {
85
85
  'meta_data'?: {
86
86
  [key: string]: string;
87
87
  } | null;
88
+ /**
89
+ * Current SDI state of the invoice. Reflects the most recent update received from SDI. Null when no update has been received yet.
90
+ */
91
+ 'latest_state'?: SendLatestStateEnum | null;
88
92
  'company'?: Company;
89
93
  }
90
94
  export declare const SendEncodingEnum: {
@@ -92,3 +96,15 @@ export declare const SendEncodingEnum: {
92
96
  readonly Base64: "Base64";
93
97
  };
94
98
  export type SendEncodingEnum = typeof SendEncodingEnum[keyof typeof SendEncodingEnum];
99
+ export declare const SendLatestStateEnum: {
100
+ readonly Inviato: "Inviato";
101
+ readonly Consegnato: "Consegnato";
102
+ readonly NonConsegnato: "NonConsegnato";
103
+ readonly Scartato: "Scartato";
104
+ readonly AccettatoDalDestinatario: "AccettatoDalDestinatario";
105
+ readonly RifiutatoDalDestinatario: "RifiutatoDalDestinatario";
106
+ readonly ImpossibilitaDiRecapito: "ImpossibilitaDiRecapito";
107
+ readonly DecorrenzaTermini: "DecorrenzaTermini";
108
+ readonly AttestazioneTrasmissioneFattura: "AttestazioneTrasmissioneFattura";
109
+ };
110
+ export type SendLatestStateEnum = typeof SendLatestStateEnum[keyof typeof SendLatestStateEnum];
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,8 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SendEncodingEnum = void 0;
16
+ exports.SendLatestStateEnum = exports.SendEncodingEnum = void 0;
17
17
  exports.SendEncodingEnum = {
18
18
  Xml: 'Xml',
19
19
  Base64: 'Base64'
20
20
  };
21
+ exports.SendLatestStateEnum = {
22
+ Inviato: 'Inviato',
23
+ Consegnato: 'Consegnato',
24
+ NonConsegnato: 'NonConsegnato',
25
+ Scartato: 'Scartato',
26
+ AccettatoDalDestinatario: 'AccettatoDalDestinatario',
27
+ RifiutatoDalDestinatario: 'RifiutatoDalDestinatario',
28
+ ImpossibilitaDiRecapito: 'ImpossibilitaDiRecapito',
29
+ DecorrenzaTermini: 'DecorrenzaTermini',
30
+ AttestazioneTrasmissioneFattura: 'AttestazioneTrasmissioneFattura'
31
+ };
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,4 +21,12 @@ export interface Status {
21
21
  * Signatures left.
22
22
  */
23
23
  'signature_left'?: number;
24
+ /**
25
+ * Whether the current API key has an active Desk seat.
26
+ */
27
+ 'has_active_seat'?: boolean;
28
+ /**
29
+ * Whether the current API key is a sub-key (restricted key).
30
+ */
31
+ 'is_sub_key'?: boolean;
24
32
  }
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1.6.4
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,7 +15,7 @@ import type { SendReduced } from './send-reduced';
15
15
  */
16
16
  export interface Update {
17
17
  /**
18
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
18
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
19
19
  */
20
20
  'id'?: number;
21
21
  /**
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.4
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).