@invoicetronic/ts-sdk 1.0.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 (438) hide show
  1. package/.github/workflows/release.yml +58 -0
  2. package/LICENSE +21 -0
  3. package/README.md +55 -0
  4. package/api.ts +24 -0
  5. package/base.ts +86 -0
  6. package/common.ts +151 -0
  7. package/configuration.ts +116 -0
  8. package/dist/api.d.ts +18 -0
  9. package/dist/api.js +36 -0
  10. package/dist/base.d.ts +66 -0
  11. package/dist/base.js +65 -0
  12. package/dist/common.d.ts +66 -0
  13. package/dist/common.js +162 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +44 -0
  16. package/dist/esm/api.d.ts +18 -0
  17. package/dist/esm/api.js +20 -0
  18. package/dist/esm/base.d.ts +66 -0
  19. package/dist/esm/base.js +60 -0
  20. package/dist/esm/common.d.ts +66 -0
  21. package/dist/esm/common.js +150 -0
  22. package/dist/esm/configuration.d.ts +91 -0
  23. package/dist/esm/configuration.js +40 -0
  24. package/dist/esm/index.d.ts +14 -0
  25. package/dist/esm/index.js +16 -0
  26. package/dist/esm/src/api/company-api.d.ts +268 -0
  27. package/dist/esm/src/api/company-api.js +426 -0
  28. package/dist/esm/src/api/log-api.d.ts +197 -0
  29. package/dist/esm/src/api/log-api.js +302 -0
  30. package/dist/esm/src/api/receive-api.d.ts +259 -0
  31. package/dist/esm/src/api/receive-api.js +403 -0
  32. package/dist/esm/src/api/send-api.d.ts +676 -0
  33. package/dist/esm/src/api/send-api.js +1063 -0
  34. package/dist/esm/src/api/status-api.d.ts +85 -0
  35. package/dist/esm/src/api/status-api.js +127 -0
  36. package/dist/esm/src/api/update-api.d.ts +207 -0
  37. package/dist/esm/src/api/update-api.js +309 -0
  38. package/dist/esm/src/api/webhook-api.d.ts +393 -0
  39. package/dist/esm/src/api/webhook-api.js +620 -0
  40. package/dist/esm/src/models/allegati.d.ts +48 -0
  41. package/dist/esm/src/models/allegati.js +14 -0
  42. package/dist/esm/src/models/altri-dati-gestionali.d.ts +42 -0
  43. package/dist/esm/src/models/altri-dati-gestionali.js +14 -0
  44. package/dist/esm/src/models/anagrafica.d.ts +48 -0
  45. package/dist/esm/src/models/anagrafica.js +14 -0
  46. package/dist/esm/src/models/cedente-prestatore.d.ts +59 -0
  47. package/dist/esm/src/models/cedente-prestatore.js +14 -0
  48. package/dist/esm/src/models/cessionario-committente.d.ts +46 -0
  49. package/dist/esm/src/models/cessionario-committente.js +14 -0
  50. package/dist/esm/src/models/codice-articolo.d.ts +30 -0
  51. package/dist/esm/src/models/codice-articolo.js +14 -0
  52. package/dist/esm/src/models/company.d.ts +60 -0
  53. package/dist/esm/src/models/company.js +14 -0
  54. package/dist/esm/src/models/contatti-trasmittente.d.ts +30 -0
  55. package/dist/esm/src/models/contatti-trasmittente.js +14 -0
  56. package/dist/esm/src/models/contatti.d.ts +36 -0
  57. package/dist/esm/src/models/contatti.js +14 -0
  58. package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.d.ts +68 -0
  59. package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.js +14 -0
  60. package/dist/esm/src/models/dati-anagrafici-cessionario-committente.d.ts +38 -0
  61. package/dist/esm/src/models/dati-anagrafici-cessionario-committente.js +14 -0
  62. package/dist/esm/src/models/dati-anagrafici-vettore.d.ts +44 -0
  63. package/dist/esm/src/models/dati-anagrafici-vettore.js +14 -0
  64. package/dist/esm/src/models/dati-anagrafici.d.ts +38 -0
  65. package/dist/esm/src/models/dati-anagrafici.js +14 -0
  66. package/dist/esm/src/models/dati-beni-servizi.d.ts +32 -0
  67. package/dist/esm/src/models/dati-beni-servizi.js +14 -0
  68. package/dist/esm/src/models/dati-bollo.d.ts +30 -0
  69. package/dist/esm/src/models/dati-bollo.js +14 -0
  70. package/dist/esm/src/models/dati-cassa-previdenziale.d.ts +66 -0
  71. package/dist/esm/src/models/dati-cassa-previdenziale.js +14 -0
  72. package/dist/esm/src/models/dati-contratto.d.ts +60 -0
  73. package/dist/esm/src/models/dati-contratto.js +14 -0
  74. package/dist/esm/src/models/dati-convenzione.d.ts +60 -0
  75. package/dist/esm/src/models/dati-convenzione.js +14 -0
  76. package/dist/esm/src/models/dati-ddt.d.ts +36 -0
  77. package/dist/esm/src/models/dati-ddt.js +14 -0
  78. package/dist/esm/src/models/dati-fatture-collegate.d.ts +60 -0
  79. package/dist/esm/src/models/dati-fatture-collegate.js +14 -0
  80. package/dist/esm/src/models/dati-generali-documento.d.ts +94 -0
  81. package/dist/esm/src/models/dati-generali-documento.js +14 -0
  82. package/dist/esm/src/models/dati-generali.d.ts +88 -0
  83. package/dist/esm/src/models/dati-generali.js +14 -0
  84. package/dist/esm/src/models/dati-ordine-acquisto.d.ts +60 -0
  85. package/dist/esm/src/models/dati-ordine-acquisto.js +14 -0
  86. package/dist/esm/src/models/dati-pagamento.d.ts +31 -0
  87. package/dist/esm/src/models/dati-pagamento.js +14 -0
  88. package/dist/esm/src/models/dati-ricezione.d.ts +60 -0
  89. package/dist/esm/src/models/dati-ricezione.js +14 -0
  90. package/dist/esm/src/models/dati-riepilogo.d.ts +66 -0
  91. package/dist/esm/src/models/dati-riepilogo.js +14 -0
  92. package/dist/esm/src/models/dati-ritenuta.d.ts +42 -0
  93. package/dist/esm/src/models/dati-ritenuta.js +14 -0
  94. package/dist/esm/src/models/dati-sal.d.ts +24 -0
  95. package/dist/esm/src/models/dati-sal.js +14 -0
  96. package/dist/esm/src/models/dati-trasmissione.d.ts +56 -0
  97. package/dist/esm/src/models/dati-trasmissione.js +14 -0
  98. package/dist/esm/src/models/dati-trasporto.d.ts +98 -0
  99. package/dist/esm/src/models/dati-trasporto.js +14 -0
  100. package/dist/esm/src/models/dati-veicoli.d.ts +30 -0
  101. package/dist/esm/src/models/dati-veicoli.js +14 -0
  102. package/dist/esm/src/models/dettaglio-linee.d.ts +117 -0
  103. package/dist/esm/src/models/dettaglio-linee.js +14 -0
  104. package/dist/esm/src/models/dettaglio-pagamento.d.ts +144 -0
  105. package/dist/esm/src/models/dettaglio-pagamento.js +14 -0
  106. package/dist/esm/src/models/document-data.d.ts +30 -0
  107. package/dist/esm/src/models/document-data.js +14 -0
  108. package/dist/esm/src/models/event.d.ts +108 -0
  109. package/dist/esm/src/models/event.js +14 -0
  110. package/dist/esm/src/models/fattura-elettronica-body.d.ts +53 -0
  111. package/dist/esm/src/models/fattura-elettronica-body.js +14 -0
  112. package/dist/esm/src/models/fattura-elettronica-header.d.ts +59 -0
  113. package/dist/esm/src/models/fattura-elettronica-header.js +14 -0
  114. package/dist/esm/src/models/fattura-ordinaria.d.ts +38 -0
  115. package/dist/esm/src/models/fattura-ordinaria.js +14 -0
  116. package/dist/esm/src/models/fattura-principale.d.ts +30 -0
  117. package/dist/esm/src/models/fattura-principale.js +14 -0
  118. package/dist/esm/src/models/id-fiscale-iva.d.ts +30 -0
  119. package/dist/esm/src/models/id-fiscale-iva.js +14 -0
  120. package/dist/esm/src/models/id-trasmittente.d.ts +30 -0
  121. package/dist/esm/src/models/id-trasmittente.js +14 -0
  122. package/dist/esm/src/models/index.d.ts +60 -0
  123. package/dist/esm/src/models/index.js +60 -0
  124. package/dist/esm/src/models/indirizzo-resa.d.ts +54 -0
  125. package/dist/esm/src/models/indirizzo-resa.js +14 -0
  126. package/dist/esm/src/models/iscrizione-rea.d.ts +48 -0
  127. package/dist/esm/src/models/iscrizione-rea.js +14 -0
  128. package/dist/esm/src/models/model-error.d.ts +36 -0
  129. package/dist/esm/src/models/model-error.js +14 -0
  130. package/dist/esm/src/models/problem-details.d.ts +49 -0
  131. package/dist/esm/src/models/problem-details.js +14 -0
  132. package/dist/esm/src/models/problem-http-result.d.ts +37 -0
  133. package/dist/esm/src/models/problem-http-result.js +14 -0
  134. package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.d.ts +43 -0
  135. package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.js +14 -0
  136. package/dist/esm/src/models/rappresentante-fiscale.d.ts +25 -0
  137. package/dist/esm/src/models/rappresentante-fiscale.js +14 -0
  138. package/dist/esm/src/models/receive.d.ts +126 -0
  139. package/dist/esm/src/models/receive.js +17 -0
  140. package/dist/esm/src/models/sconto-maggiorazione.d.ts +36 -0
  141. package/dist/esm/src/models/sconto-maggiorazione.js +14 -0
  142. package/dist/esm/src/models/sede-cedente-prestatore.d.ts +54 -0
  143. package/dist/esm/src/models/sede-cedente-prestatore.js +14 -0
  144. package/dist/esm/src/models/sede-cessionario-committente.d.ts +54 -0
  145. package/dist/esm/src/models/sede-cessionario-committente.js +14 -0
  146. package/dist/esm/src/models/send-reduced.d.ts +51 -0
  147. package/dist/esm/src/models/send-reduced.js +14 -0
  148. package/dist/esm/src/models/send.d.ts +129 -0
  149. package/dist/esm/src/models/send.js +17 -0
  150. package/dist/esm/src/models/stabile-organizzazione.d.ts +54 -0
  151. package/dist/esm/src/models/stabile-organizzazione.js +14 -0
  152. package/dist/esm/src/models/status.d.ts +30 -0
  153. package/dist/esm/src/models/status.js +14 -0
  154. package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.d.ts +25 -0
  155. package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.js +14 -0
  156. package/dist/esm/src/models/update.d.ts +109 -0
  157. package/dist/esm/src/models/update.js +24 -0
  158. package/dist/esm/src/models/web-hook-history.d.ts +72 -0
  159. package/dist/esm/src/models/web-hook-history.js +14 -0
  160. package/dist/esm/src/models/web-hook.d.ts +78 -0
  161. package/dist/esm/src/models/web-hook.js +14 -0
  162. package/dist/index.d.ts +14 -0
  163. package/dist/index.js +32 -0
  164. package/dist/src/api/company-api.d.ts +268 -0
  165. package/dist/src/api/company-api.js +433 -0
  166. package/dist/src/api/log-api.d.ts +197 -0
  167. package/dist/src/api/log-api.js +309 -0
  168. package/dist/src/api/receive-api.d.ts +259 -0
  169. package/dist/src/api/receive-api.js +410 -0
  170. package/dist/src/api/send-api.d.ts +676 -0
  171. package/dist/src/api/send-api.js +1070 -0
  172. package/dist/src/api/status-api.d.ts +85 -0
  173. package/dist/src/api/status-api.js +134 -0
  174. package/dist/src/api/update-api.d.ts +207 -0
  175. package/dist/src/api/update-api.js +316 -0
  176. package/dist/src/api/webhook-api.d.ts +393 -0
  177. package/dist/src/api/webhook-api.js +627 -0
  178. package/dist/src/models/allegati.d.ts +48 -0
  179. package/dist/src/models/allegati.js +15 -0
  180. package/dist/src/models/altri-dati-gestionali.d.ts +42 -0
  181. package/dist/src/models/altri-dati-gestionali.js +15 -0
  182. package/dist/src/models/anagrafica.d.ts +48 -0
  183. package/dist/src/models/anagrafica.js +15 -0
  184. package/dist/src/models/cedente-prestatore.d.ts +59 -0
  185. package/dist/src/models/cedente-prestatore.js +15 -0
  186. package/dist/src/models/cessionario-committente.d.ts +46 -0
  187. package/dist/src/models/cessionario-committente.js +15 -0
  188. package/dist/src/models/codice-articolo.d.ts +30 -0
  189. package/dist/src/models/codice-articolo.js +15 -0
  190. package/dist/src/models/company.d.ts +60 -0
  191. package/dist/src/models/company.js +15 -0
  192. package/dist/src/models/contatti-trasmittente.d.ts +30 -0
  193. package/dist/src/models/contatti-trasmittente.js +15 -0
  194. package/dist/src/models/contatti.d.ts +36 -0
  195. package/dist/src/models/contatti.js +15 -0
  196. package/dist/src/models/dati-anagrafici-cedente-prestatore.d.ts +68 -0
  197. package/dist/src/models/dati-anagrafici-cedente-prestatore.js +15 -0
  198. package/dist/src/models/dati-anagrafici-cessionario-committente.d.ts +38 -0
  199. package/dist/src/models/dati-anagrafici-cessionario-committente.js +15 -0
  200. package/dist/src/models/dati-anagrafici-vettore.d.ts +44 -0
  201. package/dist/src/models/dati-anagrafici-vettore.js +15 -0
  202. package/dist/src/models/dati-anagrafici.d.ts +38 -0
  203. package/dist/src/models/dati-anagrafici.js +15 -0
  204. package/dist/src/models/dati-beni-servizi.d.ts +32 -0
  205. package/dist/src/models/dati-beni-servizi.js +15 -0
  206. package/dist/src/models/dati-bollo.d.ts +30 -0
  207. package/dist/src/models/dati-bollo.js +15 -0
  208. package/dist/src/models/dati-cassa-previdenziale.d.ts +66 -0
  209. package/dist/src/models/dati-cassa-previdenziale.js +15 -0
  210. package/dist/src/models/dati-contratto.d.ts +60 -0
  211. package/dist/src/models/dati-contratto.js +15 -0
  212. package/dist/src/models/dati-convenzione.d.ts +60 -0
  213. package/dist/src/models/dati-convenzione.js +15 -0
  214. package/dist/src/models/dati-ddt.d.ts +36 -0
  215. package/dist/src/models/dati-ddt.js +15 -0
  216. package/dist/src/models/dati-fatture-collegate.d.ts +60 -0
  217. package/dist/src/models/dati-fatture-collegate.js +15 -0
  218. package/dist/src/models/dati-generali-documento.d.ts +94 -0
  219. package/dist/src/models/dati-generali-documento.js +15 -0
  220. package/dist/src/models/dati-generali.d.ts +88 -0
  221. package/dist/src/models/dati-generali.js +15 -0
  222. package/dist/src/models/dati-ordine-acquisto.d.ts +60 -0
  223. package/dist/src/models/dati-ordine-acquisto.js +15 -0
  224. package/dist/src/models/dati-pagamento.d.ts +31 -0
  225. package/dist/src/models/dati-pagamento.js +15 -0
  226. package/dist/src/models/dati-ricezione.d.ts +60 -0
  227. package/dist/src/models/dati-ricezione.js +15 -0
  228. package/dist/src/models/dati-riepilogo.d.ts +66 -0
  229. package/dist/src/models/dati-riepilogo.js +15 -0
  230. package/dist/src/models/dati-ritenuta.d.ts +42 -0
  231. package/dist/src/models/dati-ritenuta.js +15 -0
  232. package/dist/src/models/dati-sal.d.ts +24 -0
  233. package/dist/src/models/dati-sal.js +15 -0
  234. package/dist/src/models/dati-trasmissione.d.ts +56 -0
  235. package/dist/src/models/dati-trasmissione.js +15 -0
  236. package/dist/src/models/dati-trasporto.d.ts +98 -0
  237. package/dist/src/models/dati-trasporto.js +15 -0
  238. package/dist/src/models/dati-veicoli.d.ts +30 -0
  239. package/dist/src/models/dati-veicoli.js +15 -0
  240. package/dist/src/models/dettaglio-linee.d.ts +117 -0
  241. package/dist/src/models/dettaglio-linee.js +15 -0
  242. package/dist/src/models/dettaglio-pagamento.d.ts +144 -0
  243. package/dist/src/models/dettaglio-pagamento.js +15 -0
  244. package/dist/src/models/document-data.d.ts +30 -0
  245. package/dist/src/models/document-data.js +15 -0
  246. package/dist/src/models/event.d.ts +108 -0
  247. package/dist/src/models/event.js +15 -0
  248. package/dist/src/models/fattura-elettronica-body.d.ts +53 -0
  249. package/dist/src/models/fattura-elettronica-body.js +15 -0
  250. package/dist/src/models/fattura-elettronica-header.d.ts +59 -0
  251. package/dist/src/models/fattura-elettronica-header.js +15 -0
  252. package/dist/src/models/fattura-ordinaria.d.ts +38 -0
  253. package/dist/src/models/fattura-ordinaria.js +15 -0
  254. package/dist/src/models/fattura-principale.d.ts +30 -0
  255. package/dist/src/models/fattura-principale.js +15 -0
  256. package/dist/src/models/id-fiscale-iva.d.ts +30 -0
  257. package/dist/src/models/id-fiscale-iva.js +15 -0
  258. package/dist/src/models/id-trasmittente.d.ts +30 -0
  259. package/dist/src/models/id-trasmittente.js +15 -0
  260. package/dist/src/models/index.d.ts +60 -0
  261. package/dist/src/models/index.js +76 -0
  262. package/dist/src/models/indirizzo-resa.d.ts +54 -0
  263. package/dist/src/models/indirizzo-resa.js +15 -0
  264. package/dist/src/models/iscrizione-rea.d.ts +48 -0
  265. package/dist/src/models/iscrizione-rea.js +15 -0
  266. package/dist/src/models/model-error.d.ts +36 -0
  267. package/dist/src/models/model-error.js +15 -0
  268. package/dist/src/models/problem-details.d.ts +49 -0
  269. package/dist/src/models/problem-details.js +15 -0
  270. package/dist/src/models/problem-http-result.d.ts +37 -0
  271. package/dist/src/models/problem-http-result.js +15 -0
  272. package/dist/src/models/rappresentante-fiscale-cessionario-committente.d.ts +43 -0
  273. package/dist/src/models/rappresentante-fiscale-cessionario-committente.js +15 -0
  274. package/dist/src/models/rappresentante-fiscale.d.ts +25 -0
  275. package/dist/src/models/rappresentante-fiscale.js +15 -0
  276. package/dist/src/models/receive.d.ts +126 -0
  277. package/dist/src/models/receive.js +20 -0
  278. package/dist/src/models/sconto-maggiorazione.d.ts +36 -0
  279. package/dist/src/models/sconto-maggiorazione.js +15 -0
  280. package/dist/src/models/sede-cedente-prestatore.d.ts +54 -0
  281. package/dist/src/models/sede-cedente-prestatore.js +15 -0
  282. package/dist/src/models/sede-cessionario-committente.d.ts +54 -0
  283. package/dist/src/models/sede-cessionario-committente.js +15 -0
  284. package/dist/src/models/send-reduced.d.ts +51 -0
  285. package/dist/src/models/send-reduced.js +15 -0
  286. package/dist/src/models/send.d.ts +129 -0
  287. package/dist/src/models/send.js +20 -0
  288. package/dist/src/models/stabile-organizzazione.d.ts +54 -0
  289. package/dist/src/models/stabile-organizzazione.js +15 -0
  290. package/dist/src/models/status.d.ts +30 -0
  291. package/dist/src/models/status.js +15 -0
  292. package/dist/src/models/terzo-intermediario-osoggetto-emittente.d.ts +25 -0
  293. package/dist/src/models/terzo-intermediario-osoggetto-emittente.js +15 -0
  294. package/dist/src/models/update.d.ts +109 -0
  295. package/dist/src/models/update.js +27 -0
  296. package/dist/src/models/web-hook-history.d.ts +72 -0
  297. package/dist/src/models/web-hook-history.js +15 -0
  298. package/dist/src/models/web-hook.d.ts +78 -0
  299. package/dist/src/models/web-hook.js +15 -0
  300. package/docs/Allegati.md +28 -0
  301. package/docs/AltriDatiGestionali.md +26 -0
  302. package/docs/Anagrafica.md +28 -0
  303. package/docs/CedentePrestatore.md +30 -0
  304. package/docs/CessionarioCommittente.md +26 -0
  305. package/docs/CodiceArticolo.md +22 -0
  306. package/docs/Company.md +33 -0
  307. package/docs/CompanyApi.md +285 -0
  308. package/docs/Contatti.md +24 -0
  309. package/docs/ContattiTrasmittente.md +22 -0
  310. package/docs/DatiAnagrafici.md +24 -0
  311. package/docs/DatiAnagraficiCedentePrestatore.md +34 -0
  312. package/docs/DatiAnagraficiCessionarioCommittente.md +24 -0
  313. package/docs/DatiAnagraficiVettore.md +26 -0
  314. package/docs/DatiBeniServizi.md +22 -0
  315. package/docs/DatiBollo.md +22 -0
  316. package/docs/DatiCassaPrevidenziale.md +34 -0
  317. package/docs/DatiContratto.md +32 -0
  318. package/docs/DatiConvenzione.md +32 -0
  319. package/docs/DatiDDT.md +24 -0
  320. package/docs/DatiFattureCollegate.md +32 -0
  321. package/docs/DatiGenerali.md +38 -0
  322. package/docs/DatiGeneraliDocumento.md +42 -0
  323. package/docs/DatiOrdineAcquisto.md +32 -0
  324. package/docs/DatiPagamento.md +22 -0
  325. package/docs/DatiRicezione.md +32 -0
  326. package/docs/DatiRiepilogo.md +34 -0
  327. package/docs/DatiRitenuta.md +26 -0
  328. package/docs/DatiSAL.md +20 -0
  329. package/docs/DatiTrasmissione.md +30 -0
  330. package/docs/DatiTrasporto.md +44 -0
  331. package/docs/DatiVeicoli.md +22 -0
  332. package/docs/DettaglioLinee.md +50 -0
  333. package/docs/DettaglioPagamento.md +60 -0
  334. package/docs/DocumentData.md +22 -0
  335. package/docs/Error.md +25 -0
  336. package/docs/Event.md +48 -0
  337. package/docs/FatturaElettronicaBody.md +28 -0
  338. package/docs/FatturaElettronicaHeader.md +30 -0
  339. package/docs/FatturaOrdinaria.md +24 -0
  340. package/docs/FatturaPrincipale.md +22 -0
  341. package/docs/IdFiscaleIVA.md +22 -0
  342. package/docs/IdTrasmittente.md +22 -0
  343. package/docs/IndirizzoResa.md +30 -0
  344. package/docs/IscrizioneREA.md +28 -0
  345. package/docs/LogApi.md +153 -0
  346. package/docs/ProblemDetails.md +28 -0
  347. package/docs/ProblemHttpResult.md +24 -0
  348. package/docs/RappresentanteFiscale.md +20 -0
  349. package/docs/RappresentanteFiscaleCessionarioCommittente.md +26 -0
  350. package/docs/Receive.md +52 -0
  351. package/docs/ReceiveApi.md +220 -0
  352. package/docs/ScontoMaggiorazione.md +24 -0
  353. package/docs/SedeCedentePrestatore.md +30 -0
  354. package/docs/SedeCessionarioCommittente.md +30 -0
  355. package/docs/Send.md +52 -0
  356. package/docs/SendApi.md +681 -0
  357. package/docs/SendReduced.md +29 -0
  358. package/docs/StabileOrganizzazione.md +30 -0
  359. package/docs/Status.md +22 -0
  360. package/docs/StatusApi.md +52 -0
  361. package/docs/TerzoIntermediarioOSoggettoEmittente.md +20 -0
  362. package/docs/Update.md +44 -0
  363. package/docs/UpdateApi.md +150 -0
  364. package/docs/WebHook.md +38 -0
  365. package/docs/WebHookHistory.md +37 -0
  366. package/docs/WebhookApi.md +416 -0
  367. package/index.ts +18 -0
  368. package/package.json +33 -0
  369. package/src/api/company-api.ts +515 -0
  370. package/src/api/log-api.ts +367 -0
  371. package/src/api/receive-api.ts +490 -0
  372. package/src/api/send-api.ts +1296 -0
  373. package/src/api/status-api.ts +148 -0
  374. package/src/api/update-api.ts +373 -0
  375. package/src/api/webhook-api.ts +756 -0
  376. package/src/models/allegati.ts +54 -0
  377. package/src/models/altri-dati-gestionali.ts +48 -0
  378. package/src/models/anagrafica.ts +54 -0
  379. package/src/models/cedente-prestatore.ts +75 -0
  380. package/src/models/cessionario-committente.ts +60 -0
  381. package/src/models/codice-articolo.ts +36 -0
  382. package/src/models/company.ts +66 -0
  383. package/src/models/contatti-trasmittente.ts +36 -0
  384. package/src/models/contatti.ts +42 -0
  385. package/src/models/dati-anagrafici-cedente-prestatore.ts +78 -0
  386. package/src/models/dati-anagrafici-cessionario-committente.ts +48 -0
  387. package/src/models/dati-anagrafici-vettore.ts +54 -0
  388. package/src/models/dati-anagrafici.ts +48 -0
  389. package/src/models/dati-beni-servizi.ts +42 -0
  390. package/src/models/dati-bollo.ts +36 -0
  391. package/src/models/dati-cassa-previdenziale.ts +72 -0
  392. package/src/models/dati-contratto.ts +66 -0
  393. package/src/models/dati-convenzione.ts +66 -0
  394. package/src/models/dati-ddt.ts +42 -0
  395. package/src/models/dati-fatture-collegate.ts +66 -0
  396. package/src/models/dati-generali-documento.ts +108 -0
  397. package/src/models/dati-generali.ts +114 -0
  398. package/src/models/dati-ordine-acquisto.ts +66 -0
  399. package/src/models/dati-pagamento.ts +39 -0
  400. package/src/models/dati-ricezione.ts +66 -0
  401. package/src/models/dati-riepilogo.ts +72 -0
  402. package/src/models/dati-ritenuta.ts +48 -0
  403. package/src/models/dati-sal.ts +30 -0
  404. package/src/models/dati-trasmissione.ts +66 -0
  405. package/src/models/dati-trasporto.ts +108 -0
  406. package/src/models/dati-veicoli.ts +36 -0
  407. package/src/models/dettaglio-linee.ts +129 -0
  408. package/src/models/dettaglio-pagamento.ts +150 -0
  409. package/src/models/document-data.ts +36 -0
  410. package/src/models/event.ts +114 -0
  411. package/src/models/fattura-elettronica-body.ts +69 -0
  412. package/src/models/fattura-elettronica-header.ts +75 -0
  413. package/src/models/fattura-ordinaria.ts +48 -0
  414. package/src/models/fattura-principale.ts +36 -0
  415. package/src/models/id-fiscale-iva.ts +36 -0
  416. package/src/models/id-trasmittente.ts +36 -0
  417. package/src/models/index.ts +60 -0
  418. package/src/models/indirizzo-resa.ts +60 -0
  419. package/src/models/iscrizione-rea.ts +54 -0
  420. package/src/models/model-error.ts +42 -0
  421. package/src/models/problem-details.ts +56 -0
  422. package/src/models/problem-http-result.ts +45 -0
  423. package/src/models/rappresentante-fiscale-cessionario-committente.ts +51 -0
  424. package/src/models/rappresentante-fiscale.ts +33 -0
  425. package/src/models/receive.ts +137 -0
  426. package/src/models/sconto-maggiorazione.ts +42 -0
  427. package/src/models/sede-cedente-prestatore.ts +60 -0
  428. package/src/models/sede-cessionario-committente.ts +60 -0
  429. package/src/models/send-reduced.ts +57 -0
  430. package/src/models/send.ts +140 -0
  431. package/src/models/stabile-organizzazione.ts +60 -0
  432. package/src/models/status.ts +36 -0
  433. package/src/models/terzo-intermediario-osoggetto-emittente.ts +33 -0
  434. package/src/models/update.ts +120 -0
  435. package/src/models/web-hook-history.ts +78 -0
  436. package/src/models/web-hook.ts +84 -0
  437. package/tsconfig.esm.json +7 -0
  438. package/tsconfig.json +18 -0
