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