@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
package/dist/src/api/send-api.js
CHANGED
|
@@ -84,7 +84,7 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
84
84
|
};
|
|
85
85
|
}),
|
|
86
86
|
/**
|
|
87
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
87
|
+
* 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/).
|
|
88
88
|
* @summary List invoices
|
|
89
89
|
* @param {number} [companyId] Company id
|
|
90
90
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -102,10 +102,11 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
102
102
|
* @param {number} [page] Page number.
|
|
103
103
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
104
104
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
105
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
105
106
|
* @param {*} [options] Override http request option.
|
|
106
107
|
* @throws {RequiredError}
|
|
107
108
|
*/
|
|
108
|
-
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 = {}) {
|
|
109
|
+
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 = {}) {
|
|
109
110
|
const localVarPath = `/send`;
|
|
110
111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
111
112
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -179,6 +180,9 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
179
180
|
if (sort !== undefined) {
|
|
180
181
|
localVarQueryParameter['sort'] = sort;
|
|
181
182
|
}
|
|
183
|
+
if (q !== undefined) {
|
|
184
|
+
localVarQueryParameter['q'] = q;
|
|
185
|
+
}
|
|
182
186
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
183
187
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
188
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -225,6 +229,39 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
225
229
|
options: localVarRequestOptions,
|
|
226
230
|
};
|
|
227
231
|
}),
|
|
232
|
+
/**
|
|
233
|
+
* 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.
|
|
234
|
+
* @summary Get a send invoice payload by id
|
|
235
|
+
* @param {number} id Item id
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
*/
|
|
239
|
+
sendIdPayloadGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
240
|
+
// verify required parameter 'id' is not null or undefined
|
|
241
|
+
(0, common_1.assertParamExists)('sendIdPayloadGet', 'id', id);
|
|
242
|
+
const localVarPath = `/send/{id}/payload`
|
|
243
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
244
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
245
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
246
|
+
let baseOptions;
|
|
247
|
+
if (configuration) {
|
|
248
|
+
baseOptions = configuration.baseOptions;
|
|
249
|
+
}
|
|
250
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
251
|
+
const localVarHeaderParameter = {};
|
|
252
|
+
const localVarQueryParameter = {};
|
|
253
|
+
// authentication Basic required
|
|
254
|
+
// http basic authentication required
|
|
255
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
256
|
+
localVarHeaderParameter['Accept'] = 'application/problem+json';
|
|
257
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
258
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
259
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
260
|
+
return {
|
|
261
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
262
|
+
options: localVarRequestOptions,
|
|
263
|
+
};
|
|
264
|
+
}),
|
|
228
265
|
/**
|
|
229
266
|
* 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/).
|
|
230
267
|
* @summary Get a invoice by identifier
|
|
@@ -265,15 +302,15 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
265
302
|
/**
|
|
266
303
|
* 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).
|
|
267
304
|
* @summary Add an invoice by json
|
|
268
|
-
* @param {
|
|
305
|
+
* @param {object} body
|
|
269
306
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
270
307
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
271
308
|
* @param {*} [options] Override http request option.
|
|
272
309
|
* @throws {RequiredError}
|
|
273
310
|
*/
|
|
274
|
-
sendJsonPost: (
|
|
275
|
-
// verify required parameter '
|
|
276
|
-
(0, common_1.assertParamExists)('sendJsonPost', '
|
|
311
|
+
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 = {}) {
|
|
312
|
+
// verify required parameter 'body' is not null or undefined
|
|
313
|
+
(0, common_1.assertParamExists)('sendJsonPost', 'body', body);
|
|
277
314
|
const localVarPath = `/send/json`;
|
|
278
315
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
279
316
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -298,7 +335,7 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
298
335
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
299
336
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
300
337
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
301
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
338
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
302
339
|
return {
|
|
303
340
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
304
341
|
options: localVarRequestOptions,
|
|
@@ -387,13 +424,13 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
387
424
|
/**
|
|
388
425
|
* 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/).
|
|
389
426
|
* @summary Validate an invoice by json
|
|
390
|
-
* @param {
|
|
427
|
+
* @param {object} body
|
|
391
428
|
* @param {*} [options] Override http request option.
|
|
392
429
|
* @throws {RequiredError}
|
|
393
430
|
*/
|
|
394
|
-
sendValidateJsonPost: (
|
|
395
|
-
// verify required parameter '
|
|
396
|
-
(0, common_1.assertParamExists)('sendValidateJsonPost', '
|
|
431
|
+
sendValidateJsonPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
432
|
+
// verify required parameter 'body' is not null or undefined
|
|
433
|
+
(0, common_1.assertParamExists)('sendValidateJsonPost', 'body', body);
|
|
397
434
|
const localVarPath = `/send/validate/json`;
|
|
398
435
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
399
436
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -412,7 +449,7 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
412
449
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
413
450
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
414
451
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
415
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
452
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
416
453
|
return {
|
|
417
454
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
418
455
|
options: localVarRequestOptions,
|
|
@@ -455,13 +492,13 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
455
492
|
/**
|
|
456
493
|
* 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/).
|
|
457
494
|
* @summary Validate an invoice by xml
|
|
458
|
-
* @param {
|
|
495
|
+
* @param {object} body
|
|
459
496
|
* @param {*} [options] Override http request option.
|
|
460
497
|
* @throws {RequiredError}
|
|
461
498
|
*/
|
|
462
|
-
sendValidateXmlPost: (
|
|
463
|
-
// verify required parameter '
|
|
464
|
-
(0, common_1.assertParamExists)('sendValidateXmlPost', '
|
|
499
|
+
sendValidateXmlPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
500
|
+
// verify required parameter 'body' is not null or undefined
|
|
501
|
+
(0, common_1.assertParamExists)('sendValidateXmlPost', 'body', body);
|
|
465
502
|
const localVarPath = `/send/validate/xml`;
|
|
466
503
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
467
504
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -480,7 +517,7 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
480
517
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
481
518
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
482
519
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
483
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
520
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
484
521
|
return {
|
|
485
522
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
486
523
|
options: localVarRequestOptions,
|
|
@@ -489,15 +526,15 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
489
526
|
/**
|
|
490
527
|
* 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).
|
|
491
528
|
* @summary Add an invoice by xml
|
|
492
|
-
* @param {
|
|
529
|
+
* @param {object} body
|
|
493
530
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
494
531
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
495
532
|
* @param {*} [options] Override http request option.
|
|
496
533
|
* @throws {RequiredError}
|
|
497
534
|
*/
|
|
498
|
-
sendXmlPost: (
|
|
499
|
-
// verify required parameter '
|
|
500
|
-
(0, common_1.assertParamExists)('sendXmlPost', '
|
|
535
|
+
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 = {}) {
|
|
536
|
+
// verify required parameter 'body' is not null or undefined
|
|
537
|
+
(0, common_1.assertParamExists)('sendXmlPost', 'body', body);
|
|
501
538
|
const localVarPath = `/send/xml`;
|
|
502
539
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
503
540
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -522,7 +559,7 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
522
559
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
523
560
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
524
561
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
525
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
562
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
526
563
|
return {
|
|
527
564
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
528
565
|
options: localVarRequestOptions,
|
|
@@ -556,7 +593,7 @@ const SendApiFp = function (configuration) {
|
|
|
556
593
|
});
|
|
557
594
|
},
|
|
558
595
|
/**
|
|
559
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
596
|
+
* 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/).
|
|
560
597
|
* @summary List invoices
|
|
561
598
|
* @param {number} [companyId] Company id
|
|
562
599
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -574,13 +611,14 @@ const SendApiFp = function (configuration) {
|
|
|
574
611
|
* @param {number} [page] Page number.
|
|
575
612
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
576
613
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
614
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
577
615
|
* @param {*} [options] Override http request option.
|
|
578
616
|
* @throws {RequiredError}
|
|
579
617
|
*/
|
|
580
|
-
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
618
|
+
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
581
619
|
return __awaiter(this, void 0, void 0, function* () {
|
|
582
620
|
var _a, _b, _c;
|
|
583
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
|
|
621
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
|
|
584
622
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
585
623
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
586
624
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -603,6 +641,22 @@ const SendApiFp = function (configuration) {
|
|
|
603
641
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
604
642
|
});
|
|
605
643
|
},
|
|
644
|
+
/**
|
|
645
|
+
* 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.
|
|
646
|
+
* @summary Get a send invoice payload by id
|
|
647
|
+
* @param {number} id Item id
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
*/
|
|
651
|
+
sendIdPayloadGet(id, options) {
|
|
652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
653
|
+
var _a, _b, _c;
|
|
654
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendIdPayloadGet(id, options);
|
|
655
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
656
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendIdPayloadGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
657
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
658
|
+
});
|
|
659
|
+
},
|
|
606
660
|
/**
|
|
607
661
|
* 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/).
|
|
608
662
|
* @summary Get a invoice by identifier
|
|
@@ -623,16 +677,16 @@ const SendApiFp = function (configuration) {
|
|
|
623
677
|
/**
|
|
624
678
|
* 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).
|
|
625
679
|
* @summary Add an invoice by json
|
|
626
|
-
* @param {
|
|
680
|
+
* @param {object} body
|
|
627
681
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
628
682
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
629
683
|
* @param {*} [options] Override http request option.
|
|
630
684
|
* @throws {RequiredError}
|
|
631
685
|
*/
|
|
632
|
-
sendJsonPost(
|
|
686
|
+
sendJsonPost(body, validate, signature, options) {
|
|
633
687
|
return __awaiter(this, void 0, void 0, function* () {
|
|
634
688
|
var _a, _b, _c;
|
|
635
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(
|
|
689
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendJsonPost(body, validate, signature, options);
|
|
636
690
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
637
691
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
638
692
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -675,14 +729,14 @@ const SendApiFp = function (configuration) {
|
|
|
675
729
|
/**
|
|
676
730
|
* 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/).
|
|
677
731
|
* @summary Validate an invoice by json
|
|
678
|
-
* @param {
|
|
732
|
+
* @param {object} body
|
|
679
733
|
* @param {*} [options] Override http request option.
|
|
680
734
|
* @throws {RequiredError}
|
|
681
735
|
*/
|
|
682
|
-
sendValidateJsonPost(
|
|
736
|
+
sendValidateJsonPost(body, options) {
|
|
683
737
|
return __awaiter(this, void 0, void 0, function* () {
|
|
684
738
|
var _a, _b, _c;
|
|
685
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(
|
|
739
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateJsonPost(body, options);
|
|
686
740
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
687
741
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidateJsonPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
688
742
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -707,14 +761,14 @@ const SendApiFp = function (configuration) {
|
|
|
707
761
|
/**
|
|
708
762
|
* 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/).
|
|
709
763
|
* @summary Validate an invoice by xml
|
|
710
|
-
* @param {
|
|
764
|
+
* @param {object} body
|
|
711
765
|
* @param {*} [options] Override http request option.
|
|
712
766
|
* @throws {RequiredError}
|
|
713
767
|
*/
|
|
714
|
-
sendValidateXmlPost(
|
|
768
|
+
sendValidateXmlPost(body, options) {
|
|
715
769
|
return __awaiter(this, void 0, void 0, function* () {
|
|
716
770
|
var _a, _b, _c;
|
|
717
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(
|
|
771
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendValidateXmlPost(body, options);
|
|
718
772
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
719
773
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendValidateXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
720
774
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -723,16 +777,16 @@ const SendApiFp = function (configuration) {
|
|
|
723
777
|
/**
|
|
724
778
|
* 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).
|
|
725
779
|
* @summary Add an invoice by xml
|
|
726
|
-
* @param {
|
|
780
|
+
* @param {object} body
|
|
727
781
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
728
782
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
729
783
|
* @param {*} [options] Override http request option.
|
|
730
784
|
* @throws {RequiredError}
|
|
731
785
|
*/
|
|
732
|
-
sendXmlPost(
|
|
786
|
+
sendXmlPost(body, validate, signature, options) {
|
|
733
787
|
return __awaiter(this, void 0, void 0, function* () {
|
|
734
788
|
var _a, _b, _c;
|
|
735
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(
|
|
789
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendXmlPost(body, validate, signature, options);
|
|
736
790
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
737
791
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SendApi.sendXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
738
792
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -760,7 +814,7 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
760
814
|
return localVarFp.sendFilePost(file, validate, signature, options).then((request) => request(axios, basePath));
|
|
761
815
|
},
|
|
762
816
|
/**
|
|
763
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
817
|
+
* 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/).
|
|
764
818
|
* @summary List invoices
|
|
765
819
|
* @param {number} [companyId] Company id
|
|
766
820
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -778,11 +832,12 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
778
832
|
* @param {number} [page] Page number.
|
|
779
833
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
780
834
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
835
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
781
836
|
* @param {*} [options] Override http request option.
|
|
782
837
|
* @throws {RequiredError}
|
|
783
838
|
*/
|
|
784
|
-
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
785
|
-
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));
|
|
839
|
+
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
840
|
+
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));
|
|
786
841
|
},
|
|
787
842
|
/**
|
|
788
843
|
* 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/).
|
|
@@ -795,6 +850,16 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
795
850
|
sendIdGet(id, includePayload, options) {
|
|
796
851
|
return localVarFp.sendIdGet(id, includePayload, options).then((request) => request(axios, basePath));
|
|
797
852
|
},
|
|
853
|
+
/**
|
|
854
|
+
* 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.
|
|
855
|
+
* @summary Get a send invoice payload by id
|
|
856
|
+
* @param {number} id Item id
|
|
857
|
+
* @param {*} [options] Override http request option.
|
|
858
|
+
* @throws {RequiredError}
|
|
859
|
+
*/
|
|
860
|
+
sendIdPayloadGet(id, options) {
|
|
861
|
+
return localVarFp.sendIdPayloadGet(id, options).then((request) => request(axios, basePath));
|
|
862
|
+
},
|
|
798
863
|
/**
|
|
799
864
|
* 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/).
|
|
800
865
|
* @summary Get a invoice by identifier
|
|
@@ -809,14 +874,14 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
809
874
|
/**
|
|
810
875
|
* 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).
|
|
811
876
|
* @summary Add an invoice by json
|
|
812
|
-
* @param {
|
|
877
|
+
* @param {object} body
|
|
813
878
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
814
879
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
815
880
|
* @param {*} [options] Override http request option.
|
|
816
881
|
* @throws {RequiredError}
|
|
817
882
|
*/
|
|
818
|
-
sendJsonPost(
|
|
819
|
-
return localVarFp.sendJsonPost(
|
|
883
|
+
sendJsonPost(body, validate, signature, options) {
|
|
884
|
+
return localVarFp.sendJsonPost(body, validate, signature, options).then((request) => request(axios, basePath));
|
|
820
885
|
},
|
|
821
886
|
/**
|
|
822
887
|
* 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).
|
|
@@ -843,12 +908,12 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
843
908
|
/**
|
|
844
909
|
* 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/).
|
|
845
910
|
* @summary Validate an invoice by json
|
|
846
|
-
* @param {
|
|
911
|
+
* @param {object} body
|
|
847
912
|
* @param {*} [options] Override http request option.
|
|
848
913
|
* @throws {RequiredError}
|
|
849
914
|
*/
|
|
850
|
-
sendValidateJsonPost(
|
|
851
|
-
return localVarFp.sendValidateJsonPost(
|
|
915
|
+
sendValidateJsonPost(body, options) {
|
|
916
|
+
return localVarFp.sendValidateJsonPost(body, options).then((request) => request(axios, basePath));
|
|
852
917
|
},
|
|
853
918
|
/**
|
|
854
919
|
* 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/).
|
|
@@ -863,24 +928,24 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
863
928
|
/**
|
|
864
929
|
* 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/).
|
|
865
930
|
* @summary Validate an invoice by xml
|
|
866
|
-
* @param {
|
|
931
|
+
* @param {object} body
|
|
867
932
|
* @param {*} [options] Override http request option.
|
|
868
933
|
* @throws {RequiredError}
|
|
869
934
|
*/
|
|
870
|
-
sendValidateXmlPost(
|
|
871
|
-
return localVarFp.sendValidateXmlPost(
|
|
935
|
+
sendValidateXmlPost(body, options) {
|
|
936
|
+
return localVarFp.sendValidateXmlPost(body, options).then((request) => request(axios, basePath));
|
|
872
937
|
},
|
|
873
938
|
/**
|
|
874
939
|
* 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).
|
|
875
940
|
* @summary Add an invoice by xml
|
|
876
|
-
* @param {
|
|
941
|
+
* @param {object} body
|
|
877
942
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
878
943
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
879
944
|
* @param {*} [options] Override http request option.
|
|
880
945
|
* @throws {RequiredError}
|
|
881
946
|
*/
|
|
882
|
-
sendXmlPost(
|
|
883
|
-
return localVarFp.sendXmlPost(
|
|
947
|
+
sendXmlPost(body, validate, signature, options) {
|
|
948
|
+
return localVarFp.sendXmlPost(body, validate, signature, options).then((request) => request(axios, basePath));
|
|
884
949
|
},
|
|
885
950
|
};
|
|
886
951
|
};
|
|
@@ -902,7 +967,7 @@ class SendApi extends base_1.BaseAPI {
|
|
|
902
967
|
return (0, exports.SendApiFp)(this.configuration).sendFilePost(file, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
903
968
|
}
|
|
904
969
|
/**
|
|
905
|
-
* Retrieve a paginated list of send invoices. Results can be filtered by various criteria such as company, date ranges, and
|
|
970
|
+
* 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/).
|
|
906
971
|
* @summary List invoices
|
|
907
972
|
* @param {number} [companyId] Company id
|
|
908
973
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -920,11 +985,12 @@ class SendApi extends base_1.BaseAPI {
|
|
|
920
985
|
* @param {number} [page] Page number.
|
|
921
986
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
922
987
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
988
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
923
989
|
* @param {*} [options] Override http request option.
|
|
924
990
|
* @throws {RequiredError}
|
|
925
991
|
*/
|
|
926
|
-
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
927
|
-
return (0, exports.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));
|
|
992
|
+
sendGet(companyId, identifier, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
993
|
+
return (0, exports.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));
|
|
928
994
|
}
|
|
929
995
|
/**
|
|
930
996
|
* 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/).
|
|
@@ -937,6 +1003,16 @@ class SendApi extends base_1.BaseAPI {
|
|
|
937
1003
|
sendIdGet(id, includePayload, options) {
|
|
938
1004
|
return (0, exports.SendApiFp)(this.configuration).sendIdGet(id, includePayload, options).then((request) => request(this.axios, this.basePath));
|
|
939
1005
|
}
|
|
1006
|
+
/**
|
|
1007
|
+
* 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.
|
|
1008
|
+
* @summary Get a send invoice payload by id
|
|
1009
|
+
* @param {number} id Item id
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
*/
|
|
1013
|
+
sendIdPayloadGet(id, options) {
|
|
1014
|
+
return (0, exports.SendApiFp)(this.configuration).sendIdPayloadGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
1015
|
+
}
|
|
940
1016
|
/**
|
|
941
1017
|
* 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/).
|
|
942
1018
|
* @summary Get a invoice by identifier
|
|
@@ -951,14 +1027,14 @@ class SendApi extends base_1.BaseAPI {
|
|
|
951
1027
|
/**
|
|
952
1028
|
* 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).
|
|
953
1029
|
* @summary Add an invoice by json
|
|
954
|
-
* @param {
|
|
1030
|
+
* @param {object} body
|
|
955
1031
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
956
1032
|
* @param {SendJsonPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
957
1033
|
* @param {*} [options] Override http request option.
|
|
958
1034
|
* @throws {RequiredError}
|
|
959
1035
|
*/
|
|
960
|
-
sendJsonPost(
|
|
961
|
-
return (0, exports.SendApiFp)(this.configuration).sendJsonPost(
|
|
1036
|
+
sendJsonPost(body, validate, signature, options) {
|
|
1037
|
+
return (0, exports.SendApiFp)(this.configuration).sendJsonPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
962
1038
|
}
|
|
963
1039
|
/**
|
|
964
1040
|
* 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).
|
|
@@ -985,12 +1061,12 @@ class SendApi extends base_1.BaseAPI {
|
|
|
985
1061
|
/**
|
|
986
1062
|
* 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/).
|
|
987
1063
|
* @summary Validate an invoice by json
|
|
988
|
-
* @param {
|
|
1064
|
+
* @param {object} body
|
|
989
1065
|
* @param {*} [options] Override http request option.
|
|
990
1066
|
* @throws {RequiredError}
|
|
991
1067
|
*/
|
|
992
|
-
sendValidateJsonPost(
|
|
993
|
-
return (0, exports.SendApiFp)(this.configuration).sendValidateJsonPost(
|
|
1068
|
+
sendValidateJsonPost(body, options) {
|
|
1069
|
+
return (0, exports.SendApiFp)(this.configuration).sendValidateJsonPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
994
1070
|
}
|
|
995
1071
|
/**
|
|
996
1072
|
* 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/).
|
|
@@ -1005,24 +1081,24 @@ class SendApi extends base_1.BaseAPI {
|
|
|
1005
1081
|
/**
|
|
1006
1082
|
* 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/).
|
|
1007
1083
|
* @summary Validate an invoice by xml
|
|
1008
|
-
* @param {
|
|
1084
|
+
* @param {object} body
|
|
1009
1085
|
* @param {*} [options] Override http request option.
|
|
1010
1086
|
* @throws {RequiredError}
|
|
1011
1087
|
*/
|
|
1012
|
-
sendValidateXmlPost(
|
|
1013
|
-
return (0, exports.SendApiFp)(this.configuration).sendValidateXmlPost(
|
|
1088
|
+
sendValidateXmlPost(body, options) {
|
|
1089
|
+
return (0, exports.SendApiFp)(this.configuration).sendValidateXmlPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
1014
1090
|
}
|
|
1015
1091
|
/**
|
|
1016
1092
|
* 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).
|
|
1017
1093
|
* @summary Add an invoice by xml
|
|
1018
|
-
* @param {
|
|
1094
|
+
* @param {object} body
|
|
1019
1095
|
* @param {boolean} [validate] Validate the document first, and reject it on failure.
|
|
1020
1096
|
* @param {SendXmlPostSignatureEnum} [signature] Whether to digitally sign the document.
|
|
1021
1097
|
* @param {*} [options] Override http request option.
|
|
1022
1098
|
* @throws {RequiredError}
|
|
1023
1099
|
*/
|
|
1024
|
-
sendXmlPost(
|
|
1025
|
-
return (0, exports.SendApiFp)(this.configuration).sendXmlPost(
|
|
1100
|
+
sendXmlPost(body, validate, signature, options) {
|
|
1101
|
+
return (0, exports.SendApiFp)(this.configuration).sendXmlPost(body, validate, signature, options).then((request) => request(this.axios, this.basePath));
|
|
1026
1102
|
}
|
|
1027
1103
|
}
|
|
1028
1104
|
exports.SendApi = SendApi;
|