@@ -0,0 +1,1070 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Invoicetronic API
6
+ * 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/
7
+ *
8
+ * The version of the OpenAPI document: 1
9
+ * Contact: info@invoicetronic.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.SendXmlPostSignatureEnum = exports.SendPostSignatureEnum = exports.SendJsonPostSignatureEnum = exports.SendFilePostSignatureEnum = exports.SendApi = exports.SendApiFactory = exports.SendApiFp = exports.SendApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // URLSearchParams not necessarily used
28
+ // @ts-ignore
29
+ const url_1 = require("url");
30
+ // Some imports not used depending on template conditions
31
+ // @ts-ignore
32
+ const common_1 = require("../../common");
33
+ // @ts-ignore
34
+ const base_1 = require("../../base");
35
+ /**
36
+ * SendApi - axios parameter creator
37
+ * @export
38
+ */
39
+ const SendApiAxiosParamCreator = function (configuration) {
40
+ return {
41
+ /**
42
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
43
+ * @summary Add an invoice by file
44
+ * @param {File} file
45
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
46
+ * @param {SendFilePostSignatureEnum} [signature] Whether to digitally sign the document.
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ sendFilePost: (file_1, validate_1, signature_1, ...args_1) => __awaiter(this, [file_1, validate_1, signature_1, ...args_1], void 0, function* (file, validate, signature, options = {}) {
51
+ // verify required parameter 'file' is not null or undefined
52
+ (0, common_1.assertParamExists)('sendFilePost', 'file', file);
53
+ const localVarPath = `/send/file`;
54
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
56
+ let baseOptions;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ }
60
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
61
+ const localVarHeaderParameter = {};
62
+ const localVarQueryParameter = {};
63
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
64
+ // authentication Basic required
65
+ // http basic authentication required
66
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
67
+ if (validate !== undefined) {
68
+ localVarQueryParameter['validate'] = validate;
69
+ }
70
+ if (signature !== undefined) {
71
+ localVarQueryParameter['signature'] = signature;
72
+ }
73
+ if (file !== undefined) {
74
+ localVarFormParams.append('file', file);
75
+ }
76
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
77
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
78
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
79
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
80
+ localVarRequestOptions.data = localVarFormParams;
81
+ return {
82
+ url: (0, common_1.toPathString)(localVarUrlObj),
83
+ options: localVarRequestOptions,
84
+ };
85
+ }),
86
+ /**
87
+ * test **markdown**.
88
+ * @summary List invoices
89
+ * @param {number} [companyId] Company id
90
+ * @param {string} [identifier] SDI identifier.
91
+ * @param {string} [committente] Vat number or fiscal code.
92
+ * @param {string} [prestatore] Vat number or fiscal code.
93
+ * @param {string} [fileName] File name.
94
+ * @param {string} [lastUpdateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
95
+ * @param {string} [lastUpdateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
96
+ * @param {string} [dateSentFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
97
+ * @param {string} [dateSentTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
98
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
99
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
100
+ * @param {string} [documentNumber] Document number.
101
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
102
+ * @param {number} [page] Page number.
103
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
104
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ sendGet: (companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, ...args_1) => __awaiter(this, [companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, ...args_1], void 0, function* (companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options = {}) {
109
+ const localVarPath = `/send`;
110
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
111
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
112
+ let baseOptions;
113
+ if (configuration) {
114
+ baseOptions = configuration.baseOptions;
115
+ }
116
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
117
+ const localVarHeaderParameter = {};
118
+ const localVarQueryParameter = {};
119
+ // authentication Basic required
120
+ // http basic authentication required
121
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
122
+ if (companyId !== undefined) {
123
+ localVarQueryParameter['company_id'] = companyId;
124
+ }
125
+ if (identifier !== undefined) {
126
+ localVarQueryParameter['identifier'] = identifier;
127
+ }
128
+ if (committente !== undefined) {
129
+ localVarQueryParameter['committente'] = committente;
130
+ }
131
+ if (prestatore !== undefined) {
132
+ localVarQueryParameter['prestatore'] = prestatore;
133
+ }
134
+ if (fileName !== undefined) {
135
+ localVarQueryParameter['file_name'] = fileName;
136
+ }
137
+ if (lastUpdateFrom !== undefined) {
138
+ localVarQueryParameter['last_update_from'] = (lastUpdateFrom instanceof Date) ?
139
+ lastUpdateFrom.toISOString() :
140
+ lastUpdateFrom;
141
+ }
142
+ if (lastUpdateTo !== undefined) {
143
+ localVarQueryParameter['last_update_to'] = (lastUpdateTo instanceof Date) ?
144
+ lastUpdateTo.toISOString() :
145
+ lastUpdateTo;
146
+ }
147
+ if (dateSentFrom !== undefined) {
148
+ localVarQueryParameter['date_sent_from'] = (dateSentFrom instanceof Date) ?
149
+ dateSentFrom.toISOString() :
150
+ dateSentFrom;
151
+ }
152
+ if (dateSentTo !== undefined) {
153
+ localVarQueryParameter['date_sent_to'] = (dateSentTo instanceof Date) ?
154
+ dateSentTo.toISOString() :
155
+ dateSentTo;
156
+ }
157
+ if (documentDateFrom !== undefined) {
158
+ localVarQueryParameter['document_date_from'] = (documentDateFrom instanceof Date) ?
159
+ documentDateFrom.toISOString() :
160
+ documentDateFrom;
161
+ }
162
+ if (documentDateTo !== undefined) {
163
+ localVarQueryParameter['document_date_to'] = (documentDateTo instanceof Date) ?
164
+ documentDateTo.toISOString() :
165
+ documentDateTo;
166
+ }
167
+ if (documentNumber !== undefined) {
168
+ localVarQueryParameter['document_number'] = documentNumber;
169
+ }
170
+ if (includePayload !== undefined) {
171
+ localVarQueryParameter['include_payload'] = includePayload;
172
+ }
173
+ if (page !== undefined) {
174
+ localVarQueryParameter['page'] = page;
175
+ }
176
+ if (pageSize !== undefined) {
177
+ localVarQueryParameter['page_size'] = pageSize;
178
+ }
179
+ if (sort !== undefined) {
180
+ localVarQueryParameter['sort'] = sort;
181
+ }
182
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
183
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
184
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
185
+ return {
186
+ url: (0, common_1.toPathString)(localVarUrlObj),
187
+ options: localVarRequestOptions,
188
+ };
189
+ }),
190
+ /**
191
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
192
+ * @summary Get a invoice by id
193
+ * @param {number} id Item id
194
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ sendIdGet: (id_1, includePayload_1, ...args_1) => __awaiter(this, [id_1, includePayload_1, ...args_1], void 0, function* (id, includePayload, options = {}) {
199
+ // verify required parameter 'id' is not null or undefined
200
+ (0, common_1.assertParamExists)('sendIdGet', 'id', id);
201
+ const localVarPath = `/send/{id}`
202
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
203
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
205
+ let baseOptions;
206
+ if (configuration) {
207
+ baseOptions = configuration.baseOptions;
208
+ }
209
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
210
+ const localVarHeaderParameter = {};
211
+ const localVarQueryParameter = {};
212
+ // authentication Basic required
213
+ // http basic authentication required
214
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
215
+ if (includePayload !== undefined) {
216
+ localVarQueryParameter['include_payload'] = includePayload;
217
+ }
218
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
220
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
221
+ return {
222
+ url: (0, common_1.toPathString)(localVarUrlObj),
223
+ options: localVarRequestOptions,
224
+ };
225
+ }),
226
+ /**
227
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
228
+ * @summary Get a invoice by identifier
229
+ * @param {string} identifier
230
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ sendIdentifierGet: (identifier_1, includePayload_1, ...args_1) => __awaiter(this, [identifier_1, includePayload_1, ...args_1], void 0, function* (identifier, includePayload, options = {}) {
235
+ // verify required parameter 'identifier' is not null or undefined
236
+ (0, common_1.assertParamExists)('sendIdentifierGet', 'identifier', identifier);
237
+ const localVarPath = `/send/{identifier}`
238
+ .replace(`{${"identifier"}}`, encodeURIComponent(String(identifier)));
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ }
245
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
246
+ const localVarHeaderParameter = {};
247
+ const localVarQueryParameter = {};
248
+ // authentication Basic required
249
+ // http basic authentication required
250
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
251
+ if (includePayload !== undefined) {
252
+ localVarQueryParameter['include_payload'] = includePayload;
253
+ }
254
+ (0, common_1.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: (0, common_1.toPathString)(localVarUrlObj),
259
+ options: localVarRequestOptions,
260
+ };
261
+ }),
262
+ /**
263
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
264
+ * @summary Add an invoice by json
265
+ * @param {FatturaOrdinaria} fatturaOrdinaria
266
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
267
+ * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
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
+ (0, common_1.assertParamExists)('sendJsonPost', 'fatturaOrdinaria', fatturaOrdinaria);
274
+ const localVarPath = `/send/json`;
275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
276
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
277
+ let baseOptions;
278
+ if (configuration) {
279
+ baseOptions = configuration.baseOptions;
280
+ }
281
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
282
+ const localVarHeaderParameter = {};
283
+ const localVarQueryParameter = {};
284
+ // authentication Basic required
285
+ // http basic authentication required
286
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
287
+ if (validate !== undefined) {
288
+ localVarQueryParameter['validate'] = validate;
289
+ }
290
+ if (signature !== undefined) {
291
+ localVarQueryParameter['signature'] = signature;
292
+ }
293
+ localVarHeaderParameter['Content-Type'] = 'application/json';
294
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
295
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
296
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
297
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
298
+ return {
299
+ url: (0, common_1.toPathString)(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ };
302
+ }),
303
+ /**
304
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
305
+ * @summary Add an invoice
306
+ * @param {Send} send
307
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
308
+ * @param {SendPostSignatureEnum} [signature] Whether to digitally sign the document.
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ sendPost: (send_1, validate_1, signature_1, ...args_1) => __awaiter(this, [send_1, validate_1, signature_1, ...args_1], void 0, function* (send, validate, signature, options = {}) {
313
+ // verify required parameter 'send' is not null or undefined
314
+ (0, common_1.assertParamExists)('sendPost', 'send', send);
315
+ const localVarPath = `/send`;
316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
317
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
318
+ let baseOptions;
319
+ if (configuration) {
320
+ baseOptions = configuration.baseOptions;
321
+ }
322
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
323
+ const localVarHeaderParameter = {};
324
+ const localVarQueryParameter = {};
325
+ // authentication Basic required
326
+ // http basic authentication required
327
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
328
+ if (validate !== undefined) {
329
+ localVarQueryParameter['validate'] = validate;
330
+ }
331
+ if (signature !== undefined) {
332
+ localVarQueryParameter['signature'] = signature;
333
+ }
334
+ localVarHeaderParameter['Content-Type'] = 'application/json';
335
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
338
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(send, localVarRequestOptions, configuration);
339
+ return {
340
+ url: (0, common_1.toPathString)(localVarUrlObj),
341
+ options: localVarRequestOptions,
342
+ };
343
+ }),
344
+ /**
345
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
346
+ * @summary Validate an invoice file
347
+ * @param {File} file
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ sendValidateFilePost: (file_1, ...args_1) => __awaiter(this, [file_1, ...args_1], void 0, function* (file, options = {}) {
352
+ // verify required parameter 'file' is not null or undefined
353
+ (0, common_1.assertParamExists)('sendValidateFilePost', 'file', file);
354
+ const localVarPath = `/send/validate/file`;
355
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
356
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
357
+ let baseOptions;
358
+ if (configuration) {
359
+ baseOptions = configuration.baseOptions;
360
+ }
361
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
362
+ const localVarHeaderParameter = {};
363
+ const localVarQueryParameter = {};
364
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
365
+ // authentication Basic required
366
+ // http basic authentication required
367
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
368
+ if (file !== undefined) {
369
+ localVarFormParams.append('file', file);
370
+ }
371
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
372
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
375
+ localVarRequestOptions.data = localVarFormParams;
376
+ return {
377
+ url: (0, common_1.toPathString)(localVarUrlObj),
378
+ options: localVarRequestOptions,
379
+ };
380
+ }),
381
+ /**
382
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
383
+ * @summary Validate an invoice by json
384
+ * @param {FatturaOrdinaria} fatturaOrdinaria
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ sendValidateJsonPost: (fatturaOrdinaria_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, ...args_1], void 0, function* (fatturaOrdinaria, options = {}) {
389
+ // verify required parameter 'fatturaOrdinaria' is not null or undefined
390
+ (0, common_1.assertParamExists)('sendValidateJsonPost', 'fatturaOrdinaria', fatturaOrdinaria);
391
+ const localVarPath = `/send/validate/json`;
392
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
393
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
394
+ let baseOptions;
395
+ if (configuration) {
396
+ baseOptions = configuration.baseOptions;
397
+ }
398
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
399
+ const localVarHeaderParameter = {};
400
+ const localVarQueryParameter = {};
401
+ // authentication Basic required
402
+ // http basic authentication required
403
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
404
+ localVarHeaderParameter['Content-Type'] = 'application/json';
405
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
406
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
407
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
408
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
409
+ return {
410
+ url: (0, common_1.toPathString)(localVarUrlObj),
411
+ options: localVarRequestOptions,
412
+ };
413
+ }),
414
+ /**
415
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
416
+ * @summary Validate an invoice
417
+ * @param {Send} send
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ sendValidatePost: (send_1, ...args_1) => __awaiter(this, [send_1, ...args_1], void 0, function* (send, options = {}) {
422
+ // verify required parameter 'send' is not null or undefined
423
+ (0, common_1.assertParamExists)('sendValidatePost', 'send', send);
424
+ const localVarPath = `/send/validate`;
425
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
426
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
427
+ let baseOptions;
428
+ if (configuration) {
429
+ baseOptions = configuration.baseOptions;
430
+ }
431
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
432
+ const localVarHeaderParameter = {};
433
+ const localVarQueryParameter = {};
434
+ // authentication Basic required
435
+ // http basic authentication required
436
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
437
+ localVarHeaderParameter['Content-Type'] = 'application/json';
438
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
439
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
440
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
441
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(send, localVarRequestOptions, configuration);
442
+ return {
443
+ url: (0, common_1.toPathString)(localVarUrlObj),
444
+ options: localVarRequestOptions,
445
+ };
446
+ }),
447
+ /**
448
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
449
+ * @summary Validate an invoice by xml
450
+ * @param {FatturaOrdinaria} fatturaOrdinaria
451
+ * @param {*} [options] Override http request option.
452
+ * @throws {RequiredError}
453
+ */
454
+ sendValidateXmlPost: (fatturaOrdinaria_1, ...args_1) => __awaiter(this, [fatturaOrdinaria_1, ...args_1], void 0, function* (fatturaOrdinaria, options = {}) {
455
+ // verify required parameter 'fatturaOrdinaria' is not null or undefined
456
+ (0, common_1.assertParamExists)('sendValidateXmlPost', 'fatturaOrdinaria', fatturaOrdinaria);
457
+ const localVarPath = `/send/validate/xml`;
458
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
459
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
460
+ let baseOptions;
461
+ if (configuration) {
462
+ baseOptions = configuration.baseOptions;
463
+ }
464
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
465
+ const localVarHeaderParameter = {};
466
+ const localVarQueryParameter = {};
467
+ // authentication Basic required
468
+ // http basic authentication required
469
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
470
+ localVarHeaderParameter['Content-Type'] = 'application/xml';
471
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
472
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
473
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
474
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
475
+ return {
476
+ url: (0, common_1.toPathString)(localVarUrlObj),
477
+ options: localVarRequestOptions,
478
+ };
479
+ }),
480
+ /**
481
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
482
+ * @summary Add an invoice by xml
483
+ * @param {FatturaOrdinaria} fatturaOrdinaria
484
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
485
+ * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
486
+ * @param {*} [options] Override http request option.
487
+ * @throws {RequiredError}
488
+ */
489
+ 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 = {}) {
490
+ // verify required parameter 'fatturaOrdinaria' is not null or undefined
491
+ (0, common_1.assertParamExists)('sendXmlPost', 'fatturaOrdinaria', fatturaOrdinaria);
492
+ const localVarPath = `/send/xml`;
493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
494
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
495
+ let baseOptions;
496
+ if (configuration) {
497
+ baseOptions = configuration.baseOptions;
498
+ }
499
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
500
+ const localVarHeaderParameter = {};
501
+ const localVarQueryParameter = {};
502
+ // authentication Basic required
503
+ // http basic authentication required
504
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
505
+ if (validate !== undefined) {
506
+ localVarQueryParameter['validate'] = validate;
507
+ }
508
+ if (signature !== undefined) {
509
+ localVarQueryParameter['signature'] = signature;
510
+ }
511
+ localVarHeaderParameter['Content-Type'] = 'application/xml';
512
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
513
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
514
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
515
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(fatturaOrdinaria, localVarRequestOptions, configuration);
516
+ return {
517
+ url: (0, common_1.toPathString)(localVarUrlObj),
518
+ options: localVarRequestOptions,
519
+ };
520
+ }),
521
+ };
522
+ };
523
+ exports.SendApiAxiosParamCreator = SendApiAxiosParamCreator;
524
+ /**
525
+ * SendApi - functional programming interface
526
+ * @export
527
+ */
528
+ const SendApiFp = function (configuration) {
529
+ const localVarAxiosParamCreator = (0, exports.SendApiAxiosParamCreator)(configuration);
530
+ return {
531
+ /**
532
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
533
+ * @summary Add an invoice by file
534
+ * @param {File} file
535
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
536
+ * @param {SendFilePostSignatureEnum} [signature] Whether to digitally sign the document.
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ sendFilePost(file, validate, signature, options) {
541
+ return __awaiter(this, void 0, void 0, function* () {
542
+ var _a, _b, _c;
543
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendFilePost(file, validate, signature, options);
544
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
545
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendFilePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
546
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
547
+ });
548
+ },
549
+ /**
550
+ * test **markdown**.
551
+ * @summary List invoices
552
+ * @param {number} [companyId] Company id
553
+ * @param {string} [identifier] SDI identifier.
554
+ * @param {string} [committente] Vat number or fiscal code.
555
+ * @param {string} [prestatore] Vat number or fiscal code.
556
+ * @param {string} [fileName] File name.
557
+ * @param {string} [lastUpdateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
558
+ * @param {string} [lastUpdateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
559
+ * @param {string} [dateSentFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
560
+ * @param {string} [dateSentTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
561
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
562
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
563
+ * @param {string} [documentNumber] Document number.
564
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
565
+ * @param {number} [page] Page number.
566
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
567
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
572
+ return __awaiter(this, void 0, void 0, function* () {
573
+ var _a, _b, _c;
574
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
575
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
576
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
577
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
578
+ });
579
+ },
580
+ /**
581
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
582
+ * @summary Get a invoice by id
583
+ * @param {number} id Item id
584
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ */
588
+ sendIdGet(id, includePayload, options) {
589
+ return __awaiter(this, void 0, void 0, function* () {
590
+ var _a, _b, _c;
591
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendIdGet(id, includePayload, options);
592
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
593
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
594
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
595
+ });
596
+ },
597
+ /**
598
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
599
+ * @summary Get a invoice by identifier
600
+ * @param {string} identifier
601
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ */
605
+ sendIdentifierGet(identifier, includePayload, options) {
606
+ return __awaiter(this, void 0, void 0, function* () {
607
+ var _a, _b, _c;
608
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendIdentifierGet(identifier, includePayload, options);
609
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
610
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendIdentifierGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
611
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
612
+ });
613
+ },
614
+ /**
615
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
616
+ * @summary Add an invoice by json
617
+ * @param {FatturaOrdinaria} fatturaOrdinaria
618
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
619
+ * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
620
+ * @param {*} [options] Override http request option.
621
+ * @throws {RequiredError}
622
+ */
623
+ sendJsonPost(fatturaOrdinaria, validate, signature, options) {
624
+ return __awaiter(this, void 0, void 0, function* () {
625
+ var _a, _b, _c;
626
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(fatturaOrdinaria, validate, signature, options);
627
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
628
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
629
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
630
+ });
631
+ },
632
+ /**
633
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
634
+ * @summary Add an invoice
635
+ * @param {Send} send
636
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
637
+ * @param {SendPostSignatureEnum} [signature] Whether to digitally sign the document.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ sendPost(send, validate, signature, options) {
642
+ return __awaiter(this, void 0, void 0, function* () {
643
+ var _a, _b, _c;
644
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendPost(send, validate, signature, options);
645
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
646
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
647
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
648
+ });
649
+ },
650
+ /**
651
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
652
+ * @summary Validate an invoice file
653
+ * @param {File} file
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ */
657
+ sendValidateFilePost(file, options) {
658
+ return __awaiter(this, void 0, void 0, function* () {
659
+ var _a, _b, _c;
660
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateFilePost(file, options);
661
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
662
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidateFilePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
663
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
664
+ });
665
+ },
666
+ /**
667
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
668
+ * @summary Validate an invoice by json
669
+ * @param {FatturaOrdinaria} fatturaOrdinaria
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ */
673
+ sendValidateJsonPost(fatturaOrdinaria, options) {
674
+ return __awaiter(this, void 0, void 0, function* () {
675
+ var _a, _b, _c;
676
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(fatturaOrdinaria, options);
677
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
678
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidateJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
679
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
680
+ });
681
+ },
682
+ /**
683
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
684
+ * @summary Validate an invoice
685
+ * @param {Send} send
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ */
689
+ sendValidatePost(send, options) {
690
+ return __awaiter(this, void 0, void 0, function* () {
691
+ var _a, _b, _c;
692
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidatePost(send, options);
693
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
694
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
695
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
696
+ });
697
+ },
698
+ /**
699
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
700
+ * @summary Validate an invoice by xml
701
+ * @param {FatturaOrdinaria} fatturaOrdinaria
702
+ * @param {*} [options] Override http request option.
703
+ * @throws {RequiredError}
704
+ */
705
+ sendValidateXmlPost(fatturaOrdinaria, options) {
706
+ return __awaiter(this, void 0, void 0, function* () {
707
+ var _a, _b, _c;
708
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(fatturaOrdinaria, options);
709
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
710
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidateXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
711
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
712
+ });
713
+ },
714
+ /**
715
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
716
+ * @summary Add an invoice by xml
717
+ * @param {FatturaOrdinaria} fatturaOrdinaria
718
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
719
+ * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
720
+ * @param {*} [options] Override http request option.
721
+ * @throws {RequiredError}
722
+ */
723
+ sendXmlPost(fatturaOrdinaria, validate, signature, options) {
724
+ return __awaiter(this, void 0, void 0, function* () {
725
+ var _a, _b, _c;
726
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(fatturaOrdinaria, validate, signature, options);
727
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
728
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
729
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
730
+ });
731
+ },
732
+ };
733
+ };
734
+ exports.SendApiFp = SendApiFp;
735
+ /**
736
+ * SendApi - factory interface
737
+ * @export
738
+ */
739
+ const SendApiFactory = function (configuration, basePath, axios) {
740
+ const localVarFp = (0, exports.SendApiFp)(configuration);
741
+ return {
742
+ /**
743
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
744
+ * @summary Add an invoice by file
745
+ * @param {File} file
746
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
747
+ * @param {SendFilePostSignatureEnum} [signature] Whether to digitally sign the document.
748
+ * @param {*} [options] Override http request option.
749
+ * @throws {RequiredError}
750
+ */
751
+ sendFilePost(file, validate, signature, options) {
752
+ return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
753
+ },
754
+ /**
755
+ * test **markdown**.
756
+ * @summary List invoices
757
+ * @param {number} [companyId] Company id
758
+ * @param {string} [identifier] SDI identifier.
759
+ * @param {string} [committente] Vat number or fiscal code.
760
+ * @param {string} [prestatore] Vat number or fiscal code.
761
+ * @param {string} [fileName] File name.
762
+ * @param {string} [lastUpdateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
763
+ * @param {string} [lastUpdateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
764
+ * @param {string} [dateSentFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
765
+ * @param {string} [dateSentTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
766
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
767
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
768
+ * @param {string} [documentNumber] Document number.
769
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
770
+ * @param {number} [page] Page number.
771
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
772
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
773
+ * @param {*} [options] Override http request option.
774
+ * @throws {RequiredError}
775
+ */
776
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
777
+ 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));
778
+ },
779
+ /**
780
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
781
+ * @summary Get a invoice by id
782
+ * @param {number} id Item id
783
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ sendIdGet(id, includePayload, options) {
788
+ return localVarFp.sendIdGet(id, includePayload, options).then((request) => request(axios, basePath));
789
+ },
790
+ /**
791
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
792
+ * @summary Get a invoice by identifier
793
+ * @param {string} identifier
794
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ sendIdentifierGet(identifier, includePayload, options) {
799
+ return localVarFp.sendIdentifierGet(identifier, includePayload, options).then((request) => request(axios, basePath));
800
+ },
801
+ /**
802
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
803
+ * @summary Add an invoice by json
804
+ * @param {FatturaOrdinaria} fatturaOrdinaria
805
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
806
+ * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ sendJsonPost(fatturaOrdinaria, validate, signature, options) {
811
+ return localVarFp.sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
812
+ },
813
+ /**
814
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
815
+ * @summary Add an invoice
816
+ * @param {Send} send
817
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
818
+ * @param {SendPostSignatureEnum} [signature] Whether to digitally sign the document.
819
+ * @param {*} [options] Override http request option.
820
+ * @throws {RequiredError}
821
+ */
822
+ sendPost(send, validate, signature, options) {
823
+ return localVarFp.sendPost(send, validate, signature, options).then((request) => request(axios, basePath));
824
+ },
825
+ /**
826
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
827
+ * @summary Validate an invoice file
828
+ * @param {File} file
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ */
832
+ sendValidateFilePost(file, options) {
833
+ return localVarFp.sendValidateFilePost(file, options).then((request) => request(axios, basePath));
834
+ },
835
+ /**
836
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
837
+ * @summary Validate an invoice by json
838
+ * @param {FatturaOrdinaria} fatturaOrdinaria
839
+ * @param {*} [options] Override http request option.
840
+ * @throws {RequiredError}
841
+ */
842
+ sendValidateJsonPost(fatturaOrdinaria, options) {
843
+ return localVarFp.sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
844
+ },
845
+ /**
846
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
847
+ * @summary Validate an invoice
848
+ * @param {Send} send
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ */
852
+ sendValidatePost(send, options) {
853
+ return localVarFp.sendValidatePost(send, options).then((request) => request(axios, basePath));
854
+ },
855
+ /**
856
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
857
+ * @summary Validate an invoice by xml
858
+ * @param {FatturaOrdinaria} fatturaOrdinaria
859
+ * @param {*} [options] Override http request option.
860
+ * @throws {RequiredError}
861
+ */
862
+ sendValidateXmlPost(fatturaOrdinaria, options) {
863
+ return localVarFp.sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(axios, basePath));
864
+ },
865
+ /**
866
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
867
+ * @summary Add an invoice by xml
868
+ * @param {FatturaOrdinaria} fatturaOrdinaria
869
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
870
+ * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ */
874
+ sendXmlPost(fatturaOrdinaria, validate, signature, options) {
875
+ return localVarFp.sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(axios, basePath));
876
+ },
877
+ };
878
+ };
879
+ exports.SendApiFactory = SendApiFactory;
880
+ /**
881
+ * SendApi - object-oriented interface
882
+ * @export
883
+ * @class SendApi
884
+ * @extends {BaseAPI}
885
+ */
886
+ class SendApi extends base_1.BaseAPI {
887
+ /**
888
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
889
+ * @summary Add an invoice by file
890
+ * @param {File} file
891
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
892
+ * @param {SendFilePostSignatureEnum} [signature] Whether to digitally sign the document.
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ * @memberof SendApi
896
+ */
897
+ sendFilePost(file, validate, signature, options) {
898
+ return (0, exports.SendApiFp)(this.configuration).sendFilePost(file, validate, signature, options).then((request) => request(this.axios, this.basePath));
899
+ }
900
+ /**
901
+ * test **markdown**.
902
+ * @summary List invoices
903
+ * @param {number} [companyId] Company id
904
+ * @param {string} [identifier] SDI identifier.
905
+ * @param {string} [committente] Vat number or fiscal code.
906
+ * @param {string} [prestatore] Vat number or fiscal code.
907
+ * @param {string} [fileName] File name.
908
+ * @param {string} [lastUpdateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
909
+ * @param {string} [lastUpdateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
910
+ * @param {string} [dateSentFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
911
+ * @param {string} [dateSentTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
912
+ * @param {string} [documentDateFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
913
+ * @param {string} [documentDateTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
914
+ * @param {string} [documentNumber] Document number.
915
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
916
+ * @param {number} [page] Page number.
917
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
918
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ * @memberof SendApi
922
+ */
923
+ sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
924
+ return (0, exports.SendApiFp)(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
925
+ }
926
+ /**
927
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
928
+ * @summary Get a invoice by id
929
+ * @param {number} id Item id
930
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
931
+ * @param {*} [options] Override http request option.
932
+ * @throws {RequiredError}
933
+ * @memberof SendApi
934
+ */
935
+ sendIdGet(id, includePayload, options) {
936
+ return (0, exports.SendApiFp)(this.configuration).sendIdGet(id, includePayload, options).then((request) => request(this.axios, this.basePath));
937
+ }
938
+ /**
939
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
940
+ * @summary Get a invoice by identifier
941
+ * @param {string} identifier
942
+ * @param {boolean} [includePayload] Include payload in the response. Defaults to false.
943
+ * @param {*} [options] Override http request option.
944
+ * @throws {RequiredError}
945
+ * @memberof SendApi
946
+ */
947
+ sendIdentifierGet(identifier, includePayload, options) {
948
+ return (0, exports.SendApiFp)(this.configuration).sendIdentifierGet(identifier, includePayload, options).then((request) => request(this.axios, this.basePath));
949
+ }
950
+ /**
951
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
952
+ * @summary Add an invoice by json
953
+ * @param {FatturaOrdinaria} fatturaOrdinaria
954
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
955
+ * @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
956
+ * @param {*} [options] Override http request option.
957
+ * @throws {RequiredError}
958
+ * @memberof SendApi
959
+ */
960
+ sendJsonPost(fatturaOrdinaria, validate, signature, options) {
961
+ return (0, exports.SendApiFp)(this.configuration).sendJsonPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
962
+ }
963
+ /**
964
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
965
+ * @summary Add an invoice
966
+ * @param {Send} send
967
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
968
+ * @param {SendPostSignatureEnum} [signature] Whether to digitally sign the document.
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ * @memberof SendApi
972
+ */
973
+ sendPost(send, validate, signature, options) {
974
+ return (0, exports.SendApiFp)(this.configuration).sendPost(send, validate, signature, options).then((request) => request(this.axios, this.basePath));
975
+ }
976
+ /**
977
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
978
+ * @summary Validate an invoice file
979
+ * @param {File} file
980
+ * @param {*} [options] Override http request option.
981
+ * @throws {RequiredError}
982
+ * @memberof SendApi
983
+ */
984
+ sendValidateFilePost(file, options) {
985
+ return (0, exports.SendApiFp)(this.configuration).sendValidateFilePost(file, options).then((request) => request(this.axios, this.basePath));
986
+ }
987
+ /**
988
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
989
+ * @summary Validate an invoice by json
990
+ * @param {FatturaOrdinaria} fatturaOrdinaria
991
+ * @param {*} [options] Override http request option.
992
+ * @throws {RequiredError}
993
+ * @memberof SendApi
994
+ */
995
+ sendValidateJsonPost(fatturaOrdinaria, options) {
996
+ return (0, exports.SendApiFp)(this.configuration).sendValidateJsonPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
997
+ }
998
+ /**
999
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
1000
+ * @summary Validate an invoice
1001
+ * @param {Send} send
1002
+ * @param {*} [options] Override http request option.
1003
+ * @throws {RequiredError}
1004
+ * @memberof SendApi
1005
+ */
1006
+ sendValidatePost(send, options) {
1007
+ return (0, exports.SendApiFp)(this.configuration).sendValidatePost(send, options).then((request) => request(this.axios, this.basePath));
1008
+ }
1009
+ /**
1010
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
1011
+ * @summary Validate an invoice by xml
1012
+ * @param {FatturaOrdinaria} fatturaOrdinaria
1013
+ * @param {*} [options] Override http request option.
1014
+ * @throws {RequiredError}
1015
+ * @memberof SendApi
1016
+ */
1017
+ sendValidateXmlPost(fatturaOrdinaria, options) {
1018
+ return (0, exports.SendApiFp)(this.configuration).sendValidateXmlPost(fatturaOrdinaria, options).then((request) => request(this.axios, this.basePath));
1019
+ }
1020
+ /**
1021
+ * Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
1022
+ * @summary Add an invoice by xml
1023
+ * @param {FatturaOrdinaria} fatturaOrdinaria
1024
+ * @param {boolean} [validate] Validate the document first, and reject it on failure.
1025
+ * @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ * @memberof SendApi
1029
+ */
1030
+ sendXmlPost(fatturaOrdinaria, validate, signature, options) {
1031
+ return (0, exports.SendApiFp)(this.configuration).sendXmlPost(fatturaOrdinaria, validate, signature, options).then((request) => request(this.axios, this.basePath));
1032
+ }
1033
+ }
1034
+ exports.SendApi = SendApi;
1035
+ /**
1036
+ * @export
1037
+ */
1038
+ exports.SendFilePostSignatureEnum = {
1039
+ None: 'None',
1040
+ Apply: 'Apply',
1041
+ Force: 'Force',
1042
+ Auto: 'Auto'
1043
+ };
1044
+ /**
1045
+ * @export
1046
+ */
1047
+ exports.SendJsonPostSignatureEnum = {
1048
+ None: 'None',
1049
+ Apply: 'Apply',
1050
+ Force: 'Force',
1051
+ Auto: 'Auto'
1052
+ };
1053
+ /**
1054
+ * @export
1055
+ */
1056
+ exports.SendPostSignatureEnum = {
1057
+ None: 'None',
1058
+ Apply: 'Apply',
1059
+ Force: 'Force',
1060
+ Auto: 'Auto'
1061
+ };
1062
+ /**
1063
+ * @export
1064
+ */
1065
+ exports.SendXmlPostSignatureEnum = {
1066
+ None: 'None',
1067
+ Apply: 'Apply',
1068
+ Force: 'Force',
1069
+ Auto: 'Auto'
1070
+ };