@invoicetronic/ts-sdk 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/api.ts +1 -0
  4. package/common.ts +2 -1
  5. package/configuration.ts +1 -1
  6. package/dist/api.d.ts +1 -0
  7. package/dist/api.js +1 -0
  8. package/dist/common.d.ts +1 -1
  9. package/dist/common.js +1 -0
  10. package/dist/configuration.js +1 -1
  11. package/dist/esm/api.d.ts +1 -0
  12. package/dist/esm/api.js +1 -0
  13. package/dist/esm/common.d.ts +1 -1
  14. package/dist/esm/common.js +1 -0
  15. package/dist/esm/configuration.js +1 -1
  16. package/dist/esm/src/api/company-api.d.ts +55 -10
  17. package/dist/esm/src/api/company-api.js +87 -11
  18. package/dist/esm/src/api/export-api.d.ts +10 -16
  19. package/dist/esm/src/api/export-api.js +4 -9
  20. package/dist/esm/src/api/health-api.d.ts +74 -0
  21. package/dist/esm/src/api/health-api.js +120 -0
  22. package/dist/esm/src/api/receive-api.d.ts +55 -10
  23. package/dist/esm/src/api/receive-api.js +87 -11
  24. package/dist/esm/src/api/send-api.d.ts +95 -51
  25. package/dist/esm/src/api/send-api.js +143 -67
  26. package/dist/esm/src/api/update-api.d.ts +10 -10
  27. package/dist/esm/src/api/update-api.js +8 -8
  28. package/dist/esm/src/models/event.d.ts +3 -0
  29. package/dist/esm/src/models/index.d.ts +0 -47
  30. package/dist/esm/src/models/index.js +0 -47
  31. package/dist/esm/src/models/receive.d.ts +7 -0
  32. package/dist/esm/src/models/send.d.ts +7 -0
  33. package/dist/esm/src/models/status.d.ts +3 -0
  34. package/dist/esm/src/models/update.d.ts +3 -0
  35. package/dist/esm/src/models/web-hook.d.ts +3 -0
  36. package/dist/src/api/company-api.d.ts +55 -10
  37. package/dist/src/api/company-api.js +87 -11
  38. package/dist/src/api/export-api.d.ts +10 -16
  39. package/dist/src/api/export-api.js +5 -10
  40. package/dist/src/api/health-api.d.ts +74 -0
  41. package/dist/src/api/health-api.js +127 -0
  42. package/dist/src/api/receive-api.d.ts +55 -10
  43. package/dist/src/api/receive-api.js +87 -11
  44. package/dist/src/api/send-api.d.ts +95 -51
  45. package/dist/src/api/send-api.js +143 -67
  46. package/dist/src/api/update-api.d.ts +10 -10
  47. package/dist/src/api/update-api.js +8 -8
  48. package/dist/src/models/event.d.ts +3 -0
  49. package/dist/src/models/index.d.ts +0 -47
  50. package/dist/src/models/index.js +0 -47
  51. package/dist/src/models/receive.d.ts +7 -0
  52. package/dist/src/models/send.d.ts +7 -0
  53. package/dist/src/models/status.d.ts +3 -0
  54. package/dist/src/models/update.d.ts +3 -0
  55. package/dist/src/models/web-hook.d.ts +3 -0
  56. package/docs/CompanyApi.md +59 -2
  57. package/docs/Event.md +1 -0
  58. package/docs/ExportApi.md +2 -2
  59. package/docs/HealthApi.md +54 -0
  60. package/docs/Receive.md +3 -0
  61. package/docs/ReceiveApi.md +58 -2
  62. package/docs/Send.md +3 -0
  63. package/docs/SendApi.md +78 -26
  64. package/docs/Status.md +1 -0
  65. package/docs/Update.md +1 -0
  66. package/docs/UpdateApi.md +2 -2
  67. package/docs/WebHook.md +1 -0
  68. package/package.json +1 -1
  69. package/src/api/company-api.ts +103 -13
  70. package/src/api/export-api.ts +10 -16
  71. package/src/api/health-api.ts +135 -0
  72. package/src/api/receive-api.ts +105 -13
  73. package/src/api/send-api.ts +167 -79
  74. package/src/api/update-api.ts +10 -10
  75. package/src/models/event.ts +3 -0
  76. package/src/models/index.ts +0 -47
  77. package/src/models/receive.ts +7 -0
  78. package/src/models/send.ts +7 -0
  79. package/src/models/status.ts +3 -0
  80. package/src/models/update.ts +3 -0
  81. package/src/models/web-hook.ts +3 -0
  82. package/dist/esm/src/models/allegati.d.ts +0 -18
  83. package/dist/esm/src/models/allegati.js +0 -14
  84. package/dist/esm/src/models/altri-dati-gestionali.d.ts +0 -17
  85. package/dist/esm/src/models/altri-dati-gestionali.js +0 -14
  86. package/dist/esm/src/models/anagrafica.d.ts +0 -18
  87. package/dist/esm/src/models/anagrafica.js +0 -14
  88. package/dist/esm/src/models/cedente-prestatore.d.ts +0 -24
  89. package/dist/esm/src/models/cedente-prestatore.js +0 -14
  90. package/dist/esm/src/models/cessionario-committente.d.ts +0 -21
  91. package/dist/esm/src/models/cessionario-committente.js +0 -14
  92. package/dist/esm/src/models/codice-articolo.d.ts +0 -15
  93. package/dist/esm/src/models/codice-articolo.js +0 -14
  94. package/dist/esm/src/models/contatti-trasmittente.d.ts +0 -15
  95. package/dist/esm/src/models/contatti-trasmittente.js +0 -14
  96. package/dist/esm/src/models/contatti.d.ts +0 -16
  97. package/dist/esm/src/models/contatti.js +0 -14
  98. package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -23
  99. package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.js +0 -14
  100. package/dist/esm/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -18
  101. package/dist/esm/src/models/dati-anagrafici-cessionario-committente.js +0 -14
  102. package/dist/esm/src/models/dati-anagrafici-vettore.d.ts +0 -19
  103. package/dist/esm/src/models/dati-anagrafici-vettore.js +0 -14
  104. package/dist/esm/src/models/dati-anagrafici.d.ts +0 -18
  105. package/dist/esm/src/models/dati-anagrafici.js +0 -14
  106. package/dist/esm/src/models/dati-beni-servizi.d.ts +0 -17
  107. package/dist/esm/src/models/dati-beni-servizi.js +0 -14
  108. package/dist/esm/src/models/dati-bollo.d.ts +0 -15
  109. package/dist/esm/src/models/dati-bollo.js +0 -14
  110. package/dist/esm/src/models/dati-cassa-previdenziale.d.ts +0 -21
  111. package/dist/esm/src/models/dati-cassa-previdenziale.js +0 -14
  112. package/dist/esm/src/models/dati-contratto.d.ts +0 -20
  113. package/dist/esm/src/models/dati-contratto.js +0 -14
  114. package/dist/esm/src/models/dati-convenzione.d.ts +0 -20
  115. package/dist/esm/src/models/dati-convenzione.js +0 -14
  116. package/dist/esm/src/models/dati-ddt.d.ts +0 -16
  117. package/dist/esm/src/models/dati-ddt.js +0 -14
  118. package/dist/esm/src/models/dati-fatture-collegate.d.ts +0 -20
  119. package/dist/esm/src/models/dati-fatture-collegate.js +0 -14
  120. package/dist/esm/src/models/dati-generali-documento.d.ts +0 -29
  121. package/dist/esm/src/models/dati-generali-documento.js +0 -14
  122. package/dist/esm/src/models/dati-generali.d.ts +0 -33
  123. package/dist/esm/src/models/dati-generali.js +0 -14
  124. package/dist/esm/src/models/dati-ordine-acquisto.d.ts +0 -20
  125. package/dist/esm/src/models/dati-ordine-acquisto.js +0 -14
  126. package/dist/esm/src/models/dati-pagamento.d.ts +0 -16
  127. package/dist/esm/src/models/dati-pagamento.js +0 -14
  128. package/dist/esm/src/models/dati-ricezione.d.ts +0 -20
  129. package/dist/esm/src/models/dati-ricezione.js +0 -14
  130. package/dist/esm/src/models/dati-riepilogo.d.ts +0 -21
  131. package/dist/esm/src/models/dati-riepilogo.js +0 -14
  132. package/dist/esm/src/models/dati-ritenuta.d.ts +0 -17
  133. package/dist/esm/src/models/dati-ritenuta.js +0 -14
  134. package/dist/esm/src/models/dati-sal.d.ts +0 -14
  135. package/dist/esm/src/models/dati-sal.js +0 -14
  136. package/dist/esm/src/models/dati-trasmissione.d.ts +0 -21
  137. package/dist/esm/src/models/dati-trasmissione.js +0 -14
  138. package/dist/esm/src/models/dati-trasporto.d.ts +0 -28
  139. package/dist/esm/src/models/dati-trasporto.js +0 -14
  140. package/dist/esm/src/models/dati-veicoli.d.ts +0 -15
  141. package/dist/esm/src/models/dati-veicoli.js +0 -14
  142. package/dist/esm/src/models/dettaglio-linee.d.ts +0 -32
  143. package/dist/esm/src/models/dettaglio-linee.js +0 -14
  144. package/dist/esm/src/models/dettaglio-pagamento.d.ts +0 -34
  145. package/dist/esm/src/models/dettaglio-pagamento.js +0 -14
  146. package/dist/esm/src/models/fattura-elettronica-body.d.ts +0 -23
  147. package/dist/esm/src/models/fattura-elettronica-body.js +0 -14
  148. package/dist/esm/src/models/fattura-elettronica-header.d.ts +0 -24
  149. package/dist/esm/src/models/fattura-elettronica-header.js +0 -14
  150. package/dist/esm/src/models/fattura-ordinaria.d.ts +0 -18
  151. package/dist/esm/src/models/fattura-ordinaria.js +0 -14
  152. package/dist/esm/src/models/fattura-principale.d.ts +0 -15
  153. package/dist/esm/src/models/fattura-principale.js +0 -14
  154. package/dist/esm/src/models/id-fiscale-iva.d.ts +0 -15
  155. package/dist/esm/src/models/id-fiscale-iva.js +0 -14
  156. package/dist/esm/src/models/id-trasmittente.d.ts +0 -15
  157. package/dist/esm/src/models/id-trasmittente.js +0 -14
  158. package/dist/esm/src/models/indirizzo-resa.d.ts +0 -19
  159. package/dist/esm/src/models/indirizzo-resa.js +0 -14
  160. package/dist/esm/src/models/iscrizione-rea.d.ts +0 -18
  161. package/dist/esm/src/models/iscrizione-rea.js +0 -14
  162. package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -18
  163. package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.js +0 -14
  164. package/dist/esm/src/models/rappresentante-fiscale.d.ts +0 -15
  165. package/dist/esm/src/models/rappresentante-fiscale.js +0 -14
  166. package/dist/esm/src/models/sconto-maggiorazione.d.ts +0 -16
  167. package/dist/esm/src/models/sconto-maggiorazione.js +0 -14
  168. package/dist/esm/src/models/sede-cedente-prestatore.d.ts +0 -19
  169. package/dist/esm/src/models/sede-cedente-prestatore.js +0 -14
  170. package/dist/esm/src/models/sede-cessionario-committente.d.ts +0 -19
  171. package/dist/esm/src/models/sede-cessionario-committente.js +0 -14
  172. package/dist/esm/src/models/stabile-organizzazione.d.ts +0 -19
  173. package/dist/esm/src/models/stabile-organizzazione.js +0 -14
  174. package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -15
  175. package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.js +0 -14
  176. package/dist/src/models/allegati.d.ts +0 -18
  177. package/dist/src/models/allegati.js +0 -15
  178. package/dist/src/models/altri-dati-gestionali.d.ts +0 -17
  179. package/dist/src/models/altri-dati-gestionali.js +0 -15
  180. package/dist/src/models/anagrafica.d.ts +0 -18
  181. package/dist/src/models/anagrafica.js +0 -15
  182. package/dist/src/models/cedente-prestatore.d.ts +0 -24
  183. package/dist/src/models/cedente-prestatore.js +0 -15
  184. package/dist/src/models/cessionario-committente.d.ts +0 -21
  185. package/dist/src/models/cessionario-committente.js +0 -15
  186. package/dist/src/models/codice-articolo.d.ts +0 -15
  187. package/dist/src/models/codice-articolo.js +0 -15
  188. package/dist/src/models/contatti-trasmittente.d.ts +0 -15
  189. package/dist/src/models/contatti-trasmittente.js +0 -15
  190. package/dist/src/models/contatti.d.ts +0 -16
  191. package/dist/src/models/contatti.js +0 -15
  192. package/dist/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -23
  193. package/dist/src/models/dati-anagrafici-cedente-prestatore.js +0 -15
  194. package/dist/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -18
  195. package/dist/src/models/dati-anagrafici-cessionario-committente.js +0 -15
  196. package/dist/src/models/dati-anagrafici-vettore.d.ts +0 -19
  197. package/dist/src/models/dati-anagrafici-vettore.js +0 -15
  198. package/dist/src/models/dati-anagrafici.d.ts +0 -18
  199. package/dist/src/models/dati-anagrafici.js +0 -15
  200. package/dist/src/models/dati-beni-servizi.d.ts +0 -17
  201. package/dist/src/models/dati-beni-servizi.js +0 -15
  202. package/dist/src/models/dati-bollo.d.ts +0 -15
  203. package/dist/src/models/dati-bollo.js +0 -15
  204. package/dist/src/models/dati-cassa-previdenziale.d.ts +0 -21
  205. package/dist/src/models/dati-cassa-previdenziale.js +0 -15
  206. package/dist/src/models/dati-contratto.d.ts +0 -20
  207. package/dist/src/models/dati-contratto.js +0 -15
  208. package/dist/src/models/dati-convenzione.d.ts +0 -20
  209. package/dist/src/models/dati-convenzione.js +0 -15
  210. package/dist/src/models/dati-ddt.d.ts +0 -16
  211. package/dist/src/models/dati-ddt.js +0 -15
  212. package/dist/src/models/dati-fatture-collegate.d.ts +0 -20
  213. package/dist/src/models/dati-fatture-collegate.js +0 -15
  214. package/dist/src/models/dati-generali-documento.d.ts +0 -29
  215. package/dist/src/models/dati-generali-documento.js +0 -15
  216. package/dist/src/models/dati-generali.d.ts +0 -33
  217. package/dist/src/models/dati-generali.js +0 -15
  218. package/dist/src/models/dati-ordine-acquisto.d.ts +0 -20
  219. package/dist/src/models/dati-ordine-acquisto.js +0 -15
  220. package/dist/src/models/dati-pagamento.d.ts +0 -16
  221. package/dist/src/models/dati-pagamento.js +0 -15
  222. package/dist/src/models/dati-ricezione.d.ts +0 -20
  223. package/dist/src/models/dati-ricezione.js +0 -15
  224. package/dist/src/models/dati-riepilogo.d.ts +0 -21
  225. package/dist/src/models/dati-riepilogo.js +0 -15
  226. package/dist/src/models/dati-ritenuta.d.ts +0 -17
  227. package/dist/src/models/dati-ritenuta.js +0 -15
  228. package/dist/src/models/dati-sal.d.ts +0 -14
  229. package/dist/src/models/dati-sal.js +0 -15
  230. package/dist/src/models/dati-trasmissione.d.ts +0 -21
  231. package/dist/src/models/dati-trasmissione.js +0 -15
  232. package/dist/src/models/dati-trasporto.d.ts +0 -28
  233. package/dist/src/models/dati-trasporto.js +0 -15
  234. package/dist/src/models/dati-veicoli.d.ts +0 -15
  235. package/dist/src/models/dati-veicoli.js +0 -15
  236. package/dist/src/models/dettaglio-linee.d.ts +0 -32
  237. package/dist/src/models/dettaglio-linee.js +0 -15
  238. package/dist/src/models/dettaglio-pagamento.d.ts +0 -34
  239. package/dist/src/models/dettaglio-pagamento.js +0 -15
  240. package/dist/src/models/fattura-elettronica-body.d.ts +0 -23
  241. package/dist/src/models/fattura-elettronica-body.js +0 -15
  242. package/dist/src/models/fattura-elettronica-header.d.ts +0 -24
  243. package/dist/src/models/fattura-elettronica-header.js +0 -15
  244. package/dist/src/models/fattura-ordinaria.d.ts +0 -18
  245. package/dist/src/models/fattura-ordinaria.js +0 -15
  246. package/dist/src/models/fattura-principale.d.ts +0 -15
  247. package/dist/src/models/fattura-principale.js +0 -15
  248. package/dist/src/models/id-fiscale-iva.d.ts +0 -15
  249. package/dist/src/models/id-fiscale-iva.js +0 -15
  250. package/dist/src/models/id-trasmittente.d.ts +0 -15
  251. package/dist/src/models/id-trasmittente.js +0 -15
  252. package/dist/src/models/indirizzo-resa.d.ts +0 -19
  253. package/dist/src/models/indirizzo-resa.js +0 -15
  254. package/dist/src/models/iscrizione-rea.d.ts +0 -18
  255. package/dist/src/models/iscrizione-rea.js +0 -15
  256. package/dist/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -18
  257. package/dist/src/models/rappresentante-fiscale-cessionario-committente.js +0 -15
  258. package/dist/src/models/rappresentante-fiscale.d.ts +0 -15
  259. package/dist/src/models/rappresentante-fiscale.js +0 -15
  260. package/dist/src/models/sconto-maggiorazione.d.ts +0 -16
  261. package/dist/src/models/sconto-maggiorazione.js +0 -15
  262. package/dist/src/models/sede-cedente-prestatore.d.ts +0 -19
  263. package/dist/src/models/sede-cedente-prestatore.js +0 -15
  264. package/dist/src/models/sede-cessionario-committente.d.ts +0 -19
  265. package/dist/src/models/sede-cessionario-committente.js +0 -15
  266. package/dist/src/models/stabile-organizzazione.d.ts +0 -19
  267. package/dist/src/models/stabile-organizzazione.js +0 -15
  268. package/dist/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -15
  269. package/dist/src/models/terzo-intermediario-osoggetto-emittente.js +0 -15
  270. package/docs/Allegati.md +0 -28
  271. package/docs/AltriDatiGestionali.md +0 -26
  272. package/docs/Anagrafica.md +0 -28
  273. package/docs/CedentePrestatore.md +0 -30
  274. package/docs/CessionarioCommittente.md +0 -26
  275. package/docs/CodiceArticolo.md +0 -22
  276. package/docs/Contatti.md +0 -24
  277. package/docs/ContattiTrasmittente.md +0 -22
  278. package/docs/DatiAnagrafici.md +0 -24
  279. package/docs/DatiAnagraficiCedentePrestatore.md +0 -34
  280. package/docs/DatiAnagraficiCessionarioCommittente.md +0 -24
  281. package/docs/DatiAnagraficiVettore.md +0 -26
  282. package/docs/DatiBeniServizi.md +0 -22
  283. package/docs/DatiBollo.md +0 -22
  284. package/docs/DatiCassaPrevidenziale.md +0 -34
  285. package/docs/DatiContratto.md +0 -32
  286. package/docs/DatiConvenzione.md +0 -32
  287. package/docs/DatiDDT.md +0 -24
  288. package/docs/DatiFattureCollegate.md +0 -32
  289. package/docs/DatiGenerali.md +0 -38
  290. package/docs/DatiGeneraliDocumento.md +0 -42
  291. package/docs/DatiOrdineAcquisto.md +0 -32
  292. package/docs/DatiPagamento.md +0 -22
  293. package/docs/DatiRicezione.md +0 -32
  294. package/docs/DatiRiepilogo.md +0 -34
  295. package/docs/DatiRitenuta.md +0 -26
  296. package/docs/DatiSAL.md +0 -20
  297. package/docs/DatiTrasmissione.md +0 -30
  298. package/docs/DatiTrasporto.md +0 -44
  299. package/docs/DatiVeicoli.md +0 -22
  300. package/docs/DettaglioLinee.md +0 -50
  301. package/docs/DettaglioPagamento.md +0 -60
  302. package/docs/FatturaElettronicaBody.md +0 -28
  303. package/docs/FatturaElettronicaHeader.md +0 -30
  304. package/docs/FatturaOrdinaria.md +0 -24
  305. package/docs/FatturaPrincipale.md +0 -22
  306. package/docs/IdFiscaleIVA.md +0 -22
  307. package/docs/IdTrasmittente.md +0 -22
  308. package/docs/IndirizzoResa.md +0 -30
  309. package/docs/IscrizioneREA.md +0 -28
  310. package/docs/RappresentanteFiscale.md +0 -20
  311. package/docs/RappresentanteFiscaleCessionarioCommittente.md +0 -26
  312. package/docs/ScontoMaggiorazione.md +0 -24
  313. package/docs/SedeCedentePrestatore.md +0 -30
  314. package/docs/SedeCessionarioCommittente.md +0 -30
  315. package/docs/StabileOrganizzazione.md +0 -30
  316. package/docs/TerzoIntermediarioOSoggettoEmittente.md +0 -20
  317. package/src/models/allegati.ts +0 -24
  318. package/src/models/altri-dati-gestionali.ts +0 -23
  319. package/src/models/anagrafica.ts +0 -24
  320. package/src/models/cedente-prestatore.ts +0 -40
  321. package/src/models/cessionario-committente.ts +0 -35
  322. package/src/models/codice-articolo.ts +0 -21
  323. package/src/models/contatti-trasmittente.ts +0 -21
  324. package/src/models/contatti.ts +0 -22
  325. package/src/models/dati-anagrafici-cedente-prestatore.ts +0 -33
  326. package/src/models/dati-anagrafici-cessionario-committente.ts +0 -28
  327. package/src/models/dati-anagrafici-vettore.ts +0 -29
  328. package/src/models/dati-anagrafici.ts +0 -28
  329. package/src/models/dati-beni-servizi.ts +0 -27
  330. package/src/models/dati-bollo.ts +0 -21
  331. package/src/models/dati-cassa-previdenziale.ts +0 -27
  332. package/src/models/dati-contratto.ts +0 -26
  333. package/src/models/dati-convenzione.ts +0 -26
  334. package/src/models/dati-ddt.ts +0 -22
  335. package/src/models/dati-fatture-collegate.ts +0 -26
  336. package/src/models/dati-generali-documento.ts +0 -43
  337. package/src/models/dati-generali.ts +0 -59
  338. package/src/models/dati-ordine-acquisto.ts +0 -26
  339. package/src/models/dati-pagamento.ts +0 -24
  340. package/src/models/dati-ricezione.ts +0 -26
  341. package/src/models/dati-riepilogo.ts +0 -27
  342. package/src/models/dati-ritenuta.ts +0 -23
  343. package/src/models/dati-sal.ts +0 -20
  344. package/src/models/dati-trasmissione.ts +0 -31
  345. package/src/models/dati-trasporto.ts +0 -38
  346. package/src/models/dati-veicoli.ts +0 -21
  347. package/src/models/dettaglio-linee.ts +0 -44
  348. package/src/models/dettaglio-pagamento.ts +0 -40
  349. package/src/models/fattura-elettronica-body.ts +0 -39
  350. package/src/models/fattura-elettronica-header.ts +0 -40
  351. package/src/models/fattura-ordinaria.ts +0 -28
  352. package/src/models/fattura-principale.ts +0 -21
  353. package/src/models/id-fiscale-iva.ts +0 -21
  354. package/src/models/id-trasmittente.ts +0 -21
  355. package/src/models/indirizzo-resa.ts +0 -25
  356. package/src/models/iscrizione-rea.ts +0 -24
  357. package/src/models/rappresentante-fiscale-cessionario-committente.ts +0 -26
  358. package/src/models/rappresentante-fiscale.ts +0 -23
  359. package/src/models/sconto-maggiorazione.ts +0 -22
  360. package/src/models/sede-cedente-prestatore.ts +0 -25
  361. package/src/models/sede-cessionario-committente.ts +0 -25
  362. package/src/models/stabile-organizzazione.ts +0 -25
  363. package/src/models/terzo-intermediario-osoggetto-emittente.ts +0 -23
