@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.
- package/.github/workflows/release.yml +58 -0
- package/LICENSE +21 -0
- package/README.md +55 -0
- package/api.ts +24 -0
- package/base.ts +86 -0
- package/common.ts +151 -0
- package/configuration.ts +116 -0
- package/dist/api.d.ts +18 -0
- package/dist/api.js +36 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +66 -0
- package/dist/common.js +162 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +18 -0
- package/dist/esm/api.js +20 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +66 -0
- package/dist/esm/common.js +150 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/src/api/company-api.d.ts +268 -0
- package/dist/esm/src/api/company-api.js +426 -0
- package/dist/esm/src/api/log-api.d.ts +197 -0
- package/dist/esm/src/api/log-api.js +302 -0
- package/dist/esm/src/api/receive-api.d.ts +259 -0
- package/dist/esm/src/api/receive-api.js +403 -0
- package/dist/esm/src/api/send-api.d.ts +676 -0
- package/dist/esm/src/api/send-api.js +1063 -0
- package/dist/esm/src/api/status-api.d.ts +85 -0
- package/dist/esm/src/api/status-api.js +127 -0
- package/dist/esm/src/api/update-api.d.ts +207 -0
- package/dist/esm/src/api/update-api.js +309 -0
- package/dist/esm/src/api/webhook-api.d.ts +393 -0
- package/dist/esm/src/api/webhook-api.js +620 -0
- package/dist/esm/src/models/allegati.d.ts +48 -0
- package/dist/esm/src/models/allegati.js +14 -0
- package/dist/esm/src/models/altri-dati-gestionali.d.ts +42 -0
- package/dist/esm/src/models/altri-dati-gestionali.js +14 -0
- package/dist/esm/src/models/anagrafica.d.ts +48 -0
- package/dist/esm/src/models/anagrafica.js +14 -0
- package/dist/esm/src/models/cedente-prestatore.d.ts +59 -0
- package/dist/esm/src/models/cedente-prestatore.js +14 -0
- package/dist/esm/src/models/cessionario-committente.d.ts +46 -0
- package/dist/esm/src/models/cessionario-committente.js +14 -0
- package/dist/esm/src/models/codice-articolo.d.ts +30 -0
- package/dist/esm/src/models/codice-articolo.js +14 -0
- package/dist/esm/src/models/company.d.ts +60 -0
- package/dist/esm/src/models/company.js +14 -0
- package/dist/esm/src/models/contatti-trasmittente.d.ts +30 -0
- package/dist/esm/src/models/contatti-trasmittente.js +14 -0
- package/dist/esm/src/models/contatti.d.ts +36 -0
- package/dist/esm/src/models/contatti.js +14 -0
- package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.d.ts +68 -0
- package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.js +14 -0
- package/dist/esm/src/models/dati-anagrafici-cessionario-committente.d.ts +38 -0
- package/dist/esm/src/models/dati-anagrafici-cessionario-committente.js +14 -0
- package/dist/esm/src/models/dati-anagrafici-vettore.d.ts +44 -0
- package/dist/esm/src/models/dati-anagrafici-vettore.js +14 -0
- package/dist/esm/src/models/dati-anagrafici.d.ts +38 -0
- package/dist/esm/src/models/dati-anagrafici.js +14 -0
- package/dist/esm/src/models/dati-beni-servizi.d.ts +32 -0
- package/dist/esm/src/models/dati-beni-servizi.js +14 -0
- package/dist/esm/src/models/dati-bollo.d.ts +30 -0
- package/dist/esm/src/models/dati-bollo.js +14 -0
- package/dist/esm/src/models/dati-cassa-previdenziale.d.ts +66 -0
- package/dist/esm/src/models/dati-cassa-previdenziale.js +14 -0
- package/dist/esm/src/models/dati-contratto.d.ts +60 -0
- package/dist/esm/src/models/dati-contratto.js +14 -0
- package/dist/esm/src/models/dati-convenzione.d.ts +60 -0
- package/dist/esm/src/models/dati-convenzione.js +14 -0
- package/dist/esm/src/models/dati-ddt.d.ts +36 -0
- package/dist/esm/src/models/dati-ddt.js +14 -0
- package/dist/esm/src/models/dati-fatture-collegate.d.ts +60 -0
- package/dist/esm/src/models/dati-fatture-collegate.js +14 -0
- package/dist/esm/src/models/dati-generali-documento.d.ts +94 -0
- package/dist/esm/src/models/dati-generali-documento.js +14 -0
- package/dist/esm/src/models/dati-generali.d.ts +88 -0
- package/dist/esm/src/models/dati-generali.js +14 -0
- package/dist/esm/src/models/dati-ordine-acquisto.d.ts +60 -0
- package/dist/esm/src/models/dati-ordine-acquisto.js +14 -0
- package/dist/esm/src/models/dati-pagamento.d.ts +31 -0
- package/dist/esm/src/models/dati-pagamento.js +14 -0
- package/dist/esm/src/models/dati-ricezione.d.ts +60 -0
- package/dist/esm/src/models/dati-ricezione.js +14 -0
- package/dist/esm/src/models/dati-riepilogo.d.ts +66 -0
- package/dist/esm/src/models/dati-riepilogo.js +14 -0
- package/dist/esm/src/models/dati-ritenuta.d.ts +42 -0
- package/dist/esm/src/models/dati-ritenuta.js +14 -0
- package/dist/esm/src/models/dati-sal.d.ts +24 -0
- package/dist/esm/src/models/dati-sal.js +14 -0
- package/dist/esm/src/models/dati-trasmissione.d.ts +56 -0
- package/dist/esm/src/models/dati-trasmissione.js +14 -0
- package/dist/esm/src/models/dati-trasporto.d.ts +98 -0
- package/dist/esm/src/models/dati-trasporto.js +14 -0
- package/dist/esm/src/models/dati-veicoli.d.ts +30 -0
- package/dist/esm/src/models/dati-veicoli.js +14 -0
- package/dist/esm/src/models/dettaglio-linee.d.ts +117 -0
- package/dist/esm/src/models/dettaglio-linee.js +14 -0
- package/dist/esm/src/models/dettaglio-pagamento.d.ts +144 -0
- package/dist/esm/src/models/dettaglio-pagamento.js +14 -0
- package/dist/esm/src/models/document-data.d.ts +30 -0
- package/dist/esm/src/models/document-data.js +14 -0
- package/dist/esm/src/models/event.d.ts +108 -0
- package/dist/esm/src/models/event.js +14 -0
- package/dist/esm/src/models/fattura-elettronica-body.d.ts +53 -0
- package/dist/esm/src/models/fattura-elettronica-body.js +14 -0
- package/dist/esm/src/models/fattura-elettronica-header.d.ts +59 -0
- package/dist/esm/src/models/fattura-elettronica-header.js +14 -0
- package/dist/esm/src/models/fattura-ordinaria.d.ts +38 -0
- package/dist/esm/src/models/fattura-ordinaria.js +14 -0
- package/dist/esm/src/models/fattura-principale.d.ts +30 -0
- package/dist/esm/src/models/fattura-principale.js +14 -0
- package/dist/esm/src/models/id-fiscale-iva.d.ts +30 -0
- package/dist/esm/src/models/id-fiscale-iva.js +14 -0
- package/dist/esm/src/models/id-trasmittente.d.ts +30 -0
- package/dist/esm/src/models/id-trasmittente.js +14 -0
- package/dist/esm/src/models/index.d.ts +60 -0
- package/dist/esm/src/models/index.js +60 -0
- package/dist/esm/src/models/indirizzo-resa.d.ts +54 -0
- package/dist/esm/src/models/indirizzo-resa.js +14 -0
- package/dist/esm/src/models/iscrizione-rea.d.ts +48 -0
- package/dist/esm/src/models/iscrizione-rea.js +14 -0
- package/dist/esm/src/models/model-error.d.ts +36 -0
- package/dist/esm/src/models/model-error.js +14 -0
- package/dist/esm/src/models/problem-details.d.ts +49 -0
- package/dist/esm/src/models/problem-details.js +14 -0
- package/dist/esm/src/models/problem-http-result.d.ts +37 -0
- package/dist/esm/src/models/problem-http-result.js +14 -0
- package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.d.ts +43 -0
- package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.js +14 -0
- package/dist/esm/src/models/rappresentante-fiscale.d.ts +25 -0
- package/dist/esm/src/models/rappresentante-fiscale.js +14 -0
- package/dist/esm/src/models/receive.d.ts +126 -0
- package/dist/esm/src/models/receive.js +17 -0
- package/dist/esm/src/models/sconto-maggiorazione.d.ts +36 -0
- package/dist/esm/src/models/sconto-maggiorazione.js +14 -0
- package/dist/esm/src/models/sede-cedente-prestatore.d.ts +54 -0
- package/dist/esm/src/models/sede-cedente-prestatore.js +14 -0
- package/dist/esm/src/models/sede-cessionario-committente.d.ts +54 -0
- package/dist/esm/src/models/sede-cessionario-committente.js +14 -0
- package/dist/esm/src/models/send-reduced.d.ts +51 -0
- package/dist/esm/src/models/send-reduced.js +14 -0
- package/dist/esm/src/models/send.d.ts +129 -0
- package/dist/esm/src/models/send.js +17 -0
- package/dist/esm/src/models/stabile-organizzazione.d.ts +54 -0
- package/dist/esm/src/models/stabile-organizzazione.js +14 -0
- package/dist/esm/src/models/status.d.ts +30 -0
- package/dist/esm/src/models/status.js +14 -0
- package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.d.ts +25 -0
- package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.js +14 -0
- package/dist/esm/src/models/update.d.ts +109 -0
- package/dist/esm/src/models/update.js +24 -0
- package/dist/esm/src/models/web-hook-history.d.ts +72 -0
- package/dist/esm/src/models/web-hook-history.js +14 -0
- package/dist/esm/src/models/web-hook.d.ts +78 -0
- package/dist/esm/src/models/web-hook.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/src/api/company-api.d.ts +268 -0
- package/dist/src/api/company-api.js +433 -0
- package/dist/src/api/log-api.d.ts +197 -0
- package/dist/src/api/log-api.js +309 -0
- package/dist/src/api/receive-api.d.ts +259 -0
- package/dist/src/api/receive-api.js +410 -0
- package/dist/src/api/send-api.d.ts +676 -0
- package/dist/src/api/send-api.js +1070 -0
- package/dist/src/api/status-api.d.ts +85 -0
- package/dist/src/api/status-api.js +134 -0
- package/dist/src/api/update-api.d.ts +207 -0
- package/dist/src/api/update-api.js +316 -0
- package/dist/src/api/webhook-api.d.ts +393 -0
- package/dist/src/api/webhook-api.js +627 -0
- package/dist/src/models/allegati.d.ts +48 -0
- package/dist/src/models/allegati.js +15 -0
- package/dist/src/models/altri-dati-gestionali.d.ts +42 -0
- package/dist/src/models/altri-dati-gestionali.js +15 -0
- package/dist/src/models/anagrafica.d.ts +48 -0
- package/dist/src/models/anagrafica.js +15 -0
- package/dist/src/models/cedente-prestatore.d.ts +59 -0
- package/dist/src/models/cedente-prestatore.js +15 -0
- package/dist/src/models/cessionario-committente.d.ts +46 -0
- package/dist/src/models/cessionario-committente.js +15 -0
- package/dist/src/models/codice-articolo.d.ts +30 -0
- package/dist/src/models/codice-articolo.js +15 -0
- package/dist/src/models/company.d.ts +60 -0
- package/dist/src/models/company.js +15 -0
- package/dist/src/models/contatti-trasmittente.d.ts +30 -0
- package/dist/src/models/contatti-trasmittente.js +15 -0
- package/dist/src/models/contatti.d.ts +36 -0
- package/dist/src/models/contatti.js +15 -0
- package/dist/src/models/dati-anagrafici-cedente-prestatore.d.ts +68 -0
- package/dist/src/models/dati-anagrafici-cedente-prestatore.js +15 -0
- package/dist/src/models/dati-anagrafici-cessionario-committente.d.ts +38 -0
- package/dist/src/models/dati-anagrafici-cessionario-committente.js +15 -0
- package/dist/src/models/dati-anagrafici-vettore.d.ts +44 -0
- package/dist/src/models/dati-anagrafici-vettore.js +15 -0
- package/dist/src/models/dati-anagrafici.d.ts +38 -0
- package/dist/src/models/dati-anagrafici.js +15 -0
- package/dist/src/models/dati-beni-servizi.d.ts +32 -0
- package/dist/src/models/dati-beni-servizi.js +15 -0
- package/dist/src/models/dati-bollo.d.ts +30 -0
- package/dist/src/models/dati-bollo.js +15 -0
- package/dist/src/models/dati-cassa-previdenziale.d.ts +66 -0
- package/dist/src/models/dati-cassa-previdenziale.js +15 -0
- package/dist/src/models/dati-contratto.d.ts +60 -0
- package/dist/src/models/dati-contratto.js +15 -0
- package/dist/src/models/dati-convenzione.d.ts +60 -0
- package/dist/src/models/dati-convenzione.js +15 -0
- package/dist/src/models/dati-ddt.d.ts +36 -0
- package/dist/src/models/dati-ddt.js +15 -0
- package/dist/src/models/dati-fatture-collegate.d.ts +60 -0
- package/dist/src/models/dati-fatture-collegate.js +15 -0
- package/dist/src/models/dati-generali-documento.d.ts +94 -0
- package/dist/src/models/dati-generali-documento.js +15 -0
- package/dist/src/models/dati-generali.d.ts +88 -0
- package/dist/src/models/dati-generali.js +15 -0
- package/dist/src/models/dati-ordine-acquisto.d.ts +60 -0
- package/dist/src/models/dati-ordine-acquisto.js +15 -0
- package/dist/src/models/dati-pagamento.d.ts +31 -0
- package/dist/src/models/dati-pagamento.js +15 -0
- package/dist/src/models/dati-ricezione.d.ts +60 -0
- package/dist/src/models/dati-ricezione.js +15 -0
- package/dist/src/models/dati-riepilogo.d.ts +66 -0
- package/dist/src/models/dati-riepilogo.js +15 -0
- package/dist/src/models/dati-ritenuta.d.ts +42 -0
- package/dist/src/models/dati-ritenuta.js +15 -0
- package/dist/src/models/dati-sal.d.ts +24 -0
- package/dist/src/models/dati-sal.js +15 -0
- package/dist/src/models/dati-trasmissione.d.ts +56 -0
- package/dist/src/models/dati-trasmissione.js +15 -0
- package/dist/src/models/dati-trasporto.d.ts +98 -0
- package/dist/src/models/dati-trasporto.js +15 -0
- package/dist/src/models/dati-veicoli.d.ts +30 -0
- package/dist/src/models/dati-veicoli.js +15 -0
- package/dist/src/models/dettaglio-linee.d.ts +117 -0
- package/dist/src/models/dettaglio-linee.js +15 -0
- package/dist/src/models/dettaglio-pagamento.d.ts +144 -0
- package/dist/src/models/dettaglio-pagamento.js +15 -0
- package/dist/src/models/document-data.d.ts +30 -0
- package/dist/src/models/document-data.js +15 -0
- package/dist/src/models/event.d.ts +108 -0
- package/dist/src/models/event.js +15 -0
- package/dist/src/models/fattura-elettronica-body.d.ts +53 -0
- package/dist/src/models/fattura-elettronica-body.js +15 -0
- package/dist/src/models/fattura-elettronica-header.d.ts +59 -0
- package/dist/src/models/fattura-elettronica-header.js +15 -0
- package/dist/src/models/fattura-ordinaria.d.ts +38 -0
- package/dist/src/models/fattura-ordinaria.js +15 -0
- package/dist/src/models/fattura-principale.d.ts +30 -0
- package/dist/src/models/fattura-principale.js +15 -0
- package/dist/src/models/id-fiscale-iva.d.ts +30 -0
- package/dist/src/models/id-fiscale-iva.js +15 -0
- package/dist/src/models/id-trasmittente.d.ts +30 -0
- package/dist/src/models/id-trasmittente.js +15 -0
- package/dist/src/models/index.d.ts +60 -0
- package/dist/src/models/index.js +76 -0
- package/dist/src/models/indirizzo-resa.d.ts +54 -0
- package/dist/src/models/indirizzo-resa.js +15 -0
- package/dist/src/models/iscrizione-rea.d.ts +48 -0
- package/dist/src/models/iscrizione-rea.js +15 -0
- package/dist/src/models/model-error.d.ts +36 -0
- package/dist/src/models/model-error.js +15 -0
- package/dist/src/models/problem-details.d.ts +49 -0
- package/dist/src/models/problem-details.js +15 -0
- package/dist/src/models/problem-http-result.d.ts +37 -0
- package/dist/src/models/problem-http-result.js +15 -0
- package/dist/src/models/rappresentante-fiscale-cessionario-committente.d.ts +43 -0
- package/dist/src/models/rappresentante-fiscale-cessionario-committente.js +15 -0
- package/dist/src/models/rappresentante-fiscale.d.ts +25 -0
- package/dist/src/models/rappresentante-fiscale.js +15 -0
- package/dist/src/models/receive.d.ts +126 -0
- package/dist/src/models/receive.js +20 -0
- package/dist/src/models/sconto-maggiorazione.d.ts +36 -0
- package/dist/src/models/sconto-maggiorazione.js +15 -0
- package/dist/src/models/sede-cedente-prestatore.d.ts +54 -0
- package/dist/src/models/sede-cedente-prestatore.js +15 -0
- package/dist/src/models/sede-cessionario-committente.d.ts +54 -0
- package/dist/src/models/sede-cessionario-committente.js +15 -0
- package/dist/src/models/send-reduced.d.ts +51 -0
- package/dist/src/models/send-reduced.js +15 -0
- package/dist/src/models/send.d.ts +129 -0
- package/dist/src/models/send.js +20 -0
- package/dist/src/models/stabile-organizzazione.d.ts +54 -0
- package/dist/src/models/stabile-organizzazione.js +15 -0
- package/dist/src/models/status.d.ts +30 -0
- package/dist/src/models/status.js +15 -0
- package/dist/src/models/terzo-intermediario-osoggetto-emittente.d.ts +25 -0
- package/dist/src/models/terzo-intermediario-osoggetto-emittente.js +15 -0
- package/dist/src/models/update.d.ts +109 -0
- package/dist/src/models/update.js +27 -0
- package/dist/src/models/web-hook-history.d.ts +72 -0
- package/dist/src/models/web-hook-history.js +15 -0
- package/dist/src/models/web-hook.d.ts +78 -0
- package/dist/src/models/web-hook.js +15 -0
- package/docs/Allegati.md +28 -0
- package/docs/AltriDatiGestionali.md +26 -0
- package/docs/Anagrafica.md +28 -0
- package/docs/CedentePrestatore.md +30 -0
- package/docs/CessionarioCommittente.md +26 -0
- package/docs/CodiceArticolo.md +22 -0
- package/docs/Company.md +33 -0
- package/docs/CompanyApi.md +285 -0
- package/docs/Contatti.md +24 -0
- package/docs/ContattiTrasmittente.md +22 -0
- package/docs/DatiAnagrafici.md +24 -0
- package/docs/DatiAnagraficiCedentePrestatore.md +34 -0
- package/docs/DatiAnagraficiCessionarioCommittente.md +24 -0
- package/docs/DatiAnagraficiVettore.md +26 -0
- package/docs/DatiBeniServizi.md +22 -0
- package/docs/DatiBollo.md +22 -0
- package/docs/DatiCassaPrevidenziale.md +34 -0
- package/docs/DatiContratto.md +32 -0
- package/docs/DatiConvenzione.md +32 -0
- package/docs/DatiDDT.md +24 -0
- package/docs/DatiFattureCollegate.md +32 -0
- package/docs/DatiGenerali.md +38 -0
- package/docs/DatiGeneraliDocumento.md +42 -0
- package/docs/DatiOrdineAcquisto.md +32 -0
- package/docs/DatiPagamento.md +22 -0
- package/docs/DatiRicezione.md +32 -0
- package/docs/DatiRiepilogo.md +34 -0
- package/docs/DatiRitenuta.md +26 -0
- package/docs/DatiSAL.md +20 -0
- package/docs/DatiTrasmissione.md +30 -0
- package/docs/DatiTrasporto.md +44 -0
- package/docs/DatiVeicoli.md +22 -0
- package/docs/DettaglioLinee.md +50 -0
- package/docs/DettaglioPagamento.md +60 -0
- package/docs/DocumentData.md +22 -0
- package/docs/Error.md +25 -0
- package/docs/Event.md +48 -0
- package/docs/FatturaElettronicaBody.md +28 -0
- package/docs/FatturaElettronicaHeader.md +30 -0
- package/docs/FatturaOrdinaria.md +24 -0
- package/docs/FatturaPrincipale.md +22 -0
- package/docs/IdFiscaleIVA.md +22 -0
- package/docs/IdTrasmittente.md +22 -0
- package/docs/IndirizzoResa.md +30 -0
- package/docs/IscrizioneREA.md +28 -0
- package/docs/LogApi.md +153 -0
- package/docs/ProblemDetails.md +28 -0
- package/docs/ProblemHttpResult.md +24 -0
- package/docs/RappresentanteFiscale.md +20 -0
- package/docs/RappresentanteFiscaleCessionarioCommittente.md +26 -0
- package/docs/Receive.md +52 -0
- package/docs/ReceiveApi.md +220 -0
- package/docs/ScontoMaggiorazione.md +24 -0
- package/docs/SedeCedentePrestatore.md +30 -0
- package/docs/SedeCessionarioCommittente.md +30 -0
- package/docs/Send.md +52 -0
- package/docs/SendApi.md +681 -0
- package/docs/SendReduced.md +29 -0
- package/docs/StabileOrganizzazione.md +30 -0
- package/docs/Status.md +22 -0
- package/docs/StatusApi.md +52 -0
- package/docs/TerzoIntermediarioOSoggettoEmittente.md +20 -0
- package/docs/Update.md +44 -0
- package/docs/UpdateApi.md +150 -0
- package/docs/WebHook.md +38 -0
- package/docs/WebHookHistory.md +37 -0
- package/docs/WebhookApi.md +416 -0
- package/index.ts +18 -0
- package/package.json +33 -0
- package/src/api/company-api.ts +515 -0
- package/src/api/log-api.ts +367 -0
- package/src/api/receive-api.ts +490 -0
- package/src/api/send-api.ts +1296 -0
- package/src/api/status-api.ts +148 -0
- package/src/api/update-api.ts +373 -0
- package/src/api/webhook-api.ts +756 -0
- package/src/models/allegati.ts +54 -0
- package/src/models/altri-dati-gestionali.ts +48 -0
- package/src/models/anagrafica.ts +54 -0
- package/src/models/cedente-prestatore.ts +75 -0
- package/src/models/cessionario-committente.ts +60 -0
- package/src/models/codice-articolo.ts +36 -0
- package/src/models/company.ts +66 -0
- package/src/models/contatti-trasmittente.ts +36 -0
- package/src/models/contatti.ts +42 -0
- package/src/models/dati-anagrafici-cedente-prestatore.ts +78 -0
- package/src/models/dati-anagrafici-cessionario-committente.ts +48 -0
- package/src/models/dati-anagrafici-vettore.ts +54 -0
- package/src/models/dati-anagrafici.ts +48 -0
- package/src/models/dati-beni-servizi.ts +42 -0
- package/src/models/dati-bollo.ts +36 -0
- package/src/models/dati-cassa-previdenziale.ts +72 -0
- package/src/models/dati-contratto.ts +66 -0
- package/src/models/dati-convenzione.ts +66 -0
- package/src/models/dati-ddt.ts +42 -0
- package/src/models/dati-fatture-collegate.ts +66 -0
- package/src/models/dati-generali-documento.ts +108 -0
- package/src/models/dati-generali.ts +114 -0
- package/src/models/dati-ordine-acquisto.ts +66 -0
- package/src/models/dati-pagamento.ts +39 -0
- package/src/models/dati-ricezione.ts +66 -0
- package/src/models/dati-riepilogo.ts +72 -0
- package/src/models/dati-ritenuta.ts +48 -0
- package/src/models/dati-sal.ts +30 -0
- package/src/models/dati-trasmissione.ts +66 -0
- package/src/models/dati-trasporto.ts +108 -0
- package/src/models/dati-veicoli.ts +36 -0
- package/src/models/dettaglio-linee.ts +129 -0
- package/src/models/dettaglio-pagamento.ts +150 -0
- package/src/models/document-data.ts +36 -0
- package/src/models/event.ts +114 -0
- package/src/models/fattura-elettronica-body.ts +69 -0
- package/src/models/fattura-elettronica-header.ts +75 -0
- package/src/models/fattura-ordinaria.ts +48 -0
- package/src/models/fattura-principale.ts +36 -0
- package/src/models/id-fiscale-iva.ts +36 -0
- package/src/models/id-trasmittente.ts +36 -0
- package/src/models/index.ts +60 -0
- package/src/models/indirizzo-resa.ts +60 -0
- package/src/models/iscrizione-rea.ts +54 -0
- package/src/models/model-error.ts +42 -0
- package/src/models/problem-details.ts +56 -0
- package/src/models/problem-http-result.ts +45 -0
- package/src/models/rappresentante-fiscale-cessionario-committente.ts +51 -0
- package/src/models/rappresentante-fiscale.ts +33 -0
- package/src/models/receive.ts +137 -0
- package/src/models/sconto-maggiorazione.ts +42 -0
- package/src/models/sede-cedente-prestatore.ts +60 -0
- package/src/models/sede-cessionario-committente.ts +60 -0
- package/src/models/send-reduced.ts +57 -0
- package/src/models/send.ts +140 -0
- package/src/models/stabile-organizzazione.ts +60 -0
- package/src/models/status.ts +36 -0
- package/src/models/terzo-intermediario-osoggetto-emittente.ts +33 -0
- package/src/models/update.ts +120 -0
- package/src/models/web-hook-history.ts +78 -0
- package/src/models/web-hook.ts +84 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { DocumentData } from './document-data';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Reduced Send data for Update responses, containing only the essential fields.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface SendReduced
|
|
24
|
+
*/
|
|
25
|
+
export interface SendReduced {
|
|
26
|
+
/**
|
|
27
|
+
* SDI identifier.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof SendReduced
|
|
30
|
+
*/
|
|
31
|
+
'identifier'?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* VAT number of the Cedente/Prestatore (vendor).
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof SendReduced
|
|
36
|
+
*/
|
|
37
|
+
'prestatore'?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Optional metadata, as json.
|
|
40
|
+
* @type {{ [key: string]: string; }}
|
|
41
|
+
* @memberof SendReduced
|
|
42
|
+
*/
|
|
43
|
+
'meta_data'?: { [key: string]: string; } | null;
|
|
44
|
+
/**
|
|
45
|
+
* The invoices included in the payload.
|
|
46
|
+
* @type {Array<DocumentData>}
|
|
47
|
+
* @memberof SendReduced
|
|
48
|
+
*/
|
|
49
|
+
'documents'?: Array<DocumentData> | null;
|
|
50
|
+
/**
|
|
51
|
+
* When the invoice was sent to SDI.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof SendReduced
|
|
54
|
+
*/
|
|
55
|
+
'date_sent'?: string | null;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { Company } from './company';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { DocumentData } from './document-data';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Send
|
|
27
|
+
*/
|
|
28
|
+
export interface Send {
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof Send
|
|
33
|
+
*/
|
|
34
|
+
'id'?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Creation date. It is set automatically.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Send
|
|
39
|
+
*/
|
|
40
|
+
'created'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Row version, for optimistic concurrency. It is set automatically.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof Send
|
|
45
|
+
*/
|
|
46
|
+
'version'?: number;
|
|
47
|
+
/**
|
|
48
|
+
* User id.
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof Send
|
|
51
|
+
*/
|
|
52
|
+
'user_id'?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Company id. On send, this is the sender and must be set in advance. On receive, it will be automatically set based on the recipient\'s VAT number. If a matching company is not found, the invoice will be rejected until the company is created.
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof Send
|
|
57
|
+
*/
|
|
58
|
+
'company_id'?: number;
|
|
59
|
+
/**
|
|
60
|
+
* VAT number of the Cessionario/Committente (customer). This is automatically set based on the recipient\'s VAT number.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof Send
|
|
63
|
+
*/
|
|
64
|
+
'committente'?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* VAT number of the Cedente/Prestatore (vendor). This is automatically set based on the sender\'s VAT number.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof Send
|
|
69
|
+
*/
|
|
70
|
+
'prestatore'?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* SDI identifier. This is set by the SDI and is guaranted to be unique within the SDI system.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof Send
|
|
75
|
+
*/
|
|
76
|
+
'identifier'?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Xml file name.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof Send
|
|
81
|
+
*/
|
|
82
|
+
'file_name'?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* SDI format (FPA12, FPR12, FSM10, ...)
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof Send
|
|
87
|
+
*/
|
|
88
|
+
'format'?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Xml payloaad. This is the actual xml content, as string. On send, it can be base64 encoded. If it\'s not, it will be encoded before sending. It is guaranteed to be cyphered at rest.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof Send
|
|
93
|
+
*/
|
|
94
|
+
'payload'?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Last update from SDI.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof Send
|
|
99
|
+
*/
|
|
100
|
+
'last_update'?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* When the invoice was sent to SDI.
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof Send
|
|
105
|
+
*/
|
|
106
|
+
'date_sent'?: string | null;
|
|
107
|
+
/**
|
|
108
|
+
* The invoices included in the payload. This is set by the system, based on the xml content.
|
|
109
|
+
* @type {Array<DocumentData>}
|
|
110
|
+
* @memberof Send
|
|
111
|
+
*/
|
|
112
|
+
'documents'?: Array<DocumentData> | null;
|
|
113
|
+
/**
|
|
114
|
+
* Whether the payload is Base64 encoded or a plain XML (text).
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof Send
|
|
117
|
+
*/
|
|
118
|
+
'encoding'?: SendEncodingEnum;
|
|
119
|
+
/**
|
|
120
|
+
* Optional metadata, as json.
|
|
121
|
+
* @type {{ [key: string]: string; }}
|
|
122
|
+
* @memberof Send
|
|
123
|
+
*/
|
|
124
|
+
'meta_data'?: { [key: string]: string; } | null;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {Company}
|
|
128
|
+
* @memberof Send
|
|
129
|
+
*/
|
|
130
|
+
'company'?: Company;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export const SendEncodingEnum = {
|
|
134
|
+
Xml: 'Xml',
|
|
135
|
+
Base64: 'Base64'
|
|
136
|
+
} as const;
|
|
137
|
+
|
|
138
|
+
export type SendEncodingEnum = typeof SendEncodingEnum[keyof typeof SendEncodingEnum];
|
|
139
|
+
|
|
140
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface StabileOrganizzazione
|
|
21
|
+
*/
|
|
22
|
+
export interface StabileOrganizzazione {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof StabileOrganizzazione
|
|
27
|
+
*/
|
|
28
|
+
'indirizzo'?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof StabileOrganizzazione
|
|
33
|
+
*/
|
|
34
|
+
'numero_civico'?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof StabileOrganizzazione
|
|
39
|
+
*/
|
|
40
|
+
'cap'?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof StabileOrganizzazione
|
|
45
|
+
*/
|
|
46
|
+
'comune'?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof StabileOrganizzazione
|
|
51
|
+
*/
|
|
52
|
+
'provincia'?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof StabileOrganizzazione
|
|
57
|
+
*/
|
|
58
|
+
'nazione'?: string | null;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface Status
|
|
21
|
+
*/
|
|
22
|
+
export interface Status {
|
|
23
|
+
/**
|
|
24
|
+
* Operations (invoices and validations) left.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof Status
|
|
27
|
+
*/
|
|
28
|
+
'operation_left'?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Signatures left.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof Status
|
|
33
|
+
*/
|
|
34
|
+
'signature_left'?: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { DatiAnagrafici } from './dati-anagrafici';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface TerzoIntermediarioOSoggettoEmittente
|
|
24
|
+
*/
|
|
25
|
+
export interface TerzoIntermediarioOSoggettoEmittente {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {DatiAnagrafici}
|
|
29
|
+
* @memberof TerzoIntermediarioOSoggettoEmittente
|
|
30
|
+
*/
|
|
31
|
+
'dati_anagrafici'?: DatiAnagrafici;
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { SendReduced } from './send-reduced';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface Update
|
|
24
|
+
*/
|
|
25
|
+
export interface Update {
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof Update
|
|
30
|
+
*/
|
|
31
|
+
'id'?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Creation date. It is set automatically.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Update
|
|
36
|
+
*/
|
|
37
|
+
'created'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Row version, for optimistic concurrency. It is set automatically.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof Update
|
|
42
|
+
*/
|
|
43
|
+
'version'?: number;
|
|
44
|
+
/**
|
|
45
|
+
* User id.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof Update
|
|
48
|
+
*/
|
|
49
|
+
'user_id'?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Company id.
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof Update
|
|
54
|
+
*/
|
|
55
|
+
'company_id'?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Send id. This is the id of the sent invoice to which this update refers to.
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof Update
|
|
60
|
+
*/
|
|
61
|
+
'send_id'?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Last update from SDI.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof Update
|
|
66
|
+
*/
|
|
67
|
+
'last_update'?: string;
|
|
68
|
+
/**
|
|
69
|
+
* State of the document. Theses are the possible values, as per the SDI documentation:
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof Update
|
|
72
|
+
*/
|
|
73
|
+
'state'?: UpdateStateEnum;
|
|
74
|
+
/**
|
|
75
|
+
* Description for the state.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof Update
|
|
78
|
+
*/
|
|
79
|
+
'description'?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* SDI message id.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof Update
|
|
84
|
+
*/
|
|
85
|
+
'message_id'?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* SDI errors, if any.
|
|
88
|
+
* @type {Array<Error>}
|
|
89
|
+
* @memberof Update
|
|
90
|
+
*/
|
|
91
|
+
'errors'?: Array<Error> | null;
|
|
92
|
+
/**
|
|
93
|
+
* Wether the item has been read at least once.
|
|
94
|
+
* @type {boolean}
|
|
95
|
+
* @memberof Update
|
|
96
|
+
*/
|
|
97
|
+
'is_read'?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {SendReduced}
|
|
101
|
+
* @memberof Update
|
|
102
|
+
*/
|
|
103
|
+
'send'?: SendReduced;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export const UpdateStateEnum = {
|
|
107
|
+
Inviato: 'Inviato',
|
|
108
|
+
Consegnato: 'Consegnato',
|
|
109
|
+
NonConsegnato: 'NonConsegnato',
|
|
110
|
+
Scartato: 'Scartato',
|
|
111
|
+
AccettatoDalDestinatario: 'AccettatoDalDestinatario',
|
|
112
|
+
RifiutatoDalDestinatario: 'RifiutatoDalDestinatario',
|
|
113
|
+
ImpossibilitaDiRecapito: 'ImpossibilitaDiRecapito',
|
|
114
|
+
DecorrenzaTermini: 'DecorrenzaTermini',
|
|
115
|
+
AttestazioneTrasmissioneFattura: 'AttestazioneTrasmissioneFattura'
|
|
116
|
+
} as const;
|
|
117
|
+
|
|
118
|
+
export type UpdateStateEnum = typeof UpdateStateEnum[keyof typeof UpdateStateEnum];
|
|
119
|
+
|
|
120
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Webhook history.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface WebHookHistory
|
|
21
|
+
*/
|
|
22
|
+
export interface WebHookHistory {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof WebHookHistory
|
|
27
|
+
*/
|
|
28
|
+
'id'?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Creation date. It is set automatically.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof WebHookHistory
|
|
33
|
+
*/
|
|
34
|
+
'created'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Row version, for optimistic concurrency. It is set automatically.
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof WebHookHistory
|
|
39
|
+
*/
|
|
40
|
+
'version'?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Webhook id.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof WebHookHistory
|
|
45
|
+
*/
|
|
46
|
+
'web_hook_id'?: number;
|
|
47
|
+
/**
|
|
48
|
+
* User id.
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof WebHookHistory
|
|
51
|
+
*/
|
|
52
|
+
'user_id'?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Event name.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof WebHookHistory
|
|
57
|
+
*/
|
|
58
|
+
'event'?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Status code.
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof WebHookHistory
|
|
63
|
+
*/
|
|
64
|
+
'status_code'?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Date and time of the request.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof WebHookHistory
|
|
69
|
+
*/
|
|
70
|
+
'date_time'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Wether the request was successful.
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof WebHookHistory
|
|
75
|
+
*/
|
|
76
|
+
'success'?: boolean;
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface WebHook
|
|
21
|
+
*/
|
|
22
|
+
export interface WebHook {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof WebHook
|
|
27
|
+
*/
|
|
28
|
+
'id'?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Creation date. It is set automatically.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof WebHook
|
|
33
|
+
*/
|
|
34
|
+
'created'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Row version, for optimistic concurrency. It is set automatically.
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof WebHook
|
|
39
|
+
*/
|
|
40
|
+
'version'?: number;
|
|
41
|
+
/**
|
|
42
|
+
* User id.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof WebHook
|
|
45
|
+
*/
|
|
46
|
+
'user_id'?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Company id.
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof WebHook
|
|
51
|
+
*/
|
|
52
|
+
'company_id'?: number | null;
|
|
53
|
+
/**
|
|
54
|
+
* The url of your application\'s endpoint that will receive a POST request when the webhook is fired.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof WebHook
|
|
57
|
+
*/
|
|
58
|
+
'url'?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Wether the webhook is enabled. On creation, this is set to `true`.
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof WebHook
|
|
63
|
+
*/
|
|
64
|
+
'enabled'?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* The secret used to generate webhook signatures, only returned on creation. You should store this value securely and validate it on every call, to ensure that the caller is InvoicetronicApi.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof WebHook
|
|
69
|
+
*/
|
|
70
|
+
'secret'?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* An optional description.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof WebHook
|
|
75
|
+
*/
|
|
76
|
+
'description'?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* List of events to that trigger the webhook. See Invoicetronic.SupportedEvents.Available for a list of valid event names.
|
|
79
|
+
* @type {Array<string>}
|
|
80
|
+
* @memberof WebHook
|
|
81
|
+
*/
|
|
82
|
+
'events'?: Array<string> | null;
|
|
83
|
+
}
|
|
84
|
+
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"target": "ES6",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"noImplicitAny": true,
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"rootDir": ".",
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"typeRoots": [
|
|
11
|
+
"node_modules/@types"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"exclude": [
|
|
15
|
+
"dist",
|
|
16
|
+
"node_modules"
|
|
17
|
+
]
|
|
18
|
+
}
|