@invoicetronic/ts-sdk 1.3.0 → 1.5.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/CHANGELOG.md +1 -1
- package/README.md +2 -2
- package/api.ts +1 -0
- package/common.ts +2 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -0
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/src/api/company-api.d.ts +55 -10
- package/dist/esm/src/api/company-api.js +87 -11
- package/dist/esm/src/api/export-api.d.ts +10 -16
- package/dist/esm/src/api/export-api.js +4 -9
- package/dist/esm/src/api/health-api.d.ts +74 -0
- package/dist/esm/src/api/health-api.js +120 -0
- package/dist/esm/src/api/receive-api.d.ts +55 -10
- package/dist/esm/src/api/receive-api.js +87 -11
- package/dist/esm/src/api/send-api.d.ts +95 -51
- package/dist/esm/src/api/send-api.js +143 -67
- package/dist/esm/src/api/update-api.d.ts +10 -10
- package/dist/esm/src/api/update-api.js +8 -8
- package/dist/esm/src/models/event.d.ts +3 -0
- package/dist/esm/src/models/index.d.ts +0 -47
- package/dist/esm/src/models/index.js +0 -47
- package/dist/esm/src/models/receive.d.ts +7 -0
- package/dist/esm/src/models/send.d.ts +7 -0
- package/dist/esm/src/models/status.d.ts +3 -0
- package/dist/esm/src/models/update.d.ts +3 -0
- package/dist/esm/src/models/web-hook.d.ts +3 -0
- package/dist/src/api/company-api.d.ts +55 -10
- package/dist/src/api/company-api.js +87 -11
- package/dist/src/api/export-api.d.ts +10 -16
- package/dist/src/api/export-api.js +5 -10
- package/dist/src/api/health-api.d.ts +74 -0
- package/dist/src/api/health-api.js +127 -0
- package/dist/src/api/receive-api.d.ts +55 -10
- package/dist/src/api/receive-api.js +87 -11
- package/dist/src/api/send-api.d.ts +95 -51
- package/dist/src/api/send-api.js +143 -67
- package/dist/src/api/update-api.d.ts +10 -10
- package/dist/src/api/update-api.js +8 -8
- package/dist/src/models/event.d.ts +3 -0
- package/dist/src/models/index.d.ts +0 -47
- package/dist/src/models/index.js +0 -47
- package/dist/src/models/receive.d.ts +7 -0
- package/dist/src/models/send.d.ts +7 -0
- package/dist/src/models/status.d.ts +3 -0
- package/dist/src/models/update.d.ts +3 -0
- package/dist/src/models/web-hook.d.ts +3 -0
- package/docs/CompanyApi.md +59 -2
- package/docs/Event.md +1 -0
- package/docs/ExportApi.md +2 -2
- package/docs/HealthApi.md +54 -0
- package/docs/Receive.md +3 -0
- package/docs/ReceiveApi.md +58 -2
- package/docs/Send.md +3 -0
- package/docs/SendApi.md +78 -26
- package/docs/Status.md +1 -0
- package/docs/Update.md +1 -0
- package/docs/UpdateApi.md +2 -2
- package/docs/WebHook.md +1 -0
- package/package.json +1 -1
- package/src/api/company-api.ts +103 -13
- package/src/api/export-api.ts +10 -16
- package/src/api/health-api.ts +135 -0
- package/src/api/receive-api.ts +105 -13
- package/src/api/send-api.ts +167 -79
- package/src/api/update-api.ts +10 -10
- package/src/models/event.ts +3 -0
- package/src/models/index.ts +0 -47
- package/src/models/receive.ts +7 -0
- package/src/models/send.ts +7 -0
- package/src/models/status.ts +3 -0
- package/src/models/update.ts +3 -0
- package/src/models/web-hook.ts +3 -0
- package/dist/esm/src/models/allegati.d.ts +0 -18
- package/dist/esm/src/models/allegati.js +0 -14
- package/dist/esm/src/models/altri-dati-gestionali.d.ts +0 -17
- package/dist/esm/src/models/altri-dati-gestionali.js +0 -14
- package/dist/esm/src/models/anagrafica.d.ts +0 -18
- package/dist/esm/src/models/anagrafica.js +0 -14
- package/dist/esm/src/models/cedente-prestatore.d.ts +0 -24
- package/dist/esm/src/models/cedente-prestatore.js +0 -14
- package/dist/esm/src/models/cessionario-committente.d.ts +0 -21
- package/dist/esm/src/models/cessionario-committente.js +0 -14
- package/dist/esm/src/models/codice-articolo.d.ts +0 -15
- package/dist/esm/src/models/codice-articolo.js +0 -14
- package/dist/esm/src/models/contatti-trasmittente.d.ts +0 -15
- package/dist/esm/src/models/contatti-trasmittente.js +0 -14
- package/dist/esm/src/models/contatti.d.ts +0 -16
- package/dist/esm/src/models/contatti.js +0 -14
- package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -23
- package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.js +0 -14
- package/dist/esm/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -18
- package/dist/esm/src/models/dati-anagrafici-cessionario-committente.js +0 -14
- package/dist/esm/src/models/dati-anagrafici-vettore.d.ts +0 -19
- package/dist/esm/src/models/dati-anagrafici-vettore.js +0 -14
- package/dist/esm/src/models/dati-anagrafici.d.ts +0 -18
- package/dist/esm/src/models/dati-anagrafici.js +0 -14
- package/dist/esm/src/models/dati-beni-servizi.d.ts +0 -17
- package/dist/esm/src/models/dati-beni-servizi.js +0 -14
- package/dist/esm/src/models/dati-bollo.d.ts +0 -15
- package/dist/esm/src/models/dati-bollo.js +0 -14
- package/dist/esm/src/models/dati-cassa-previdenziale.d.ts +0 -21
- package/dist/esm/src/models/dati-cassa-previdenziale.js +0 -14
- package/dist/esm/src/models/dati-contratto.d.ts +0 -20
- package/dist/esm/src/models/dati-contratto.js +0 -14
- package/dist/esm/src/models/dati-convenzione.d.ts +0 -20
- package/dist/esm/src/models/dati-convenzione.js +0 -14
- package/dist/esm/src/models/dati-ddt.d.ts +0 -16
- package/dist/esm/src/models/dati-ddt.js +0 -14
- package/dist/esm/src/models/dati-fatture-collegate.d.ts +0 -20
- package/dist/esm/src/models/dati-fatture-collegate.js +0 -14
- package/dist/esm/src/models/dati-generali-documento.d.ts +0 -29
- package/dist/esm/src/models/dati-generali-documento.js +0 -14
- package/dist/esm/src/models/dati-generali.d.ts +0 -33
- package/dist/esm/src/models/dati-generali.js +0 -14
- package/dist/esm/src/models/dati-ordine-acquisto.d.ts +0 -20
- package/dist/esm/src/models/dati-ordine-acquisto.js +0 -14
- package/dist/esm/src/models/dati-pagamento.d.ts +0 -16
- package/dist/esm/src/models/dati-pagamento.js +0 -14
- package/dist/esm/src/models/dati-ricezione.d.ts +0 -20
- package/dist/esm/src/models/dati-ricezione.js +0 -14
- package/dist/esm/src/models/dati-riepilogo.d.ts +0 -21
- package/dist/esm/src/models/dati-riepilogo.js +0 -14
- package/dist/esm/src/models/dati-ritenuta.d.ts +0 -17
- package/dist/esm/src/models/dati-ritenuta.js +0 -14
- package/dist/esm/src/models/dati-sal.d.ts +0 -14
- package/dist/esm/src/models/dati-sal.js +0 -14
- package/dist/esm/src/models/dati-trasmissione.d.ts +0 -21
- package/dist/esm/src/models/dati-trasmissione.js +0 -14
- package/dist/esm/src/models/dati-trasporto.d.ts +0 -28
- package/dist/esm/src/models/dati-trasporto.js +0 -14
- package/dist/esm/src/models/dati-veicoli.d.ts +0 -15
- package/dist/esm/src/models/dati-veicoli.js +0 -14
- package/dist/esm/src/models/dettaglio-linee.d.ts +0 -32
- package/dist/esm/src/models/dettaglio-linee.js +0 -14
- package/dist/esm/src/models/dettaglio-pagamento.d.ts +0 -34
- package/dist/esm/src/models/dettaglio-pagamento.js +0 -14
- package/dist/esm/src/models/fattura-elettronica-body.d.ts +0 -23
- package/dist/esm/src/models/fattura-elettronica-body.js +0 -14
- package/dist/esm/src/models/fattura-elettronica-header.d.ts +0 -24
- package/dist/esm/src/models/fattura-elettronica-header.js +0 -14
- package/dist/esm/src/models/fattura-ordinaria.d.ts +0 -18
- package/dist/esm/src/models/fattura-ordinaria.js +0 -14
- package/dist/esm/src/models/fattura-principale.d.ts +0 -15
- package/dist/esm/src/models/fattura-principale.js +0 -14
- package/dist/esm/src/models/id-fiscale-iva.d.ts +0 -15
- package/dist/esm/src/models/id-fiscale-iva.js +0 -14
- package/dist/esm/src/models/id-trasmittente.d.ts +0 -15
- package/dist/esm/src/models/id-trasmittente.js +0 -14
- package/dist/esm/src/models/indirizzo-resa.d.ts +0 -19
- package/dist/esm/src/models/indirizzo-resa.js +0 -14
- package/dist/esm/src/models/iscrizione-rea.d.ts +0 -18
- package/dist/esm/src/models/iscrizione-rea.js +0 -14
- package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -18
- package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.js +0 -14
- package/dist/esm/src/models/rappresentante-fiscale.d.ts +0 -15
- package/dist/esm/src/models/rappresentante-fiscale.js +0 -14
- package/dist/esm/src/models/sconto-maggiorazione.d.ts +0 -16
- package/dist/esm/src/models/sconto-maggiorazione.js +0 -14
- package/dist/esm/src/models/sede-cedente-prestatore.d.ts +0 -19
- package/dist/esm/src/models/sede-cedente-prestatore.js +0 -14
- package/dist/esm/src/models/sede-cessionario-committente.d.ts +0 -19
- package/dist/esm/src/models/sede-cessionario-committente.js +0 -14
- package/dist/esm/src/models/stabile-organizzazione.d.ts +0 -19
- package/dist/esm/src/models/stabile-organizzazione.js +0 -14
- package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -15
- package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.js +0 -14
- package/dist/src/models/allegati.d.ts +0 -18
- package/dist/src/models/allegati.js +0 -15
- package/dist/src/models/altri-dati-gestionali.d.ts +0 -17
- package/dist/src/models/altri-dati-gestionali.js +0 -15
- package/dist/src/models/anagrafica.d.ts +0 -18
- package/dist/src/models/anagrafica.js +0 -15
- package/dist/src/models/cedente-prestatore.d.ts +0 -24
- package/dist/src/models/cedente-prestatore.js +0 -15
- package/dist/src/models/cessionario-committente.d.ts +0 -21
- package/dist/src/models/cessionario-committente.js +0 -15
- package/dist/src/models/codice-articolo.d.ts +0 -15
- package/dist/src/models/codice-articolo.js +0 -15
- package/dist/src/models/contatti-trasmittente.d.ts +0 -15
- package/dist/src/models/contatti-trasmittente.js +0 -15
- package/dist/src/models/contatti.d.ts +0 -16
- package/dist/src/models/contatti.js +0 -15
- package/dist/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -23
- package/dist/src/models/dati-anagrafici-cedente-prestatore.js +0 -15
- package/dist/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -18
- package/dist/src/models/dati-anagrafici-cessionario-committente.js +0 -15
- package/dist/src/models/dati-anagrafici-vettore.d.ts +0 -19
- package/dist/src/models/dati-anagrafici-vettore.js +0 -15
- package/dist/src/models/dati-anagrafici.d.ts +0 -18
- package/dist/src/models/dati-anagrafici.js +0 -15
- package/dist/src/models/dati-beni-servizi.d.ts +0 -17
- package/dist/src/models/dati-beni-servizi.js +0 -15
- package/dist/src/models/dati-bollo.d.ts +0 -15
- package/dist/src/models/dati-bollo.js +0 -15
- package/dist/src/models/dati-cassa-previdenziale.d.ts +0 -21
- package/dist/src/models/dati-cassa-previdenziale.js +0 -15
- package/dist/src/models/dati-contratto.d.ts +0 -20
- package/dist/src/models/dati-contratto.js +0 -15
- package/dist/src/models/dati-convenzione.d.ts +0 -20
- package/dist/src/models/dati-convenzione.js +0 -15
- package/dist/src/models/dati-ddt.d.ts +0 -16
- package/dist/src/models/dati-ddt.js +0 -15
- package/dist/src/models/dati-fatture-collegate.d.ts +0 -20
- package/dist/src/models/dati-fatture-collegate.js +0 -15
- package/dist/src/models/dati-generali-documento.d.ts +0 -29
- package/dist/src/models/dati-generali-documento.js +0 -15
- package/dist/src/models/dati-generali.d.ts +0 -33
- package/dist/src/models/dati-generali.js +0 -15
- package/dist/src/models/dati-ordine-acquisto.d.ts +0 -20
- package/dist/src/models/dati-ordine-acquisto.js +0 -15
- package/dist/src/models/dati-pagamento.d.ts +0 -16
- package/dist/src/models/dati-pagamento.js +0 -15
- package/dist/src/models/dati-ricezione.d.ts +0 -20
- package/dist/src/models/dati-ricezione.js +0 -15
- package/dist/src/models/dati-riepilogo.d.ts +0 -21
- package/dist/src/models/dati-riepilogo.js +0 -15
- package/dist/src/models/dati-ritenuta.d.ts +0 -17
- package/dist/src/models/dati-ritenuta.js +0 -15
- package/dist/src/models/dati-sal.d.ts +0 -14
- package/dist/src/models/dati-sal.js +0 -15
- package/dist/src/models/dati-trasmissione.d.ts +0 -21
- package/dist/src/models/dati-trasmissione.js +0 -15
- package/dist/src/models/dati-trasporto.d.ts +0 -28
- package/dist/src/models/dati-trasporto.js +0 -15
- package/dist/src/models/dati-veicoli.d.ts +0 -15
- package/dist/src/models/dati-veicoli.js +0 -15
- package/dist/src/models/dettaglio-linee.d.ts +0 -32
- package/dist/src/models/dettaglio-linee.js +0 -15
- package/dist/src/models/dettaglio-pagamento.d.ts +0 -34
- package/dist/src/models/dettaglio-pagamento.js +0 -15
- package/dist/src/models/fattura-elettronica-body.d.ts +0 -23
- package/dist/src/models/fattura-elettronica-body.js +0 -15
- package/dist/src/models/fattura-elettronica-header.d.ts +0 -24
- package/dist/src/models/fattura-elettronica-header.js +0 -15
- package/dist/src/models/fattura-ordinaria.d.ts +0 -18
- package/dist/src/models/fattura-ordinaria.js +0 -15
- package/dist/src/models/fattura-principale.d.ts +0 -15
- package/dist/src/models/fattura-principale.js +0 -15
- package/dist/src/models/id-fiscale-iva.d.ts +0 -15
- package/dist/src/models/id-fiscale-iva.js +0 -15
- package/dist/src/models/id-trasmittente.d.ts +0 -15
- package/dist/src/models/id-trasmittente.js +0 -15
- package/dist/src/models/indirizzo-resa.d.ts +0 -19
- package/dist/src/models/indirizzo-resa.js +0 -15
- package/dist/src/models/iscrizione-rea.d.ts +0 -18
- package/dist/src/models/iscrizione-rea.js +0 -15
- package/dist/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -18
- package/dist/src/models/rappresentante-fiscale-cessionario-committente.js +0 -15
- package/dist/src/models/rappresentante-fiscale.d.ts +0 -15
- package/dist/src/models/rappresentante-fiscale.js +0 -15
- package/dist/src/models/sconto-maggiorazione.d.ts +0 -16
- package/dist/src/models/sconto-maggiorazione.js +0 -15
- package/dist/src/models/sede-cedente-prestatore.d.ts +0 -19
- package/dist/src/models/sede-cedente-prestatore.js +0 -15
- package/dist/src/models/sede-cessionario-committente.d.ts +0 -19
- package/dist/src/models/sede-cessionario-committente.js +0 -15
- package/dist/src/models/stabile-organizzazione.d.ts +0 -19
- package/dist/src/models/stabile-organizzazione.js +0 -15
- package/dist/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -15
- package/dist/src/models/terzo-intermediario-osoggetto-emittente.js +0 -15
- package/docs/Allegati.md +0 -28
- package/docs/AltriDatiGestionali.md +0 -26
- package/docs/Anagrafica.md +0 -28
- package/docs/CedentePrestatore.md +0 -30
- package/docs/CessionarioCommittente.md +0 -26
- package/docs/CodiceArticolo.md +0 -22
- package/docs/Contatti.md +0 -24
- package/docs/ContattiTrasmittente.md +0 -22
- package/docs/DatiAnagrafici.md +0 -24
- package/docs/DatiAnagraficiCedentePrestatore.md +0 -34
- package/docs/DatiAnagraficiCessionarioCommittente.md +0 -24
- package/docs/DatiAnagraficiVettore.md +0 -26
- package/docs/DatiBeniServizi.md +0 -22
- package/docs/DatiBollo.md +0 -22
- package/docs/DatiCassaPrevidenziale.md +0 -34
- package/docs/DatiContratto.md +0 -32
- package/docs/DatiConvenzione.md +0 -32
- package/docs/DatiDDT.md +0 -24
- package/docs/DatiFattureCollegate.md +0 -32
- package/docs/DatiGenerali.md +0 -38
- package/docs/DatiGeneraliDocumento.md +0 -42
- package/docs/DatiOrdineAcquisto.md +0 -32
- package/docs/DatiPagamento.md +0 -22
- package/docs/DatiRicezione.md +0 -32
- package/docs/DatiRiepilogo.md +0 -34
- package/docs/DatiRitenuta.md +0 -26
- package/docs/DatiSAL.md +0 -20
- package/docs/DatiTrasmissione.md +0 -30
- package/docs/DatiTrasporto.md +0 -44
- package/docs/DatiVeicoli.md +0 -22
- package/docs/DettaglioLinee.md +0 -50
- package/docs/DettaglioPagamento.md +0 -60
- package/docs/FatturaElettronicaBody.md +0 -28
- package/docs/FatturaElettronicaHeader.md +0 -30
- package/docs/FatturaOrdinaria.md +0 -24
- package/docs/FatturaPrincipale.md +0 -22
- package/docs/IdFiscaleIVA.md +0 -22
- package/docs/IdTrasmittente.md +0 -22
- package/docs/IndirizzoResa.md +0 -30
- package/docs/IscrizioneREA.md +0 -28
- package/docs/RappresentanteFiscale.md +0 -20
- package/docs/RappresentanteFiscaleCessionarioCommittente.md +0 -26
- package/docs/ScontoMaggiorazione.md +0 -24
- package/docs/SedeCedentePrestatore.md +0 -30
- package/docs/SedeCessionarioCommittente.md +0 -30
- package/docs/StabileOrganizzazione.md +0 -30
- package/docs/TerzoIntermediarioOSoggettoEmittente.md +0 -20
- package/src/models/allegati.ts +0 -24
- package/src/models/altri-dati-gestionali.ts +0 -23
- package/src/models/anagrafica.ts +0 -24
- package/src/models/cedente-prestatore.ts +0 -40
- package/src/models/cessionario-committente.ts +0 -35
- package/src/models/codice-articolo.ts +0 -21
- package/src/models/contatti-trasmittente.ts +0 -21
- package/src/models/contatti.ts +0 -22
- package/src/models/dati-anagrafici-cedente-prestatore.ts +0 -33
- package/src/models/dati-anagrafici-cessionario-committente.ts +0 -28
- package/src/models/dati-anagrafici-vettore.ts +0 -29
- package/src/models/dati-anagrafici.ts +0 -28
- package/src/models/dati-beni-servizi.ts +0 -27
- package/src/models/dati-bollo.ts +0 -21
- package/src/models/dati-cassa-previdenziale.ts +0 -27
- package/src/models/dati-contratto.ts +0 -26
- package/src/models/dati-convenzione.ts +0 -26
- package/src/models/dati-ddt.ts +0 -22
- package/src/models/dati-fatture-collegate.ts +0 -26
- package/src/models/dati-generali-documento.ts +0 -43
- package/src/models/dati-generali.ts +0 -59
- package/src/models/dati-ordine-acquisto.ts +0 -26
- package/src/models/dati-pagamento.ts +0 -24
- package/src/models/dati-ricezione.ts +0 -26
- package/src/models/dati-riepilogo.ts +0 -27
- package/src/models/dati-ritenuta.ts +0 -23
- package/src/models/dati-sal.ts +0 -20
- package/src/models/dati-trasmissione.ts +0 -31
- package/src/models/dati-trasporto.ts +0 -38
- package/src/models/dati-veicoli.ts +0 -21
- package/src/models/dettaglio-linee.ts +0 -44
- package/src/models/dettaglio-pagamento.ts +0 -40
- package/src/models/fattura-elettronica-body.ts +0 -39
- package/src/models/fattura-elettronica-header.ts +0 -40
- package/src/models/fattura-ordinaria.ts +0 -28
- package/src/models/fattura-principale.ts +0 -21
- package/src/models/id-fiscale-iva.ts +0 -21
- package/src/models/id-trasmittente.ts +0 -21
- package/src/models/indirizzo-resa.ts +0 -25
- package/src/models/iscrizione-rea.ts +0 -24
- package/src/models/rappresentante-fiscale-cessionario-committente.ts +0 -26
- package/src/models/rappresentante-fiscale.ts +0 -23
- package/src/models/sconto-maggiorazione.ts +0 -22
- package/src/models/sede-cedente-prestatore.ts +0 -25
- package/src/models/sede-cessionario-committente.ts +0 -25
- package/src/models/stabile-organizzazione.ts +0 -25
- package/src/models/terzo-intermediario-osoggetto-emittente.ts +0 -23
|
@@ -81,7 +81,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
81
81
|
};
|
|
82
82
|
}),
|
|
83
83
|
/**
|
|
84
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
84
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
85
85
|
* @summary List invoices
|
|
86
86
|
* @param {number} [companyId] Company id
|
|
87
87
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -99,10 +99,11 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
* @param {number} [page] Page number.
|
|
100
100
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
101
101
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
102
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
102
103
|
* @param {*} [options] Override http request option.
|
|
103
104
|
* @throws {RequiredError}
|
|
104
105
|
*/
|
|
105
|
-
sendGet: (companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, ...args_1) => __awaiter(this, [companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, ...args_1], void 0, function* (companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options = {}) {
|
|
106
|
+
sendGet: (companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, q_1, ...args_1) => __awaiter(this, [companyId_1, identifier_1, committente_1, prestatore_1, fileName_1, lastUpdateFrom_1, lastUpdateTo_1, dateSentFrom_1, dateSentTo_1, documentDateFrom_1, documentDateTo_1, documentNumber_1, includePayload_1, page_1, pageSize_1, sort_1, q_1, ...args_1], void 0, function* (companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options = {}) {
|
|
106
107
|
const localVarPath = `/send`;
|
|
107
108
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
109
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -176,6 +177,9 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
176
177
|
if (sort !== undefined) {
|
|
177
178
|
localVarQueryParameter['sort'] = sort;
|
|
178
179
|
}
|
|
180
|
+
if (q !== undefined) {
|
|
181
|
+
localVarQueryParameter['q'] = q;
|
|
182
|
+
}
|
|
179
183
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
180
184
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
181
185
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -222,6 +226,39 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
222
226
|
options: localVarRequestOptions,
|
|
223
227
|
};
|
|
224
228
|
}),
|
|
229
|
+
/**
|
|
230
|
+
* Retrieve only the payload of a send invoice, without the full invoice metadata. This is useful when you already have the invoice metadata and only need the XML content. The response is a `text/plain` string, identical to the `payload` field returned by the standard GET endpoint with `include_payload=true`. Depending on how the invoice was originally submitted, the payload may be Base64-encoded or plain XML.
|
|
231
|
+
* @summary Get a send invoice payload by id
|
|
232
|
+
* @param {number} id Item id
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
sendIdPayloadGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
237
|
+
// verify required parameter 'id' is not null or undefined
|
|
238
|
+
assertParamExists('sendIdPayloadGet', 'id', id);
|
|
239
|
+
const localVarPath = `/send/{id}/payload`
|
|
240
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
241
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
242
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
|
+
let baseOptions;
|
|
244
|
+
if (configuration) {
|
|
245
|
+
baseOptions = configuration.baseOptions;
|
|
246
|
+
}
|
|
247
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
248
|
+
const localVarHeaderParameter = {};
|
|
249
|
+
const localVarQueryParameter = {};
|
|
250
|
+
// authentication Basic required
|
|
251
|
+
// http basic authentication required
|
|
252
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
253
|
+
localVarHeaderParameter['Accept'] = 'application/problem+json';
|
|
254
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
255
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
256
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
257
|
+
return {
|
|
258
|
+
url: toPathString(localVarUrlObj),
|
|
259
|
+
options: localVarRequestOptions,
|
|
260
|
+
};
|
|
261
|
+
}),
|
|
225
262
|
/**
|
|
226
263
|
* Retrieve a send invoice by its SDI identifier. The `identifier` is assigned by the SDI and becomes available after the invoice has been accepted. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
227
264
|
* @summary Get a invoice by identifier
|
|
@@ -262,15 +299,15 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
262
299
|
/**
|
|
263
300
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
264
301
|
* @summary Add an invoice by json
|
|
265
|
-
* @param {
|
|
302
|
+
* @param {object} body
|
|
266
303
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
267
304
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
268
305
|
* @param {*} [options] Override http request option.
|
|
269
306
|
* @throws {RequiredError}
|
|
270
307
|
*/
|
|
271
|
-
sendJsonPost: (
|
|
272
|
-
// verify required parameter '
|
|
273
|
-
assertParamExists('sendJsonPost', '
|
|
308
|
+
sendJsonPost: (body_1, validate_1, signature_1, ...args_1) => __awaiter(this, [body_1, validate_1, signature_1, ...args_1], void 0, function* (body, validate, signature, options = {}) {
|
|
309
|
+
// verify required parameter 'body' is not null or undefined
|
|
310
|
+
assertParamExists('sendJsonPost', 'body', body);
|
|
274
311
|
const localVarPath = `/send/json`;
|
|
275
312
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
276
313
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -295,7 +332,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
295
332
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
296
333
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
297
334
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
298
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
335
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
299
336
|
return {
|
|
300
337
|
url: toPathString(localVarUrlObj),
|
|
301
338
|
options: localVarRequestOptions,
|
|
@@ -384,13 +421,13 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
384
421
|
/**
|
|
385
422
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
386
423
|
* @summary Validate an invoice by json
|
|
387
|
-
* @param {
|
|
424
|
+
* @param {object} body
|
|
388
425
|
* @param {*} [options] Override http request option.
|
|
389
426
|
* @throws {RequiredError}
|
|
390
427
|
*/
|
|
391
|
-
sendValidateJsonPost: (
|
|
392
|
-
// verify required parameter '
|
|
393
|
-
assertParamExists('sendValidateJsonPost', '
|
|
428
|
+
sendValidateJsonPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
429
|
+
// verify required parameter 'body' is not null or undefined
|
|
430
|
+
assertParamExists('sendValidateJsonPost', 'body', body);
|
|
394
431
|
const localVarPath = `/send/validate/json`;
|
|
395
432
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
396
433
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -409,7 +446,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
409
446
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
410
447
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
411
448
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
412
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
449
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
413
450
|
return {
|
|
414
451
|
url: toPathString(localVarUrlObj),
|
|
415
452
|
options: localVarRequestOptions,
|
|
@@ -452,13 +489,13 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
452
489
|
/**
|
|
453
490
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
454
491
|
* @summary Validate an invoice by xml
|
|
455
|
-
* @param {
|
|
492
|
+
* @param {object} body
|
|
456
493
|
* @param {*} [options] Override http request option.
|
|
457
494
|
* @throws {RequiredError}
|
|
458
495
|
*/
|
|
459
|
-
sendValidateXmlPost: (
|
|
460
|
-
// verify required parameter '
|
|
461
|
-
assertParamExists('sendValidateXmlPost', '
|
|
496
|
+
sendValidateXmlPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
497
|
+
// verify required parameter 'body' is not null or undefined
|
|
498
|
+
assertParamExists('sendValidateXmlPost', 'body', body);
|
|
462
499
|
const localVarPath = `/send/validate/xml`;
|
|
463
500
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
464
501
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -477,7 +514,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
477
514
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
478
515
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
479
516
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
480
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
517
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
481
518
|
return {
|
|
482
519
|
url: toPathString(localVarUrlObj),
|
|
483
520
|
options: localVarRequestOptions,
|
|
@@ -486,15 +523,15 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
486
523
|
/**
|
|
487
524
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
488
525
|
* @summary Add an invoice by xml
|
|
489
|
-
* @param {
|
|
526
|
+
* @param {object} body
|
|
490
527
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
491
528
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
492
529
|
* @param {*} [options] Override http request option.
|
|
493
530
|
* @throws {RequiredError}
|
|
494
531
|
*/
|
|
495
|
-
sendXmlPost: (
|
|
496
|
-
// verify required parameter '
|
|
497
|
-
assertParamExists('sendXmlPost', '
|
|
532
|
+
sendXmlPost: (body_1, validate_1, signature_1, ...args_1) => __awaiter(this, [body_1, validate_1, signature_1, ...args_1], void 0, function* (body, validate, signature, options = {}) {
|
|
533
|
+
// verify required parameter 'body' is not null or undefined
|
|
534
|
+
assertParamExists('sendXmlPost', 'body', body);
|
|
498
535
|
const localVarPath = `/send/xml`;
|
|
499
536
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
500
537
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -519,7 +556,7 @@ export const SendApiAxiosParamCreator = function (configuration) {
|
|
|
519
556
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
520
557
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
521
558
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
522
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
559
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
523
560
|
return {
|
|
524
561
|
url: toPathString(localVarUrlObj),
|
|
525
562
|
options: localVarRequestOptions,
|
|
@@ -552,7 +589,7 @@ export const SendApiFp = function (configuration) {
|
|
|
552
589
|
});
|
|
553
590
|
},
|
|
554
591
|
/**
|
|
555
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
592
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
556
593
|
* @summary List invoices
|
|
557
594
|
* @param {number} [companyId] Company id
|
|
558
595
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -570,13 +607,14 @@ export const SendApiFp = function (configuration) {
|
|
|
570
607
|
* @param {number} [page] Page number.
|
|
571
608
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
572
609
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
610
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
573
611
|
* @param {*} [options] Override http request option.
|
|
574
612
|
* @throws {RequiredError}
|
|
575
613
|
*/
|
|
576
|
-
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
614
|
+
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
577
615
|
return __awaiter(this, void 0, void 0, function* () {
|
|
578
616
|
var _a, _b, _c;
|
|
579
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
|
|
617
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
|
|
580
618
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
581
619
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
582
620
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -599,6 +637,22 @@ export const SendApiFp = function (configuration) {
|
|
|
599
637
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
600
638
|
});
|
|
601
639
|
},
|
|
640
|
+
/**
|
|
641
|
+
* Retrieve only the payload of a send invoice, without the full invoice metadata. This is useful when you already have the invoice metadata and only need the XML content. The response is a `text/plain` string, identical to the `payload` field returned by the standard GET endpoint with `include_payload=true`. Depending on how the invoice was originally submitted, the payload may be Base64-encoded or plain XML.
|
|
642
|
+
* @summary Get a send invoice payload by id
|
|
643
|
+
* @param {number} id Item id
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
*/
|
|
647
|
+
sendIdPayloadGet(id, options) {
|
|
648
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
649
|
+
var _a, _b, _c;
|
|
650
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendIdPayloadGet(id, options);
|
|
651
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
652
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendIdPayloadGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
653
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
654
|
+
});
|
|
655
|
+
},
|
|
602
656
|
/**
|
|
603
657
|
* Retrieve a send invoice by its SDI identifier. The `identifier` is assigned by the SDI and becomes available after the invoice has been accepted. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
604
658
|
* @summary Get a invoice by identifier
|
|
@@ -619,16 +673,16 @@ export const SendApiFp = function (configuration) {
|
|
|
619
673
|
/**
|
|
620
674
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
621
675
|
* @summary Add an invoice by json
|
|
622
|
-
* @param {
|
|
676
|
+
* @param {object} body
|
|
623
677
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
624
678
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
625
679
|
* @param {*} [options] Override http request option.
|
|
626
680
|
* @throws {RequiredError}
|
|
627
681
|
*/
|
|
628
|
-
sendJsonPost(
|
|
682
|
+
sendJsonPost(body, validate, signature, options) {
|
|
629
683
|
return __awaiter(this, void 0, void 0, function* () {
|
|
630
684
|
var _a, _b, _c;
|
|
631
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(
|
|
685
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(body, validate, signature, options);
|
|
632
686
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
633
687
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
634
688
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -671,14 +725,14 @@ export const SendApiFp = function (configuration) {
|
|
|
671
725
|
/**
|
|
672
726
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
673
727
|
* @summary Validate an invoice by json
|
|
674
|
-
* @param {
|
|
728
|
+
* @param {object} body
|
|
675
729
|
* @param {*} [options] Override http request option.
|
|
676
730
|
* @throws {RequiredError}
|
|
677
731
|
*/
|
|
678
|
-
sendValidateJsonPost(
|
|
732
|
+
sendValidateJsonPost(body, options) {
|
|
679
733
|
return __awaiter(this, void 0, void 0, function* () {
|
|
680
734
|
var _a, _b, _c;
|
|
681
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(
|
|
735
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(body, options);
|
|
682
736
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
683
737
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendValidateJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
684
738
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -703,14 +757,14 @@ export const SendApiFp = function (configuration) {
|
|
|
703
757
|
/**
|
|
704
758
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
705
759
|
* @summary Validate an invoice by xml
|
|
706
|
-
* @param {
|
|
760
|
+
* @param {object} body
|
|
707
761
|
* @param {*} [options] Override http request option.
|
|
708
762
|
* @throws {RequiredError}
|
|
709
763
|
*/
|
|
710
|
-
sendValidateXmlPost(
|
|
764
|
+
sendValidateXmlPost(body, options) {
|
|
711
765
|
return __awaiter(this, void 0, void 0, function* () {
|
|
712
766
|
var _a, _b, _c;
|
|
713
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(
|
|
767
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(body, options);
|
|
714
768
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
715
769
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendValidateXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
716
770
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -719,16 +773,16 @@ export const SendApiFp = function (configuration) {
|
|
|
719
773
|
/**
|
|
720
774
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
721
775
|
* @summary Add an invoice by xml
|
|
722
|
-
* @param {
|
|
776
|
+
* @param {object} body
|
|
723
777
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
724
778
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
725
779
|
* @param {*} [options] Override http request option.
|
|
726
780
|
* @throws {RequiredError}
|
|
727
781
|
*/
|
|
728
|
-
sendXmlPost(
|
|
782
|
+
sendXmlPost(body, validate, signature, options) {
|
|
729
783
|
return __awaiter(this, void 0, void 0, function* () {
|
|
730
784
|
var _a, _b, _c;
|
|
731
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(
|
|
785
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(body, validate, signature, options);
|
|
732
786
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
733
787
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SendApi.sendXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
734
788
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -755,7 +809,7 @@ export const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
755
809
|
return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
|
|
756
810
|
},
|
|
757
811
|
/**
|
|
758
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
812
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
759
813
|
* @summary List invoices
|
|
760
814
|
* @param {number} [companyId] Company id
|
|
761
815
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -773,11 +827,12 @@ export const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
773
827
|
* @param {number} [page] Page number.
|
|
774
828
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
775
829
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
830
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
776
831
|
* @param {*} [options] Override http request option.
|
|
777
832
|
* @throws {RequiredError}
|
|
778
833
|
*/
|
|
779
|
-
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
780
|
-
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));
|
|
834
|
+
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
835
|
+
return localVarFp.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(axios, basePath));
|
|
781
836
|
},
|
|
782
837
|
/**
|
|
783
838
|
* Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -790,6 +845,16 @@ export const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
790
845
|
sendIdGet(id, includePayload, options) {
|
|
791
846
|
return localVarFp.sendIdGet(id, includePayload, options).then((request) => request(axios, basePath));
|
|
792
847
|
},
|
|
848
|
+
/**
|
|
849
|
+
* Retrieve only the payload of a send invoice, without the full invoice metadata. This is useful when you already have the invoice metadata and only need the XML content. The response is a `text/plain` string, identical to the `payload` field returned by the standard GET endpoint with `include_payload=true`. Depending on how the invoice was originally submitted, the payload may be Base64-encoded or plain XML.
|
|
850
|
+
* @summary Get a send invoice payload by id
|
|
851
|
+
* @param {number} id Item id
|
|
852
|
+
* @param {*} [options] Override http request option.
|
|
853
|
+
* @throws {RequiredError}
|
|
854
|
+
*/
|
|
855
|
+
sendIdPayloadGet(id, options) {
|
|
856
|
+
return localVarFp.sendIdPayloadGet(id, options).then((request) => request(axios, basePath));
|
|
857
|
+
},
|
|
793
858
|
/**
|
|
794
859
|
* Retrieve a send invoice by its SDI identifier. The `identifier` is assigned by the SDI and becomes available after the invoice has been accepted. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
795
860
|
* @summary Get a invoice by identifier
|
|
@@ -804,14 +869,14 @@ export const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
804
869
|
/**
|
|
805
870
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
806
871
|
* @summary Add an invoice by json
|
|
807
|
-
* @param {
|
|
872
|
+
* @param {object} body
|
|
808
873
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
809
874
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
810
875
|
* @param {*} [options] Override http request option.
|
|
811
876
|
* @throws {RequiredError}
|
|
812
877
|
*/
|
|
813
|
-
sendJsonPost(
|
|
814
|
-
return localVarFp.sendJsonPost(
|
|
878
|
+
sendJsonPost(body, validate, signature, options) {
|
|
879
|
+
return localVarFp.sendJsonPost(body, validate, signature, options).then((request) => request(axios, basePath));
|
|
815
880
|
},
|
|
816
881
|
/**
|
|
817
882
|
* Add a new invoice using a structured Send object. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
@@ -838,12 +903,12 @@ export const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
838
903
|
/**
|
|
839
904
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
840
905
|
* @summary Validate an invoice by json
|
|
841
|
-
* @param {
|
|
906
|
+
* @param {object} body
|
|
842
907
|
* @param {*} [options] Override http request option.
|
|
843
908
|
* @throws {RequiredError}
|
|
844
909
|
*/
|
|
845
|
-
sendValidateJsonPost(
|
|
846
|
-
return localVarFp.sendValidateJsonPost(
|
|
910
|
+
sendValidateJsonPost(body, options) {
|
|
911
|
+
return localVarFp.sendValidateJsonPost(body, options).then((request) => request(axios, basePath));
|
|
847
912
|
},
|
|
848
913
|
/**
|
|
849
914
|
* Validate an invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -858,24 +923,24 @@ export const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
858
923
|
/**
|
|
859
924
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
860
925
|
* @summary Validate an invoice by xml
|
|
861
|
-
* @param {
|
|
926
|
+
* @param {object} body
|
|
862
927
|
* @param {*} [options] Override http request option.
|
|
863
928
|
* @throws {RequiredError}
|
|
864
929
|
*/
|
|
865
|
-
sendValidateXmlPost(
|
|
866
|
-
return localVarFp.sendValidateXmlPost(
|
|
930
|
+
sendValidateXmlPost(body, options) {
|
|
931
|
+
return localVarFp.sendValidateXmlPost(body, options).then((request) => request(axios, basePath));
|
|
867
932
|
},
|
|
868
933
|
/**
|
|
869
934
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
870
935
|
* @summary Add an invoice by xml
|
|
871
|
-
* @param {
|
|
936
|
+
* @param {object} body
|
|
872
937
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
873
938
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
874
939
|
* @param {*} [options] Override http request option.
|
|
875
940
|
* @throws {RequiredError}
|
|
876
941
|
*/
|
|
877
|
-
sendXmlPost(
|
|
878
|
-
return localVarFp.sendXmlPost(
|
|
942
|
+
sendXmlPost(body, validate, signature, options) {
|
|
943
|
+
return localVarFp.sendXmlPost(body, validate, signature, options).then((request) => request(axios, basePath));
|
|
879
944
|
},
|
|
880
945
|
};
|
|
881
946
|
};
|
|
@@ -896,7 +961,7 @@ export class SendApi extends BaseAPI {
|
|
|
896
961
|
return SendApiFp(this.configuration).sendFilePost(file, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
897
962
|
}
|
|
898
963
|
/**
|
|
899
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
964
|
+
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
900
965
|
* @summary List invoices
|
|
901
966
|
* @param {number} [companyId] Company id
|
|
902
967
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -914,11 +979,12 @@ export class SendApi extends BaseAPI {
|
|
|
914
979
|
* @param {number} [page] Page number.
|
|
915
980
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
916
981
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
982
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
917
983
|
* @param {*} [options] Override http request option.
|
|
918
984
|
* @throws {RequiredError}
|
|
919
985
|
*/
|
|
920
|
-
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
921
|
-
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));
|
|
986
|
+
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
987
|
+
return SendApiFp(this.configuration).sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
|
|
922
988
|
}
|
|
923
989
|
/**
|
|
924
990
|
* Retrieve a send invoice by its internal id. The `id` is unique and assigned by the system when the invoice is created. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -931,6 +997,16 @@ export class SendApi extends BaseAPI {
|
|
|
931
997
|
sendIdGet(id, includePayload, options) {
|
|
932
998
|
return SendApiFp(this.configuration).sendIdGet(id, includePayload, options).then((request) => request(this.axios, this.basePath));
|
|
933
999
|
}
|
|
1000
|
+
/**
|
|
1001
|
+
* Retrieve only the payload of a send invoice, without the full invoice metadata. This is useful when you already have the invoice metadata and only need the XML content. The response is a `text/plain` string, identical to the `payload` field returned by the standard GET endpoint with `include_payload=true`. Depending on how the invoice was originally submitted, the payload may be Base64-encoded or plain XML.
|
|
1002
|
+
* @summary Get a send invoice payload by id
|
|
1003
|
+
* @param {number} id Item id
|
|
1004
|
+
* @param {*} [options] Override http request option.
|
|
1005
|
+
* @throws {RequiredError}
|
|
1006
|
+
*/
|
|
1007
|
+
sendIdPayloadGet(id, options) {
|
|
1008
|
+
return SendApiFp(this.configuration).sendIdPayloadGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
1009
|
+
}
|
|
934
1010
|
/**
|
|
935
1011
|
* Retrieve a send invoice by its SDI identifier. The `identifier` is assigned by the SDI and becomes available after the invoice has been accepted. Returns invoice metadata; set `include_payload` to true to include the full invoice content. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
936
1012
|
* @summary Get a invoice by identifier
|
|
@@ -945,14 +1021,14 @@ export class SendApi extends BaseAPI {
|
|
|
945
1021
|
/**
|
|
946
1022
|
* Add a new invoice using a FatturaPA JSON representation. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
947
1023
|
* @summary Add an invoice by json
|
|
948
|
-
* @param {
|
|
1024
|
+
* @param {object} body
|
|
949
1025
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
950
1026
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
951
1027
|
* @param {*} [options] Override http request option.
|
|
952
1028
|
* @throws {RequiredError}
|
|
953
1029
|
*/
|
|
954
|
-
sendJsonPost(
|
|
955
|
-
return SendApiFp(this.configuration).sendJsonPost(
|
|
1030
|
+
sendJsonPost(body, validate, signature, options) {
|
|
1031
|
+
return SendApiFp(this.configuration).sendJsonPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
956
1032
|
}
|
|
957
1033
|
/**
|
|
958
1034
|
* Add a new invoice using a structured Send object. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
@@ -979,12 +1055,12 @@ export class SendApi extends BaseAPI {
|
|
|
979
1055
|
/**
|
|
980
1056
|
* Validate a JSON invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
981
1057
|
* @summary Validate an invoice by json
|
|
982
|
-
* @param {
|
|
1058
|
+
* @param {object} body
|
|
983
1059
|
* @param {*} [options] Override http request option.
|
|
984
1060
|
* @throws {RequiredError}
|
|
985
1061
|
*/
|
|
986
|
-
sendValidateJsonPost(
|
|
987
|
-
return SendApiFp(this.configuration).sendValidateJsonPost(
|
|
1062
|
+
sendValidateJsonPost(body, options) {
|
|
1063
|
+
return SendApiFp(this.configuration).sendValidateJsonPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
988
1064
|
}
|
|
989
1065
|
/**
|
|
990
1066
|
* Validate an invoice without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -999,24 +1075,24 @@ export class SendApi extends BaseAPI {
|
|
|
999
1075
|
/**
|
|
1000
1076
|
* Validate an XML invoice document without sending it to SDI. Use this to check for errors before actual submission. Returns validation results with any errors found. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
1001
1077
|
* @summary Validate an invoice by xml
|
|
1002
|
-
* @param {
|
|
1078
|
+
* @param {object} body
|
|
1003
1079
|
* @param {*} [options] Override http request option.
|
|
1004
1080
|
* @throws {RequiredError}
|
|
1005
1081
|
*/
|
|
1006
|
-
sendValidateXmlPost(
|
|
1007
|
-
return SendApiFp(this.configuration).sendValidateXmlPost(
|
|
1082
|
+
sendValidateXmlPost(body, options) {
|
|
1083
|
+
return SendApiFp(this.configuration).sendValidateXmlPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
1008
1084
|
}
|
|
1009
1085
|
/**
|
|
1010
1086
|
* Add a new invoice using a raw XML document in FatturaPA format. The invoice will be signed (if requested), validated (if requested), and queued for delivery to SDI. Status updates from SDI will be available in the `update` endpoint. **Send** invoices are outbound sales invoices transmitted to customers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 15 days in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/). You can also upload invoices via the [Dashboard](https://dashboard.invoicetronic.com).
|
|
1011
1087
|
* @summary Add an invoice by xml
|
|
1012
|
-
* @param {
|
|
1088
|
+
* @param {object} body
|
|
1013
1089
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1014
1090
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1015
1091
|
* @param {*} [options] Override http request option.
|
|
1016
1092
|
* @throws {RequiredError}
|
|
1017
1093
|
*/
|
|
1018
|
-
sendXmlPost(
|
|
1019
|
-
return SendApiFp(this.configuration).sendXmlPost(
|
|
1094
|
+
sendXmlPost(body, validate, signature, options) {
|
|
1095
|
+
return SendApiFp(this.configuration).sendXmlPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
1020
1096
|
}
|
|
1021
1097
|
}
|
|
1022
1098
|
export const SendFilePostSignatureEnum = {
|