@invoicetronic/ts-sdk 1.2.0 → 1.4.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 (381) 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 +40 -0
  17. package/dist/esm/src/api/company-api.js +69 -0
  18. package/dist/esm/src/api/export-api.d.ts +115 -0
  19. package/dist/esm/src/api/export-api.js +179 -0
  20. package/dist/esm/src/api/receive-api.d.ts +40 -0
  21. package/dist/esm/src/api/receive-api.js +69 -0
  22. package/dist/esm/src/api/send-api.d.ts +40 -0
  23. package/dist/esm/src/api/send-api.js +69 -0
  24. package/dist/esm/src/models/event.d.ts +3 -0
  25. package/dist/esm/src/models/index.d.ts +0 -52
  26. package/dist/esm/src/models/index.js +0 -52
  27. package/dist/esm/src/models/receive.d.ts +3 -0
  28. package/dist/esm/src/models/send.d.ts +3 -0
  29. package/dist/esm/src/models/status.d.ts +3 -0
  30. package/dist/esm/src/models/update.d.ts +3 -0
  31. package/dist/esm/src/models/web-hook.d.ts +3 -0
  32. package/dist/src/api/company-api.d.ts +40 -0
  33. package/dist/src/api/company-api.js +69 -0
  34. package/dist/src/api/export-api.d.ts +115 -0
  35. package/dist/src/api/export-api.js +186 -0
  36. package/dist/src/api/receive-api.d.ts +40 -0
  37. package/dist/src/api/receive-api.js +69 -0
  38. package/dist/src/api/send-api.d.ts +40 -0
  39. package/dist/src/api/send-api.js +69 -0
  40. package/dist/src/models/event.d.ts +3 -0
  41. package/dist/src/models/index.d.ts +0 -52
  42. package/dist/src/models/index.js +0 -52
  43. package/dist/src/models/receive.d.ts +3 -0
  44. package/dist/src/models/send.d.ts +3 -0
  45. package/dist/src/models/status.d.ts +3 -0
  46. package/dist/src/models/update.d.ts +3 -0
  47. package/dist/src/models/web-hook.d.ts +3 -0
  48. package/docs/CompanyApi.md +54 -0
  49. package/docs/Event.md +1 -0
  50. package/docs/ExportApi.md +79 -0
  51. package/docs/Receive.md +1 -0
  52. package/docs/ReceiveApi.md +53 -0
  53. package/docs/Send.md +1 -0
  54. package/docs/SendApi.md +53 -0
  55. package/docs/Status.md +1 -0
  56. package/docs/Update.md +1 -0
  57. package/docs/WebHook.md +1 -0
  58. package/package.json +1 -1
  59. package/src/api/company-api.ts +81 -0
  60. package/src/api/export-api.ts +211 -0
  61. package/src/api/receive-api.ts +83 -0
  62. package/src/api/send-api.ts +81 -0
  63. package/src/models/event.ts +3 -0
  64. package/src/models/index.ts +0 -52
  65. package/src/models/receive.ts +3 -0
  66. package/src/models/send.ts +3 -0
  67. package/src/models/status.ts +3 -0
  68. package/src/models/update.ts +3 -0
  69. package/src/models/web-hook.ts +3 -0
  70. package/dist/esm/src/models/allegati.d.ts +0 -18
  71. package/dist/esm/src/models/allegati.js +0 -14
  72. package/dist/esm/src/models/altri-dati-gestionali.d.ts +0 -17
  73. package/dist/esm/src/models/altri-dati-gestionali.js +0 -14
  74. package/dist/esm/src/models/anagrafica.d.ts +0 -18
  75. package/dist/esm/src/models/anagrafica.js +0 -14
  76. package/dist/esm/src/models/cedente-prestatore.d.ts +0 -24
  77. package/dist/esm/src/models/cedente-prestatore.js +0 -14
  78. package/dist/esm/src/models/cessionario-committente.d.ts +0 -21
  79. package/dist/esm/src/models/cessionario-committente.js +0 -14
  80. package/dist/esm/src/models/codice-articolo.d.ts +0 -15
  81. package/dist/esm/src/models/codice-articolo.js +0 -14
  82. package/dist/esm/src/models/contatti-trasmittente.d.ts +0 -15
  83. package/dist/esm/src/models/contatti-trasmittente.js +0 -14
  84. package/dist/esm/src/models/contatti.d.ts +0 -16
  85. package/dist/esm/src/models/contatti.js +0 -14
  86. package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -23
  87. package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.js +0 -14
  88. package/dist/esm/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -18
  89. package/dist/esm/src/models/dati-anagrafici-cessionario-committente.js +0 -14
  90. package/dist/esm/src/models/dati-anagrafici-vettore.d.ts +0 -19
  91. package/dist/esm/src/models/dati-anagrafici-vettore.js +0 -14
  92. package/dist/esm/src/models/dati-anagrafici.d.ts +0 -18
  93. package/dist/esm/src/models/dati-anagrafici.js +0 -14
  94. package/dist/esm/src/models/dati-beni-servizi.d.ts +0 -17
  95. package/dist/esm/src/models/dati-beni-servizi.js +0 -14
  96. package/dist/esm/src/models/dati-bollo.d.ts +0 -15
  97. package/dist/esm/src/models/dati-bollo.js +0 -14
  98. package/dist/esm/src/models/dati-cassa-previdenziale.d.ts +0 -21
  99. package/dist/esm/src/models/dati-cassa-previdenziale.js +0 -14
  100. package/dist/esm/src/models/dati-contratto.d.ts +0 -20
  101. package/dist/esm/src/models/dati-contratto.js +0 -14
  102. package/dist/esm/src/models/dati-convenzione.d.ts +0 -20
  103. package/dist/esm/src/models/dati-convenzione.js +0 -14
  104. package/dist/esm/src/models/dati-ddt.d.ts +0 -16
  105. package/dist/esm/src/models/dati-ddt.js +0 -14
  106. package/dist/esm/src/models/dati-fatture-collegate.d.ts +0 -20
  107. package/dist/esm/src/models/dati-fatture-collegate.js +0 -14
  108. package/dist/esm/src/models/dati-generali-documento.d.ts +0 -29
  109. package/dist/esm/src/models/dati-generali-documento.js +0 -14
  110. package/dist/esm/src/models/dati-generali.d.ts +0 -33
  111. package/dist/esm/src/models/dati-generali.js +0 -14
  112. package/dist/esm/src/models/dati-ordine-acquisto.d.ts +0 -20
  113. package/dist/esm/src/models/dati-ordine-acquisto.js +0 -14
  114. package/dist/esm/src/models/dati-pagamento.d.ts +0 -16
  115. package/dist/esm/src/models/dati-pagamento.js +0 -14
  116. package/dist/esm/src/models/dati-ricezione.d.ts +0 -20
  117. package/dist/esm/src/models/dati-ricezione.js +0 -14
  118. package/dist/esm/src/models/dati-riepilogo.d.ts +0 -21
  119. package/dist/esm/src/models/dati-riepilogo.js +0 -14
  120. package/dist/esm/src/models/dati-ritenuta.d.ts +0 -17
  121. package/dist/esm/src/models/dati-ritenuta.js +0 -14
  122. package/dist/esm/src/models/dati-sal.d.ts +0 -14
  123. package/dist/esm/src/models/dati-sal.js +0 -14
  124. package/dist/esm/src/models/dati-trasmissione.d.ts +0 -21
  125. package/dist/esm/src/models/dati-trasmissione.js +0 -14
  126. package/dist/esm/src/models/dati-trasporto.d.ts +0 -28
  127. package/dist/esm/src/models/dati-trasporto.js +0 -14
  128. package/dist/esm/src/models/dati-veicoli.d.ts +0 -15
  129. package/dist/esm/src/models/dati-veicoli.js +0 -14
  130. package/dist/esm/src/models/dettaglio-linee.d.ts +0 -32
  131. package/dist/esm/src/models/dettaglio-linee.js +0 -14
  132. package/dist/esm/src/models/dettaglio-pagamento.d.ts +0 -34
  133. package/dist/esm/src/models/dettaglio-pagamento.js +0 -14
  134. package/dist/esm/src/models/document-data.d.ts +0 -15
  135. package/dist/esm/src/models/document-data.js +0 -14
  136. package/dist/esm/src/models/fattura-elettronica-body.d.ts +0 -23
  137. package/dist/esm/src/models/fattura-elettronica-body.js +0 -14
  138. package/dist/esm/src/models/fattura-elettronica-header.d.ts +0 -24
  139. package/dist/esm/src/models/fattura-elettronica-header.js +0 -14
  140. package/dist/esm/src/models/fattura-ordinaria.d.ts +0 -18
  141. package/dist/esm/src/models/fattura-ordinaria.js +0 -14
  142. package/dist/esm/src/models/fattura-principale.d.ts +0 -15
  143. package/dist/esm/src/models/fattura-principale.js +0 -14
  144. package/dist/esm/src/models/id-fiscale-iva.d.ts +0 -15
  145. package/dist/esm/src/models/id-fiscale-iva.js +0 -14
  146. package/dist/esm/src/models/id-trasmittente.d.ts +0 -15
  147. package/dist/esm/src/models/id-trasmittente.js +0 -14
  148. package/dist/esm/src/models/indirizzo-resa.d.ts +0 -19
  149. package/dist/esm/src/models/indirizzo-resa.js +0 -14
  150. package/dist/esm/src/models/iscrizione-rea.d.ts +0 -18
  151. package/dist/esm/src/models/iscrizione-rea.js +0 -14
  152. package/dist/esm/src/models/model-error.d.ts +0 -28
  153. package/dist/esm/src/models/model-error.js +0 -14
  154. package/dist/esm/src/models/problem-details.d.ts +0 -19
  155. package/dist/esm/src/models/problem-details.js +0 -14
  156. package/dist/esm/src/models/problem-http-result.d.ts +0 -17
  157. package/dist/esm/src/models/problem-http-result.js +0 -14
  158. package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -18
  159. package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.js +0 -14
  160. package/dist/esm/src/models/rappresentante-fiscale.d.ts +0 -15
  161. package/dist/esm/src/models/rappresentante-fiscale.js +0 -14
  162. package/dist/esm/src/models/sconto-maggiorazione.d.ts +0 -16
  163. package/dist/esm/src/models/sconto-maggiorazione.js +0 -14
  164. package/dist/esm/src/models/sede-cedente-prestatore.d.ts +0 -19
  165. package/dist/esm/src/models/sede-cedente-prestatore.js +0 -14
  166. package/dist/esm/src/models/sede-cessionario-committente.d.ts +0 -19
  167. package/dist/esm/src/models/sede-cessionario-committente.js +0 -14
  168. package/dist/esm/src/models/send-reduced.d.ts +0 -39
  169. package/dist/esm/src/models/send-reduced.js +0 -14
  170. package/dist/esm/src/models/stabile-organizzazione.d.ts +0 -19
  171. package/dist/esm/src/models/stabile-organizzazione.js +0 -14
  172. package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -15
  173. package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.js +0 -14
  174. package/dist/src/models/allegati.d.ts +0 -18
  175. package/dist/src/models/allegati.js +0 -15
  176. package/dist/src/models/altri-dati-gestionali.d.ts +0 -17
  177. package/dist/src/models/altri-dati-gestionali.js +0 -15
  178. package/dist/src/models/anagrafica.d.ts +0 -18
  179. package/dist/src/models/anagrafica.js +0 -15
  180. package/dist/src/models/cedente-prestatore.d.ts +0 -24
  181. package/dist/src/models/cedente-prestatore.js +0 -15
  182. package/dist/src/models/cessionario-committente.d.ts +0 -21
  183. package/dist/src/models/cessionario-committente.js +0 -15
  184. package/dist/src/models/codice-articolo.d.ts +0 -15
  185. package/dist/src/models/codice-articolo.js +0 -15
  186. package/dist/src/models/contatti-trasmittente.d.ts +0 -15
  187. package/dist/src/models/contatti-trasmittente.js +0 -15
  188. package/dist/src/models/contatti.d.ts +0 -16
  189. package/dist/src/models/contatti.js +0 -15
  190. package/dist/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -23
  191. package/dist/src/models/dati-anagrafici-cedente-prestatore.js +0 -15
  192. package/dist/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -18
  193. package/dist/src/models/dati-anagrafici-cessionario-committente.js +0 -15
  194. package/dist/src/models/dati-anagrafici-vettore.d.ts +0 -19
  195. package/dist/src/models/dati-anagrafici-vettore.js +0 -15
  196. package/dist/src/models/dati-anagrafici.d.ts +0 -18
  197. package/dist/src/models/dati-anagrafici.js +0 -15
  198. package/dist/src/models/dati-beni-servizi.d.ts +0 -17
  199. package/dist/src/models/dati-beni-servizi.js +0 -15
  200. package/dist/src/models/dati-bollo.d.ts +0 -15
  201. package/dist/src/models/dati-bollo.js +0 -15
  202. package/dist/src/models/dati-cassa-previdenziale.d.ts +0 -21
  203. package/dist/src/models/dati-cassa-previdenziale.js +0 -15
  204. package/dist/src/models/dati-contratto.d.ts +0 -20
  205. package/dist/src/models/dati-contratto.js +0 -15
  206. package/dist/src/models/dati-convenzione.d.ts +0 -20
  207. package/dist/src/models/dati-convenzione.js +0 -15
  208. package/dist/src/models/dati-ddt.d.ts +0 -16
  209. package/dist/src/models/dati-ddt.js +0 -15
  210. package/dist/src/models/dati-fatture-collegate.d.ts +0 -20
  211. package/dist/src/models/dati-fatture-collegate.js +0 -15
  212. package/dist/src/models/dati-generali-documento.d.ts +0 -29
  213. package/dist/src/models/dati-generali-documento.js +0 -15
  214. package/dist/src/models/dati-generali.d.ts +0 -33
  215. package/dist/src/models/dati-generali.js +0 -15
  216. package/dist/src/models/dati-ordine-acquisto.d.ts +0 -20
  217. package/dist/src/models/dati-ordine-acquisto.js +0 -15
  218. package/dist/src/models/dati-pagamento.d.ts +0 -16
  219. package/dist/src/models/dati-pagamento.js +0 -15
  220. package/dist/src/models/dati-ricezione.d.ts +0 -20
  221. package/dist/src/models/dati-ricezione.js +0 -15
  222. package/dist/src/models/dati-riepilogo.d.ts +0 -21
  223. package/dist/src/models/dati-riepilogo.js +0 -15
  224. package/dist/src/models/dati-ritenuta.d.ts +0 -17
  225. package/dist/src/models/dati-ritenuta.js +0 -15
  226. package/dist/src/models/dati-sal.d.ts +0 -14
  227. package/dist/src/models/dati-sal.js +0 -15
  228. package/dist/src/models/dati-trasmissione.d.ts +0 -21
  229. package/dist/src/models/dati-trasmissione.js +0 -15
  230. package/dist/src/models/dati-trasporto.d.ts +0 -28
  231. package/dist/src/models/dati-trasporto.js +0 -15
  232. package/dist/src/models/dati-veicoli.d.ts +0 -15
  233. package/dist/src/models/dati-veicoli.js +0 -15
  234. package/dist/src/models/dettaglio-linee.d.ts +0 -32
  235. package/dist/src/models/dettaglio-linee.js +0 -15
  236. package/dist/src/models/dettaglio-pagamento.d.ts +0 -34
  237. package/dist/src/models/dettaglio-pagamento.js +0 -15
  238. package/dist/src/models/document-data.d.ts +0 -15
  239. package/dist/src/models/document-data.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/model-error.d.ts +0 -28
  257. package/dist/src/models/model-error.js +0 -15
  258. package/dist/src/models/problem-details.d.ts +0 -19
  259. package/dist/src/models/problem-details.js +0 -15
  260. package/dist/src/models/problem-http-result.d.ts +0 -17
  261. package/dist/src/models/problem-http-result.js +0 -15
  262. package/dist/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -18
  263. package/dist/src/models/rappresentante-fiscale-cessionario-committente.js +0 -15
  264. package/dist/src/models/rappresentante-fiscale.d.ts +0 -15
  265. package/dist/src/models/rappresentante-fiscale.js +0 -15
  266. package/dist/src/models/sconto-maggiorazione.d.ts +0 -16
  267. package/dist/src/models/sconto-maggiorazione.js +0 -15
  268. package/dist/src/models/sede-cedente-prestatore.d.ts +0 -19
  269. package/dist/src/models/sede-cedente-prestatore.js +0 -15
  270. package/dist/src/models/sede-cessionario-committente.d.ts +0 -19
  271. package/dist/src/models/sede-cessionario-committente.js +0 -15
  272. package/dist/src/models/send-reduced.d.ts +0 -39
  273. package/dist/src/models/send-reduced.js +0 -15
  274. package/dist/src/models/stabile-organizzazione.d.ts +0 -19
  275. package/dist/src/models/stabile-organizzazione.js +0 -15
  276. package/dist/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -15
  277. package/dist/src/models/terzo-intermediario-osoggetto-emittente.js +0 -15
  278. package/docs/Allegati.md +0 -28
  279. package/docs/AltriDatiGestionali.md +0 -26
  280. package/docs/Anagrafica.md +0 -28
  281. package/docs/CedentePrestatore.md +0 -30
  282. package/docs/CessionarioCommittente.md +0 -26
  283. package/docs/CodiceArticolo.md +0 -22
  284. package/docs/Contatti.md +0 -24
  285. package/docs/ContattiTrasmittente.md +0 -22
  286. package/docs/DatiAnagrafici.md +0 -24
  287. package/docs/DatiAnagraficiCedentePrestatore.md +0 -34
  288. package/docs/DatiAnagraficiCessionarioCommittente.md +0 -24
  289. package/docs/DatiAnagraficiVettore.md +0 -26
  290. package/docs/DatiBeniServizi.md +0 -22
  291. package/docs/DatiBollo.md +0 -22
  292. package/docs/DatiCassaPrevidenziale.md +0 -34
  293. package/docs/DatiContratto.md +0 -32
  294. package/docs/DatiConvenzione.md +0 -32
  295. package/docs/DatiDDT.md +0 -24
  296. package/docs/DatiFattureCollegate.md +0 -32
  297. package/docs/DatiGenerali.md +0 -38
  298. package/docs/DatiGeneraliDocumento.md +0 -42
  299. package/docs/DatiOrdineAcquisto.md +0 -32
  300. package/docs/DatiPagamento.md +0 -22
  301. package/docs/DatiRicezione.md +0 -32
  302. package/docs/DatiRiepilogo.md +0 -34
  303. package/docs/DatiRitenuta.md +0 -26
  304. package/docs/DatiSAL.md +0 -20
  305. package/docs/DatiTrasmissione.md +0 -30
  306. package/docs/DatiTrasporto.md +0 -44
  307. package/docs/DatiVeicoli.md +0 -22
  308. package/docs/DettaglioLinee.md +0 -50
  309. package/docs/DettaglioPagamento.md +0 -60
  310. package/docs/DocumentData.md +0 -22
  311. package/docs/Error.md +0 -25
  312. package/docs/FatturaElettronicaBody.md +0 -28
  313. package/docs/FatturaElettronicaHeader.md +0 -30
  314. package/docs/FatturaOrdinaria.md +0 -24
  315. package/docs/FatturaPrincipale.md +0 -22
  316. package/docs/IdFiscaleIVA.md +0 -22
  317. package/docs/IdTrasmittente.md +0 -22
  318. package/docs/IndirizzoResa.md +0 -30
  319. package/docs/IscrizioneREA.md +0 -28
  320. package/docs/ProblemDetails.md +0 -28
  321. package/docs/ProblemHttpResult.md +0 -24
  322. package/docs/RappresentanteFiscale.md +0 -20
  323. package/docs/RappresentanteFiscaleCessionarioCommittente.md +0 -26
  324. package/docs/ScontoMaggiorazione.md +0 -24
  325. package/docs/SedeCedentePrestatore.md +0 -30
  326. package/docs/SedeCessionarioCommittente.md +0 -30
  327. package/docs/SendReduced.md +0 -29
  328. package/docs/StabileOrganizzazione.md +0 -30
  329. package/docs/TerzoIntermediarioOSoggettoEmittente.md +0 -20
  330. package/src/models/allegati.ts +0 -24
  331. package/src/models/altri-dati-gestionali.ts +0 -23
  332. package/src/models/anagrafica.ts +0 -24
  333. package/src/models/cedente-prestatore.ts +0 -40
  334. package/src/models/cessionario-committente.ts +0 -35
  335. package/src/models/codice-articolo.ts +0 -21
  336. package/src/models/contatti-trasmittente.ts +0 -21
  337. package/src/models/contatti.ts +0 -22
  338. package/src/models/dati-anagrafici-cedente-prestatore.ts +0 -33
  339. package/src/models/dati-anagrafici-cessionario-committente.ts +0 -28
  340. package/src/models/dati-anagrafici-vettore.ts +0 -29
  341. package/src/models/dati-anagrafici.ts +0 -28
  342. package/src/models/dati-beni-servizi.ts +0 -27
  343. package/src/models/dati-bollo.ts +0 -21
  344. package/src/models/dati-cassa-previdenziale.ts +0 -27
  345. package/src/models/dati-contratto.ts +0 -26
  346. package/src/models/dati-convenzione.ts +0 -26
  347. package/src/models/dati-ddt.ts +0 -22
  348. package/src/models/dati-fatture-collegate.ts +0 -26
  349. package/src/models/dati-generali-documento.ts +0 -43
  350. package/src/models/dati-generali.ts +0 -59
  351. package/src/models/dati-ordine-acquisto.ts +0 -26
  352. package/src/models/dati-pagamento.ts +0 -24
  353. package/src/models/dati-ricezione.ts +0 -26
  354. package/src/models/dati-riepilogo.ts +0 -27
  355. package/src/models/dati-ritenuta.ts +0 -23
  356. package/src/models/dati-sal.ts +0 -20
  357. package/src/models/dati-trasmissione.ts +0 -31
  358. package/src/models/dati-trasporto.ts +0 -38
  359. package/src/models/dati-veicoli.ts +0 -21
  360. package/src/models/dettaglio-linee.ts +0 -44
  361. package/src/models/dettaglio-pagamento.ts +0 -40
  362. package/src/models/document-data.ts +0 -21
  363. package/src/models/fattura-elettronica-body.ts +0 -39
  364. package/src/models/fattura-elettronica-header.ts +0 -40
  365. package/src/models/fattura-ordinaria.ts +0 -28
  366. package/src/models/fattura-principale.ts +0 -21
  367. package/src/models/id-fiscale-iva.ts +0 -21
  368. package/src/models/id-trasmittente.ts +0 -21
  369. package/src/models/indirizzo-resa.ts +0 -25
  370. package/src/models/iscrizione-rea.ts +0 -24
  371. package/src/models/model-error.ts +0 -34
  372. package/src/models/problem-details.ts +0 -26
  373. package/src/models/problem-http-result.ts +0 -25
  374. package/src/models/rappresentante-fiscale-cessionario-committente.ts +0 -26
  375. package/src/models/rappresentante-fiscale.ts +0 -23
  376. package/src/models/sconto-maggiorazione.ts +0 -22
  377. package/src/models/sede-cedente-prestatore.ts +0 -25
  378. package/src/models/sede-cessionario-committente.ts +0 -25
  379. package/src/models/send-reduced.ts +0 -45
  380. package/src/models/stabile-organizzazione.ts +0 -25
  381. package/src/models/terzo-intermediario-osoggetto-emittente.ts +0 -23
