@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
package/docs/SendApi.md
ADDED
|
@@ -0,0 +1,681 @@
|
|
|
1
|
+
# SendApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**sendFilePost**](#sendfilepost) | **POST** /send/file | Add an invoice by file|
|
|
8
|
+
|[**sendGet**](#sendget) | **GET** /send | List invoices|
|
|
9
|
+
|[**sendIdGet**](#sendidget) | **GET** /send/{id} | Get a invoice by id|
|
|
10
|
+
|[**sendIdentifierGet**](#sendidentifierget) | **GET** /send/{identifier} | Get a invoice by identifier|
|
|
11
|
+
|[**sendJsonPost**](#sendjsonpost) | **POST** /send/json | Add an invoice by json|
|
|
12
|
+
|[**sendPost**](#sendpost) | **POST** /send | Add an invoice|
|
|
13
|
+
|[**sendValidateFilePost**](#sendvalidatefilepost) | **POST** /send/validate/file | Validate an invoice file|
|
|
14
|
+
|[**sendValidateJsonPost**](#sendvalidatejsonpost) | **POST** /send/validate/json | Validate an invoice by json|
|
|
15
|
+
|[**sendValidatePost**](#sendvalidatepost) | **POST** /send/validate | Validate an invoice|
|
|
16
|
+
|[**sendValidateXmlPost**](#sendvalidatexmlpost) | **POST** /send/validate/xml | Validate an invoice by xml|
|
|
17
|
+
|[**sendXmlPost**](#sendxmlpost) | **POST** /send/xml | Add an invoice by xml|
|
|
18
|
+
|
|
19
|
+
# **sendFilePost**
|
|
20
|
+
> Send sendFilePost()
|
|
21
|
+
|
|
22
|
+
Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import {
|
|
28
|
+
SendApi,
|
|
29
|
+
Configuration
|
|
30
|
+
} from '@invoicetronic/ts-sdk';
|
|
31
|
+
|
|
32
|
+
const configuration = new Configuration();
|
|
33
|
+
const apiInstance = new SendApi(configuration);
|
|
34
|
+
|
|
35
|
+
let file: File; // (default to undefined)
|
|
36
|
+
let validate: boolean; //Validate the document first, and reject it on failure. (optional) (default to false)
|
|
37
|
+
let signature: 'None' | 'Apply' | 'Force' | 'Auto'; //Whether to digitally sign the document. (optional) (default to 'Auto')
|
|
38
|
+
|
|
39
|
+
const { status, data } = await apiInstance.sendFilePost(
|
|
40
|
+
file,
|
|
41
|
+
validate,
|
|
42
|
+
signature
|
|
43
|
+
);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Parameters
|
|
47
|
+
|
|
48
|
+
|Name | Type | Description | Notes|
|
|
49
|
+
|------------- | ------------- | ------------- | -------------|
|
|
50
|
+
| **file** | [**File**] | | defaults to undefined|
|
|
51
|
+
| **validate** | [**boolean**] | Validate the document first, and reject it on failure. | (optional) defaults to false|
|
|
52
|
+
| **signature** | [**'None' | 'Apply' | 'Force' | 'Auto'**]**Array<'None' | 'Apply' | 'Force' | 'Auto'>** | Whether to digitally sign the document. | (optional) defaults to 'Auto'|
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Return type
|
|
56
|
+
|
|
57
|
+
**Send**
|
|
58
|
+
|
|
59
|
+
### Authorization
|
|
60
|
+
|
|
61
|
+
[Basic](../README.md#Basic)
|
|
62
|
+
|
|
63
|
+
### HTTP request headers
|
|
64
|
+
|
|
65
|
+
- **Content-Type**: multipart/form-data
|
|
66
|
+
- **Accept**: application/json
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### HTTP response details
|
|
70
|
+
| Status code | Description | Response headers |
|
|
71
|
+
|-------------|-------------|------------------|
|
|
72
|
+
|**201** | Created | - |
|
|
73
|
+
|**400** | Bad Request | - |
|
|
74
|
+
|**422** | Unprocessable Content | - |
|
|
75
|
+
|
|
76
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
77
|
+
|
|
78
|
+
# **sendGet**
|
|
79
|
+
> Array<Send> sendGet()
|
|
80
|
+
|
|
81
|
+
test **markdown**.
|
|
82
|
+
|
|
83
|
+
### Example
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
import {
|
|
87
|
+
SendApi,
|
|
88
|
+
Configuration
|
|
89
|
+
} from '@invoicetronic/ts-sdk';
|
|
90
|
+
|
|
91
|
+
const configuration = new Configuration();
|
|
92
|
+
const apiInstance = new SendApi(configuration);
|
|
93
|
+
|
|
94
|
+
let companyId: number; //Company id (optional) (default to undefined)
|
|
95
|
+
let identifier: string; //SDI identifier. (optional) (default to undefined)
|
|
96
|
+
let committente: string; //Vat number or fiscal code. (optional) (default to undefined)
|
|
97
|
+
let prestatore: string; //Vat number or fiscal code. (optional) (default to undefined)
|
|
98
|
+
let fileName: string; //File name. (optional) (default to undefined)
|
|
99
|
+
let lastUpdateFrom: string; //UTC ISO 8601 (2024-11-29T12:34:56Z) (optional) (default to undefined)
|
|
100
|
+
let lastUpdateTo: string; //UTC ISO 8601 (2024-11-29T12:34:56Z) (optional) (default to undefined)
|
|
101
|
+
let dateSentFrom: string; //UTC ISO 8601 (2024-11-29T12:34:56Z) (optional) (default to undefined)
|
|
102
|
+
let dateSentTo: string; //UTC ISO 8601 (2024-11-29T12:34:56Z) (optional) (default to undefined)
|
|
103
|
+
let documentDateFrom: string; //UTC ISO 8601 (2024-11-29T12:34:56Z) (optional) (default to undefined)
|
|
104
|
+
let documentDateTo: string; //UTC ISO 8601 (2024-11-29T12:34:56Z) (optional) (default to undefined)
|
|
105
|
+
let documentNumber: string; //Document number. (optional) (default to undefined)
|
|
106
|
+
let includePayload: boolean; //Include payload in the response. Defaults to false. (optional) (default to undefined)
|
|
107
|
+
let page: number; //Page number. (optional) (default to 1)
|
|
108
|
+
let pageSize: number; //Items per page. Cannot be greater than 200. (optional) (default to 100)
|
|
109
|
+
let sort: string; //Sort by field. Prefix with \'-\' for descending order. (optional) (default to undefined)
|
|
110
|
+
|
|
111
|
+
const { status, data } = await apiInstance.sendGet(
|
|
112
|
+
companyId,
|
|
113
|
+
identifier,
|
|
114
|
+
committente,
|
|
115
|
+
prestatore,
|
|
116
|
+
fileName,
|
|
117
|
+
lastUpdateFrom,
|
|
118
|
+
lastUpdateTo,
|
|
119
|
+
dateSentFrom,
|
|
120
|
+
dateSentTo,
|
|
121
|
+
documentDateFrom,
|
|
122
|
+
documentDateTo,
|
|
123
|
+
documentNumber,
|
|
124
|
+
includePayload,
|
|
125
|
+
page,
|
|
126
|
+
pageSize,
|
|
127
|
+
sort
|
|
128
|
+
);
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Parameters
|
|
132
|
+
|
|
133
|
+
|Name | Type | Description | Notes|
|
|
134
|
+
|------------- | ------------- | ------------- | -------------|
|
|
135
|
+
| **companyId** | [**number**] | Company id | (optional) defaults to undefined|
|
|
136
|
+
| **identifier** | [**string**] | SDI identifier. | (optional) defaults to undefined|
|
|
137
|
+
| **committente** | [**string**] | Vat number or fiscal code. | (optional) defaults to undefined|
|
|
138
|
+
| **prestatore** | [**string**] | Vat number or fiscal code. | (optional) defaults to undefined|
|
|
139
|
+
| **fileName** | [**string**] | File name. | (optional) defaults to undefined|
|
|
140
|
+
| **lastUpdateFrom** | [**string**] | UTC ISO 8601 (2024-11-29T12:34:56Z) | (optional) defaults to undefined|
|
|
141
|
+
| **lastUpdateTo** | [**string**] | UTC ISO 8601 (2024-11-29T12:34:56Z) | (optional) defaults to undefined|
|
|
142
|
+
| **dateSentFrom** | [**string**] | UTC ISO 8601 (2024-11-29T12:34:56Z) | (optional) defaults to undefined|
|
|
143
|
+
| **dateSentTo** | [**string**] | UTC ISO 8601 (2024-11-29T12:34:56Z) | (optional) defaults to undefined|
|
|
144
|
+
| **documentDateFrom** | [**string**] | UTC ISO 8601 (2024-11-29T12:34:56Z) | (optional) defaults to undefined|
|
|
145
|
+
| **documentDateTo** | [**string**] | UTC ISO 8601 (2024-11-29T12:34:56Z) | (optional) defaults to undefined|
|
|
146
|
+
| **documentNumber** | [**string**] | Document number. | (optional) defaults to undefined|
|
|
147
|
+
| **includePayload** | [**boolean**] | Include payload in the response. Defaults to false. | (optional) defaults to undefined|
|
|
148
|
+
| **page** | [**number**] | Page number. | (optional) defaults to 1|
|
|
149
|
+
| **pageSize** | [**number**] | Items per page. Cannot be greater than 200. | (optional) defaults to 100|
|
|
150
|
+
| **sort** | [**string**] | Sort by field. Prefix with \'-\' for descending order. | (optional) defaults to undefined|
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
**Array<Send>**
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[Basic](../README.md#Basic)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: Not defined
|
|
164
|
+
- **Accept**: application/json
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### HTTP response details
|
|
168
|
+
| Status code | Description | Response headers |
|
|
169
|
+
|-------------|-------------|------------------|
|
|
170
|
+
|**200** | OK | - |
|
|
171
|
+
|**404** | Not Found | - |
|
|
172
|
+
|**400** | Bad Request | - |
|
|
173
|
+
|
|
174
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
175
|
+
|
|
176
|
+
# **sendIdGet**
|
|
177
|
+
> Send sendIdGet()
|
|
178
|
+
|
|
179
|
+
Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
|
|
180
|
+
|
|
181
|
+
### Example
|
|
182
|
+
|
|
183
|
+
```typescript
|
|
184
|
+
import {
|
|
185
|
+
SendApi,
|
|
186
|
+
Configuration
|
|
187
|
+
} from '@invoicetronic/ts-sdk';
|
|
188
|
+
|
|
189
|
+
const configuration = new Configuration();
|
|
190
|
+
const apiInstance = new SendApi(configuration);
|
|
191
|
+
|
|
192
|
+
let id: number; //Item id (default to undefined)
|
|
193
|
+
let includePayload: boolean; //Include payload in the response. Defaults to false. (optional) (default to false)
|
|
194
|
+
|
|
195
|
+
const { status, data } = await apiInstance.sendIdGet(
|
|
196
|
+
id,
|
|
197
|
+
includePayload
|
|
198
|
+
);
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Parameters
|
|
202
|
+
|
|
203
|
+
|Name | Type | Description | Notes|
|
|
204
|
+
|------------- | ------------- | ------------- | -------------|
|
|
205
|
+
| **id** | [**number**] | Item id | defaults to undefined|
|
|
206
|
+
| **includePayload** | [**boolean**] | Include payload in the response. Defaults to false. | (optional) defaults to false|
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
### Return type
|
|
210
|
+
|
|
211
|
+
**Send**
|
|
212
|
+
|
|
213
|
+
### Authorization
|
|
214
|
+
|
|
215
|
+
[Basic](../README.md#Basic)
|
|
216
|
+
|
|
217
|
+
### HTTP request headers
|
|
218
|
+
|
|
219
|
+
- **Content-Type**: Not defined
|
|
220
|
+
- **Accept**: application/json
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### HTTP response details
|
|
224
|
+
| Status code | Description | Response headers |
|
|
225
|
+
|-------------|-------------|------------------|
|
|
226
|
+
|**200** | OK | - |
|
|
227
|
+
|**404** | Not Found | - |
|
|
228
|
+
|
|
229
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
230
|
+
|
|
231
|
+
# **sendIdentifierGet**
|
|
232
|
+
> Send sendIdentifierGet()
|
|
233
|
+
|
|
234
|
+
Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
|
|
235
|
+
|
|
236
|
+
### Example
|
|
237
|
+
|
|
238
|
+
```typescript
|
|
239
|
+
import {
|
|
240
|
+
SendApi,
|
|
241
|
+
Configuration
|
|
242
|
+
} from '@invoicetronic/ts-sdk';
|
|
243
|
+
|
|
244
|
+
const configuration = new Configuration();
|
|
245
|
+
const apiInstance = new SendApi(configuration);
|
|
246
|
+
|
|
247
|
+
let identifier: string; // (default to undefined)
|
|
248
|
+
let includePayload: boolean; //Include payload in the response. Defaults to false. (optional) (default to false)
|
|
249
|
+
|
|
250
|
+
const { status, data } = await apiInstance.sendIdentifierGet(
|
|
251
|
+
identifier,
|
|
252
|
+
includePayload
|
|
253
|
+
);
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Parameters
|
|
257
|
+
|
|
258
|
+
|Name | Type | Description | Notes|
|
|
259
|
+
|------------- | ------------- | ------------- | -------------|
|
|
260
|
+
| **identifier** | [**string**] | | defaults to undefined|
|
|
261
|
+
| **includePayload** | [**boolean**] | Include payload in the response. Defaults to false. | (optional) defaults to false|
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
### Return type
|
|
265
|
+
|
|
266
|
+
**Send**
|
|
267
|
+
|
|
268
|
+
### Authorization
|
|
269
|
+
|
|
270
|
+
[Basic](../README.md#Basic)
|
|
271
|
+
|
|
272
|
+
### HTTP request headers
|
|
273
|
+
|
|
274
|
+
- **Content-Type**: Not defined
|
|
275
|
+
- **Accept**: application/json
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
### HTTP response details
|
|
279
|
+
| Status code | Description | Response headers |
|
|
280
|
+
|-------------|-------------|------------------|
|
|
281
|
+
|**200** | OK | - |
|
|
282
|
+
|**404** | Not Found | - |
|
|
283
|
+
|**400** | Bad Request | - |
|
|
284
|
+
|
|
285
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
286
|
+
|
|
287
|
+
# **sendJsonPost**
|
|
288
|
+
> Send sendJsonPost(fatturaOrdinaria)
|
|
289
|
+
|
|
290
|
+
Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
|
|
291
|
+
|
|
292
|
+
### Example
|
|
293
|
+
|
|
294
|
+
```typescript
|
|
295
|
+
import {
|
|
296
|
+
SendApi,
|
|
297
|
+
Configuration,
|
|
298
|
+
FatturaOrdinaria
|
|
299
|
+
} from '@invoicetronic/ts-sdk';
|
|
300
|
+
|
|
301
|
+
const configuration = new Configuration();
|
|
302
|
+
const apiInstance = new SendApi(configuration);
|
|
303
|
+
|
|
304
|
+
let fatturaOrdinaria: FatturaOrdinaria; //
|
|
305
|
+
let validate: boolean; //Validate the document first, and reject it on failure. (optional) (default to false)
|
|
306
|
+
let signature: 'None' | 'Apply' | 'Force' | 'Auto'; //Whether to digitally sign the document. (optional) (default to 'Auto')
|
|
307
|
+
|
|
308
|
+
const { status, data } = await apiInstance.sendJsonPost(
|
|
309
|
+
fatturaOrdinaria,
|
|
310
|
+
validate,
|
|
311
|
+
signature
|
|
312
|
+
);
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
### Parameters
|
|
316
|
+
|
|
317
|
+
|Name | Type | Description | Notes|
|
|
318
|
+
|------------- | ------------- | ------------- | -------------|
|
|
319
|
+
| **fatturaOrdinaria** | **FatturaOrdinaria**| | |
|
|
320
|
+
| **validate** | [**boolean**] | Validate the document first, and reject it on failure. | (optional) defaults to false|
|
|
321
|
+
| **signature** | [**'None' | 'Apply' | 'Force' | 'Auto'**]**Array<'None' | 'Apply' | 'Force' | 'Auto'>** | Whether to digitally sign the document. | (optional) defaults to 'Auto'|
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
### Return type
|
|
325
|
+
|
|
326
|
+
**Send**
|
|
327
|
+
|
|
328
|
+
### Authorization
|
|
329
|
+
|
|
330
|
+
[Basic](../README.md#Basic)
|
|
331
|
+
|
|
332
|
+
### HTTP request headers
|
|
333
|
+
|
|
334
|
+
- **Content-Type**: application/json
|
|
335
|
+
- **Accept**: application/json
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
### HTTP response details
|
|
339
|
+
| Status code | Description | Response headers |
|
|
340
|
+
|-------------|-------------|------------------|
|
|
341
|
+
|**201** | Created | - |
|
|
342
|
+
|**400** | Bad Request | - |
|
|
343
|
+
|**422** | Unprocessable Content | - |
|
|
344
|
+
|
|
345
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
346
|
+
|
|
347
|
+
# **sendPost**
|
|
348
|
+
> Send sendPost(send)
|
|
349
|
+
|
|
350
|
+
Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
|
|
351
|
+
|
|
352
|
+
### Example
|
|
353
|
+
|
|
354
|
+
```typescript
|
|
355
|
+
import {
|
|
356
|
+
SendApi,
|
|
357
|
+
Configuration,
|
|
358
|
+
Send
|
|
359
|
+
} from '@invoicetronic/ts-sdk';
|
|
360
|
+
|
|
361
|
+
const configuration = new Configuration();
|
|
362
|
+
const apiInstance = new SendApi(configuration);
|
|
363
|
+
|
|
364
|
+
let send: Send; //
|
|
365
|
+
let validate: boolean; //Validate the document first, and reject it on failure. (optional) (default to false)
|
|
366
|
+
let signature: 'None' | 'Apply' | 'Force' | 'Auto'; //Whether to digitally sign the document. (optional) (default to 'Auto')
|
|
367
|
+
|
|
368
|
+
const { status, data } = await apiInstance.sendPost(
|
|
369
|
+
send,
|
|
370
|
+
validate,
|
|
371
|
+
signature
|
|
372
|
+
);
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
### Parameters
|
|
376
|
+
|
|
377
|
+
|Name | Type | Description | Notes|
|
|
378
|
+
|------------- | ------------- | ------------- | -------------|
|
|
379
|
+
| **send** | **Send**| | |
|
|
380
|
+
| **validate** | [**boolean**] | Validate the document first, and reject it on failure. | (optional) defaults to false|
|
|
381
|
+
| **signature** | [**'None' | 'Apply' | 'Force' | 'Auto'**]**Array<'None' | 'Apply' | 'Force' | 'Auto'>** | Whether to digitally sign the document. | (optional) defaults to 'Auto'|
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
### Return type
|
|
385
|
+
|
|
386
|
+
**Send**
|
|
387
|
+
|
|
388
|
+
### Authorization
|
|
389
|
+
|
|
390
|
+
[Basic](../README.md#Basic)
|
|
391
|
+
|
|
392
|
+
### HTTP request headers
|
|
393
|
+
|
|
394
|
+
- **Content-Type**: application/json
|
|
395
|
+
- **Accept**: application/json
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
### HTTP response details
|
|
399
|
+
| Status code | Description | Response headers |
|
|
400
|
+
|-------------|-------------|------------------|
|
|
401
|
+
|**201** | Created | - |
|
|
402
|
+
|**400** | Bad Request | - |
|
|
403
|
+
|**422** | Unprocessable Content | - |
|
|
404
|
+
|
|
405
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
406
|
+
|
|
407
|
+
# **sendValidateFilePost**
|
|
408
|
+
> sendValidateFilePost()
|
|
409
|
+
|
|
410
|
+
Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
|
|
411
|
+
|
|
412
|
+
### Example
|
|
413
|
+
|
|
414
|
+
```typescript
|
|
415
|
+
import {
|
|
416
|
+
SendApi,
|
|
417
|
+
Configuration
|
|
418
|
+
} from '@invoicetronic/ts-sdk';
|
|
419
|
+
|
|
420
|
+
const configuration = new Configuration();
|
|
421
|
+
const apiInstance = new SendApi(configuration);
|
|
422
|
+
|
|
423
|
+
let file: File; // (default to undefined)
|
|
424
|
+
|
|
425
|
+
const { status, data } = await apiInstance.sendValidateFilePost(
|
|
426
|
+
file
|
|
427
|
+
);
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
### Parameters
|
|
431
|
+
|
|
432
|
+
|Name | Type | Description | Notes|
|
|
433
|
+
|------------- | ------------- | ------------- | -------------|
|
|
434
|
+
| **file** | [**File**] | | defaults to undefined|
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
### Return type
|
|
438
|
+
|
|
439
|
+
void (empty response body)
|
|
440
|
+
|
|
441
|
+
### Authorization
|
|
442
|
+
|
|
443
|
+
[Basic](../README.md#Basic)
|
|
444
|
+
|
|
445
|
+
### HTTP request headers
|
|
446
|
+
|
|
447
|
+
- **Content-Type**: multipart/form-data
|
|
448
|
+
- **Accept**: application/json
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
### HTTP response details
|
|
452
|
+
| Status code | Description | Response headers |
|
|
453
|
+
|-------------|-------------|------------------|
|
|
454
|
+
|**204** | No Content | - |
|
|
455
|
+
|**400** | Bad Request | - |
|
|
456
|
+
|**422** | Unprocessable Content | - |
|
|
457
|
+
|
|
458
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
459
|
+
|
|
460
|
+
# **sendValidateJsonPost**
|
|
461
|
+
> sendValidateJsonPost(fatturaOrdinaria)
|
|
462
|
+
|
|
463
|
+
Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
|
|
464
|
+
|
|
465
|
+
### Example
|
|
466
|
+
|
|
467
|
+
```typescript
|
|
468
|
+
import {
|
|
469
|
+
SendApi,
|
|
470
|
+
Configuration,
|
|
471
|
+
FatturaOrdinaria
|
|
472
|
+
} from '@invoicetronic/ts-sdk';
|
|
473
|
+
|
|
474
|
+
const configuration = new Configuration();
|
|
475
|
+
const apiInstance = new SendApi(configuration);
|
|
476
|
+
|
|
477
|
+
let fatturaOrdinaria: FatturaOrdinaria; //
|
|
478
|
+
|
|
479
|
+
const { status, data } = await apiInstance.sendValidateJsonPost(
|
|
480
|
+
fatturaOrdinaria
|
|
481
|
+
);
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
### Parameters
|
|
485
|
+
|
|
486
|
+
|Name | Type | Description | Notes|
|
|
487
|
+
|------------- | ------------- | ------------- | -------------|
|
|
488
|
+
| **fatturaOrdinaria** | **FatturaOrdinaria**| | |
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
### Return type
|
|
492
|
+
|
|
493
|
+
void (empty response body)
|
|
494
|
+
|
|
495
|
+
### Authorization
|
|
496
|
+
|
|
497
|
+
[Basic](../README.md#Basic)
|
|
498
|
+
|
|
499
|
+
### HTTP request headers
|
|
500
|
+
|
|
501
|
+
- **Content-Type**: application/json
|
|
502
|
+
- **Accept**: application/json
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
### HTTP response details
|
|
506
|
+
| Status code | Description | Response headers |
|
|
507
|
+
|-------------|-------------|------------------|
|
|
508
|
+
|**204** | No Content | - |
|
|
509
|
+
|**400** | Bad Request | - |
|
|
510
|
+
|**422** | Unprocessable Content | - |
|
|
511
|
+
|
|
512
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
513
|
+
|
|
514
|
+
# **sendValidatePost**
|
|
515
|
+
> sendValidatePost(send)
|
|
516
|
+
|
|
517
|
+
Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
|
|
518
|
+
|
|
519
|
+
### Example
|
|
520
|
+
|
|
521
|
+
```typescript
|
|
522
|
+
import {
|
|
523
|
+
SendApi,
|
|
524
|
+
Configuration,
|
|
525
|
+
Send
|
|
526
|
+
} from '@invoicetronic/ts-sdk';
|
|
527
|
+
|
|
528
|
+
const configuration = new Configuration();
|
|
529
|
+
const apiInstance = new SendApi(configuration);
|
|
530
|
+
|
|
531
|
+
let send: Send; //
|
|
532
|
+
|
|
533
|
+
const { status, data } = await apiInstance.sendValidatePost(
|
|
534
|
+
send
|
|
535
|
+
);
|
|
536
|
+
```
|
|
537
|
+
|
|
538
|
+
### Parameters
|
|
539
|
+
|
|
540
|
+
|Name | Type | Description | Notes|
|
|
541
|
+
|------------- | ------------- | ------------- | -------------|
|
|
542
|
+
| **send** | **Send**| | |
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
### Return type
|
|
546
|
+
|
|
547
|
+
void (empty response body)
|
|
548
|
+
|
|
549
|
+
### Authorization
|
|
550
|
+
|
|
551
|
+
[Basic](../README.md#Basic)
|
|
552
|
+
|
|
553
|
+
### HTTP request headers
|
|
554
|
+
|
|
555
|
+
- **Content-Type**: application/json
|
|
556
|
+
- **Accept**: application/json
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
### HTTP response details
|
|
560
|
+
| Status code | Description | Response headers |
|
|
561
|
+
|-------------|-------------|------------------|
|
|
562
|
+
|**204** | No Content | - |
|
|
563
|
+
|**400** | Bad Request | - |
|
|
564
|
+
|**422** | Unprocessable Content | - |
|
|
565
|
+
|
|
566
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
567
|
+
|
|
568
|
+
# **sendValidateXmlPost**
|
|
569
|
+
> sendValidateXmlPost(fatturaOrdinaria)
|
|
570
|
+
|
|
571
|
+
Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
|
|
572
|
+
|
|
573
|
+
### Example
|
|
574
|
+
|
|
575
|
+
```typescript
|
|
576
|
+
import {
|
|
577
|
+
SendApi,
|
|
578
|
+
Configuration,
|
|
579
|
+
FatturaOrdinaria
|
|
580
|
+
} from '@invoicetronic/ts-sdk';
|
|
581
|
+
|
|
582
|
+
const configuration = new Configuration();
|
|
583
|
+
const apiInstance = new SendApi(configuration);
|
|
584
|
+
|
|
585
|
+
let fatturaOrdinaria: FatturaOrdinaria; //
|
|
586
|
+
|
|
587
|
+
const { status, data } = await apiInstance.sendValidateXmlPost(
|
|
588
|
+
fatturaOrdinaria
|
|
589
|
+
);
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
### Parameters
|
|
593
|
+
|
|
594
|
+
|Name | Type | Description | Notes|
|
|
595
|
+
|------------- | ------------- | ------------- | -------------|
|
|
596
|
+
| **fatturaOrdinaria** | **FatturaOrdinaria**| | |
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
### Return type
|
|
600
|
+
|
|
601
|
+
void (empty response body)
|
|
602
|
+
|
|
603
|
+
### Authorization
|
|
604
|
+
|
|
605
|
+
[Basic](../README.md#Basic)
|
|
606
|
+
|
|
607
|
+
### HTTP request headers
|
|
608
|
+
|
|
609
|
+
- **Content-Type**: application/xml
|
|
610
|
+
- **Accept**: application/json
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
### HTTP response details
|
|
614
|
+
| Status code | Description | Response headers |
|
|
615
|
+
|-------------|-------------|------------------|
|
|
616
|
+
|**204** | No Content | - |
|
|
617
|
+
|**400** | Bad Request | - |
|
|
618
|
+
|**422** | Unprocessable Content | - |
|
|
619
|
+
|
|
620
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
621
|
+
|
|
622
|
+
# **sendXmlPost**
|
|
623
|
+
> Send sendXmlPost(fatturaOrdinaria)
|
|
624
|
+
|
|
625
|
+
Send invoices are the invoices that are sent to the SDI. They are preserved for two years in the live environment and 15 days in the Sandbox.
|
|
626
|
+
|
|
627
|
+
### Example
|
|
628
|
+
|
|
629
|
+
```typescript
|
|
630
|
+
import {
|
|
631
|
+
SendApi,
|
|
632
|
+
Configuration,
|
|
633
|
+
FatturaOrdinaria
|
|
634
|
+
} from '@invoicetronic/ts-sdk';
|
|
635
|
+
|
|
636
|
+
const configuration = new Configuration();
|
|
637
|
+
const apiInstance = new SendApi(configuration);
|
|
638
|
+
|
|
639
|
+
let fatturaOrdinaria: FatturaOrdinaria; //
|
|
640
|
+
let validate: boolean; //Validate the document first, and reject it on failure. (optional) (default to false)
|
|
641
|
+
let signature: 'None' | 'Apply' | 'Force' | 'Auto'; //Whether to digitally sign the document. (optional) (default to 'Auto')
|
|
642
|
+
|
|
643
|
+
const { status, data } = await apiInstance.sendXmlPost(
|
|
644
|
+
fatturaOrdinaria,
|
|
645
|
+
validate,
|
|
646
|
+
signature
|
|
647
|
+
);
|
|
648
|
+
```
|
|
649
|
+
|
|
650
|
+
### Parameters
|
|
651
|
+
|
|
652
|
+
|Name | Type | Description | Notes|
|
|
653
|
+
|------------- | ------------- | ------------- | -------------|
|
|
654
|
+
| **fatturaOrdinaria** | **FatturaOrdinaria**| | |
|
|
655
|
+
| **validate** | [**boolean**] | Validate the document first, and reject it on failure. | (optional) defaults to false|
|
|
656
|
+
| **signature** | [**'None' | 'Apply' | 'Force' | 'Auto'**]**Array<'None' | 'Apply' | 'Force' | 'Auto'>** | Whether to digitally sign the document. | (optional) defaults to 'Auto'|
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
### Return type
|
|
660
|
+
|
|
661
|
+
**Send**
|
|
662
|
+
|
|
663
|
+
### Authorization
|
|
664
|
+
|
|
665
|
+
[Basic](../README.md#Basic)
|
|
666
|
+
|
|
667
|
+
### HTTP request headers
|
|
668
|
+
|
|
669
|
+
- **Content-Type**: application/xml
|
|
670
|
+
- **Accept**: application/json
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
### HTTP response details
|
|
674
|
+
| Status code | Description | Response headers |
|
|
675
|
+
|-------------|-------------|------------------|
|
|
676
|
+
|**201** | Created | - |
|
|
677
|
+
|**400** | Bad Request | - |
|
|
678
|
+
|**422** | Unprocessable Content | - |
|
|
679
|
+
|
|
680
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
681
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# SendReduced
|
|
2
|
+
|
|
3
|
+
Reduced Send data for Update responses, containing only the essential fields.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**identifier** | **string** | SDI identifier. | [optional] [default to undefined]
|
|
10
|
+
**prestatore** | **string** | VAT number of the Cedente/Prestatore (vendor). | [optional] [default to undefined]
|
|
11
|
+
**meta_data** | **{ [key: string]: string; }** | Optional metadata, as json. | [optional] [default to undefined]
|
|
12
|
+
**documents** | [**Array<DocumentData>**](DocumentData.md) | The invoices included in the payload. | [optional] [default to undefined]
|
|
13
|
+
**date_sent** | **string** | When the invoice was sent to SDI. | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { SendReduced } from '@invoicetronic/ts-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: SendReduced = {
|
|
21
|
+
identifier,
|
|
22
|
+
prestatore,
|
|
23
|
+
meta_data,
|
|
24
|
+
documents,
|
|
25
|
+
date_sent,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|