@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
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Invoicetronic API
|
|
6
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: info@invoicetronic.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const url_1 = require("url");
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("../../common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("../../base");
|
|
35
|
+
/**
|
|
36
|
+
* HealthApi - axios parameter creator
|
|
37
|
+
*/
|
|
38
|
+
const HealthApiAxiosParamCreator = function (configuration) {
|
|
39
|
+
return {
|
|
40
|
+
/**
|
|
41
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
42
|
+
* @summary Health check
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
healthGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
47
|
+
const localVarPath = `/health`;
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
55
|
+
const localVarHeaderParameter = {};
|
|
56
|
+
const localVarQueryParameter = {};
|
|
57
|
+
// authentication Basic required
|
|
58
|
+
// http basic authentication required
|
|
59
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
60
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
61
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
63
|
+
return {
|
|
64
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
65
|
+
options: localVarRequestOptions,
|
|
66
|
+
};
|
|
67
|
+
}),
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
|
|
71
|
+
/**
|
|
72
|
+
* HealthApi - functional programming interface
|
|
73
|
+
*/
|
|
74
|
+
const HealthApiFp = function (configuration) {
|
|
75
|
+
const localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
|
|
76
|
+
return {
|
|
77
|
+
/**
|
|
78
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
79
|
+
* @summary Health check
|
|
80
|
+
* @param {*} [options] Override http request option.
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
*/
|
|
83
|
+
healthGet(options) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
var _a, _b, _c;
|
|
86
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.healthGet(options);
|
|
87
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
88
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HealthApi.healthGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
89
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
exports.HealthApiFp = HealthApiFp;
|
|
95
|
+
/**
|
|
96
|
+
* HealthApi - factory interface
|
|
97
|
+
*/
|
|
98
|
+
const HealthApiFactory = function (configuration, basePath, axios) {
|
|
99
|
+
const localVarFp = (0, exports.HealthApiFp)(configuration);
|
|
100
|
+
return {
|
|
101
|
+
/**
|
|
102
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
103
|
+
* @summary Health check
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
healthGet(options) {
|
|
108
|
+
return localVarFp.healthGet(options).then((request) => request(axios, basePath));
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
exports.HealthApiFactory = HealthApiFactory;
|
|
113
|
+
/**
|
|
114
|
+
* HealthApi - object-oriented interface
|
|
115
|
+
*/
|
|
116
|
+
class HealthApi extends base_1.BaseAPI {
|
|
117
|
+
/**
|
|
118
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
119
|
+
* @summary Health check
|
|
120
|
+
* @param {*} [options] Override http request option.
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
*/
|
|
123
|
+
healthGet(options) {
|
|
124
|
+
return (0, exports.HealthApiFp)(this.configuration).healthGet(options).then((request) => request(this.axios, this.basePath));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.HealthApi = HealthApi;
|
|
@@ -18,7 +18,7 @@ import type { Receive } from '../../src/models';
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const ReceiveApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
20
|
/**
|
|
21
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
21
|
+
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
22
22
|
* @summary List incoming invoices
|
|
23
23
|
* @param {number} [companyId] Company id
|
|
24
24
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -37,10 +37,11 @@ export declare const ReceiveApiAxiosParamCreator: (configuration?: Configuration
|
|
|
37
37
|
* @param {number} [page] Page number.
|
|
38
38
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
39
39
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
40
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
40
41
|
* @param {*} [options] Override http request option.
|
|
41
42
|
* @throws {RequiredError}
|
|
42
43
|
*/
|
|
43
|
-
receiveGet: (companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
receiveGet: (companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
45
|
/**
|
|
45
46
|
* Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
46
47
|
* @summary Delete an incoming invoice by id
|
|
@@ -58,13 +59,21 @@ export declare const ReceiveApiAxiosParamCreator: (configuration?: Configuration
|
|
|
58
59
|
* @throws {RequiredError}
|
|
59
60
|
*/
|
|
60
61
|
receiveIdGet: (id: number, includePayload?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
|
+
/**
|
|
63
|
+
* Retrieve only the payload of a receive 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`. The invoice is marked as read (`is_read` = true) and counted as an operation, same as when retrieving the full invoice with `include_payload=true`.
|
|
64
|
+
* @summary Get a receive invoice payload by id
|
|
65
|
+
* @param {number} id Item id
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
receiveIdPayloadGet: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
70
|
};
|
|
62
71
|
/**
|
|
63
72
|
* ReceiveApi - functional programming interface
|
|
64
73
|
*/
|
|
65
74
|
export declare const ReceiveApiFp: (configuration?: Configuration) => {
|
|
66
75
|
/**
|
|
67
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
76
|
+
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
68
77
|
* @summary List incoming invoices
|
|
69
78
|
* @param {number} [companyId] Company id
|
|
70
79
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -83,10 +92,11 @@ export declare const ReceiveApiFp: (configuration?: Configuration) => {
|
|
|
83
92
|
* @param {number} [page] Page number.
|
|
84
93
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
85
94
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
95
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
86
96
|
* @param {*} [options] Override http request option.
|
|
87
97
|
* @throws {RequiredError}
|
|
88
98
|
*/
|
|
89
|
-
receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Receive>>>;
|
|
99
|
+
receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Receive>>>;
|
|
90
100
|
/**
|
|
91
101
|
* Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
92
102
|
* @summary Delete an incoming invoice by id
|
|
@@ -104,13 +114,21 @@ export declare const ReceiveApiFp: (configuration?: Configuration) => {
|
|
|
104
114
|
* @throws {RequiredError}
|
|
105
115
|
*/
|
|
106
116
|
receiveIdGet(id: number, includePayload?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Receive>>;
|
|
117
|
+
/**
|
|
118
|
+
* Retrieve only the payload of a receive 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`. The invoice is marked as read (`is_read` = true) and counted as an operation, same as when retrieving the full invoice with `include_payload=true`.
|
|
119
|
+
* @summary Get a receive invoice payload by id
|
|
120
|
+
* @param {number} id Item id
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
receiveIdPayloadGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
107
125
|
};
|
|
108
126
|
/**
|
|
109
127
|
* ReceiveApi - factory interface
|
|
110
128
|
*/
|
|
111
129
|
export declare const ReceiveApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
112
130
|
/**
|
|
113
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
131
|
+
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
114
132
|
* @summary List incoming invoices
|
|
115
133
|
* @param {number} [companyId] Company id
|
|
116
134
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -129,10 +147,11 @@ export declare const ReceiveApiFactory: (configuration?: Configuration, basePath
|
|
|
129
147
|
* @param {number} [page] Page number.
|
|
130
148
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
131
149
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
150
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
132
151
|
* @param {*} [options] Override http request option.
|
|
133
152
|
* @throws {RequiredError}
|
|
134
153
|
*/
|
|
135
|
-
receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>>;
|
|
154
|
+
receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>>;
|
|
136
155
|
/**
|
|
137
156
|
* Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
138
157
|
* @summary Delete an incoming invoice by id
|
|
@@ -150,13 +169,21 @@ export declare const ReceiveApiFactory: (configuration?: Configuration, basePath
|
|
|
150
169
|
* @throws {RequiredError}
|
|
151
170
|
*/
|
|
152
171
|
receiveIdGet(id: number, includePayload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Receive>;
|
|
172
|
+
/**
|
|
173
|
+
* Retrieve only the payload of a receive 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`. The invoice is marked as read (`is_read` = true) and counted as an operation, same as when retrieving the full invoice with `include_payload=true`.
|
|
174
|
+
* @summary Get a receive invoice payload by id
|
|
175
|
+
* @param {number} id Item id
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
*/
|
|
179
|
+
receiveIdPayloadGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
153
180
|
};
|
|
154
181
|
/**
|
|
155
182
|
* ReceiveApi - interface
|
|
156
183
|
*/
|
|
157
184
|
export interface ReceiveApiInterface {
|
|
158
185
|
/**
|
|
159
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
186
|
+
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
160
187
|
* @summary List incoming invoices
|
|
161
188
|
* @param {number} [companyId] Company id
|
|
162
189
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -175,10 +202,11 @@ export interface ReceiveApiInterface {
|
|
|
175
202
|
* @param {number} [page] Page number.
|
|
176
203
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
177
204
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
205
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
178
206
|
* @param {*} [options] Override http request option.
|
|
179
207
|
* @throws {RequiredError}
|
|
180
208
|
*/
|
|
181
|
-
receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>>;
|
|
209
|
+
receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>>;
|
|
182
210
|
/**
|
|
183
211
|
* Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
184
212
|
* @summary Delete an incoming invoice by id
|
|
@@ -196,13 +224,21 @@ export interface ReceiveApiInterface {
|
|
|
196
224
|
* @throws {RequiredError}
|
|
197
225
|
*/
|
|
198
226
|
receiveIdGet(id: number, includePayload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Receive>;
|
|
227
|
+
/**
|
|
228
|
+
* Retrieve only the payload of a receive 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`. The invoice is marked as read (`is_read` = true) and counted as an operation, same as when retrieving the full invoice with `include_payload=true`.
|
|
229
|
+
* @summary Get a receive invoice payload by id
|
|
230
|
+
* @param {number} id Item id
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
*/
|
|
234
|
+
receiveIdPayloadGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
199
235
|
}
|
|
200
236
|
/**
|
|
201
237
|
* ReceiveApi - object-oriented interface
|
|
202
238
|
*/
|
|
203
239
|
export declare class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
|
|
204
240
|
/**
|
|
205
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
241
|
+
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
206
242
|
* @summary List incoming invoices
|
|
207
243
|
* @param {number} [companyId] Company id
|
|
208
244
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -221,10 +257,11 @@ export declare class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
|
|
|
221
257
|
* @param {number} [page] Page number.
|
|
222
258
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
223
259
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
260
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
224
261
|
* @param {*} [options] Override http request option.
|
|
225
262
|
* @throws {RequiredError}
|
|
226
263
|
*/
|
|
227
|
-
receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Receive[], any, {}>>;
|
|
264
|
+
receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Receive[], any, {}>>;
|
|
228
265
|
/**
|
|
229
266
|
* Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
230
267
|
* @summary Delete an incoming invoice by id
|
|
@@ -242,4 +279,12 @@ export declare class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
|
|
|
242
279
|
* @throws {RequiredError}
|
|
243
280
|
*/
|
|
244
281
|
receiveIdGet(id: number, includePayload?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Receive, any, {}>>;
|
|
282
|
+
/**
|
|
283
|
+
* Retrieve only the payload of a receive 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`. The invoice is marked as read (`is_read` = true) and counted as an operation, same as when retrieving the full invoice with `include_payload=true`.
|
|
284
|
+
* @summary Get a receive invoice payload by id
|
|
285
|
+
* @param {number} id Item id
|
|
286
|
+
* @param {*} [options] Override http request option.
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
*/
|
|
289
|
+
receiveIdPayloadGet(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
245
290
|
}
|
|
@@ -38,7 +38,7 @@ const base_1 = require("../../base");
|
|
|
38
38
|
const ReceiveApiAxiosParamCreator = function (configuration) {
|
|
39
39
|
return {
|
|
40
40
|
/**
|
|
41
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
41
|
+
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
42
42
|
* @summary List incoming invoices
|
|
43
43
|
* @param {number} [companyId] Company id
|
|
44
44
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -57,10 +57,11 @@ const ReceiveApiAxiosParamCreator = function (configuration) {
|
|
|
57
57
|
* @param {number} [page] Page number.
|
|
58
58
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
59
59
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
60
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
60
61
|
* @param {*} [options] Override http request option.
|
|
61
62
|
* @throws {RequiredError}
|
|
62
63
|
*/
|
|
63
|
-
receiveGet: (companyId_1, identifier_1, unread_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, unread_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, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options = {}) {
|
|
64
|
+
receiveGet: (companyId_1, identifier_1, unread_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, unread_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, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options = {}) {
|
|
64
65
|
const localVarPath = `/receive`;
|
|
65
66
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
66
67
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -137,6 +138,9 @@ const ReceiveApiAxiosParamCreator = function (configuration) {
|
|
|
137
138
|
if (sort !== undefined) {
|
|
138
139
|
localVarQueryParameter['sort'] = sort;
|
|
139
140
|
}
|
|
141
|
+
if (q !== undefined) {
|
|
142
|
+
localVarQueryParameter['q'] = q;
|
|
143
|
+
}
|
|
140
144
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
141
145
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
142
146
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -216,6 +220,39 @@ const ReceiveApiAxiosParamCreator = function (configuration) {
|
|
|
216
220
|
options: localVarRequestOptions,
|
|
217
221
|
};
|
|
218
222
|
}),
|
|
223
|
+
/**
|
|
224
|
+
* Retrieve only the payload of a receive 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`. The invoice is marked as read (`is_read` = true) and counted as an operation, same as when retrieving the full invoice with `include_payload=true`.
|
|
225
|
+
* @summary Get a receive invoice payload by id
|
|
226
|
+
* @param {number} id Item id
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
receiveIdPayloadGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
231
|
+
// verify required parameter 'id' is not null or undefined
|
|
232
|
+
(0, common_1.assertParamExists)('receiveIdPayloadGet', 'id', id);
|
|
233
|
+
const localVarPath = `/receive/{id}/payload`
|
|
234
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
235
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
236
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
237
|
+
let baseOptions;
|
|
238
|
+
if (configuration) {
|
|
239
|
+
baseOptions = configuration.baseOptions;
|
|
240
|
+
}
|
|
241
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
242
|
+
const localVarHeaderParameter = {};
|
|
243
|
+
const localVarQueryParameter = {};
|
|
244
|
+
// authentication Basic required
|
|
245
|
+
// http basic authentication required
|
|
246
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
247
|
+
localVarHeaderParameter['Accept'] = 'application/problem+json';
|
|
248
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
249
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
250
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
251
|
+
return {
|
|
252
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
253
|
+
options: localVarRequestOptions,
|
|
254
|
+
};
|
|
255
|
+
}),
|
|
219
256
|
};
|
|
220
257
|
};
|
|
221
258
|
exports.ReceiveApiAxiosParamCreator = ReceiveApiAxiosParamCreator;
|
|
@@ -226,7 +263,7 @@ const ReceiveApiFp = function (configuration) {
|
|
|
226
263
|
const localVarAxiosParamCreator = (0, exports.ReceiveApiAxiosParamCreator)(configuration);
|
|
227
264
|
return {
|
|
228
265
|
/**
|
|
229
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
266
|
+
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
230
267
|
* @summary List incoming invoices
|
|
231
268
|
* @param {number} [companyId] Company id
|
|
232
269
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -245,13 +282,14 @@ const ReceiveApiFp = function (configuration) {
|
|
|
245
282
|
* @param {number} [page] Page number.
|
|
246
283
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
247
284
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
285
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
248
286
|
* @param {*} [options] Override http request option.
|
|
249
287
|
* @throws {RequiredError}
|
|
250
288
|
*/
|
|
251
|
-
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
289
|
+
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
252
290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
253
291
|
var _a, _b, _c;
|
|
254
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
|
|
292
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
|
|
255
293
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
256
294
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReceiveApi.receiveGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
257
295
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -290,6 +328,22 @@ const ReceiveApiFp = function (configuration) {
|
|
|
290
328
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
291
329
|
});
|
|
292
330
|
},
|
|
331
|
+
/**
|
|
332
|
+
* Retrieve only the payload of a receive 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`. The invoice is marked as read (`is_read` = true) and counted as an operation, same as when retrieving the full invoice with `include_payload=true`.
|
|
333
|
+
* @summary Get a receive invoice payload by id
|
|
334
|
+
* @param {number} id Item id
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
receiveIdPayloadGet(id, options) {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
340
|
+
var _a, _b, _c;
|
|
341
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.receiveIdPayloadGet(id, options);
|
|
342
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
343
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReceiveApi.receiveIdPayloadGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
344
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
345
|
+
});
|
|
346
|
+
},
|
|
293
347
|
};
|
|
294
348
|
};
|
|
295
349
|
exports.ReceiveApiFp = ReceiveApiFp;
|
|
@@ -300,7 +354,7 @@ const ReceiveApiFactory = function (configuration, basePath, axios) {
|
|
|
300
354
|
const localVarFp = (0, exports.ReceiveApiFp)(configuration);
|
|
301
355
|
return {
|
|
302
356
|
/**
|
|
303
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
357
|
+
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
304
358
|
* @summary List incoming invoices
|
|
305
359
|
* @param {number} [companyId] Company id
|
|
306
360
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -319,11 +373,12 @@ const ReceiveApiFactory = function (configuration, basePath, axios) {
|
|
|
319
373
|
* @param {number} [page] Page number.
|
|
320
374
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
321
375
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
376
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
322
377
|
* @param {*} [options] Override http request option.
|
|
323
378
|
* @throws {RequiredError}
|
|
324
379
|
*/
|
|
325
|
-
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
326
|
-
return localVarFp.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(axios, basePath));
|
|
380
|
+
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
381
|
+
return localVarFp.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(axios, basePath));
|
|
327
382
|
},
|
|
328
383
|
/**
|
|
329
384
|
* Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -346,6 +401,16 @@ const ReceiveApiFactory = function (configuration, basePath, axios) {
|
|
|
346
401
|
receiveIdGet(id, includePayload, options) {
|
|
347
402
|
return localVarFp.receiveIdGet(id, includePayload, options).then((request) => request(axios, basePath));
|
|
348
403
|
},
|
|
404
|
+
/**
|
|
405
|
+
* Retrieve only the payload of a receive 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`. The invoice is marked as read (`is_read` = true) and counted as an operation, same as when retrieving the full invoice with `include_payload=true`.
|
|
406
|
+
* @summary Get a receive invoice payload by id
|
|
407
|
+
* @param {number} id Item id
|
|
408
|
+
* @param {*} [options] Override http request option.
|
|
409
|
+
* @throws {RequiredError}
|
|
410
|
+
*/
|
|
411
|
+
receiveIdPayloadGet(id, options) {
|
|
412
|
+
return localVarFp.receiveIdPayloadGet(id, options).then((request) => request(axios, basePath));
|
|
413
|
+
},
|
|
349
414
|
};
|
|
350
415
|
};
|
|
351
416
|
exports.ReceiveApiFactory = ReceiveApiFactory;
|
|
@@ -354,7 +419,7 @@ exports.ReceiveApiFactory = ReceiveApiFactory;
|
|
|
354
419
|
*/
|
|
355
420
|
class ReceiveApi extends base_1.BaseAPI {
|
|
356
421
|
/**
|
|
357
|
-
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and
|
|
422
|
+
* Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
358
423
|
* @summary List incoming invoices
|
|
359
424
|
* @param {number} [companyId] Company id
|
|
360
425
|
* @param {string} [identifier] SDI identifier.
|
|
@@ -373,11 +438,12 @@ class ReceiveApi extends base_1.BaseAPI {
|
|
|
373
438
|
* @param {number} [page] Page number.
|
|
374
439
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
375
440
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
441
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
376
442
|
* @param {*} [options] Override http request option.
|
|
377
443
|
* @throws {RequiredError}
|
|
378
444
|
*/
|
|
379
|
-
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options) {
|
|
380
|
-
return (0, exports.ReceiveApiFp)(this.configuration).receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
|
|
445
|
+
receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options) {
|
|
446
|
+
return (0, exports.ReceiveApiFp)(this.configuration).receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
|
|
381
447
|
}
|
|
382
448
|
/**
|
|
383
449
|
* Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
|
|
@@ -400,5 +466,15 @@ class ReceiveApi extends base_1.BaseAPI {
|
|
|
400
466
|
receiveIdGet(id, includePayload, options) {
|
|
401
467
|
return (0, exports.ReceiveApiFp)(this.configuration).receiveIdGet(id, includePayload, options).then((request) => request(this.axios, this.basePath));
|
|
402
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* Retrieve only the payload of a receive 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`. The invoice is marked as read (`is_read` = true) and counted as an operation, same as when retrieving the full invoice with `include_payload=true`.
|
|
471
|
+
* @summary Get a receive invoice payload by id
|
|
472
|
+
* @param {number} id Item id
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
receiveIdPayloadGet(id, options) {
|
|
477
|
+
return (0, exports.ReceiveApiFp)(this.configuration).receiveIdPayloadGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
478
|
+
}
|
|
403
479
|
}
|
|
404
480
|
exports.ReceiveApi = ReceiveApi;
|