package/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- # Changelog\n\n## [1.2.0] - 2026-02-10\nSee main repository changelog for details.
1
+ # Changelog\n\n## [1.4.0] - 2026-02-25\nSee main repository changelog for details.
package/README.md CHANGED
@@ -7,7 +7,7 @@ For more information, see [Invoicetronic website][2]
7
7
  [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/
8
8
  [2]: https://invoicetronic.com/
9
9
 
10
- ## @invoicetronic/ts-sdk@1.2
10
+ ## @invoicetronic/ts-sdk@1.4
11
11
 
12
12
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
13
13
 
@@ -45,7 +45,7 @@ navigate to the folder of your consuming project and run one of the following co
45
45
  _published:_
46
46
 
47
47
  ```
48
- npm install @invoicetronic/ts-sdk@1.2 --save
48
+ npm install @invoicetronic/ts-sdk@1.4 --save
49
49
  ```
50
50
 
51
51
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -15,6 +15,7 @@
15
15
 
16
16
 
17
17
  export * from './src/api/company-api';
18
+ export * from './src/api/export-api';
18
19
  export * from './src/api/log-api';
19
20
  export * from './src/api/receive-api';
20
21
  export * from './src/api/send-api';
package/common.ts CHANGED
@@ -97,7 +97,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) {
97
97
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
98
98
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
99
99
  */
100
- export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) {
100
+ // @ts-ignore
101
+ export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {
101
102
  if (value instanceof Set) {
102
103
  return Array.from(value);
103
104
  } else {
package/configuration.ts CHANGED
@@ -98,7 +98,7 @@ export class Configuration {
98
98
  this.baseOptions = {
99
99
  ...param.baseOptions,
100
100
  headers: {
101
- 'User-Agent': "Invoicetronic/1.2/TypeScript-SDK",
101
+ 'User-Agent': "Invoicetronic/1.4/TypeScript-SDK",
102
102
  ...param.baseOptions?.headers,
103
103
  },
104
104
  };
package/dist/api.d.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './src/api/company-api';
13
+ export * from './src/api/export-api';
13
14
  export * from './src/api/log-api';
14
15
  export * from './src/api/receive-api';
15
16
  export * from './src/api/send-api';
package/dist/api.js CHANGED
@@ -28,6 +28,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./src/api/company-api"), exports);
31
+ __exportStar(require("./src/api/export-api"), exports);
31
32
  __exportStar(require("./src/api/log-api"), exports);
32
33
  __exportStar(require("./src/api/receive-api"), exports);
33
34
  __exportStar(require("./src/api/send-api"), exports);
package/dist/common.d.ts CHANGED
@@ -29,7 +29,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
29
29
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
30
30
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
31
31
  */
32
- export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
32
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
33
33
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
34
34
  export declare const toPathString: (url: URL) => string;
35
35
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/dist/common.js CHANGED
@@ -106,6 +106,7 @@ exports.setSearchParams = setSearchParams;
106
106
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
107
107
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
108
108
  */
109
+ // @ts-ignore
109
110
  const replaceWithSerializableTypeIfNeeded = function (key, value) {
110
111
  if (value instanceof Set) {
111
112
  return Array.from(value);
@@ -23,7 +23,7 @@ class Configuration {
23
23
  this.awsv4 = param.awsv4;
24
24
  this.basePath = param.basePath;
25
25
  this.serverIndex = param.serverIndex;
26
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "Invoicetronic/1.2/TypeScript-SDK" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
26
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "Invoicetronic/1.4/TypeScript-SDK" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
27
27
  this.formDataCtor = param.formDataCtor;
28
28
  }
29
29
  /**
package/dist/esm/api.d.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './src/api/company-api';
13
+ export * from './src/api/export-api';
13
14
  export * from './src/api/log-api';
14
15
  export * from './src/api/receive-api';
15
16
  export * from './src/api/send-api';
package/dist/esm/api.js CHANGED
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  export * from './src/api/company-api';
15
+ export * from './src/api/export-api';
15
16
  export * from './src/api/log-api';
16
17
  export * from './src/api/receive-api';
17
18
  export * from './src/api/send-api';
@@ -29,7 +29,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
29
29
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
30
30
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
31
31
  */
32
- export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
32
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
33
33
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
34
34
  export declare const toPathString: (url: URL) => string;
35
35
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -97,6 +97,7 @@ export const setSearchParams = function (url, ...objects) {
97
97
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
98
98
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
99
99
  */
100
+ // @ts-ignore
100
101
  export const replaceWithSerializableTypeIfNeeded = function (key, value) {
101
102
  if (value instanceof Set) {
102
103
  return Array.from(value);
@@ -20,7 +20,7 @@ export class Configuration {
20
20
  this.awsv4 = param.awsv4;
21
21
  this.basePath = param.basePath;
22
22
  this.serverIndex = param.serverIndex;
23
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "Invoicetronic/1.2/TypeScript-SDK" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
23
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "Invoicetronic/1.4/TypeScript-SDK" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
24
24
  this.formDataCtor = param.formDataCtor;
25
25
  }
26
26
  /**
@@ -60,6 +60,14 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
60
60
  * @throws {RequiredError}
61
61
  */
62
62
  companyPut: (company: Company, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
63
+ /**
64
+ * Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
65
+ * @summary Get a company by vat number
66
+ * @param {string} vat
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ */
70
+ companyVatGet: (vat: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
63
71
  };
64
72
  /**
65
73
  * CompanyApi - functional programming interface
@@ -108,6 +116,14 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
108
116
  * @throws {RequiredError}
109
117
  */
110
118
  companyPut(company: Company, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Company>>;
119
+ /**
120
+ * Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
121
+ * @summary Get a company by vat number
122
+ * @param {string} vat
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ companyVatGet(vat: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Company>>;
111
127
  };
112
128
  /**
113
129
  * CompanyApi - factory interface
@@ -156,6 +172,14 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
156
172
  * @throws {RequiredError}
157
173
  */
158
174
  companyPut(company: Company, options?: RawAxiosRequestConfig): AxiosPromise<Company>;
175
+ /**
176
+ * Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
177
+ * @summary Get a company by vat number
178
+ * @param {string} vat
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ companyVatGet(vat: string, options?: RawAxiosRequestConfig): AxiosPromise<Company>;
159
183
  };
160
184
  /**
161
185
  * CompanyApi - interface
@@ -204,6 +228,14 @@ export interface CompanyApiInterface {
204
228
  * @throws {RequiredError}
205
229
  */
206
230
  companyPut(company: Company, options?: RawAxiosRequestConfig): AxiosPromise<Company>;
231
+ /**
232
+ * Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
233
+ * @summary Get a company by vat number
234
+ * @param {string} vat
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ companyVatGet(vat: string, options?: RawAxiosRequestConfig): AxiosPromise<Company>;
207
239
  }
208
240
  /**
209
241
  * CompanyApi - object-oriented interface
@@ -252,4 +284,12 @@ export declare class CompanyApi extends BaseAPI implements CompanyApiInterface {
252
284
  * @throws {RequiredError}
253
285
  */
254
286
  companyPut(company: Company, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company, any, {}>>;
287
+ /**
288
+ * Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
289
+ * @summary Get a company by vat number
290
+ * @param {string} vat
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ */
294
+ companyVatGet(vat: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company, any, {}>>;
255
295
  }
@@ -213,6 +213,39 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
213
213
  options: localVarRequestOptions,
214
214
  };
215
215
  }),
216
+ /**
217
+ * Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
218
+ * @summary Get a company by vat number
219
+ * @param {string} vat
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ companyVatGet: (vat_1, ...args_1) => __awaiter(this, [vat_1, ...args_1], void 0, function* (vat, options = {}) {
224
+ // verify required parameter 'vat' is not null or undefined
225
+ assertParamExists('companyVatGet', 'vat', vat);
226
+ const localVarPath = `/company/{vat}`
227
+ .replace(`{${"vat"}}`, encodeURIComponent(String(vat)));
228
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
229
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
230
+ let baseOptions;
231
+ if (configuration) {
232
+ baseOptions = configuration.baseOptions;
233
+ }
234
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
235
+ const localVarHeaderParameter = {};
236
+ const localVarQueryParameter = {};
237
+ // authentication Basic required
238
+ // http basic authentication required
239
+ setBasicAuthToObject(localVarRequestOptions, configuration);
240
+ localVarHeaderParameter['Accept'] = 'application/json';
241
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
242
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
243
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
244
+ return {
245
+ url: toPathString(localVarUrlObj),
246
+ options: localVarRequestOptions,
247
+ };
248
+ }),
216
249
  };
217
250
  };
218
251
  /**
@@ -304,6 +337,22 @@ export const CompanyApiFp = function (configuration) {
304
337
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
305
338
  });
306
339
  },
340
+ /**
341
+ * Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
342
+ * @summary Get a company by vat number
343
+ * @param {string} vat
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ companyVatGet(vat, options) {
348
+ return __awaiter(this, void 0, void 0, function* () {
349
+ var _a, _b, _c;
350
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.companyVatGet(vat, options);
351
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
352
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.companyVatGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
353
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
354
+ });
355
+ },
307
356
  };
308
357
  };
309
358
  /**
@@ -365,6 +414,16 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
365
414
  companyPut(company, options) {
366
415
  return localVarFp.companyPut(company, options).then((request) => request(axios, basePath));
367
416
  },
417
+ /**
418
+ * Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
419
+ * @summary Get a company by vat number
420
+ * @param {string} vat
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ */
424
+ companyVatGet(vat, options) {
425
+ return localVarFp.companyVatGet(vat, options).then((request) => request(axios, basePath));
426
+ },
368
427
  };
369
428
  };
370
429
  /**
@@ -424,4 +483,14 @@ export class CompanyApi extends BaseAPI {
424
483
  companyPut(company, options) {
425
484
  return CompanyApiFp(this.configuration).companyPut(company, options).then((request) => request(this.axios, this.basePath));
426
485
  }
486
+ /**
487
+ * Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
488
+ * @summary Get a company by vat number
489
+ * @param {string} vat
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ */
493
+ companyVatGet(vat, options) {
494
+ return CompanyApiFp(this.configuration).companyVatGet(vat, options).then((request) => request(this.axios, this.basePath));
495
+ }
427
496
  }
@@ -0,0 +1,115 @@
1
+ /**
2
+ * Invoicetronic API
3
+ * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
4
+ *
5
+ * The version of the OpenAPI document: 1
6
+ * Contact: info@invoicetronic.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../../base';
15
+ /**
16
+ * ExportApi - axios parameter creator
17
+ */
18
+ export declare const ExportApiAxiosParamCreator: (configuration?: Configuration) => {
19
+ /**
20
+ * Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
21
+ * @summary Export invoices as a ZIP archive
22
+ * @param {ExportGetTypeEnum} [type]
23
+ * @param {number} [companyId] Company id
24
+ * @param {number} [year]
25
+ * @param {number} [month]
26
+ * @param {number} [quarter]
27
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
28
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ exportGet: (type?: ExportGetTypeEnum, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33
+ };
34
+ /**
35
+ * ExportApi - functional programming interface
36
+ */
37
+ export declare const ExportApiFp: (configuration?: Configuration) => {
38
+ /**
39
+ * Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
40
+ * @summary Export invoices as a ZIP archive
41
+ * @param {ExportGetTypeEnum} [type]
42
+ * @param {number} [companyId] Company id
43
+ * @param {number} [year]
44
+ * @param {number} [month]
45
+ * @param {number} [quarter]
46
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
47
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ exportGet(type?: ExportGetTypeEnum, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
52
+ };
53
+ /**
54
+ * ExportApi - factory interface
55
+ */
56
+ export declare const ExportApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
57
+ /**
58
+ * Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
59
+ * @summary Export invoices as a ZIP archive
60
+ * @param {ExportGetTypeEnum} [type]
61
+ * @param {number} [companyId] Company id
62
+ * @param {number} [year]
63
+ * @param {number} [month]
64
+ * @param {number} [quarter]
65
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
66
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ */
70
+ exportGet(type?: ExportGetTypeEnum, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
71
+ };
72
+ /**
73
+ * ExportApi - interface
74
+ */
75
+ export interface ExportApiInterface {
76
+ /**
77
+ * Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
78
+ * @summary Export invoices as a ZIP archive
79
+ * @param {ExportGetTypeEnum} [type]
80
+ * @param {number} [companyId] Company id
81
+ * @param {number} [year]
82
+ * @param {number} [month]
83
+ * @param {number} [quarter]
84
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
85
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ exportGet(type?: ExportGetTypeEnum, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
90
+ }
91
+ /**
92
+ * ExportApi - object-oriented interface
93
+ */
94
+ export declare class ExportApi extends BaseAPI implements ExportApiInterface {
95
+ /**
96
+ * Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
97
+ * @summary Export invoices as a ZIP archive
98
+ * @param {ExportGetTypeEnum} [type]
99
+ * @param {number} [companyId] Company id
100
+ * @param {number} [year]
101
+ * @param {number} [month]
102
+ * @param {number} [quarter]
103
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
104
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ exportGet(type?: ExportGetTypeEnum, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
109
+ }
110
+ export declare const ExportGetTypeEnum: {
111
+ readonly Send: "Send";
112
+ readonly Receive: "Receive";
113
+ readonly Both: "Both";
114
+ };
115
+ export type ExportGetTypeEnum = typeof ExportGetTypeEnum[keyof typeof ExportGetTypeEnum];
@@ -0,0 +1,179 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Invoicetronic API
5
+ * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: info@invoicetronic.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // URLSearchParams not necessarily used
25
+ // @ts-ignore
26
+ import { URL } from 'url';
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ import { DUMMY_BASE_URL, setBasicAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../../common';
30
+ // @ts-ignore
31
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
32
+ /**
33
+ * ExportApi - axios parameter creator
34
+ */
35
+ export const ExportApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
39
+ * @summary Export invoices as a ZIP archive
40
+ * @param {ExportGetTypeEnum} [type]
41
+ * @param {number} [companyId] Company id
42
+ * @param {number} [year]
43
+ * @param {number} [month]
44
+ * @param {number} [quarter]
45
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
46
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ exportGet: (type_1, companyId_1, year_1, month_1, quarter_1, documentDateFrom_1, documentDateTo_1, ...args_1) => __awaiter(this, [type_1, companyId_1, year_1, month_1, quarter_1, documentDateFrom_1, documentDateTo_1, ...args_1], void 0, function* (type, companyId, year, month, quarter, documentDateFrom, documentDateTo, options = {}) {
51
+ const localVarPath = `/export`;
52
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
53
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
54
+ let baseOptions;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ }
58
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
59
+ const localVarHeaderParameter = {};
60
+ const localVarQueryParameter = {};
61
+ // authentication Basic required
62
+ // http basic authentication required
63
+ setBasicAuthToObject(localVarRequestOptions, configuration);
64
+ if (type !== undefined) {
65
+ localVarQueryParameter['type'] = type;
66
+ }
67
+ if (companyId !== undefined) {
68
+ localVarQueryParameter['company_id'] = companyId;
69
+ }
70
+ if (year !== undefined) {
71
+ localVarQueryParameter['year'] = year;
72
+ }
73
+ if (month !== undefined) {
74
+ localVarQueryParameter['month'] = month;
75
+ }
76
+ if (quarter !== undefined) {
77
+ localVarQueryParameter['quarter'] = quarter;
78
+ }
79
+ if (documentDateFrom !== undefined) {
80
+ localVarQueryParameter['document_date_from'] = (documentDateFrom instanceof Date) ?
81
+ documentDateFrom.toISOString() :
82
+ documentDateFrom;
83
+ }
84
+ if (documentDateTo !== undefined) {
85
+ localVarQueryParameter['document_date_to'] = (documentDateTo instanceof Date) ?
86
+ documentDateTo.toISOString() :
87
+ documentDateTo;
88
+ }
89
+ localVarHeaderParameter['Accept'] = 'application/problem+json';
90
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
91
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
92
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
93
+ return {
94
+ url: toPathString(localVarUrlObj),
95
+ options: localVarRequestOptions,
96
+ };
97
+ }),
98
+ };
99
+ };
100
+ /**
101
+ * ExportApi - functional programming interface
102
+ */
103
+ export const ExportApiFp = function (configuration) {
104
+ const localVarAxiosParamCreator = ExportApiAxiosParamCreator(configuration);
105
+ return {
106
+ /**
107
+ * Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
108
+ * @summary Export invoices as a ZIP archive
109
+ * @param {ExportGetTypeEnum} [type]
110
+ * @param {number} [companyId] Company id
111
+ * @param {number} [year]
112
+ * @param {number} [month]
113
+ * @param {number} [quarter]
114
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
115
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ exportGet(type, companyId, year, month, quarter, documentDateFrom, documentDateTo, options) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ var _a, _b, _c;
122
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportGet(type, companyId, year, month, quarter, documentDateFrom, documentDateTo, options);
123
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
124
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExportApi.exportGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
125
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
126
+ });
127
+ },
128
+ };
129
+ };
130
+ /**
131
+ * ExportApi - factory interface
132
+ */
133
+ export const ExportApiFactory = function (configuration, basePath, axios) {
134
+ const localVarFp = ExportApiFp(configuration);
135
+ return {
136
+ /**
137
+ * Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
138
+ * @summary Export invoices as a ZIP archive
139
+ * @param {ExportGetTypeEnum} [type]
140
+ * @param {number} [companyId] Company id
141
+ * @param {number} [year]
142
+ * @param {number} [month]
143
+ * @param {number} [quarter]
144
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
145
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ exportGet(type, companyId, year, month, quarter, documentDateFrom, documentDateTo, options) {
150
+ return localVarFp.exportGet(type, companyId, year, month, quarter, documentDateFrom, documentDateTo, options).then((request) => request(axios, basePath));
151
+ },
152
+ };
153
+ };
154
+ /**
155
+ * ExportApi - object-oriented interface
156
+ */
157
+ export class ExportApi extends BaseAPI {
158
+ /**
159
+ * Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
160
+ * @summary Export invoices as a ZIP archive
161
+ * @param {ExportGetTypeEnum} [type]
162
+ * @param {number} [companyId] Company id
163
+ * @param {number} [year]
164
+ * @param {number} [month]
165
+ * @param {number} [quarter]
166
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
167
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
168
+ * @param {*} [options] Override http request option.
169
+ * @throws {RequiredError}
170
+ */
171
+ exportGet(type, companyId, year, month, quarter, documentDateFrom, documentDateTo, options) {
172
+ return ExportApiFp(this.configuration).exportGet(type, companyId, year, month, quarter, documentDateFrom, documentDateTo, options).then((request) => request(this.axios, this.basePath));
173
+ }
174
+ }
175
+ export const ExportGetTypeEnum = {
176
+ Send: 'Send',
177
+ Receive: 'Receive',
178
+ Both: 'Both'
179
+ };