@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
@@ -81,7 +81,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
81
81
  };
82
82
  }),
83
83
  /**
84
- * 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/).
84
+ * 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/).
85
85
  * @summary List invoices
86
86
  * @param {number} [companyId] Company id
87
87
  * @param {string} [identifier] SDI identifier.
@@ -99,10 +99,11 @@ export const SendApiAxiosParamCreator = function (configuration) {
99
99
  * @param {number} [page] Page number.
100
100
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
101
101
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
102
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
102
103
  * @param {*} [options] Override http request option.
103
104
  * @throws {RequiredError}
104
105
  */
105
- 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 = {}) {
106
+ 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 = {}) {
106
107
  const localVarPath = `/send`;
107
108
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
108
109
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -176,6 +177,9 @@ export const SendApiAxiosParamCreator = function (configuration) {
176
177
  if (sort !== undefined) {
177
178
  localVarQueryParameter['sort'] = sort;
178
179
  }
180
+ if (q !== undefined) {
181
+ localVarQueryParameter['q'] = q;
182
+ }
179
183
  localVarHeaderParameter['Accept'] = 'application/json';
180
184
  setSearchParams(localVarUrlObj, localVarQueryParameter);
181
185
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -222,6 +226,39 @@ export const SendApiAxiosParamCreator = function (configuration) {
222
226
  options: localVarRequestOptions,
223
227
  };
224
228
  }),
229
+ /**
230
+ * 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.
231
+ * @summary Get a send invoice payload by id
232
+ * @param {number} id Item id
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ sendIdPayloadGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
237
+ // verify required parameter 'id' is not null or undefined
238
+ assertParamExists('sendIdPayloadGet', 'id', id);
239
+ const localVarPath = `/send/{id}/payload`
240
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
243
+ let baseOptions;
244
+ if (configuration) {
245
+ baseOptions = configuration.baseOptions;
246
+ }
247
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
248
+ const localVarHeaderParameter = {};
249
+ const localVarQueryParameter = {};
250
+ // authentication Basic required
251
+ // http basic authentication required
252
+ setBasicAuthToObject(localVarRequestOptions, configuration);
253
+ localVarHeaderParameter['Accept'] = 'application/problem+json';
254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
257
+ return {
258
+ url: toPathString(localVarUrlObj),
259
+ options: localVarRequestOptions,
260
+ };
261
+ }),
225
262
  /**
226
263
  * 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/).
227
264
  * @summary Get a invoice by identifier
@@ -262,15 +299,15 @@ export const SendApiAxiosParamCreator = function (configuration) {
262
299
  /**
263
300
  * 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).
264
301
  * @summary Add an invoice by json
265
- * @param {FatturaOrdinaria} fatturaOrdinaria
302
+ * @param {object} body
266
303
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
267
304
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
268
305
  * @param {*} [options] Override http request option.
269
306
  * @throws {RequiredError}
270
307
  */
