@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,426 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Invoicetronic API
|
|
5
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
8
|
+
* Contact: info@invoicetronic.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// URLSearchParams not necessarily used
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { URL } from 'url';
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../../common';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
|
|
32
|
+
/**
|
|
33
|
+
* CompanyApi - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
40
|
+
* @summary List companies
|
|
41
|
+
* @param {number} [page] Page number.
|
|
42
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
43
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
companyGet: (page_1, pageSize_1, sort_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, sort_1, ...args_1], void 0, function* (page, pageSize, sort, options = {}) {
|
|
48
|
+
const localVarPath = `/company`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
56
|
+
const localVarHeaderParameter = {};
|
|
57
|
+
const localVarQueryParameter = {};
|
|
58
|
+
// authentication Basic required
|
|
59
|
+
// http basic authentication required
|
|
60
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
61
|
+
if (page !== undefined) {
|
|
62
|
+
localVarQueryParameter['page'] = page;
|
|
63
|
+
}
|
|
64
|
+
if (pageSize !== undefined) {
|
|
65
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
66
|
+
}
|
|
67
|
+
if (sort !== undefined) {
|
|
68
|
+
localVarQueryParameter['sort'] = sort;
|
|
69
|
+
}
|
|
70
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
73
|
+
return {
|
|
74
|
+
url: toPathString(localVarUrlObj),
|
|
75
|
+
options: localVarRequestOptions,
|
|
76
|
+
};
|
|
77
|
+
}),
|
|
78
|
+
/**
|
|
79
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
80
|
+
* @summary Delete a company
|
|
81
|
+
* @param {number} id Item id
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
companyIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
86
|
+
// verify required parameter 'id' is not null or undefined
|
|
87
|
+
assertParamExists('companyIdDelete', 'id', id);
|
|
88
|
+
const localVarPath = `/company/{id}`
|
|
89
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
90
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
91
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
92
|
+
let baseOptions;
|
|
93
|
+
if (configuration) {
|
|
94
|
+
baseOptions = configuration.baseOptions;
|
|
95
|
+
}
|
|
96
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
97
|
+
const localVarHeaderParameter = {};
|
|
98
|
+
const localVarQueryParameter = {};
|
|
99
|
+
// authentication Basic required
|
|
100
|
+
// http basic authentication required
|
|
101
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
102
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
103
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
104
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
105
|
+
return {
|
|
106
|
+
url: toPathString(localVarUrlObj),
|
|
107
|
+
options: localVarRequestOptions,
|
|
108
|
+
};
|
|
109
|
+
}),
|
|
110
|
+
/**
|
|
111
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
112
|
+
* @summary Get a company by id
|
|
113
|
+
* @param {number} id Item id
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
companyIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
118
|
+
// verify required parameter 'id' is not null or undefined
|
|
119
|
+
assertParamExists('companyIdGet', 'id', id);
|
|
120
|
+
const localVarPath = `/company/{id}`
|
|
121
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
122
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
124
|
+
let baseOptions;
|
|
125
|
+
if (configuration) {
|
|
126
|
+
baseOptions = configuration.baseOptions;
|
|
127
|
+
}
|
|
128
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
129
|
+
const localVarHeaderParameter = {};
|
|
130
|
+
const localVarQueryParameter = {};
|
|
131
|
+
// authentication Basic required
|
|
132
|
+
// http basic authentication required
|
|
133
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
137
|
+
return {
|
|
138
|
+
url: toPathString(localVarUrlObj),
|
|
139
|
+
options: localVarRequestOptions,
|
|
140
|
+
};
|
|
141
|
+
}),
|
|
142
|
+
/**
|
|
143
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
144
|
+
* @summary Add a company
|
|
145
|
+
* @param {Company} company
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
companyPost: (company_1, ...args_1) => __awaiter(this, [company_1, ...args_1], void 0, function* (company, options = {}) {
|
|
150
|
+
// verify required parameter 'company' is not null or undefined
|
|
151
|
+
assertParamExists('companyPost', 'company', company);
|
|
152
|
+
const localVarPath = `/company`;
|
|
153
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
155
|
+
let baseOptions;
|
|
156
|
+
if (configuration) {
|
|
157
|
+
baseOptions = configuration.baseOptions;
|
|
158
|
+
}
|
|
159
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
160
|
+
const localVarHeaderParameter = {};
|
|
161
|
+
const localVarQueryParameter = {};
|
|
162
|
+
// authentication Basic required
|
|
163
|
+
// http basic authentication required
|
|
164
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
165
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
166
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
168
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
169
|
+
localVarRequestOptions.data = serializeDataIfNeeded(company, localVarRequestOptions, configuration);
|
|
170
|
+
return {
|
|
171
|
+
url: toPathString(localVarUrlObj),
|
|
172
|
+
options: localVarRequestOptions,
|
|
173
|
+
};
|
|
174
|
+
}),
|
|
175
|
+
/**
|
|
176
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
177
|
+
* @summary Update a company
|
|
178
|
+
* @param {Company} company
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
companyPut: (company_1, ...args_1) => __awaiter(this, [company_1, ...args_1], void 0, function* (company, options = {}) {
|
|
183
|
+
// verify required parameter 'company' is not null or undefined
|
|
184
|
+
assertParamExists('companyPut', 'company', company);
|
|
185
|
+
const localVarPath = `/company`;
|
|
186
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
188
|
+
let baseOptions;
|
|
189
|
+
if (configuration) {
|
|
190
|
+
baseOptions = configuration.baseOptions;
|
|
191
|
+
}
|
|
192
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
193
|
+
const localVarHeaderParameter = {};
|
|
194
|
+
const localVarQueryParameter = {};
|
|
195
|
+
// authentication Basic required
|
|
196
|
+
// http basic authentication required
|
|
197
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
198
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
199
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
202
|
+
localVarRequestOptions.data = serializeDataIfNeeded(company, localVarRequestOptions, configuration);
|
|
203
|
+
return {
|
|
204
|
+
url: toPathString(localVarUrlObj),
|
|
205
|
+
options: localVarRequestOptions,
|
|
206
|
+
};
|
|
207
|
+
}),
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* CompanyApi - functional programming interface
|
|
212
|
+
* @export
|
|
213
|
+
*/
|
|
214
|
+
export const CompanyApiFp = function (configuration) {
|
|
215
|
+
const localVarAxiosParamCreator = CompanyApiAxiosParamCreator(configuration);
|
|
216
|
+
return {
|
|
217
|
+
/**
|
|
218
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
219
|
+
* @summary List companies
|
|
220
|
+
* @param {number} [page] Page number.
|
|
221
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
222
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
companyGet(page, pageSize, sort, options) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
var _a, _b, _c;
|
|
229
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.companyGet(page, pageSize, sort, options);
|
|
230
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
231
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.companyGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
232
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
233
|
+
});
|
|
234
|
+
},
|
|
235
|
+
/**
|
|
236
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
237
|
+
* @summary Delete a company
|
|
238
|
+
* @param {number} id Item id
|
|
239
|
+
* @param {*} [options] Override http request option.
|
|
240
|
+
* @throws {RequiredError}
|
|
241
|
+
*/
|
|
242
|
+
companyIdDelete(id, options) {
|
|
243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
var _a, _b, _c;
|
|
245
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.companyIdDelete(id, options);
|
|
246
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
247
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.companyIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
248
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
249
|
+
});
|
|
250
|
+
},
|
|
251
|
+
/**
|
|
252
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
253
|
+
* @summary Get a company by id
|
|
254
|
+
* @param {number} id Item id
|
|
255
|
+
* @param {*} [options] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
*/
|
|
258
|
+
companyIdGet(id, options) {
|
|
259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
260
|
+
var _a, _b, _c;
|
|
261
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.companyIdGet(id, options);
|
|
262
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
263
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.companyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
264
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
265
|
+
});
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
269
|
+
* @summary Add a company
|
|
270
|
+
* @param {Company} company
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
companyPost(company, options) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
+
var _a, _b, _c;
|
|
277
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.companyPost(company, options);
|
|
278
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
279
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.companyPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
280
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
281
|
+
});
|
|
282
|
+
},
|
|
283
|
+
/**
|
|
284
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
285
|
+
* @summary Update a company
|
|
286
|
+
* @param {Company} company
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
companyPut(company, options) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
var _a, _b, _c;
|
|
293
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.companyPut(company, options);
|
|
294
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
295
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.companyPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
296
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
297
|
+
});
|
|
298
|
+
},
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* CompanyApi - factory interface
|
|
303
|
+
* @export
|
|
304
|
+
*/
|
|
305
|
+
export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
306
|
+
const localVarFp = CompanyApiFp(configuration);
|
|
307
|
+
return {
|
|
308
|
+
/**
|
|
309
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
310
|
+
* @summary List companies
|
|
311
|
+
* @param {number} [page] Page number.
|
|
312
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
313
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
314
|
+
* @param {*} [options] Override http request option.
|
|
315
|
+
* @throws {RequiredError}
|
|
316
|
+
*/
|
|
317
|
+
companyGet(page, pageSize, sort, options) {
|
|
318
|
+
return localVarFp.companyGet(page, pageSize, sort, options).then((request) => request(axios, basePath));
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
322
|
+
* @summary Delete a company
|
|
323
|
+
* @param {number} id Item id
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
*/
|
|
327
|
+
companyIdDelete(id, options) {
|
|
328
|
+
return localVarFp.companyIdDelete(id, options).then((request) => request(axios, basePath));
|
|
329
|
+
},
|
|
330
|
+
/**
|
|
331
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
332
|
+
* @summary Get a company by id
|
|
333
|
+
* @param {number} id Item id
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
companyIdGet(id, options) {
|
|
338
|
+
return localVarFp.companyIdGet(id, options).then((request) => request(axios, basePath));
|
|
339
|
+
},
|
|
340
|
+
/**
|
|
341
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
342
|
+
* @summary Add a company
|
|
343
|
+
* @param {Company} company
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
*/
|
|
347
|
+
companyPost(company, options) {
|
|
348
|
+
return localVarFp.companyPost(company, options).then((request) => request(axios, basePath));
|
|
349
|
+
},
|
|
350
|
+
/**
|
|
351
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
352
|
+
* @summary Update a company
|
|
353
|
+
* @param {Company} company
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
companyPut(company, options) {
|
|
358
|
+
return localVarFp.companyPut(company, options).then((request) => request(axios, basePath));
|
|
359
|
+
},
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
/**
|
|
363
|
+
* CompanyApi - object-oriented interface
|
|
364
|
+
* @export
|
|
365
|
+
* @class CompanyApi
|
|
366
|
+
* @extends {BaseAPI}
|
|
367
|
+
*/
|
|
368
|
+
export class CompanyApi extends BaseAPI {
|
|
369
|
+
/**
|
|
370
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
371
|
+
* @summary List companies
|
|
372
|
+
* @param {number} [page] Page number.
|
|
373
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
374
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
* @memberof CompanyApi
|
|
378
|
+
*/
|
|
379
|
+
companyGet(page, pageSize, sort, options) {
|
|
380
|
+
return CompanyApiFp(this.configuration).companyGet(page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
384
|
+
* @summary Delete a company
|
|
385
|
+
* @param {number} id Item id
|
|
386
|
+
* @param {*} [options] Override http request option.
|
|
387
|
+
* @throws {RequiredError}
|
|
388
|
+
* @memberof CompanyApi
|
|
389
|
+
*/
|
|
390
|
+
companyIdDelete(id, options) {
|
|
391
|
+
return CompanyApiFp(this.configuration).companyIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
395
|
+
* @summary Get a company by id
|
|
396
|
+
* @param {number} id Item id
|
|
397
|
+
* @param {*} [options] Override http request option.
|
|
398
|
+
* @throws {RequiredError}
|
|
399
|
+
* @memberof CompanyApi
|
|
400
|
+
*/
|
|
401
|
+
companyIdGet(id, options) {
|
|
402
|
+
return CompanyApiFp(this.configuration).companyIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
406
|
+
* @summary Add a company
|
|
407
|
+
* @param {Company} company
|
|
408
|
+
* @param {*} [options] Override http request option.
|
|
409
|
+
* @throws {RequiredError}
|
|
410
|
+
* @memberof CompanyApi
|
|
411
|
+
*/
|
|
412
|
+
companyPost(company, options) {
|
|
413
|
+
return CompanyApiFp(this.configuration).companyPost(company, options).then((request) => request(this.axios, this.basePath));
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
|
|
417
|
+
* @summary Update a company
|
|
418
|
+
* @param {Company} company
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
* @memberof CompanyApi
|
|
422
|
+
*/
|
|
423
|
+
companyPut(company, options) {
|
|
424
|
+
return CompanyApiFp(this.configuration).companyPut(company, options).then((request) => request(this.axios, this.basePath));
|
|
425
|
+
}
|
|
426
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invoicetronic API
|
|
3
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: info@invoicetronic.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../../base';
|
|
15
|
+
import type { Event } from '../../src/models';
|
|
16
|
+
/**
|
|
17
|
+
* LogApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const LogApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Every API operation is logged and can be retrieved here. Log records are preserved for 15 days.
|
|
23
|
+
* @summary List events
|
|
24
|
+
* @param {number} [companyId] Company id
|
|
25
|
+
* @param {string} [endpoint]
|
|
26
|
+
* @param {string} [method]
|
|
27
|
+
* @param {number} [apiVerion] Api version
|
|
28
|
+
* @param {number} [statusCode] Response status code
|
|
29
|
+
* @param {string} [dateCreatedFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
|
|
30
|
+
* @param {string} [dateCreatedTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
|
|
31
|
+
* @param {number} [page] Page number.
|
|
32
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
33
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
34
|
+
* @param {string} [query]
|
|
35
|
+
* @param {boolean} [success]
|
|
36
|
+
* @param {string} [dateTimeFrom] Date and time of the event
|
|
37
|
+
* @param {string} [dateTimeTo] Date and time of the event
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
logGet: (companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
|
+
/**
|
|
43
|
+
* Every API operation is logged and can be retrieved here. Log records are preserved for 15 days.
|
|
44
|
+
* @summary Get an event by id
|
|
45
|
+
* @param {number} id Item id
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
logIdGet: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* LogApi - functional programming interface
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const LogApiFp: (configuration?: Configuration) => {
|
|
56
|
+
/**
|
|
57
|
+
* Every API operation is logged and can be retrieved here. Log records are preserved for 15 days.
|
|
58
|
+
* @summary List events
|
|
59
|
+
* @param {number} [companyId] Company id
|
|
60
|
+
* @param {string} [endpoint]
|
|
61
|
+
* @param {string} [method]
|
|
62
|
+
* @param {number} [apiVerion] Api version
|
|
63
|
+
* @param {number} [statusCode] Response status code
|
|
64
|
+
* @param {string} [dateCreatedFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
|
|
65
|
+
* @param {string} [dateCreatedTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
|
|
66
|
+
* @param {number} [page] Page number.
|
|
67
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
68
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
69
|
+
* @param {string} [query]
|
|
70
|
+
* @param {boolean} [success]
|
|
71
|
+
* @param {string} [dateTimeFrom] Date and time of the event
|
|
72
|
+
* @param {string} [dateTimeTo] Date and time of the event
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Event>>>;
|
|
77
|
+
/**
|
|
78
|
+
* Every API operation is logged and can be retrieved here. Log records are preserved for 15 days.
|
|
79
|
+
* @summary Get an event by id
|
|
80
|
+
* @param {number} id Item id
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
logIdGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Event>>;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* LogApi - factory interface
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export declare const LogApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
91
|
+
/**
|
|
92
|
+
* Every API operation is logged and can be retrieved here. Log records are preserved for 15 days.
|
|
93
|
+
* @summary List events
|
|
94
|
+
* @param {number} [companyId] Company id
|
|
95
|
+
* @param {string} [endpoint]
|
|
96
|
+
* @param {string} [method]
|
|
97
|
+
* @param {number} [apiVerion] Api version
|
|
98
|
+
* @param {number} [statusCode] Response status code
|
|
99
|
+
* @param {string} [dateCreatedFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
|
|
100
|
+
* @param {string} [dateCreatedTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
|
|
101
|
+
* @param {number} [page] Page number.
|
|
102
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
103
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
104
|
+
* @param {string} [query]
|
|
105
|
+
* @param {boolean} [success]
|
|
106
|
+
* @param {string} [dateTimeFrom] Date and time of the event
|
|
107
|
+
* @param {string} [dateTimeTo] Date and time of the event
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
|
|
112
|
+
/**
|
|
113
|
+
* Every API operation is logged and can be retrieved here. Log records are preserved for 15 days.
|
|
114
|
+
* @summary Get an event by id
|
|
115
|
+
* @param {number} id Item id
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
logIdGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Event>;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* LogApi - interface
|
|
123
|
+
* @export
|
|
124
|
+
* @interface LogApi
|
|
125
|
+
*/
|
|
126
|
+
export interface LogApiInterface {
|
|
127
|
+
/**
|
|
128
|
+
* Every API operation is logged and can be retrieved here. Log records are preserved for 15 days.
|
|
129
|
+
* @summary List events
|
|
130
|
+
* @param {number} [companyId] Company id
|
|
131
|
+
* @param {string} [endpoint]
|
|
132
|
+
* @param {string} [method]
|
|
133
|
+
* @param {number} [apiVerion] Api version
|
|
134
|
+
* @param {number} [statusCode] Response status code
|
|
135
|
+
* @param {string} [dateCreatedFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
|
|
136
|
+
* @param {string} [dateCreatedTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
|
|
137
|
+
* @param {number} [page] Page number.
|
|
138
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
139
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
140
|
+
* @param {string} [query]
|
|
141
|
+
* @param {boolean} [success]
|
|
142
|
+
* @param {string} [dateTimeFrom] Date and time of the event
|
|
143
|
+
* @param {string} [dateTimeTo] Date and time of the event
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
* @memberof LogApiInterface
|
|
147
|
+
*/
|
|
148
|
+
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
|
|
149
|
+
/**
|
|
150
|
+
* Every API operation is logged and can be retrieved here. Log records are preserved for 15 days.
|
|
151
|
+
* @summary Get an event by id
|
|
152
|
+
* @param {number} id Item id
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
* @memberof LogApiInterface
|
|
156
|
+
*/
|
|
157
|
+
logIdGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Event>;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* LogApi - object-oriented interface
|
|
161
|
+
* @export
|
|
162
|
+
* @class LogApi
|
|
163
|
+
* @extends {BaseAPI}
|
|
164
|
+
*/
|
|
165
|
+
export declare class LogApi extends BaseAPI implements LogApiInterface {
|
|
166
|
+
/**
|
|
167
|
+
* Every API operation is logged and can be retrieved here. Log records are preserved for 15 days.
|
|
168
|
+
* @summary List events
|
|
169
|
+
* @param {number} [companyId] Company id
|
|
170
|
+
* @param {string} [endpoint]
|
|
171
|
+
* @param {string} [method]
|
|
172
|
+
* @param {number} [apiVerion] Api version
|
|
173
|
+
* @param {number} [statusCode] Response status code
|
|
174
|
+
* @param {string} [dateCreatedFrom] UTC ISO 8601 (2024-11-29T12:34:56Z)
|
|
175
|
+
* @param {string} [dateCreatedTo] UTC ISO 8601 (2024-11-29T12:34:56Z)
|
|
176
|
+
* @param {number} [page] Page number.
|
|
177
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
178
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
179
|
+
* @param {string} [query]
|
|
180
|
+
* @param {boolean} [success]
|
|
181
|
+
* @param {string} [dateTimeFrom] Date and time of the event
|
|
182
|
+
* @param {string} [dateTimeTo] Date and time of the event
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
* @memberof LogApi
|
|
186
|
+
*/
|
|
187
|
+
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Event[], any>>;
|
|
188
|
+
/**
|
|
189
|
+
* Every API operation is logged and can be retrieved here. Log records are preserved for 15 days.
|
|
190
|
+
* @summary Get an event by id
|
|
191
|
+
* @param {number} id Item id
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
* @memberof LogApi
|
|
195
|
+
*/
|
|
196
|
+
logIdGet(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Event, any>>;
|
|
197
|
+
}
|