@invoicetronic/ts-sdk 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/api.ts +2 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +2 -1
  8. package/dist/api.js +2 -1
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +2 -1
  16. package/dist/esm/api.js +2 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/src/api/company-api.d.ts +16 -11
  26. package/dist/esm/src/api/company-api.js +20 -31
  27. package/dist/esm/src/api/export-api.d.ts +11 -17
  28. package/dist/esm/src/api/export-api.js +6 -14
  29. package/dist/esm/src/api/health-api.d.ts +74 -0
  30. package/dist/esm/src/api/health-api.js +117 -0
  31. package/dist/esm/src/api/log-api.d.ts +11 -6
  32. package/dist/esm/src/api/log-api.js +16 -15
  33. package/dist/esm/src/api/receive-api.d.ts +16 -11
  34. package/dist/esm/src/api/receive-api.js +20 -25
  35. package/dist/esm/src/api/send-api.d.ts +56 -52
  36. package/dist/esm/src/api/send-api.js +76 -105
  37. package/dist/esm/src/api/status-api.d.ts +1 -1
  38. package/dist/esm/src/api/status-api.js +2 -5
  39. package/dist/esm/src/api/update-api.d.ts +11 -11
  40. package/dist/esm/src/api/update-api.js +10 -16
  41. package/dist/esm/src/api/webhook-api.d.ts +1 -1
  42. package/dist/esm/src/api/webhook-api.js +2 -23
  43. package/dist/esm/src/models/company.d.ts +1 -1
  44. package/dist/esm/src/models/company.js +1 -1
  45. package/dist/esm/src/models/document-data.d.ts +15 -0
  46. package/dist/esm/src/models/document-data.js +14 -0
  47. package/dist/esm/src/models/event.d.ts +5 -1
  48. package/dist/esm/src/models/event.js +1 -1
  49. package/dist/esm/src/models/index.d.ts +4 -0
  50. package/dist/esm/src/models/index.js +4 -0
  51. package/dist/esm/src/models/model-error.d.ts +28 -0
  52. package/dist/esm/src/models/model-error.js +14 -0
  53. package/dist/esm/src/models/problem-details.d.ts +19 -0
  54. package/dist/esm/src/models/problem-details.js +14 -0
  55. package/dist/esm/src/models/receive.d.ts +6 -2
  56. package/dist/esm/src/models/receive.js +1 -1
  57. package/dist/esm/src/models/send-reduced.d.ts +39 -0
  58. package/dist/esm/src/models/send-reduced.js +14 -0
  59. package/dist/esm/src/models/send.d.ts +6 -2
  60. package/dist/esm/src/models/send.js +1 -1
  61. package/dist/esm/src/models/status.d.ts +1 -1
  62. package/dist/esm/src/models/status.js +1 -1
  63. package/dist/esm/src/models/update.d.ts +1 -1
  64. package/dist/esm/src/models/update.js +1 -1
  65. package/dist/esm/src/models/web-hook-history.d.ts +1 -1
  66. package/dist/esm/src/models/web-hook-history.js +1 -1
  67. package/dist/esm/src/models/web-hook.d.ts +2 -2
  68. package/dist/esm/src/models/web-hook.js +1 -1
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/src/api/company-api.d.ts +16 -11
  72. package/dist/src/api/company-api.js +19 -30
  73. package/dist/src/api/export-api.d.ts +11 -17
  74. package/dist/src/api/export-api.js +6 -14
  75. package/dist/src/api/health-api.d.ts +74 -0
  76. package/dist/src/api/health-api.js +124 -0
  77. package/dist/src/api/log-api.d.ts +11 -6
  78. package/dist/src/api/log-api.js +15 -14
  79. package/dist/src/api/receive-api.d.ts +16 -11
  80. package/dist/src/api/receive-api.js +19 -24
  81. package/dist/src/api/send-api.d.ts +56 -52
  82. package/dist/src/api/send-api.js +75 -104
  83. package/dist/src/api/status-api.d.ts +1 -1
  84. package/dist/src/api/status-api.js +1 -4
  85. package/dist/src/api/update-api.d.ts +11 -11
  86. package/dist/src/api/update-api.js +9 -15
  87. package/dist/src/api/webhook-api.d.ts +1 -1
  88. package/dist/src/api/webhook-api.js +1 -22
  89. package/dist/src/models/company.d.ts +1 -1
  90. package/dist/src/models/company.js +1 -1
  91. package/dist/src/models/document-data.d.ts +15 -0
  92. package/dist/src/models/document-data.js +15 -0
  93. package/dist/src/models/event.d.ts +5 -1
  94. package/dist/src/models/event.js +1 -1
  95. package/dist/src/models/index.d.ts +4 -0
  96. package/dist/src/models/index.js +4 -0
  97. package/dist/src/models/model-error.d.ts +28 -0
  98. package/dist/src/models/model-error.js +15 -0
  99. package/dist/src/models/problem-details.d.ts +19 -0
  100. package/dist/src/models/problem-details.js +15 -0
  101. package/dist/src/models/receive.d.ts +6 -2
  102. package/dist/src/models/receive.js +1 -1
  103. package/dist/src/models/send-reduced.d.ts +39 -0
  104. package/dist/src/models/send-reduced.js +15 -0
  105. package/dist/src/models/send.d.ts +6 -2
  106. package/dist/src/models/send.js +1 -1
  107. package/dist/src/models/status.d.ts +1 -1
  108. package/dist/src/models/status.js +1 -1
  109. package/dist/src/models/update.d.ts +1 -1
  110. package/dist/src/models/update.js +1 -1
  111. package/dist/src/models/web-hook-history.d.ts +1 -1
  112. package/dist/src/models/web-hook-history.js +1 -1
  113. package/dist/src/models/web-hook.d.ts +2 -2
  114. package/dist/src/models/web-hook.js +1 -1
  115. package/docs/CompanyApi.md +11 -15
  116. package/docs/DocumentData.md +22 -0
  117. package/docs/Error.md +25 -0
  118. package/docs/Event.md +2 -0
  119. package/docs/ExportApi.md +3 -3
  120. package/docs/HealthApi.md +54 -0
  121. package/docs/LogApi.md +6 -4
  122. package/docs/ProblemDetails.md +28 -0
  123. package/docs/Receive.md +3 -1
  124. package/docs/ReceiveApi.md +9 -10
  125. package/docs/Send.md +3 -1
  126. package/docs/SendApi.md +37 -48
  127. package/docs/SendReduced.md +29 -0
  128. package/docs/StatusApi.md +1 -1
  129. package/docs/UpdateApi.md +4 -5
  130. package/docs/WebHook.md +1 -1
  131. package/docs/WebhookApi.md +7 -14
  132. package/index.ts +1 -1
  133. package/package.json +1 -1
  134. package/src/api/company-api.ts +23 -40
  135. package/src/api/export-api.ts +11 -21
  136. package/src/api/health-api.ts +131 -0
  137. package/src/api/log-api.ts +18 -19
  138. package/src/api/receive-api.ts +23 -32
  139. package/src/api/send-api.ts +87 -130
  140. package/src/api/status-api.ts +1 -5
  141. package/src/api/update-api.ts +11 -21
  142. package/src/api/webhook-api.ts +1 -31
  143. package/src/models/company.ts +1 -1
  144. package/src/models/document-data.ts +21 -0
  145. package/src/models/event.ts +5 -1
  146. package/src/models/index.ts +4 -0
  147. package/src/models/model-error.ts +34 -0
  148. package/src/models/problem-details.ts +26 -0
  149. package/src/models/receive.ts +6 -2
  150. package/src/models/send-reduced.ts +45 -0
  151. package/src/models/send.ts +6 -2
  152. package/src/models/status.ts +1 -1
  153. package/src/models/update.ts +1 -1
  154. package/src/models/web-hook-history.ts +1 -1
  155. package/src/models/web-hook.ts +2 -2
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
4
  *
