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