271
- 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 = {}) {
272
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
273
- assertParamExists('sendJsonPost', 'fatturaOrdinaria', fatturaOrdinaria);
308
+ 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 = {}) {
309
+ // verify required parameter 'body' is not null or undefined
310
+ assertParamExists('sendJsonPost', 'body', body);
274
311
  const localVarPath = `/send/json`;
275
312
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
276
313
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -295,7 +332,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
295
332
  setSearchParams(localVarUrlObj, localVarQueryParameter);
296
333
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
334
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
298
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration);
335
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
299
336
  return {
300
337
  url: toPathString(localVarUrlObj),
301
338
  options: localVarRequestOptions,
@@ -384,13 +421,13 @@ export const SendApiAxiosParamCreator = function (configuration) {
384
421
  /**
385
422
  * 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/).
386
423
  * @summary Validate an invoice by json
387
- * @param {FatturaOrdinaria} fatturaOrdinaria
424
+ * @param {object} body
388
425
  * @param {*} [options] Override http request option.
389
426
  * @throws {RequiredError}
390
427
  */
391
- sendValidateJsonPost: (fatturaOrdinaria_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, ...args_1], void 0, function* (fatturaOrdinaria, options = {}) {
392
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
393
- assertParamExists('sendValidateJsonPost', 'fatturaOrdinaria', fatturaOrdinaria);
428
+ sendValidateJsonPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
429
+ // verify required parameter 'body' is not null or undefined
430
+ assertParamExists('sendValidateJsonPost', 'body', body);
394
431
  const localVarPath = `/send/validate/json`;
395
432
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
396
433
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -409,7 +446,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
409
446
  setSearchParams(localVarUrlObj, localVarQueryParameter);
410
447
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
411
448
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
412
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration);
449
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
413
450
  return {
414
451
  url: toPathString(localVarUrlObj),
415
452
  options: localVarRequestOptions,
@@ -452,13 +489,13 @@ export const SendApiAxiosParamCreator = function (configuration) {
452
489
  /**
453
490
  * 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/).
454
491
  * @summary Validate an invoice by xml
455
- * @param {FatturaOrdinaria} fatturaOrdinaria
492
+ * @param {object} body
456
493
  * @param {*} [options] Override http request option.
457
494
  * @throws {RequiredError}
458
495
  */
459
- sendValidateXmlPost: (fatturaOrdinaria_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, ...args_1], void 0, function* (fatturaOrdinaria, options = {}) {
460
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
461
- assertParamExists('sendValidateXmlPost', 'fatturaOrdinaria', fatturaOrdinaria);
496
+ sendValidateXmlPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
497
+ // verify required parameter 'body' is not null or undefined
498
+ assertParamExists('sendValidateXmlPost', 'body', body);
462
499
  const localVarPath = `/send/validate/xml`;
463
500
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
464
501
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -477,7 +514,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
477
514
  setSearchParams(localVarUrlObj, localVarQueryParameter);
478
515
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
479
516
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
480
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration);
517
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
481
518
  return {
482
519
  url: toPathString(localVarUrlObj),
483
520
  options: localVarRequestOptions,
@@ -486,15 +523,15 @@ export const SendApiAxiosParamCreator = function (configuration) {
486
523
  /**
487
524
  * 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).
488
525
  * @summary Add an invoice by xml
489
- * @param {FatturaOrdinaria} fatturaOrdinaria
526
+ * @param {object} body
490
527
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
491
528
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
492
529
  * @param {*} [options] Override http request option.
493
530
  * @throws {RequiredError}
494
531
  */
495
- 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 = {}) {
496
- // verify required parameter 'fatturaOrdinaria' is not null or undefined
497
- assertParamExists('sendXmlPost', 'fatturaOrdinaria', fatturaOrdinaria);
532
+ 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 = {}) {
533
+ // verify required parameter 'body' is not null or undefined
534
+ assertParamExists('sendXmlPost', 'body', body);
498
535
  const localVarPath = `/send/xml`;
499
536
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
500
537
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -519,7 +556,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
519
556
  setSearchParams(localVarUrlObj, localVarQueryParameter);
520
557
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
521
558
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
522
- localVarRequestOptions.data = serializeDataIfNeeded(fatturaOrdinaria, localVarRequestOptions, configuration);
559
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
523
560
  return {
524
561
  url: toPathString(localVarUrlObj),
525
562
  options: localVarRequestOptions,
@@ -552,7 +589,7 @@ export const SendApiFp = function (configuration) {
552
589
  });
553
590
  },
554
591
  /**
555
- * 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/).
592
+ * 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/).
556
593
  * @summary List invoices
557
594
  * @param {number} [companyId] Company id
558
595
  * @param {string} [identifier] SDI identifier.
@@ -570,13 +607,14 @@ export const SendApiFp = function (configuration) {
570
607
  * @param {number} [page] Page number.
571
608
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
572
609
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
610
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
573
611
  * @param {*} [options] Override http request option.
574
612
  * @throws {RequiredError}
575
613
  */
576
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
614
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
577
615
  return __awaiter(this, void 0, void 0, function* () {
578
616
  var _a, _b, _c;
579
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
617
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
580
618
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
581
619
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
582
620
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -599,6 +637,22 @@ export const SendApiFp = function (configuration) {
599
637
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
600
638
  });
601
639
  },
640
+ /**
641
+ * 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.
642
+ * @summary Get a send invoice payload by id
643
+ * @param {number} id Item id
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ */
647
+ sendIdPayloadGet(id, options) {
648
+ return __awaiter(this, void 0, void 0, function* () {
649
+ var _a, _b, _c;
650
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendIdPayloadGet(id, options);
651
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
652
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendIdPayloadGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
653
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
654
+ });
655
+ },
602
656
  /**
603
657
  * 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/).
604
658
  * @summary Get a invoice by identifier
@@ -619,16 +673,16 @@ export const SendApiFp = function (configuration) {
619
673
  /**
620
674
  * 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).
621
675
  * @summary Add an invoice by json
622
- * @param {FatturaOrdinaria} fatturaOrdinaria
676
+ * @param {object} body
623
677
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
624
678
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
625
679
  * @param {*} [options] Override http request option.
626
680
  * @throws {RequiredError}
627
681
  */
628
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
682
+ sendJsonPost(body, validate, signature, options) {
629
683
  return __awaiter(this, void 0, void 0, function* () {
630
684
  var _a, _b, _c;
631
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(fatturaOrdinaria, validate, signature, options);
685
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(body, validate, signature, options);
632
686
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
633
687
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
634
688
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -671,14 +725,14 @@ export const SendApiFp = function (configuration) {
671
725
  /**
672
726
  * 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/).
673
727
  * @summary Validate an invoice by json
674
- * @param {FatturaOrdinaria} fatturaOrdinaria
728
+ * @param {object} body
675
729
  * @param {*} [options] Override http request option.
676
730
  * @throws {RequiredError}
677
731
  */
678
- sendValidateJsonPost(fatturaOrdinaria, options) {
732
+ sendValidateJsonPost(body, options) {
679
733
  return __awaiter(this, void 0, void 0, function* () {
680
734
  var _a, _b, _c;
681
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(fatturaOrdinaria, options);
735
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(body, options);
682
736
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
683
737
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendValidateJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
684
738
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -703,14 +757,14 @@ export const SendApiFp = function (configuration) {
703
757
  /**
704
758
  * 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/).
705
759
  * @summary Validate an invoice by xml
706
- * @param {FatturaOrdinaria} fatturaOrdinaria
760
+ * @param {object} body
707
761
  * @param {*} [options] Override http request option.
708
762
  * @throws {RequiredError}
709
763
  */
710
- sendValidateXmlPost(fatturaOrdinaria, options) {
764
+ sendValidateXmlPost(body, options) {
711
765
  return __awaiter(this, void 0, void 0, function* () {
712
766
  var _a, _b, _c;
713
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(fatturaOrdinaria, options);
767
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(body, options);
714
768
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
715
769
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendValidateXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
716
770
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -719,16 +773,16 @@ export const SendApiFp = function (configuration) {
719
773
  /**
720
774
  * 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).
721
775
  * @summary Add an invoice by xml
722
- * @param {FatturaOrdinaria} fatturaOrdinaria
776
+ * @param {object} body
723
777
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
724
778
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
725
779
  * @param {*} [options] Override http request option.
726
780
  * @throws {RequiredError}
727
781
  */
728
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
782
+ sendXmlPost(body, validate, signature, options) {
729
783
  return __awaiter(this, void 0, void 0, function* () {
730
784
  var _a, _b, _c;
731
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(fatturaOrdinaria, validate, signature, options);
785
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(body, validate, signature, options);
732
786
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
733
787
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
734
788
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -755,7 +809,7 @@ export const SendApiFactory = function (configuration, basePath, axios) {
755
809
  return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
756
810
  },
757
811
  /**
758
- * 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/).
812
+ * 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/).
759
813
  * @summary List invoices
760
814
  * @param {number} [companyId] Company id
761
815
  * @param {string} [identifier] SDI identifier.
@@ -773,11 +827,12 @@ export const SendApiFactory = function (configuration, basePath, axios) {
773
827
  * @param {number} [page] Page number.
774
828
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
775
829
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
830
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
776
831
  * @param {*} [options] Override http request option.
777
832
  * @throws {RequiredError}
778
833
  */
779
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
780
- 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));
834
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
835
+ 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));
781
836
  },
782
837
  /**
783
838
  * 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/).
@@ -790,6 +845,16 @@ export const SendApiFactory = function (configuration, basePath, axios) {
790
845
  sendIdGet(id, includePayload, options) {
791
846
  return localVarFp.sendIdGet(id, includePayload, options).then((request) => request(axios, basePath));
792
847
  },
848
+ /**
849
+ * 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.
850
+ * @summary Get a send invoice payload by id
851
+ * @param {number} id Item id
852
+ * @param {*} [options] Override http request option.
853
+ * @throws {RequiredError}
854
+ */
855
+ sendIdPayloadGet(id, options) {
856
+ return localVarFp.sendIdPayloadGet(id, options).then((request) => request(axios, basePath));
857
+ },
793
858
  /**
794
859
  * 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/).
795
860
  * @summary Get a invoice by identifier
@@ -804,14 +869,14 @@ export const SendApiFactory = function (configuration, basePath, axios) {
804
869
  /**
805
870
  * 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).
806
871
  * @summary Add an invoice by json
807
- * @param {FatturaOrdinaria} fatturaOrdinaria
872
+ * @param {object} body
808
873
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
809
874
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
810
875
  * @param {*} [options] Override http request option.
811
876
  * @throws {RequiredError}
812
877
  */
813
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
814
- return localVarFp.sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
878
+ sendJsonPost(body, validate, signature, options) {
879
+ return localVarFp.sendJsonPost(body, validate, signature, options).then((request) => request(axios, basePath));
815
880
  },
816
881
  /**
817
882
  * 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).
@@ -838,12 +903,12 @@ export const SendApiFactory = function (configuration, basePath, axios) {
838
903
  /**
839
904
  * 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/).
840
905
  * @summary Validate an invoice by json
841
- * @param {FatturaOrdinaria} fatturaOrdinaria
906
+ * @param {object} body
842
907
  * @param {*} [options] Override http request option.
843
908
  * @throws {RequiredError}
844
909
  */
845
- sendValidateJsonPost(fatturaOrdinaria, options) {
846
- return localVarFp.sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
910
+ sendValidateJsonPost(body, options) {
911
+ return localVarFp.sendValidateJsonPost(body, options).then((request) => request(axios, basePath));
847
912
  },
848
913
  /**
849
914
  * 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/).
@@ -858,24 +923,24 @@ export const SendApiFactory = function (configuration, basePath, axios) {
858
923
  /**
859
924
  * 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/).
860
925
  * @summary Validate an invoice by xml
861
- * @param {FatturaOrdinaria} fatturaOrdinaria
926
+ * @param {object} body
862
927
  * @param {*} [options] Override http request option.
863
928
  * @throws {RequiredError}
864
929
  */
865
- sendValidateXmlPost(fatturaOrdinaria, options) {
866
- return localVarFp.sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
930
+ sendValidateXmlPost(body, options) {
931
+ return localVarFp.sendValidateXmlPost(body, options).then((request) => request(axios, basePath));
867
932
  },
868
933
  /**
869
934
  * 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).
870
935
  * @summary Add an invoice by xml
871
- * @param {FatturaOrdinaria} fatturaOrdinaria
936
+ * @param {object} body
872
937
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
873
938
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
874
939
  * @param {*} [options] Override http request option.
875
940
  * @throws {RequiredError}
876
941
  */
877
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
878
- return localVarFp.sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
942
+ sendXmlPost(body, validate, signature, options) {
943
+ return localVarFp.sendXmlPost(body, validate, signature, options).then((request) => request(axios, basePath));
879
944
  },
880
945
  };
881
946
  };
@@ -896,7 +961,7 @@ export class SendApi extends BaseAPI {
896
961
  return SendApiFp(this.configuration).sendFilePost(file, validate, signature, options).then((request) => request(this.axios, this.basePath));
897
962
  }
898
963
  /**
899
- * 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/).
964
+ * 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/).
900
965
  * @summary List invoices
901
966
  * @param {number} [companyId] Company id
902
967
  * @param {string} [identifier] SDI identifier.
@@ -914,11 +979,12 @@ export class SendApi extends BaseAPI {
914
979
  * @param {number} [page] Page number.
915
980
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
916
981
  * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
982
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
917
983
  * @param {*} [options] Override http request option.
918
984
  * @throws {RequiredError}
919
985
  */
920
- sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
921
- 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));
986
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
987
+ 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));
922
988
  }
923
989
  /**
924
990
  * 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/).
@@ -931,6 +997,16 @@ export class SendApi extends BaseAPI {
931
997
  sendIdGet(id, includePayload, options) {
932
998
  return SendApiFp(this.configuration).sendIdGet(id, includePayload, options).then((request) => request(this.axios, this.basePath));
933
999
  }
1000
+ /**
1001
+ * 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.
1002
+ * @summary Get a send invoice payload by id
1003
+ * @param {number} id Item id
1004
+ * @param {*} [options] Override http request option.
1005
+ * @throws {RequiredError}
1006
+ */
1007
+ sendIdPayloadGet(id, options) {
1008
+ return SendApiFp(this.configuration).sendIdPayloadGet(id, options).then((request) => request(this.axios, this.basePath));
1009
+ }
934
1010
  /**
935
1011
  * 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/).
936
1012
  * @summary Get a invoice by identifier
@@ -945,14 +1021,14 @@ export class SendApi extends BaseAPI {
945
1021
  /**
946
1022
  * 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).
947
1023
  * @summary Add an invoice by json
948
- * @param {FatturaOrdinaria} fatturaOrdinaria
1024
+ * @param {object} body
949
1025
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
950
1026
  * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
951
1027
  * @param {*} [options] Override http request option.
952
1028
  * @throws {RequiredError}
953
1029
  */
954
- sendJsonPost(fatturaOrdinaria, validate, signature, options) {
955
- return SendApiFp(this.configuration).sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
1030
+ sendJsonPost(body, validate, signature, options) {
1031
+ return SendApiFp(this.configuration).sendJsonPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
956
1032
  }
957
1033
  /**
958
1034
  * 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).
@@ -979,12 +1055,12 @@ export class SendApi extends BaseAPI {
979
1055
  /**
980
1056
  * 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/).
981
1057
  * @summary Validate an invoice by json
982
- * @param {FatturaOrdinaria} fatturaOrdinaria
1058
+ * @param {object} body
983
1059
  * @param {*} [options] Override http request option.
984
1060
  * @throws {RequiredError}
985
1061
  */
986
- sendValidateJsonPost(fatturaOrdinaria, options) {
987
- return SendApiFp(this.configuration).sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
1062
+ sendValidateJsonPost(body, options) {
1063
+ return SendApiFp(this.configuration).sendValidateJsonPost(body, options).then((request) => request(this.axios, this.basePath));
988
1064
  }
989
1065
  /**
990
1066
  * 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/).
@@ -999,24 +1075,24 @@ export class SendApi extends BaseAPI {
999
1075
  /**
1000
1076
  * 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/).
1001
1077
  * @summary Validate an invoice by xml
1002
- * @param {FatturaOrdinaria} fatturaOrdinaria
1078
+ * @param {object} body
1003
1079
  * @param {*} [options] Override http request option.
1004
1080
  * @throws {RequiredError}
1005
1081
  */
1006
- sendValidateXmlPost(fatturaOrdinaria, options) {
1007
- return SendApiFp(this.configuration).sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
1082
+ sendValidateXmlPost(body, options) {
1083
+ return SendApiFp(this.configuration).sendValidateXmlPost(body, options).then((request) => request(this.axios, this.basePath));
1008
1084
  }
1009
1085
  /**
1010
1086
  * 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).
1011
1087
  * @summary Add an invoice by xml
1012
- * @param {FatturaOrdinaria} fatturaOrdinaria
1088
+ * @param {object} body
1013
1089
  * @param {boolean} [validate] Validate the document first, and reject it on failure.
1014
1090
  * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
1015
1091
  * @param {*} [options] Override http request option.
1016
1092
  * @throws {RequiredError}
1017
1093
  */
1018
- sendXmlPost(fatturaOrdinaria, validate, signature, options) {
1019
- return SendApiFp(this.configuration).sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
1094
+ sendXmlPost(body, validate, signature, options) {
1095
+ return SendApiFp(this.configuration).sendXmlPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
1020
1096
  }
1021
1097
  }
1022
1098
  export const SendFilePostSignatureEnum = {