@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,620 @@
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, assertParamExists, setBasicAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../../common';
30
+ // @ts-ignore
31
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
32
+ /**
33
+ * WebhookApi - axios parameter creator
34
+ * @export
35
+ */
36
+ export const WebhookApiAxiosParamCreator = function (configuration) {
37
+ return {
38
+ /**
39
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
40
+ * @summary List webhooks
41
+ * @param {number} [companyId] Company id
42
+ * @param {number} [page] Page number.
43
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
44
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
45
+ * @param {string} [description]
46
+ * @param {boolean} [enabled]
47
+ * @param {string} [events]
48
+ * @param {string} [url]
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ webhookGet: (companyId_1, page_1, pageSize_1, sort_1, description_1, enabled_1, events_1, url_1, ...args_1) => __awaiter(this, [companyId_1, page_1, pageSize_1, sort_1, description_1, enabled_1, events_1, url_1, ...args_1], void 0, function* (companyId, page, pageSize, sort, description, enabled, events, url, options = {}) {
53
+ const localVarPath = `/webhook`;
54
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56
+ let baseOptions;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ }
60
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
61
+ const localVarHeaderParameter = {};
62
+ const localVarQueryParameter = {};
63
+ // authentication Basic required
64
+ // http basic authentication required
65
+ setBasicAuthToObject(localVarRequestOptions, configuration);
66
+ if (companyId !== undefined) {
67
+ localVarQueryParameter['company_id'] = companyId;
68
+ }
69
+ if (page !== undefined) {
70
+ localVarQueryParameter['page'] = page;
71
+ }
72
+ if (pageSize !== undefined) {
73
+ localVarQueryParameter['page_size'] = pageSize;
74
+ }
75
+ if (sort !== undefined) {
76
+ localVarQueryParameter['sort'] = sort;
77
+ }
78
+ if (description !== undefined) {
79
+ localVarQueryParameter['description'] = description;
80
+ }
81
+ if (enabled !== undefined) {
82
+ localVarQueryParameter['enabled'] = enabled;
83
+ }
84
+ if (events !== undefined) {
85
+ localVarQueryParameter['events'] = events;
86
+ }
87
+ if (url !== undefined) {
88
+ localVarQueryParameter['url'] = url;
89
+ }
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
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
100
+ * @summary Delete a webhook by id
101
+ * @param {number} id Item id
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ webhookIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
106
+ // verify required parameter 'id' is not null or undefined
107
+ assertParamExists('webhookIdDelete', 'id', id);
108
+ const localVarPath = `/webhook/{id}`
109
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
110
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
111
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
112
+ let baseOptions;
113
+ if (configuration) {
114
+ baseOptions = configuration.baseOptions;
115
+ }
116
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
117
+ const localVarHeaderParameter = {};
118
+ const localVarQueryParameter = {};
119
+ // authentication Basic required
120
+ // http basic authentication required
121
+ setBasicAuthToObject(localVarRequestOptions, configuration);
122
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
125
+ return {
126
+ url: toPathString(localVarUrlObj),
127
+ options: localVarRequestOptions,
128
+ };
129
+ }),
130
+ /**
131
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
132
+ * @summary Get a webhook by id
133
+ * @param {number} id Item id
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ webhookIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
138
+ // verify required parameter 'id' is not null or undefined
139
+ assertParamExists('webhookIdGet', 'id', id);
140
+ const localVarPath = `/webhook/{id}`
141
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
142
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
143
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
144
+ let baseOptions;
145
+ if (configuration) {
146
+ baseOptions = configuration.baseOptions;
147
+ }
148
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
149
+ const localVarHeaderParameter = {};
150
+ const localVarQueryParameter = {};
151
+ // authentication Basic required
152
+ // http basic authentication required
153
+ setBasicAuthToObject(localVarRequestOptions, configuration);
154
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
155
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
156
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
157
+ return {
158
+ url: toPathString(localVarUrlObj),
159
+ options: localVarRequestOptions,
160
+ };
161
+ }),
162
+ /**
163
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
164
+ * @summary Add a webhook
165
+ * @param {WebHook} webHook
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ webhookPost: (webHook_1, ...args_1) => __awaiter(this, [webHook_1, ...args_1], void 0, function* (webHook, options = {}) {
170
+ // verify required parameter 'webHook' is not null or undefined
171
+ assertParamExists('webhookPost', 'webHook', webHook);
172
+ const localVarPath = `/webhook`;
173
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
174
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
175
+ let baseOptions;
176
+ if (configuration) {
177
+ baseOptions = configuration.baseOptions;
178
+ }
179
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
180
+ const localVarHeaderParameter = {};
181
+ const localVarQueryParameter = {};
182
+ // authentication Basic required
183
+ // http basic authentication required
184
+ setBasicAuthToObject(localVarRequestOptions, configuration);
185
+ localVarHeaderParameter['Content-Type'] = 'application/json';
186
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
187
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
189
+ localVarRequestOptions.data = serializeDataIfNeeded(webHook, localVarRequestOptions, configuration);
190
+ return {
191
+ url: toPathString(localVarUrlObj),
192
+ options: localVarRequestOptions,
193
+ };
194
+ }),
195
+ /**
196
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
197
+ * @summary Update a webhook
198
+ * @param {WebHook} webHook
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ webhookPut: (webHook_1, ...args_1) => __awaiter(this, [webHook_1, ...args_1], void 0, function* (webHook, options = {}) {
203
+ // verify required parameter 'webHook' is not null or undefined
204
+ assertParamExists('webhookPut', 'webHook', webHook);
205
+ const localVarPath = `/webhook`;
206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
208
+ let baseOptions;
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ }
212
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
213
+ const localVarHeaderParameter = {};
214
+ const localVarQueryParameter = {};
215
+ // authentication Basic required
216
+ // http basic authentication required
217
+ setBasicAuthToObject(localVarRequestOptions, configuration);
218
+ localVarHeaderParameter['Content-Type'] = 'application/json';
219
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
220
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
221
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
222
+ localVarRequestOptions.data = serializeDataIfNeeded(webHook, localVarRequestOptions, configuration);
223
+ return {
224
+ url: toPathString(localVarUrlObj),
225
+ options: localVarRequestOptions,
226
+ };
227
+ }),
228
+ /**
229
+ * Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
230
+ * @summary List webhook history items
231
+ * @param {number} [page] Page number.
232
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
233
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
234
+ * @param {number} [webhookId] WebHook id
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ webhookhistoryGet: (page_1, pageSize_1, sort_1, webhookId_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, sort_1, webhookId_1, ...args_1], void 0, function* (page, pageSize, sort, webhookId, options = {}) {
239
+ const localVarPath = `/webhookhistory`;
240
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
241
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
242
+ let baseOptions;
243
+ if (configuration) {
244
+ baseOptions = configuration.baseOptions;
245
+ }
246
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
247
+ const localVarHeaderParameter = {};
248
+ const localVarQueryParameter = {};
249
+ // authentication Basic required
250
+ // http basic authentication required
251
+ setBasicAuthToObject(localVarRequestOptions, configuration);
252
+ if (page !== undefined) {
253
+ localVarQueryParameter['page'] = page;
254
+ }
255
+ if (pageSize !== undefined) {
256
+ localVarQueryParameter['page_size'] = pageSize;
257
+ }
258
+ if (sort !== undefined) {
259
+ localVarQueryParameter['sort'] = sort;
260
+ }
261
+ if (webhookId !== undefined) {
262
+ localVarQueryParameter['webhook_id'] = webhookId;
263
+ }
264
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
265
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
266
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
267
+ return {
268
+ url: toPathString(localVarUrlObj),
269
+ options: localVarRequestOptions,
270
+ };
271
+ }),
272
+ /**
273
+ * Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
274
+ * @summary Get a webhook history item by id
275
+ * @param {number} id Item id
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ webhookhistoryIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
280
+ // verify required parameter 'id' is not null or undefined
281
+ assertParamExists('webhookhistoryIdGet', 'id', id);
282
+ const localVarPath = `/webhookhistory/{id}`
283
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
284
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
285
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
286
+ let baseOptions;
287
+ if (configuration) {
288
+ baseOptions = configuration.baseOptions;
289
+ }
290
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
291
+ const localVarHeaderParameter = {};
292
+ const localVarQueryParameter = {};
293
+ // authentication Basic required
294
+ // http basic authentication required
295
+ setBasicAuthToObject(localVarRequestOptions, configuration);
296
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
299
+ return {
300
+ url: toPathString(localVarUrlObj),
301
+ options: localVarRequestOptions,
302
+ };
303
+ }),
304
+ };
305
+ };
306
+ /**
307
+ * WebhookApi - functional programming interface
308
+ * @export
309
+ */
310
+ export const WebhookApiFp = function (configuration) {
311
+ const localVarAxiosParamCreator = WebhookApiAxiosParamCreator(configuration);
312
+ return {
313
+ /**
314
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
315
+ * @summary List webhooks
316
+ * @param {number} [companyId] Company id
317
+ * @param {number} [page] Page number.
318
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
319
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
320
+ * @param {string} [description]
321
+ * @param {boolean} [enabled]
322
+ * @param {string} [events]
323
+ * @param {string} [url]
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options) {
328
+ return __awaiter(this, void 0, void 0, function* () {
329
+ var _a, _b, _c;
330
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options);
331
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
332
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebhookApi.webhookGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
333
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
334
+ });
335
+ },
336
+ /**
337
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
338
+ * @summary Delete a webhook by id
339
+ * @param {number} id Item id
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ */
343
+ webhookIdDelete(id, options) {
344
+ return __awaiter(this, void 0, void 0, function* () {
345
+ var _a, _b, _c;
346
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookIdDelete(id, options);
347
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
348
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebhookApi.webhookIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
349
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
350
+ });
351
+ },
352
+ /**
353
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
354
+ * @summary Get a webhook by id
355
+ * @param {number} id Item id
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ webhookIdGet(id, options) {
360
+ return __awaiter(this, void 0, void 0, function* () {
361
+ var _a, _b, _c;
362
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookIdGet(id, options);
363
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
364
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebhookApi.webhookIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
365
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
366
+ });
367
+ },
368
+ /**
369
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
370
+ * @summary Add a webhook
371
+ * @param {WebHook} webHook
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
375
+ webhookPost(webHook, options) {
376
+ return __awaiter(this, void 0, void 0, function* () {
377
+ var _a, _b, _c;
378
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookPost(webHook, options);
379
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
380
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebhookApi.webhookPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
381
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
382
+ });
383
+ },
384
+ /**
385
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
386
+ * @summary Update a webhook
387
+ * @param {WebHook} webHook
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ webhookPut(webHook, options) {
392
+ return __awaiter(this, void 0, void 0, function* () {
393
+ var _a, _b, _c;
394
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookPut(webHook, options);
395
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
396
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebhookApi.webhookPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
397
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
398
+ });
399
+ },
400
+ /**
401
+ * Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
402
+ * @summary List webhook history items
403
+ * @param {number} [page] Page number.
404
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
405
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
406
+ * @param {number} [webhookId] WebHook id
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ webhookhistoryGet(page, pageSize, sort, webhookId, options) {
411
+ return __awaiter(this, void 0, void 0, function* () {
412
+ var _a, _b, _c;
413
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookhistoryGet(page, pageSize, sort, webhookId, options);
414
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
415
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebhookApi.webhookhistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
416
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
417
+ });
418
+ },
419
+ /**
420
+ * Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
421
+ * @summary Get a webhook history item by id
422
+ * @param {number} id Item id
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ webhookhistoryIdGet(id, options) {
427
+ return __awaiter(this, void 0, void 0, function* () {
428
+ var _a, _b, _c;
429
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookhistoryIdGet(id, options);
430
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
431
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebhookApi.webhookhistoryIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
432
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
433
+ });
434
+ },
435
+ };
436
+ };
437
+ /**
438
+ * WebhookApi - factory interface
439
+ * @export
440
+ */
441
+ export const WebhookApiFactory = function (configuration, basePath, axios) {
442
+ const localVarFp = WebhookApiFp(configuration);
443
+ return {
444
+ /**
445
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
446
+ * @summary List webhooks
447
+ * @param {number} [companyId] Company id
448
+ * @param {number} [page] Page number.
449
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
450
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
451
+ * @param {string} [description]
452
+ * @param {boolean} [enabled]
453
+ * @param {string} [events]
454
+ * @param {string} [url]
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options) {
459
+ return localVarFp.webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options).then((request) => request(axios, basePath));
460
+ },
461
+ /**
462
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
463
+ * @summary Delete a webhook by id
464
+ * @param {number} id Item id
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ webhookIdDelete(id, options) {
469
+ return localVarFp.webhookIdDelete(id, options).then((request) => request(axios, basePath));
470
+ },
471
+ /**
472
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
473
+ * @summary Get a webhook by id
474
+ * @param {number} id Item id
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ */
478
+ webhookIdGet(id, options) {
479
+ return localVarFp.webhookIdGet(id, options).then((request) => request(axios, basePath));
480
+ },
481
+ /**
482
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
483
+ * @summary Add a webhook
484
+ * @param {WebHook} webHook
485
+ * @param {*} [options] Override http request option.
486
+ * @throws {RequiredError}
487
+ */
488
+ webhookPost(webHook, options) {
489
+ return localVarFp.webhookPost(webHook, options).then((request) => request(axios, basePath));
490
+ },
491
+ /**
492
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
493
+ * @summary Update a webhook
494
+ * @param {WebHook} webHook
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ webhookPut(webHook, options) {
499
+ return localVarFp.webhookPut(webHook, options).then((request) => request(axios, basePath));
500
+ },
501
+ /**
502
+ * Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
503
+ * @summary List webhook history items
504
+ * @param {number} [page] Page number.
505
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
506
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
507
+ * @param {number} [webhookId] WebHook id
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ webhookhistoryGet(page, pageSize, sort, webhookId, options) {
512
+ return localVarFp.webhookhistoryGet(page, pageSize, sort, webhookId, options).then((request) => request(axios, basePath));
513
+ },
514
+ /**
515
+ * Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
516
+ * @summary Get a webhook history item by id
517
+ * @param {number} id Item id
518
+ * @param {*} [options] Override http request option.
519
+ * @throws {RequiredError}
520
+ */
521
+ webhookhistoryIdGet(id, options) {
522
+ return localVarFp.webhookhistoryIdGet(id, options).then((request) => request(axios, basePath));
523
+ },
524
+ };
525
+ };
526
+ /**
527
+ * WebhookApi - object-oriented interface
528
+ * @export
529
+ * @class WebhookApi
530
+ * @extends {BaseAPI}
531
+ */
532
+ export class WebhookApi extends BaseAPI {
533
+ /**
534
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
535
+ * @summary List webhooks
536
+ * @param {number} [companyId] Company id
537
+ * @param {number} [page] Page number.
538
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
539
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
540
+ * @param {string} [description]
541
+ * @param {boolean} [enabled]
542
+ * @param {string} [events]
543
+ * @param {string} [url]
544
+ * @param {*} [options] Override http request option.
545
+ * @throws {RequiredError}
546
+ * @memberof WebhookApi
547
+ */
548
+ webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options) {
549
+ return WebhookApiFp(this.configuration).webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options).then((request) => request(this.axios, this.basePath));
550
+ }
551
+ /**
552
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
553
+ * @summary Delete a webhook by id
554
+ * @param {number} id Item id
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ * @memberof WebhookApi
558
+ */
559
+ webhookIdDelete(id, options) {
560
+ return WebhookApiFp(this.configuration).webhookIdDelete(id, options).then((request) => request(this.axios, this.basePath));
561
+ }
562
+ /**
563
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
564
+ * @summary Get a webhook by id
565
+ * @param {number} id Item id
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ * @memberof WebhookApi
569
+ */
570
+ webhookIdGet(id, options) {
571
+ return WebhookApiFp(this.configuration).webhookIdGet(id, options).then((request) => request(this.axios, this.basePath));
572
+ }
573
+ /**
574
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
575
+ * @summary Add a webhook
576
+ * @param {WebHook} webHook
577
+ * @param {*} [options] Override http request option.
578
+ * @throws {RequiredError}
579
+ * @memberof WebhookApi
580
+ */
581
+ webhookPost(webHook, options) {
582
+ return WebhookApiFp(this.configuration).webhookPost(webHook, options).then((request) => request(this.axios, this.basePath));
583
+ }
584
+ /**
585
+ * Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
586
+ * @summary Update a webhook
587
+ * @param {WebHook} webHook
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ * @memberof WebhookApi
591
+ */
592
+ webhookPut(webHook, options) {
593
+ return WebhookApiFp(this.configuration).webhookPut(webHook, options).then((request) => request(this.axios, this.basePath));
594
+ }
595
+ /**
596
+ * Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
597
+ * @summary List webhook history items
598
+ * @param {number} [page] Page number.
599
+ * @param {number} [pageSize] Items per page. Cannot be greater than 200.
600
+ * @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
601
+ * @param {number} [webhookId] WebHook id
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ * @memberof WebhookApi
605
+ */
606
+ webhookhistoryGet(page, pageSize, sort, webhookId, options) {
607
+ return WebhookApiFp(this.configuration).webhookhistoryGet(page, pageSize, sort, webhookId, options).then((request) => request(this.axios, this.basePath));
608
+ }
609
+ /**
610
+ * Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
611
+ * @summary Get a webhook history item by id
612
+ * @param {number} id Item id
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ * @memberof WebhookApi
616
+ */
617
+ webhookhistoryIdGet(id, options) {
618
+ return WebhookApiFp(this.configuration).webhookhistoryIdGet(id, options).then((request) => request(this.axios, this.basePath));
619
+ }
620
+ }
@@ -0,0 +1,48 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface Allegati
16
+ */
17
+ export interface Allegati {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Allegati
22
+ */
23
+ 'nome_attachment'?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Allegati
28
+ */
29
+ 'algoritmo_compressione'?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof Allegati
34
+ */
35
+ 'formato_attachment'?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Allegati
40
+ */
41
+ 'descrizione_attachment'?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof Allegati
46
+ */
47
+ 'attachment'?: string | null;
48
+ }