@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
@@ -25,8 +25,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../../base';
27
27
  // @ts-ignore
28
- import type { FatturaOrdinaria } from '../../src/models';
29
- // @ts-ignore
30
28
  import type { ProblemDetails } from '../../src/models';
31
29
  // @ts-ignore
32
30
  import type { ProblemHttpResult } from '../../src/models';
@@ -92,7 +90,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
92
90
  };
93
91
  },
94
92
  /**
95
- * 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/).
93
+ * 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/).
96
94
  * @summary List invoices
97
95
  * @param {number} [companyId] Company id
98
96
  * @param {string} [identifier] SDI identifier.
@@ -110,10 +108,11 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
110
108
  * @param {number} [page] Page number.
111
109
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
112
110
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
111
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
113
112
  * @param {*} [options] Override http request option.
114
113
  * @throws {RequiredError}
115
114
  */
116
- sendGet: async (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> => {
115
+ sendGet: async (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> => {
117
116
  const localVarPath = `/send`;
118
117
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
119
118
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -206,6 +205,10 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
206
205
  localVarQueryParameter['sort'] = sort;
207
206
  }
208
207
 
208
+ if (q !== undefined) {
209
+ localVarQueryParameter['q'] = q;
210
+ }
211
+
209
212
  localVarHeaderParameter['Accept'] = 'application/json';
210
213
 
211
214
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -260,6 +263,44 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
260
263
  options: localVarRequestOptions,
261
264
  };
262
265
  },
266
+ /**
267
+ * 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.
268
+ * @summary Get a send invoice payload by id
269
+ * @param {number} id Item id
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ sendIdPayloadGet: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
274
+ // verify required parameter 'id' is not null or undefined
275
+ assertParamExists('sendIdPayloadGet', 'id', id)
276
+ const localVarPath = `/send/{id}/payload`
277
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
280
+ let baseOptions;
281
+ if (configuration) {
282
+ baseOptions = configuration.baseOptions;
283
+ }
284
+
285
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
286
+ const localVarHeaderParameter = {} as any;
287
+ const localVarQueryParameter = {} as any;
288
+
289
+ // authentication Basic required
290
+ // http basic authentication required
291
+ setBasicAuthToObject(localVarRequestOptions, configuration)
292
+
293
+ localVarHeaderParameter['Accept'] = 'application/problem+json';
294
+
295
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
298
+
299
+ return {
300
+ url: toPathString(localVarUrlObj),
301
+ options: localVarRequestOptions,
302
+ };
303
+ },
263
304
  /**
264
305
  * 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/).
265
306
  * @summary Get a invoice by identifier
@@ -306,15 +347,15 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
306
347
  /**
307
348
  * 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).
308
349
  * @summary Add an invoice by json
309
- * @param {FatturaOrdinaria} fatturaOrdinaria
350
+ * @param {object} body
310
351
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
311
352
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
312
353
  * @param {*} [options] Override http request option.
313
354
  * @throws {RequiredError}
314
355
  */
315
- sendJsonPost: async (fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendJsonPostSignatureEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
316
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
317
- assertParamExists('sendJsonPost', 'fatturaOrdinaria', fatturaOrdinaria)
356
+ sendJsonPost: async (body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
357
+ // verify required parameter 'body' is not null or undefined
358
+ assertParamExists('sendJsonPost', 'body', body)
318
359
  const localVarPath = `/send/json`;
319
360
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
320
361
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -345,7 +386,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
345
386
  setSearchParams(localVarUrlObj, localVarQueryParameter);
346
387
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
347
388
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
348
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration)
389
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
349
390
 
350
391
  return {
351
392
  url: toPathString(localVarUrlObj),
@@ -448,13 +489,13 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
448
489
  /**
449
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/).
450
491
  * @summary Validate an invoice by json
451
- * @param {FatturaOrdinaria} fatturaOrdinaria
492
+ * @param {object} body
452
493
  * @param {*} [options] Override http request option.
453
494
  * @throws {RequiredError}
454
495
  */
455
- sendValidateJsonPost: async (fatturaOrdinaria: FatturaOrdinaria, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
456
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
457
- assertParamExists('sendValidateJsonPost', 'fatturaOrdinaria', fatturaOrdinaria)
496
+ sendValidateJsonPost: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
497
+ // verify required parameter 'body' is not null or undefined
498
+ assertParamExists('sendValidateJsonPost', 'body', body)
458
499
  const localVarPath = `/send/validate/json`;
459
500
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
460
501
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -477,7 +518,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
477
518
  setSearchParams(localVarUrlObj, localVarQueryParameter);
478
519
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
479
520
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
480
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration)
521
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
481
522
 
482
523
  return {
483
524
  url: toPathString(localVarUrlObj),
@@ -526,13 +567,13 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
526
567
  /**
527
568
  * 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/).
528
569
  * @summary Validate an invoice by xml
529
- * @param {FatturaOrdinaria} fatturaOrdinaria
570
+ * @param {object} body
530
571
  * @param {*} [options] Override http request option.
531
572
  * @throws {RequiredError}
532
573
  */
533
- sendValidateXmlPost: async (fatturaOrdinaria: FatturaOrdinaria, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
534
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
535
- assertParamExists('sendValidateXmlPost', 'fatturaOrdinaria', fatturaOrdinaria)
574
+ sendValidateXmlPost: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
575
+ // verify required parameter 'body' is not null or undefined
576
+ assertParamExists('sendValidateXmlPost', 'body', body)
536
577
  const localVarPath = `/send/validate/xml`;
537
578
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
538
579
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -555,7 +596,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
555
596
  setSearchParams(localVarUrlObj, localVarQueryParameter);
556
597
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
557
598
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
558
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration)
599
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
559
600
 
560
601
  return {
561
602
  url: toPathString(localVarUrlObj),
@@ -565,15 +606,15 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
565
606
  /**
566
607
  * 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).
567
608
  * @summary Add an invoice by xml
568
- * @param {FatturaOrdinaria} fatturaOrdinaria
609
+ * @param {object} body
569
610
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
570
611
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
571
612
  * @param {*} [options] Override http request option.
572
613
  * @throws {RequiredError}
573
614
  */
574
- sendXmlPost: async (fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendXmlPostSignatureEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
575
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
576
- assertParamExists('sendXmlPost', 'fatturaOrdinaria', fatturaOrdinaria)
615
+ sendXmlPost: async (body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
616
+ // verify required parameter 'body' is not null or undefined
617
+ assertParamExists('sendXmlPost', 'body', body)
577
618
  const localVarPath = `/send/xml`;
578
619
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
579
620
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -604,7 +645,7 @@ export const SendApiAxiosParamCreator = function (configuration?: Configuration)
604
645
  setSearchParams(localVarUrlObj, localVarQueryParameter);
605
646
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
606
647
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
607
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration)
648
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
608
649
 
609
650
  return {
610
651
  url: toPathString(localVarUrlObj),
@@ -636,7 +677,7 @@ export const SendApiFp = function(configuration?: Configuration) {
636
677
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
637
678
  },
638
679
  /**
639
- * 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/).
680
+ * 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/).
640
681
  * @summary List invoices
641
682
  * @param {number} [companyId] Company id
642
683
  * @param {string} [identifier] SDI identifier.
@@ -654,11 +695,12 @@ export const SendApiFp = function(configuration?: Configuration) {
654
695
  * @param {number} [page] Page number.
655
696
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
656
697
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
698
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
657
699
  * @param {*} [options] Override http request option.
658
700
  * @throws {RequiredError}
659
701
  */
660
- async 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>>> {
661
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
702
+ async 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>>> {
703
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
662
704
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
663
705
  const localVarOperationServerBasePath = operationServerMap['SendApi.sendGet']?.[localVarOperationServerIndex]?.url;
664
706
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -677,6 +719,19 @@ export const SendApiFp = function(configuration?: Configuration) {
677
719
  const localVarOperationServerBasePath = operationServerMap['SendApi.sendIdGet']?.[localVarOperationServerIndex]?.url;
678
720
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
679
721
  },
722
+ /**
723
+ * 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.
724
+ * @summary Get a send invoice payload by id
725
+ * @param {number} id Item id
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ */
729
+ async sendIdPayloadGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
730
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendIdPayloadGet(id, options);
731
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
732
+ const localVarOperationServerBasePath = operationServerMap['SendApi.sendIdPayloadGet']?.[localVarOperationServerIndex]?.url;
733
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
734
+ },
680
735
  /**
681
736
  * 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/).
682
737
  * @summary Get a invoice by identifier
@@ -694,14 +749,14 @@ export const SendApiFp = function(configuration?: Configuration) {
694
749
  /**
695
750
  * 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).
696
751
  * @summary Add an invoice by json
697
- * @param {FatturaOrdinaria} fatturaOrdinaria
752
+ * @param {object} body
698
753
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
699
754
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
700
755
  * @param {*} [options] Override http request option.
701
756
  * @throws {RequiredError}
702
757
  */
703
- async sendJsonPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>> {
704
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendJsonPost(fatturaOrdinaria, validate, signature, options);
758
+ async sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>> {
759
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendJsonPost(body, validate, signature, options);
705
760
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
706
761
  const localVarOperationServerBasePath = operationServerMap['SendApi.sendJsonPost']?.[localVarOperationServerIndex]?.url;
707
762
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -737,12 +792,12 @@ export const SendApiFp = function(configuration?: Configuration) {
737
792
  /**
738
793
  * 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/).
739
794
  * @summary Validate an invoice by json
740
- * @param {FatturaOrdinaria} fatturaOrdinaria
795
+ * @param {object} body
741
796
  * @param {*} [options] Override http request option.
742
797
  * @throws {RequiredError}
743
798
  */
744
- async sendValidateJsonPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
745
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateJsonPost(fatturaOrdinaria, options);
799
+ async sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
800
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateJsonPost(body, options);
746
801
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
747
802
  const localVarOperationServerBasePath = operationServerMap['SendApi.sendValidateJsonPost']?.[localVarOperationServerIndex]?.url;
748
803
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -763,12 +818,12 @@ export const SendApiFp = function(configuration?: Configuration) {
763
818
  /**
764
819
  * 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/).
765
820
  * @summary Validate an invoice by xml
766
- * @param {FatturaOrdinaria} fatturaOrdinaria
821
+ * @param {object} body
767
822
  * @param {*} [options] Override http request option.
768
823
  * @throws {RequiredError}
769
824
  */
770
- async sendValidateXmlPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
771
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateXmlPost(fatturaOrdinaria, options);
825
+ async sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
826
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendValidateXmlPost(body, options);
772
827
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
773
828
  const localVarOperationServerBasePath = operationServerMap['SendApi.sendValidateXmlPost']?.[localVarOperationServerIndex]?.url;
774
829
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -776,14 +831,14 @@ export const SendApiFp = function(configuration?: Configuration) {
776
831
  /**
777
832
  * 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).
778
833
  * @summary Add an invoice by xml
779
- * @param {FatturaOrdinaria} fatturaOrdinaria
834
+ * @param {object} body
780
835
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
781
836
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
782
837
  * @param {*} [options] Override http request option.
783
838
  * @throws {RequiredError}
784
839
  */
785
- async sendXmlPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>> {
786
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendXmlPost(fatturaOrdinaria, validate, signature, options);
840
+ async sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Send>> {
841
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendXmlPost(body, validate, signature, options);
787
842
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
788
843
  const localVarOperationServerBasePath = operationServerMap['SendApi.sendXmlPost']?.[localVarOperationServerIndex]?.url;
789
844
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -810,7 +865,7 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
810
865
  return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
811
866
  },
812
867
  /**
813
- * 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/).
868
+ * 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/).
814
869
  * @summary List invoices
815
870
  * @param {number} [companyId] Company id
816
871
  * @param {string} [identifier] SDI identifier.
@@ -828,11 +883,12 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
828
883
  * @param {number} [page] Page number.
829
884
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
830
885
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
886
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
831
887
  * @param {*} [options] Override http request option.
832
888
  * @throws {RequiredError}
833
889
  */
834
- 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>> {
835
- 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));
890
+ 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>> {
891
+ 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));
836
892
  },
837
893
  /**
838
894
  * 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/).
@@ -845,6 +901,16 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
845
901
  sendIdGet(id: number, includePayload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Send> {
846
902
  return localVarFp.sendIdGet(id, includePayload, options).then((request) => request(axios, basePath));
847
903
  },
904
+ /**
905
+ * 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.
906
+ * @summary Get a send invoice payload by id
907
+ * @param {number} id Item id
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ */
911
+ sendIdPayloadGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
912
+ return localVarFp.sendIdPayloadGet(id, options).then((request) => request(axios, basePath));
913
+ },
848
914
  /**
849
915
  * 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/).
850
916
  * @summary Get a invoice by identifier
@@ -859,14 +925,14 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
859
925
  /**
860
926
  * 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).
861
927
  * @summary Add an invoice by json
862
- * @param {FatturaOrdinaria} fatturaOrdinaria
928
+ * @param {object} body
863
929
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
864
930
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
865
931
  * @param {*} [options] Override http request option.
866
932
  * @throws {RequiredError}
867
933
  */
868
- sendJsonPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send> {
869
- return localVarFp.sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
934
+ sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send> {
935
+ return localVarFp.sendJsonPost(body, validate, signature, options).then((request) => request(axios, basePath));
870
936
  },
871
937
  /**
872
938
  * 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).
@@ -893,12 +959,12 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
893
959
  /**
894
960
  * 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/).
895
961
  * @summary Validate an invoice by json
896
- * @param {FatturaOrdinaria} fatturaOrdinaria
962
+ * @param {object} body
897
963
  * @param {*} [options] Override http request option.
898
964
  * @throws {RequiredError}
899
965
  */
900
- sendValidateJsonPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): AxiosPromise<void> {
901
- return localVarFp.sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
966
+ sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
967
+ return localVarFp.sendValidateJsonPost(body, options).then((request) => request(axios, basePath));
902
968
  },
903
969
  /**
904
970
  * 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/).
@@ -913,24 +979,24 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
913
979
  /**
914
980
  * 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/).
915
981
  * @summary Validate an invoice by xml
916
- * @param {FatturaOrdinaria} fatturaOrdinaria
982
+ * @param {object} body
917
983
  * @param {*} [options] Override http request option.
918
984
  * @throws {RequiredError}
919
985
  */
920
- sendValidateXmlPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): AxiosPromise<void> {
921
- return localVarFp.sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
986
+ sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
987
+ return localVarFp.sendValidateXmlPost(body, options).then((request) => request(axios, basePath));
922
988
  },
923
989
  /**
924
990
  * 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).
925
991
  * @summary Add an invoice by xml
926
- * @param {FatturaOrdinaria} fatturaOrdinaria
992
+ * @param {object} body
927
993
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
928
994
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
929
995
  * @param {*} [options] Override http request option.
930
996
  * @throws {RequiredError}
931
997
  */
932
- sendXmlPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send> {
933
- return localVarFp.sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
998
+ sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send> {
999
+ return localVarFp.sendXmlPost(body, validate, signature, options).then((request) => request(axios, basePath));
934
1000
  },
935
1001
  };
936
1002
  };
@@ -951,7 +1017,7 @@ export interface SendApiInterface {
951
1017
  sendFilePost(file: File, validate?: boolean, signature?: SendFilePostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
952
1018
 
953
1019
  /**
954
- * 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/).
1020
+ * 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/).
955
1021
  * @summary List invoices
956
1022
  * @param {number} [companyId] Company id
957
1023
  * @param {string} [identifier] SDI identifier.
@@ -969,10 +1035,11 @@ export interface SendApiInterface {
969
1035
  * @param {number} [page] Page number.
970
1036
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
971
1037
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
1038
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
972
1039
  * @param {*} [options] Override http request option.
973
1040
  * @throws {RequiredError}
974
1041
  */
975
- 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>>;
1042
+ 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>>;
976
1043
 
977
1044
  /**
978
1045
  * 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/).
@@ -984,6 +1051,15 @@ export interface SendApiInterface {
984
1051
  */
985
1052
  sendIdGet(id: number, includePayload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
986
1053
 
1054
+ /**
1055
+ * 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.
1056
+ * @summary Get a send invoice payload by id
1057
+ * @param {number} id Item id
1058
+ * @param {*} [options] Override http request option.
1059
+ * @throws {RequiredError}
1060
+ */
1061
+ sendIdPayloadGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1062
+
987
1063
  /**
988
1064
  * 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/).
989
1065
  * @summary Get a invoice by identifier
@@ -997,13 +1073,13 @@ export interface SendApiInterface {
997
1073
  /**
998
1074
  * 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).
999
1075
  * @summary Add an invoice by json
1000
- * @param {FatturaOrdinaria} fatturaOrdinaria
1076
+ * @param {object} body
1001
1077
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
1002
1078
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
1003
1079
  * @param {*} [options] Override http request option.
1004
1080
  * @throws {RequiredError}
1005
1081
  */
1006
- sendJsonPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
1082
+ sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
1007
1083
 
1008
1084
  /**
1009
1085
  * 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).
@@ -1028,11 +1104,11 @@ export interface SendApiInterface {
1028
1104
  /**
1029
1105
  * 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/).
1030
1106
  * @summary Validate an invoice by json
1031
- * @param {FatturaOrdinaria} fatturaOrdinaria
1107
+ * @param {object} body
1032
1108
  * @param {*} [options] Override http request option.
1033
1109
  * @throws {RequiredError}
1034
1110
  */
1035
- sendValidateJsonPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1111
+ sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1036
1112
 
1037
1113
  /**
1038
1114
  * 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/).
@@ -1046,22 +1122,22 @@ export interface SendApiInterface {
1046
1122
  /**
1047
1123
  * 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/).
1048
1124
  * @summary Validate an invoice by xml
1049
- * @param {FatturaOrdinaria} fatturaOrdinaria
1125
+ * @param {object} body
1050
1126
  * @param {*} [options] Override http request option.
1051
1127
  * @throws {RequiredError}
1052
1128
  */
1053
- sendValidateXmlPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1129
+ sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1054
1130
 
1055
1131
  /**
1056
1132
  * 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).
1057
1133
  * @summary Add an invoice by xml
1058
- * @param {FatturaOrdinaria} fatturaOrdinaria
1134
+ * @param {object} body
1059
1135
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
1060
1136
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
1061
1137
  * @param {*} [options] Override http request option.
1062
1138
  * @throws {RequiredError}
1063
1139
  */
1064
- sendXmlPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
1140
+ sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig): AxiosPromise<Send>;
1065
1141
 
1066
1142
  }
1067
1143
 
@@ -1083,7 +1159,7 @@ export class SendApi extends BaseAPI implements SendApiInterface {
1083
1159
  }
1084
1160
 
1085
1161
  /**
1086
- * 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/).
1162
+ * 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/).
1087
1163
  * @summary List invoices
1088
1164
  * @param {number} [companyId] Company id
1089
1165
  * @param {string} [identifier] SDI identifier.
@@ -1101,11 +1177,12 @@ export class SendApi extends BaseAPI implements SendApiInterface {
1101
1177
  * @param {number} [page] Page number.
1102
1178
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
1103
1179
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
1180
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
1104
1181
  * @param {*} [options] Override http request option.
1105
1182
  * @throws {RequiredError}
1106
1183
  */
1107
- public 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) {
1108
- return SendApiFp(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
1184
+ public 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) {
1185
+ return SendApiFp(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
1109
1186
  }
1110
1187
 
1111
1188
  /**
@@ -1120,6 +1197,17 @@ export class SendApi extends BaseAPI implements SendApiInterface {
1120
1197
  return SendApiFp(this.configuration).sendIdGet(id, includePayload, options).then((request) => request(this.axios, this.basePath));
1121
1198
  }
1122
1199
 
1200
+ /**
1201
+ * 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.
1202
+ * @summary Get a send invoice payload by id
1203
+ * @param {number} id Item id
1204
+ * @param {*} [options] Override http request option.
1205
+ * @throws {RequiredError}
1206
+ */
1207
+ public sendIdPayloadGet(id: number, options?: RawAxiosRequestConfig) {
1208
+ return SendApiFp(this.configuration).sendIdPayloadGet(id, options).then((request) => request(this.axios, this.basePath));
1209
+ }
1210
+
1123
1211
  /**
1124
1212
  * 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/).
1125
1213
  * @summary Get a invoice by identifier
@@ -1135,14 +1223,14 @@ export class SendApi extends BaseAPI implements SendApiInterface {
1135
1223
  /**
1136
1224
  * 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).
1137
1225
  * @summary Add an invoice by json
1138
- * @param {FatturaOrdinaria} fatturaOrdinaria
1226
+ * @param {object} body
1139
1227
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
1140
1228
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
1141
1229
  * @param {*} [options] Override http request option.
1142
1230
  * @throws {RequiredError}
1143
1231
  */
1144
- public sendJsonPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig) {
1145
- return SendApiFp(this.configuration).sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
1232
+ public sendJsonPost(body: object, validate?: boolean, signature?: SendJsonPostSignatureEnum, options?: RawAxiosRequestConfig) {
1233
+ return SendApiFp(this.configuration).sendJsonPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
1146
1234
  }
1147
1235
 
1148
1236
  /**
@@ -1172,12 +1260,12 @@ export class SendApi extends BaseAPI implements SendApiInterface {
1172
1260
  /**
1173
1261
  * 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/).
1174
1262
  * @summary Validate an invoice by json
1175
- * @param {FatturaOrdinaria} fatturaOrdinaria
1263
+ * @param {object} body
1176
1264
  * @param {*} [options] Override http request option.
1177
1265
  * @throws {RequiredError}
1178
1266
  */
1179
- public sendValidateJsonPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig) {
1180
- return SendApiFp(this.configuration).sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
1267
+ public sendValidateJsonPost(body: object, options?: RawAxiosRequestConfig) {
1268
+ return SendApiFp(this.configuration).sendValidateJsonPost(body, options).then((request) => request(this.axios, this.basePath));
1181
1269
  }
1182
1270
 
1183
1271
  /**
@@ -1194,25 +1282,25 @@ export class SendApi extends BaseAPI implements SendApiInterface {
1194
1282
  /**
1195
1283
  * 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/).
1196
1284
  * @summary Validate an invoice by xml
1197
- * @param {FatturaOrdinaria} fatturaOrdinaria
1285
+ * @param {object} body
1198
1286
  * @param {*} [options] Override http request option.
1199
1287
  * @throws {RequiredError}
1200
1288
  */
1201
- public sendValidateXmlPost(fatturaOrdinaria: FatturaOrdinaria, options?: RawAxiosRequestConfig) {
1202
- return SendApiFp(this.configuration).sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
1289
+ public sendValidateXmlPost(body: object, options?: RawAxiosRequestConfig) {
1290
+ return SendApiFp(this.configuration).sendValidateXmlPost(body, options).then((request) => request(this.axios, this.basePath));
1203
1291
  }
1204
1292
 
1205
1293
  /**
1206
1294
  * 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).
1207
1295
  * @summary Add an invoice by xml
1208
- * @param {FatturaOrdinaria} fatturaOrdinaria
1296
+ * @param {object} body
1209
1297
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
1210
1298
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
1211
1299
  * @param {*} [options] Override http request option.
1212
1300
  * @throws {RequiredError}
1213
1301
  */
1214
- public sendXmlPost(fatturaOrdinaria: FatturaOrdinaria, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig) {
1215
- return SendApiFp(this.configuration).sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
1302
+ public sendXmlPost(body: object, validate?: boolean, signature?: SendXmlPostSignatureEnum, options?: RawAxiosRequestConfig) {
1303
+ return SendApiFp(this.configuration).sendXmlPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
1216
1304
  }
1217
1305
  }
1218
1306