@@ -84,7 +84,7 @@ const SendApiAxiosParamCreator = function (configuration) {
84
84
  };
85
85
  }),
86
86
  /**
87
- * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
87
+ * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
88
88
  * @summary List invoices
89
89
  * @param {number} [companyId] Company id
90
90
  * @param {string} [identifier] SDI identifier.
@@ -102,10 +102,11 @@ const SendApiAxiosParamCreator = function (configuration) {
102
102
  * @param {number} [page] Page number.
103
103
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
104
104
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
105
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
105
106
  * @param {*} [options] Override http request option.
106
107
  * @throws {RequiredError}
107
108
  */
108
- sendGet: (companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, ...args_1) => __awaiter(this, [companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, ...args_1], void 0, function* (companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options = {}) {
109
+ sendGet: (companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, q_1, ...args_1) => __awaiter(this, [companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, q_1, ...args_1], void 0, function* (companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options = {}) {
109
110
  const localVarPath = `/send`;
110
111
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
111
112
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -179,6 +180,9 @@ const SendApiAxiosParamCreator = function (configuration) {
179
180
  if (sort !== undefined) {
180
181
  localVarQueryParameter['sort'] = sort;
181
182
  }
183
+ if (q !== undefined) {
184
+ localVarQueryParameter['q'] = q;
185
+ }
182
186
  localVarHeaderParameter['Accept'] = 'application/json';
183
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
188
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -225,6 +229,39 @@ const SendApiAxiosParamCreator = function (configuration) {
225
229
  options: localVarRequestOptions,
226
230
  };
227
231
  }),
232
+ /**
233
+ * Retrieve only the payload of a send invoice, without the full invoice metadata. This is useful when you already have the invoice metadata and only need the XML content. The response is a `text/plain` string, identical to the `payload` field returned by the standard GET endpoint with `include_payload=true`. Depending on how the invoice was originally submitted, the payload may be Base64-encoded or plain XML.
234
+ * @summary Get a send invoice payload by id
235
+ * @param {number} id Item id
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ */
239
+ sendIdPayloadGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
240
+ // verify required parameter 'id' is not null or undefined
241
+ (0, common_1.assertParamExists)('sendIdPayloadGet', 'id', id);
242
+ const localVarPath = `/send/{id}/payload`
243
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
244
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
245
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
246
+ let baseOptions;
247
+ if (configuration) {
248
+ baseOptions = configuration.baseOptions;
249
+ }
250
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
251
+ const localVarHeaderParameter = {};
252
+ const localVarQueryParameter = {};
253
+ // authentication Basic required
254
+ // http basic authentication required
255
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
256
+ localVarHeaderParameter['Accept'] = 'application/problem+json';
257
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
260
+ return {
261
+ url: (0, common_1.toPathString)(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ };
264
+ }),
228
265
  /**
229
266
  * Retrieve a send invoice by its SDI identifier. The `identifier` is assigned by the SDI and becomes available after the invoice has been accepted. 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/).
230
267
  * @summary Get a invoice by identifier
@@ -265,15 +302,15 @@ const SendApiAxiosParamCreator = function (configuration) {
265
302
  /**
266
303
  * Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
267
304
  * @summary Add an invoice by json
268
- * @param {FatturaOrdinaria} fatturaOrdinaria
305
+ * @param {object} body
269
306
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
270
307
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
271
308
  * @param {*} [options] Override http request option.
272
309
  * @throws {RequiredError}
273
310
  */
274
- sendJsonPost: (fatturaOrdinaria_1, validate_1, signature_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, validate_1, signature_1, ...args_1], void 0, function* (fatturaOrdinaria, validate, signature, options = {}) {
275
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
276
- (0, common_1.assertParamExists)('sendJsonPost', 'fatturaOrdinaria', fatturaOrdinaria);
311
+ sendJsonPost: (body_1, validate_1, signature_1, ...args_1) => __awaiter(this, [body_1, validate_1, signature_1, ...args_1], void 0, function* (body, validate, signature, options = {}) {
312
+ // verify required parameter 'body' is not null or undefined
313
+ (0, common_1.assertParamExists)('sendJsonPost', 'body', body);
277
314
  const localVarPath = `/send/json`;
278
315
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
316
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -298,7 +335,7 @@ const SendApiAxiosParamCreator = function (configuration) {
298
335
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
299
336
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
300
337
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
301
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
338
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
302
339
  return {
303
340
  url: (0, common_1.toPathString)(localVarUrlObj),
304
341
  options: localVarRequestOptions,
@@ -387,13 +424,13 @@ const SendApiAxiosParamCreator = function (configuration) {
387
424
  /**
388
425
  * Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
389
426
  * @summary Validate an invoice by json
390
- * @param {FatturaOrdinaria} fatturaOrdinaria
427
+ * @param {object} body
391
428
  * @param {*} [options] Override http request option.
392
429
  * @throws {RequiredError}
393
430
  */
394
- sendValidateJsonPost: (fatturaOrdinaria_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, ...args_1], void 0, function* (fatturaOrdinaria, options = {}) {
395
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
396
- (0, common_1.assertParamExists)('sendValidateJsonPost', 'fatturaOrdinaria', fatturaOrdinaria);
431
+ sendValidateJsonPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
432
+ // verify required parameter 'body' is not null or undefined
433
+ (0, common_1.assertParamExists)('sendValidateJsonPost', 'body', body);
397
434
  const localVarPath = `/send/validate/json`;
398
435
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
399
436
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -412,7 +449,7 @@ const SendApiAxiosParamCreator = function (configuration) {
412
449
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
413
450
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
414
451
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
415
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
452
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
416
453
  return {
417
454
  url: (0, common_1.toPathString)(localVarUrlObj),
418
455
  options: localVarRequestOptions,
@@ -455,13 +492,13 @@ const SendApiAxiosParamCreator = function (configuration) {
455
492
  /**
456
493
  * Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
457
494
  * @summary Validate an invoice by xml
458
- * @param {FatturaOrdinaria} fatturaOrdinaria
495
+ * @param {object} body
459
496
  * @param {*} [options] Override http request option.
460
497
  * @throws {RequiredError}
461
498
  */
462
- sendValidateXmlPost: (fatturaOrdinaria_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, ...args_1], void 0, function* (fatturaOrdinaria, options = {}) {
463
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
464
- (0, common_1.assertParamExists)('sendValidateXmlPost', 'fatturaOrdinaria', fatturaOrdinaria);
499
+ sendValidateXmlPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
500
+ // verify required parameter 'body' is not null or undefined
501
+ (0, common_1.assertParamExists)('sendValidateXmlPost', 'body', body);
465
502
  const localVarPath = `/send/validate/xml`;
466
503
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
467
504
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -480,7 +517,7 @@ const SendApiAxiosParamCreator = function (configuration) {
480
517
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
481
518
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
482
519
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
483
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
520
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
484
521
  return {
485
522
  url: (0, common_1.toPathString)(localVarUrlObj),
486
523
  options: localVarRequestOptions,
@@ -489,15 +526,15 @@ const SendApiAxiosParamCreator = function (configuration) {
489
526
  /**
490
527
  * Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
491
528
  * @summary Add an invoice by xml
492
- * @param {FatturaOrdinaria} fatturaOrdinaria
529
+ * @param {object} body
493
530
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
494
531
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
495
532
  * @param {*} [options] Override http request option.
496
533
  * @throws {RequiredError}
497
534
  */
498
- sendXmlPost: (fatturaOrdinaria_1, validate_1, signature_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, validate_1, signature_1, ...args_1], void 0, function* (fatturaOrdinaria, validate, signature, options = {}) {
499
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
500
- (0, common_1.assertParamExists)('sendXmlPost', 'fatturaOrdinaria', fatturaOrdinaria);
535
+ sendXmlPost: (body_1, validate_1, signature_1, ...args_1) => __awaiter(this, [body_1, validate_1, signature_1, ...args_1], void 0, function* (body, validate, signature, options = {}) {
536
+ // verify required parameter 'body' is not null or undefined
537
+ (0, common_1.assertParamExists)('sendXmlPost', 'body', body);
501
538
  const localVarPath = `/send/xml`;
502
539
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
503
540
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -522,7 +559,7 @@ const SendApiAxiosParamCreator = function (configuration) {
522
559
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
523
560
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
524
561
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
525
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
562
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
526
563
  return {
527
564
  url: (0, common_1.toPathString)(localVarUrlObj),
528
565
  options: localVarRequestOptions,
@@ -556,7 +593,7 @@ const SendApiFp = function (configuration) {
556
593
  });
557
594
  },
558
595
  /**
559
- * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
596
+ * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
560
597
  * @summary List invoices
561
598
  * @param {number} [companyId] Company id
562
599
  * @param {string} [identifier] SDI identifier.
@@ -574,13 +611,14 @@ const SendApiFp = function (configuration) {
574
611
  * @param {number} [page] Page number.
575
612
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
576
613
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
614
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
577
615
  * @param {*} [options] Override http request option.
578
616
  * @throws {RequiredError}
579
617
  */
580
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
618
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
581
619
  return __awaiter(this, void 0, void 0, function* () {
582
620
  var _a, _b, _c;
583
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
621
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
584
622
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
585
623
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
586
624
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -603,6 +641,22 @@ const SendApiFp = function (configuration) {
603
641
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
604
642
  });
605
643
  },
644
+ /**
645
+ * Retrieve only the payload of a send invoice, without the full invoice metadata. This is useful when you already have the invoice metadata and only need the XML content. The response is a `text/plain` string, identical to the `payload` field returned by the standard GET endpoint with `include_payload=true`. Depending on how the invoice was originally submitted, the payload may be Base64-encoded or plain XML.
646
+ * @summary Get a send invoice payload by id
647
+ * @param {number} id Item id
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ */
651
+ sendIdPayloadGet(id, options) {
652
+ return __awaiter(this, void 0, void 0, function* () {
653
+ var _a, _b, _c;
654
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendIdPayloadGet(id, options);
655
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
656
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendIdPayloadGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
657
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
658
+ });
659
+ },
606
660
  /**
607
661
  * Retrieve a send invoice by its SDI identifier. The `identifier` is assigned by the SDI and becomes available after the invoice has been accepted. 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/).
608
662
  * @summary Get a invoice by identifier
@@ -623,16 +677,16 @@ const SendApiFp = function (configuration) {
623
677
  /**
624
678
  * Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
625
679
  * @summary Add an invoice by json
626
- * @param {FatturaOrdinaria} fatturaOrdinaria
680
+ * @param {object} body
627
681
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
628
682
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
629
683
  * @param {*} [options] Override http request option.
630
684
  * @throws {RequiredError}
631
685
  */
632
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
686
+ sendJsonPost(body, validate, signature, options) {
633
687
  return __awaiter(this, void 0, void 0, function* () {
634
688
  var _a, _b, _c;
635
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(fatturaOrdinaria, validate, signature, options);
689
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(body, validate, signature, options);
636
690
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
637
691
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
638
692
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -675,14 +729,14 @@ const SendApiFp = function (configuration) {
675
729
  /**
676
730
  * Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
677
731
  * @summary Validate an invoice by json
678
- * @param {FatturaOrdinaria} fatturaOrdinaria
732
+ * @param {object} body
679
733
  * @param {*} [options] Override http request option.
680
734
  * @throws {RequiredError}
681
735
  */
682
- sendValidateJsonPost(fatturaOrdinaria, options) {
736
+ sendValidateJsonPost(body, options) {
683
737
  return __awaiter(this, void 0, void 0, function* () {
684
738
  var _a, _b, _c;
685
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(fatturaOrdinaria, options);
739
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(body, options);
686
740
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
687
741
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidateJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
688
742
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -707,14 +761,14 @@ const SendApiFp = function (configuration) {
707
761
  /**
708
762
  * Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
709
763
  * @summary Validate an invoice by xml
710
- * @param {FatturaOrdinaria} fatturaOrdinaria
764
+ * @param {object} body
711
765
  * @param {*} [options] Override http request option.
712
766
  * @throws {RequiredError}
713
767
  */
714
- sendValidateXmlPost(fatturaOrdinaria, options) {
768
+ sendValidateXmlPost(body, options) {
715
769
  return __awaiter(this, void 0, void 0, function* () {
716
770
  var _a, _b, _c;
717
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(fatturaOrdinaria, options);
771
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(body, options);
718
772
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
719
773
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidateXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
720
774
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -723,16 +777,16 @@ const SendApiFp = function (configuration) {
723
777
  /**
724
778
  * Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
725
779
  * @summary Add an invoice by xml
726
- * @param {FatturaOrdinaria} fatturaOrdinaria
780
+ * @param {object} body
727
781
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
728
782
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
729
783
  * @param {*} [options] Override http request option.
730
784
  * @throws {RequiredError}
731
785
  */
732
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
786
+ sendXmlPost(body, validate, signature, options) {
733
787
  return __awaiter(this, void 0, void 0, function* () {
734
788
  var _a, _b, _c;
735
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(fatturaOrdinaria, validate, signature, options);
789
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(body, validate, signature, options);
736
790
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
737
791
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
738
792
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -760,7 +814,7 @@ const SendApiFactory = function (configuration, basePath, axios) {
760
814
  return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
761
815
  },
762
816
  /**
763
- * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
817
+ * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
764
818
  * @summary List invoices
765
819
  * @param {number} [companyId] Company id
766
820
  * @param {string} [identifier] SDI identifier.
@@ -778,11 +832,12 @@ const SendApiFactory = function (configuration, basePath, axios) {
778
832
  * @param {number} [page] Page number.
779
833
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
780
834
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
835
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
781
836
  * @param {*} [options] Override http request option.
782
837
  * @throws {RequiredError}
783
838
  */
784
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
785
- return localVarFp.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(axios, basePath));
839
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
840
+ return localVarFp.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(axios, basePath));
786
841
  },
787
842
  /**
788
843
  * Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
@@ -795,6 +850,16 @@ const SendApiFactory = function (configuration, basePath, axios) {
795
850
  sendIdGet(id, includePayload, options) {
796
851
  return localVarFp.sendIdGet(id, includePayload, options).then((request) => request(axios, basePath));
797
852
  },
853
+ /**
854
+ * Retrieve only the payload of a send invoice, without the full invoice metadata. This is useful when you already have the invoice metadata and only need the XML content. The response is a `text/plain` string, identical to the `payload` field returned by the standard GET endpoint with `include_payload=true`. Depending on how the invoice was originally submitted, the payload may be Base64-encoded or plain XML.
855
+ * @summary Get a send invoice payload by id
856
+ * @param {number} id Item id
857
+ * @param {*} [options] Override http request option.
858
+ * @throws {RequiredError}
859
+ */
860
+ sendIdPayloadGet(id, options) {
861
+ return localVarFp.sendIdPayloadGet(id, options).then((request) => request(axios, basePath));
862
+ },
798
863
  /**
799
864
  * Retrieve a send invoice by its SDI identifier. The `identifier` is assigned by the SDI and becomes available after the invoice has been accepted. 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/).
800
865
  * @summary Get a invoice by identifier
@@ -809,14 +874,14 @@ const SendApiFactory = function (configuration, basePath, axios) {
809
874
  /**
810
875
  * Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
811
876
  * @summary Add an invoice by json
812
- * @param {FatturaOrdinaria} fatturaOrdinaria
877
+ * @param {object} body
813
878
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
814
879
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
815
880
  * @param {*} [options] Override http request option.
816
881
  * @throws {RequiredError}
817
882
  */
818
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
819
- return localVarFp.sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
883
+ sendJsonPost(body, validate, signature, options) {
884
+ return localVarFp.sendJsonPost(body, validate, signature, options).then((request) => request(axios, basePath));
820
885
  },
821
886
  /**
822
887
  * Add a new invoice using a structured Send object. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
@@ -843,12 +908,12 @@ const SendApiFactory = function (configuration, basePath, axios) {
843
908
  /**
844
909
  * Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
845
910
  * @summary Validate an invoice by json
846
- * @param {FatturaOrdinaria} fatturaOrdinaria
911
+ * @param {object} body
847
912
  * @param {*} [options] Override http request option.
848
913
  * @throws {RequiredError}
849
914
  */
850
- sendValidateJsonPost(fatturaOrdinaria, options) {
851
- return localVarFp.sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
915
+ sendValidateJsonPost(body, options) {
916
+ return localVarFp.sendValidateJsonPost(body, options).then((request) => request(axios, basePath));
852
917
  },
853
918
  /**
854
919
  * Validate an invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
@@ -863,24 +928,24 @@ const SendApiFactory = function (configuration, basePath, axios) {
863
928
  /**
864
929
  * Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
865
930
  * @summary Validate an invoice by xml
866
- * @param {FatturaOrdinaria} fatturaOrdinaria
931
+ * @param {object} body
867
932
  * @param {*} [options] Override http request option.
868
933
  * @throws {RequiredError}
869
934
  */
870
- sendValidateXmlPost(fatturaOrdinaria, options) {
871
- return localVarFp.sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
935
+ sendValidateXmlPost(body, options) {
936
+ return localVarFp.sendValidateXmlPost(body, options).then((request) => request(axios, basePath));
872
937
  },
873
938
  /**
874
939
  * Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
875
940
  * @summary Add an invoice by xml
876
- * @param {FatturaOrdinaria} fatturaOrdinaria
941
+ * @param {object} body
877
942
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
878
943
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
879
944
  * @param {*} [options] Override http request option.
880
945
  * @throws {RequiredError}
881
946
  */
882
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
883
- return localVarFp.sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
947
+ sendXmlPost(body, validate, signature, options) {
948
+ return localVarFp.sendXmlPost(body, validate, signature, options).then((request) => request(axios, basePath));
884
949
  },
885
950
  };
886
951
  };
@@ -902,7 +967,7 @@ class SendApi extends base_1.BaseAPI {
902
967
  return (0, exports.SendApiFp)(this.configuration).sendFilePost(file, validate, signature, options).then((request) => request(this.axios, this.basePath));
903
968
  }
904
969
  /**
905
- * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
970
+ * Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
906
971
  * @summary List invoices
907
972
  * @param {number} [companyId] Company id
908
973
  * @param {string} [identifier] SDI identifier.
@@ -920,11 +985,12 @@ class SendApi extends base_1.BaseAPI {
920
985
  * @param {number} [page] Page number.
921
986
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
922
987
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
988
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
923
989
  * @param {*} [options] Override http request option.
924
990
  * @throws {RequiredError}
925
991
  */
926
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
927
- return (0, exports.SendApiFp)(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
992
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
993
+ return (0, exports.SendApiFp)(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
928
994
  }
929
995
  /**
930
996
  * Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
@@ -937,6 +1003,16 @@ class SendApi extends base_1.BaseAPI {
937
1003
  sendIdGet(id, includePayload, options) {
938
1004
  return (0, exports.SendApiFp)(this.configuration).sendIdGet(id, includePayload, options).then((request) => request(this.axios, this.basePath));
939
1005
  }
1006
+ /**
1007
+ * Retrieve only the payload of a send invoice, without the full invoice metadata. This is useful when you already have the invoice metadata and only need the XML content. The response is a `text/plain` string, identical to the `payload` field returned by the standard GET endpoint with `include_payload=true`. Depending on how the invoice was originally submitted, the payload may be Base64-encoded or plain XML.
1008
+ * @summary Get a send invoice payload by id
1009
+ * @param {number} id Item id
1010
+ * @param {*} [options] Override http request option.
1011
+ * @throws {RequiredError}
1012
+ */
1013
+ sendIdPayloadGet(id, options) {
1014
+ return (0, exports.SendApiFp)(this.configuration).sendIdPayloadGet(id, options).then((request) => request(this.axios, this.basePath));
1015
+ }
940
1016
  /**
941
1017
  * Retrieve a send invoice by its SDI identifier. The `identifier` is assigned by the SDI and becomes available after the invoice has been accepted. 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/).
942
1018
  * @summary Get a invoice by identifier
@@ -951,14 +1027,14 @@ class SendApi extends base_1.BaseAPI {
951
1027
  /**
952
1028
  * Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
953
1029
  * @summary Add an invoice by json
954
- * @param {FatturaOrdinaria} fatturaOrdinaria
1030
+ * @param {object} body
955
1031
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
956
1032
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
957
1033
  * @param {*} [options] Override http request option.
958
1034
  * @throws {RequiredError}
959
1035
  */
960
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
961
- return (0, exports.SendApiFp)(this.configuration).sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
1036
+ sendJsonPost(body, validate, signature, options) {
1037
+ return (0, exports.SendApiFp)(this.configuration).sendJsonPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
962
1038
  }
963
1039
  /**
964
1040
  * Add a new invoice using a structured Send object. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
@@ -985,12 +1061,12 @@ class SendApi extends base_1.BaseAPI {
985
1061
  /**
986
1062
  * Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
987
1063
  * @summary Validate an invoice by json
988
- * @param {FatturaOrdinaria} fatturaOrdinaria
1064
+ * @param {object} body
989
1065
  * @param {*} [options] Override http request option.
990
1066
  * @throws {RequiredError}
991
1067
  */
992
- sendValidateJsonPost(fatturaOrdinaria, options) {
993
- return (0, exports.SendApiFp)(this.configuration).sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
1068
+ sendValidateJsonPost(body, options) {
1069
+ return (0, exports.SendApiFp)(this.configuration).sendValidateJsonPost(body, options).then((request) => request(this.axios, this.basePath));
994
1070
  }
995
1071
  /**
996
1072
  * Validate an invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
@@ -1005,24 +1081,24 @@ class SendApi extends base_1.BaseAPI {
1005
1081
  /**
1006
1082
  * Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
1007
1083
  * @summary Validate an invoice by xml
1008
- * @param {FatturaOrdinaria} fatturaOrdinaria
1084
+ * @param {object} body
1009
1085
  * @param {*} [options] Override http request option.
1010
1086
  * @throws {RequiredError}
1011
1087
  */
1012
- sendValidateXmlPost(fatturaOrdinaria, options) {
1013
- return (0, exports.SendApiFp)(this.configuration).sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
1088
+ sendValidateXmlPost(body, options) {
1089
+ return (0, exports.SendApiFp)(this.configuration).sendValidateXmlPost(body, options).then((request) => request(this.axios, this.basePath));
1014
1090
  }
1015
1091
  /**
1016
1092
  * Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
1017
1093
  * @summary Add an invoice by xml
1018
- * @param {FatturaOrdinaria} fatturaOrdinaria
1094
+ * @param {object} body
1019
1095
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
1020
1096
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
1021
1097
  * @param {*} [options] Override http request option.
1022
1098
  * @throws {RequiredError}
1023
1099
  */
1024
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
1025
- return (0, exports.SendApiFp)(this.configuration).sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
1100
+ sendXmlPost(body, validate, signature, options) {
1101
+ return (0, exports.SendApiFp)(this.configuration).sendXmlPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
1026
1102
  }
1027
1103
  }
1028
1104
  exports.SendApi = SendApi;