5
- * The version of the OpenAPI document: 1
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,6 @@
12
12
  import type { Configuration } from '../../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../../base';
15
- import type { FatturaOrdinaria } from '../../src/models';
16
15
  import type { Send } from '../../src/models';
17
16
  /**
18
17
  * SendApi - axios parameter creator
@@ -29,7 +28,7 @@ export declare const SendApiAxiosParamCreator: (configuration?: Configuration) =
29
28
  */
30
29
  sendFilePost: (file: File, validate?: boolean, signature?: SendFilePostSignatureEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
30
  /**
32
- * 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/).
31
+ * 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/).
33
32
  * @summary List invoices
34
33
  * @param {number} [companyId] Company id
35
34
  * @param {string} [identifier] SDI identifier.
@@ -47,10 +46,11 @@ export declare const SendApiAxiosParamCreator: (configuration?: Configuration) =
47
46
  * @param {number} [page] Page number.
48
47
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
49
48
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
49
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
50
50
  * @param {*} [options] Override http request option.
51
51
  * @throws {RequiredError}
52
52
  */
53
- sendGet: (companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
53
+ sendGet: (companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
54
54
  /**
55
55
  * 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/).
56
56
  * @summary Get a invoice by id
@@ -80,13 +80,13 @@ export declare const SendApiAxiosParamCreator: (configuration?: Configuration) =
80
80
  /**
81
81
  * 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).
82
82
  * @summary Add an invoice by json
83
- * @param {FatturaOrdinaria} fatturaOrdinaria
83
+ * @param {object} body
84
84
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
85
85
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
86
86
  * @param {*} [options] Override http request option.
87
87
  * @throws {RequiredError}
88
88
  */
89
- sendJsonPost: (fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
89
+ sendJsonPost: (body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
90
90
  /**
91
91
  * 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).
92
92
  * @summary Add an invoice
@@ -108,11 +108,11 @@ export declare const SendApiAxiosParamCreator: (configuration?: Configuration) =
108
108
  /**
109
109
  * 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/).
110
110
  * @summary Validate an invoice by json
111
- * @param {FatturaOrdinaria} fatturaOrdinaria
111
+ * @param {object} body
112
112
  * @param {*} [options] Override http request option.
113
113
  * @throws {RequiredError}
114
114
  */
115
- sendValidateJsonPost: (fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
115
+ sendValidateJsonPost: (body: object, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
116
116
  /**
117
117
  * 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/).
118
118
  * @summary Validate an invoice
@@ -124,21 +124,21 @@ export declare const SendApiAxiosParamCreator: (configuration?: Configuration) =
124
124
  /**
125
125
  * 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/).
126
126
  * @summary Validate an invoice by xml
127
- * @param {FatturaOrdinaria} fatturaOrdinaria
127
+ * @param {object} body
128
128
  * @param {*} [options] Override http request option.
129
129
  * @throws {RequiredError}
130
130
  */
131
- sendValidateXmlPost: (fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
131
+ sendValidateXmlPost: (body: object, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
132
132
  /**
133
133
  * 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).
134
134
  * @summary Add an invoice by xml
135
- * @param {FatturaOrdinaria} fatturaOrdinaria
135
+ * @param {object} body
136
136
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
137
137
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
138
138
  * @param {*} [options] Override http request option.
139
139
  * @throws {RequiredError}
140
140
  */
141
- sendXmlPost: (fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
141
+ sendXmlPost: (body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
142
142
  };
143
143
  /**
144
144
  * SendApi - functional programming interface
@@ -155,7 +155,7 @@ export declare const SendApiFp: (configuration?: Configuration) => {
155
155
  */
156
156
  sendFilePost(file: File, validate?: boolean, signature?: SendFilePostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>>;
157
157
  /**
158
- * 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/).
158
+ * 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/).
159
159
  * @summary List invoices
160
160
  * @param {number} [companyId] Company id
161
161
  * @param {string} [identifier] SDI identifier.
@@ -173,10 +173,11 @@ export declare const SendApiFp: (configuration?: Configuration) => {
173
173
  * @param {number} [page] Page number.
174
174
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
175
175
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
176
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
176
177
  * @param {*} [options] Override http request option.
177
178
  * @throws {RequiredError}
178
179
  */
179
- sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Send>>>;
180
+ sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Send>>>;
180
181
  /**
181
182
  * 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/).
182
183
  * @summary Get a invoice by id
@@ -206,13 +207,13 @@ export declare const SendApiFp: (configuration?: Configuration) => {
206
207
  /**
207
208
  * 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).
208
209
  * @summary Add an invoice by json
209
- * @param {FatturaOrdinaria} fatturaOrdinaria
210
+ * @param {object} body
210
211
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
211
212
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
212
213
  * @param {*} [options] Override http request option.
213
214
  * @throws {RequiredError}
214
215
  */
215
- sendJsonPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>>;
216
+ sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>>;
216
217
  /**
217
218
  * 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).
218
219
  * @summary Add an invoice
@@ -234,11 +235,11 @@ export declare const SendApiFp: (configuration?: Configuration) => {
234
235
  /**
235
236
  * 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/).
236
237
  * @summary Validate an invoice by json
237
- * @param {FatturaOrdinaria} fatturaOrdinaria
238
+ * @param {object} body
238
239
  * @param {*} [options] Override http request option.
239
240
  * @throws {RequiredError}
240
241
  */
241
- sendValidateJsonPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
242
+ sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
242
243
  /**
243
244
  * 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/).
244
245
  * @summary Validate an invoice
@@ -250,21 +251,21 @@ export declare const SendApiFp: (configuration?: Configuration) => {
250
251
  /**
251
252
  * 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/).
252
253
  * @summary Validate an invoice by xml
253
- * @param {FatturaOrdinaria} fatturaOrdinaria
254
+ * @param {object} body
254
255
  * @param {*} [options] Override http request option.
255
256
  * @throws {RequiredError}
256
257
  */
257
- sendValidateXmlPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
258
+ sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
258
259
  /**
259
260
  * 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).
260
261
  * @summary Add an invoice by xml
261
- * @param {FatturaOrdinaria} fatturaOrdinaria
262
+ * @param {object} body
262
263
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
263
264
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
264
265
  * @param {*} [options] Override http request option.
265
266
  * @throws {RequiredError}
266
267
  */
267
- sendXmlPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>>;
268
+ sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>>;
268
269
  };
269
270
  /**
270
271
  * SendApi - factory interface
@@ -281,7 +282,7 @@ export declare const SendApiFactory: (configuration?: Configuration, basePath?:
281
282
  */
282
283
  sendFilePost(file: File, validate?: boolean, signature?: SendFilePostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
283
284
  /**
284
- * 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/).
285
+ * 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/).
285
286
  * @summary List invoices
286
287
  * @param {number} [companyId] Company id
287
288
  * @param {string} [identifier] SDI identifier.
@@ -299,10 +300,11 @@ export declare const SendApiFactory: (configuration?: Configuration, basePath?:
299
300
  * @param {number} [page] Page number.
300
301
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
301
302
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
303
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
302
304
  * @param {*} [options] Override http request option.
303
305
  * @throws {RequiredError}
304
306
  */
305
- sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>>;
307
+ sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>>;
306
308
  /**
307
309
  * 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/).
308
310
  * @summary Get a invoice by id
@@ -332,13 +334,13 @@ export declare const SendApiFactory: (configuration?: Configuration, basePath?:
332
334
  /**
333
335
  * 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).
334
336
  * @summary Add an invoice by json
335
- * @param {FatturaOrdinaria} fatturaOrdinaria
337
+ * @param {object} body
336
338
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
337
339
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
338
340
  * @param {*} [options] Override http request option.
339
341
  * @throws {RequiredError}
340
342
  */
341
- sendJsonPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
343
+ sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
342
344
  /**
343
345
  * 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).
344
346
  * @summary Add an invoice
@@ -360,11 +362,11 @@ export declare const SendApiFactory: (configuration?: Configuration, basePath?:
360
362
  /**
361
363
  * 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/).
362
364
  * @summary Validate an invoice by json
363
- * @param {FatturaOrdinaria} fatturaOrdinaria
365
+ * @param {object} body
364
366
  * @param {*} [options] Override http request option.
365
367
  * @throws {RequiredError}
366
368
  */
367
- sendValidateJsonPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): AxiosPromise<void>;
369
+ sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
368
370
  /**
369
371
  * 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/).
370
372
  * @summary Validate an invoice
@@ -376,21 +378,21 @@ export declare const SendApiFactory: (configuration?: Configuration, basePath?:
376
378
  /**
377
379
  * 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/).
378
380
  * @summary Validate an invoice by xml
379
- * @param {FatturaOrdinaria} fatturaOrdinaria
381
+ * @param {object} body
380
382
  * @param {*} [options] Override http request option.
381
383
  * @throws {RequiredError}
382
384
  */
383
- sendValidateXmlPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): AxiosPromise<void>;
385
+ sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
384
386
  /**
385
387
  * 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).
386
388
  * @summary Add an invoice by xml
387
- * @param {FatturaOrdinaria} fatturaOrdinaria
389
+ * @param {object} body
388
390
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
389
391
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
390
392
  * @param {*} [options] Override http request option.
391
393
  * @throws {RequiredError}
392
394
  */
393
- sendXmlPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
395
+ sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
394
396
  };
395
397
  /**
396
398
  * SendApi - interface
@@ -407,7 +409,7 @@ export interface SendApiInterface {
407
409
  */
408
410
  sendFilePost(file: File, validate?: boolean, signature?: SendFilePostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
409
411
  /**
410
- * 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/).
412
+ * 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/).
411
413
  * @summary List invoices
412
414
  * @param {number} [companyId] Company id
413
415
  * @param {string} [identifier] SDI identifier.
@@ -425,10 +427,11 @@ export interface SendApiInterface {
425
427
  * @param {number} [page] Page number.
426
428
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
427
429
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
430
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
428
431
  * @param {*} [options] Override http request option.
429
432
  * @throws {RequiredError}
430
433
  */
431
- sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>>;
434
+ sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Send>>;
432
435
  /**
433
436
  * 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/).
434
437
  * @summary Get a invoice by id
@@ -458,13 +461,13 @@ export interface SendApiInterface {
458
461
  /**
459
462
  * 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).
460
463
  * @summary Add an invoice by json
461
- * @param {FatturaOrdinaria} fatturaOrdinaria
464
+ * @param {object} body
462
465
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
463
466
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
464
467
  * @param {*} [options] Override http request option.
465
468
  * @throws {RequiredError}
466
469
  */
467
- sendJsonPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
470
+ sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
468
471
  /**
469
472
  * 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).
470
473
  * @summary Add an invoice
@@ -486,11 +489,11 @@ export interface SendApiInterface {
486
489
  /**
487
490
  * 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/).
488
491
  * @summary Validate an invoice by json
489
- * @param {FatturaOrdinaria} fatturaOrdinaria
492
+ * @param {object} body
490
493
  * @param {*} [options] Override http request option.
491
494
  * @throws {RequiredError}
492
495
  */
493
- sendValidateJsonPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): AxiosPromise<void>;
496
+ sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
494
497
  /**
495
498
  * 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/).
496
499
  * @summary Validate an invoice
@@ -502,21 +505,21 @@ export interface SendApiInterface {
502
505
  /**
503
506
  * 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/).
504
507
  * @summary Validate an invoice by xml
505
- * @param {FatturaOrdinaria} fatturaOrdinaria
508
+ * @param {object} body
506
509
  * @param {*} [options] Override http request option.
507
510
  * @throws {RequiredError}
508
511
  */
509
- sendValidateXmlPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): AxiosPromise<void>;
512
+ sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
510
513
  /**
511
514
  * 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).
512
515
  * @summary Add an invoice by xml
513
- * @param {FatturaOrdinaria} fatturaOrdinaria
516
+ * @param {object} body
514
517
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
515
518
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
516
519
  * @param {*} [options] Override http request option.
517
520
  * @throws {RequiredError}
518
521
  */
519
- sendXmlPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
522
+ sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
520
523
  }
521
524
  /**
522
525
  * SendApi - object-oriented interface
@@ -533,7 +536,7 @@ export declare class SendApi extends BaseAPI implements SendApiInterface {
533
536
  */
534
537
  sendFilePost(file: File, validate?: boolean, signature?: SendFilePostSignatureEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Send, any, {}>>;
535
538
  /**
536
- * 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/).
539
+ * 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/).
537
540
  * @summary List invoices
538
541
  * @param {number} [companyId] Company id
539
542
  * @param {string} [identifier] SDI identifier.
@@ -551,10 +554,11 @@ export declare class SendApi extends BaseAPI implements SendApiInterface {
551
554
  * @param {number} [page] Page number.
552
555
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
553
556
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
557
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
554
558
  * @param {*} [options] Override http request option.
555
559
  * @throws {RequiredError}
556
560
  */
557
- sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Send[], any, {}>>;
561
+ sendGet(companyId?: number, identifier?: string, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Send[], any, {}>>;
558
562
  /**
559
563
  * 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/).
560
564
  * @summary Get a invoice by id
@@ -584,13 +588,13 @@ export declare class SendApi extends BaseAPI implements SendApiInterface {
584
588
  /**
585
589
  * 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).
586
590
  * @summary Add an invoice by json
587
- * @param {FatturaOrdinaria} fatturaOrdinaria
591
+ * @param {object} body
588
592
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
589
593
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
590
594
  * @param {*} [options] Override http request option.
591
595
  * @throws {RequiredError}
592
596
  */
593
- sendJsonPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Send, any, {}>>;
597
+ sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Send, any, {}>>;
594
598
  /**
595
599
  * 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).
596
600
  * @summary Add an invoice
@@ -612,11 +616,11 @@ export declare class SendApi extends BaseAPI implements SendApiInterface {
612
616
  /**
613
617
  * 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/).
614
618
  * @summary Validate an invoice by json
615
- * @param {FatturaOrdinaria} fatturaOrdinaria
619
+ * @param {object} body
616
620
  * @param {*} [options] Override http request option.
617
621
  * @throws {RequiredError}
618
622
  */
619
- sendValidateJsonPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
623
+ sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
620
624
  /**
621
625
  * 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/).
622
626
  * @summary Validate an invoice
@@ -628,21 +632,21 @@ export declare class SendApi extends BaseAPI implements SendApiInterface {
628
632
  /**
629
633
  * 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/).
630
634
  * @summary Validate an invoice by xml
631
- * @param {FatturaOrdinaria} fatturaOrdinaria
635
+ * @param {object} body
632
636
  * @param {*} [options] Override http request option.
633
637
  * @throws {RequiredError}
634
638
  */
635
- sendValidateXmlPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
639
+ sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
636
640
  /**
637
641
  * 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).
638
642
  * @summary Add an invoice by xml
639
- * @param {FatturaOrdinaria} fatturaOrdinaria
643
+ * @param {object} body
640
644
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
641
645
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
642
646
  * @param {*} [options] Override http request option.
643
647
  * @throws {RequiredError}
644
648
  */
645
- sendXmlPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Send, any, {}>>;
649
+ sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Send, any, {}>>;
646
650
  }
647
651
  export declare const SendFilePostSignatureEnum: {
648
652
  readonly None: "None";