@invoicetronic/ts-sdk 1.3.0 → 1.4.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/common.ts +2 -1
- package/configuration.ts +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.js +1 -1
- 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 +40 -0
- package/dist/esm/src/api/company-api.js +69 -0
- package/dist/esm/src/api/receive-api.d.ts +40 -0
- package/dist/esm/src/api/receive-api.js +69 -0
- package/dist/esm/src/api/send-api.d.ts +40 -0
- package/dist/esm/src/api/send-api.js +69 -0
- package/dist/esm/src/models/event.d.ts +3 -0
- package/dist/esm/src/models/index.d.ts +0 -52
- package/dist/esm/src/models/index.js +0 -52
- package/dist/esm/src/models/receive.d.ts +3 -0
- package/dist/esm/src/models/send.d.ts +3 -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 +40 -0
- package/dist/src/api/company-api.js +69 -0
- package/dist/src/api/receive-api.d.ts +40 -0
- package/dist/src/api/receive-api.js +69 -0
- package/dist/src/api/send-api.d.ts +40 -0
- package/dist/src/api/send-api.js +69 -0
- package/dist/src/models/event.d.ts +3 -0
- package/dist/src/models/index.d.ts +0 -52
- package/dist/src/models/index.js +0 -52
- package/dist/src/models/receive.d.ts +3 -0
- package/dist/src/models/send.d.ts +3 -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 +54 -0
- package/docs/Event.md +1 -0
- package/docs/Receive.md +1 -0
- package/docs/ReceiveApi.md +53 -0
- package/docs/Send.md +1 -0
- package/docs/SendApi.md +53 -0
- package/docs/Status.md +1 -0
- package/docs/Update.md +1 -0
- package/docs/WebHook.md +1 -0
- package/package.json +1 -1
- package/src/api/company-api.ts +81 -0
- package/src/api/receive-api.ts +83 -0
- package/src/api/send-api.ts +81 -0
- package/src/models/event.ts +3 -0
- package/src/models/index.ts +0 -52
- package/src/models/receive.ts +3 -0
- package/src/models/send.ts +3 -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/document-data.d.ts +0 -15
- package/dist/esm/src/models/document-data.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/model-error.d.ts +0 -28
- package/dist/esm/src/models/model-error.js +0 -14
- package/dist/esm/src/models/problem-details.d.ts +0 -19
- package/dist/esm/src/models/problem-details.js +0 -14
- package/dist/esm/src/models/problem-http-result.d.ts +0 -17
- package/dist/esm/src/models/problem-http-result.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/send-reduced.d.ts +0 -39
- package/dist/esm/src/models/send-reduced.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/document-data.d.ts +0 -15
- package/dist/src/models/document-data.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/model-error.d.ts +0 -28
- package/dist/src/models/model-error.js +0 -15
- package/dist/src/models/problem-details.d.ts +0 -19
- package/dist/src/models/problem-details.js +0 -15
- package/dist/src/models/problem-http-result.d.ts +0 -17
- package/dist/src/models/problem-http-result.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/send-reduced.d.ts +0 -39
- package/dist/src/models/send-reduced.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/DocumentData.md +0 -22
- package/docs/Error.md +0 -25
- 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/ProblemDetails.md +0 -28
- package/docs/ProblemHttpResult.md +0 -24
- 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/SendReduced.md +0 -29
- 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/document-data.ts +0 -21
- 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/model-error.ts +0 -34
- package/src/models/problem-details.ts +0 -26
- package/src/models/problem-http-result.ts +0 -25
- 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/send-reduced.ts +0 -45
- 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
|
@@ -225,6 +225,39 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
225
225
|
options: localVarRequestOptions,
|
|
226
226
|
};
|
|
227
227
|
}),
|
|
228
|
+
/**
|
|
229
|
+
* 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.
|
|
230
|
+
* @summary Get a send invoice payload by id
|
|
231
|
+
* @param {number} id Item id
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
sendIdPayloadGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
236
|
+
// verify required parameter 'id' is not null or undefined
|
|
237
|
+
(0, common_1.assertParamExists)('sendIdPayloadGet', 'id', id);
|
|
238
|
+
const localVarPath = `/send/{id}/payload`
|
|
239
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
240
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
241
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
242
|
+
let baseOptions;
|
|
243
|
+
if (configuration) {
|
|
244
|
+
baseOptions = configuration.baseOptions;
|
|
245
|
+
}
|
|
246
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
247
|
+
const localVarHeaderParameter = {};
|
|
248
|
+
const localVarQueryParameter = {};
|
|
249
|
+
// authentication Basic required
|
|
250
|
+
// http basic authentication required
|
|
251
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
252
|
+
localVarHeaderParameter['Accept'] = 'application/problem+json';
|
|
253
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
255
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
256
|
+
return {
|
|
257
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
258
|
+
options: localVarRequestOptions,
|
|
259
|
+
};
|
|
260
|
+
}),
|
|
228
261
|
/**
|
|
229
262
|
* 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
263
|
* @summary Get a invoice by identifier
|
|
@@ -603,6 +636,22 @@ const SendApiFp = function (configuration) {
|
|
|
603
636
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
604
637
|
});
|
|
605
638
|
},
|
|
639
|
+
/**
|
|
640
|
+
* 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.
|
|
641
|
+
* @summary Get a send invoice payload by id
|
|
642
|
+
* @param {number} id Item id
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
sendIdPayloadGet(id, options) {
|
|
647
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
648
|
+
var _a, _b, _c;
|
|
649
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendIdPayloadGet(id, options);
|
|
650
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
651
|
+
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;
|
|
652
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
653
|
+
});
|
|
654
|
+
},
|
|
606
655
|
/**
|
|
607
656
|
* 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
657
|
* @summary Get a invoice by identifier
|
|
@@ -795,6 +844,16 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
795
844
|
sendIdGet(id, includePayload, options) {
|
|
796
845
|
return localVarFp.sendIdGet(id, includePayload, options).then((request) => request(axios, basePath));
|
|
797
846
|
},
|
|
847
|
+
/**
|
|
848
|
+
* 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.
|
|
849
|
+
* @summary Get a send invoice payload by id
|
|
850
|
+
* @param {number} id Item id
|
|
851
|
+
* @param {*} [options] Override http request option.
|
|
852
|
+
* @throws {RequiredError}
|
|
853
|
+
*/
|
|
854
|
+
sendIdPayloadGet(id, options) {
|
|
855
|
+
return localVarFp.sendIdPayloadGet(id, options).then((request) => request(axios, basePath));
|
|
856
|
+
},
|
|
798
857
|
/**
|
|
799
858
|
* 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
859
|
* @summary Get a invoice by identifier
|
|
@@ -937,6 +996,16 @@ class SendApi extends base_1.BaseAPI {
|
|
|
937
996
|
sendIdGet(id, includePayload, options) {
|
|
938
997
|
return (0, exports.SendApiFp)(this.configuration).sendIdGet(id, includePayload, options).then((request) => request(this.axios, this.basePath));
|
|
939
998
|
}
|
|
999
|
+
/**
|
|
1000
|
+
* 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.
|
|
1001
|
+
* @summary Get a send invoice payload by id
|
|
1002
|
+
* @param {number} id Item id
|
|
1003
|
+
* @param {*} [options] Override http request option.
|
|
1004
|
+
* @throws {RequiredError}
|
|
1005
|
+
*/
|
|
1006
|
+
sendIdPayloadGet(id, options) {
|
|
1007
|
+
return (0, exports.SendApiFp)(this.configuration).sendIdPayloadGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
1008
|
+
}
|
|
940
1009
|
/**
|
|
941
1010
|
* 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
1011
|
* @summary Get a invoice by identifier
|
|
@@ -1,60 +1,8 @@
|
|
|
1
|
-
export * from './allegati';
|
|
2
|
-
export * from './altri-dati-gestionali';
|
|
3
|
-
export * from './anagrafica';
|
|
4
|
-
export * from './cedente-prestatore';
|
|
5
|
-
export * from './cessionario-committente';
|
|
6
|
-
export * from './codice-articolo';
|
|
7
1
|
export * from './company';
|
|
8
|
-
export * from './contatti';
|
|
9
|
-
export * from './contatti-trasmittente';
|
|
10
|
-
export * from './dati-anagrafici';
|
|
11
|
-
export * from './dati-anagrafici-cedente-prestatore';
|
|
12
|
-
export * from './dati-anagrafici-cessionario-committente';
|
|
13
|
-
export * from './dati-anagrafici-vettore';
|
|
14
|
-
export * from './dati-beni-servizi';
|
|
15
|
-
export * from './dati-bollo';
|
|
16
|
-
export * from './dati-cassa-previdenziale';
|
|
17
|
-
export * from './dati-contratto';
|
|
18
|
-
export * from './dati-convenzione';
|
|
19
|
-
export * from './dati-ddt';
|
|
20
|
-
export * from './dati-fatture-collegate';
|
|
21
|
-
export * from './dati-generali';
|
|
22
|
-
export * from './dati-generali-documento';
|
|
23
|
-
export * from './dati-ordine-acquisto';
|
|
24
|
-
export * from './dati-pagamento';
|
|
25
|
-
export * from './dati-ricezione';
|
|
26
|
-
export * from './dati-riepilogo';
|
|
27
|
-
export * from './dati-ritenuta';
|
|
28
|
-
export * from './dati-sal';
|
|
29
|
-
export * from './dati-trasmissione';
|
|
30
|
-
export * from './dati-trasporto';
|
|
31
|
-
export * from './dati-veicoli';
|
|
32
|
-
export * from './dettaglio-linee';
|
|
33
|
-
export * from './dettaglio-pagamento';
|
|
34
|
-
export * from './document-data';
|
|
35
2
|
export * from './event';
|
|
36
|
-
export * from './fattura-elettronica-body';
|
|
37
|
-
export * from './fattura-elettronica-header';
|
|
38
|
-
export * from './fattura-ordinaria';
|
|
39
|
-
export * from './fattura-principale';
|
|
40
|
-
export * from './id-fiscale-iva';
|
|
41
|
-
export * from './id-trasmittente';
|
|
42
|
-
export * from './indirizzo-resa';
|
|
43
|
-
export * from './iscrizione-rea';
|
|
44
|
-
export * from './model-error';
|
|
45
|
-
export * from './problem-details';
|
|
46
|
-
export * from './problem-http-result';
|
|
47
|
-
export * from './rappresentante-fiscale';
|
|
48
|
-
export * from './rappresentante-fiscale-cessionario-committente';
|
|
49
3
|
export * from './receive';
|
|
50
|
-
export * from './sconto-maggiorazione';
|
|
51
|
-
export * from './sede-cedente-prestatore';
|
|
52
|
-
export * from './sede-cessionario-committente';
|
|
53
4
|
export * from './send';
|
|
54
|
-
export * from './send-reduced';
|
|
55
|
-
export * from './stabile-organizzazione';
|
|
56
5
|
export * from './status';
|
|
57
|
-
export * from './terzo-intermediario-osoggetto-emittente';
|
|
58
6
|
export * from './update';
|
|
59
7
|
export * from './web-hook';
|
|
60
8
|
export * from './web-hook-history';
|
package/dist/src/models/index.js
CHANGED
|
@@ -14,63 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./allegati"), exports);
|
|
18
|
-
__exportStar(require("./altri-dati-gestionali"), exports);
|
|
19
|
-
__exportStar(require("./anagrafica"), exports);
|
|
20
|
-
__exportStar(require("./cedente-prestatore"), exports);
|
|
21
|
-
__exportStar(require("./cessionario-committente"), exports);
|
|
22
|
-
__exportStar(require("./codice-articolo"), exports);
|
|
23
17
|
__exportStar(require("./company"), exports);
|
|
24
|
-
__exportStar(require("./contatti"), exports);
|
|
25
|
-
__exportStar(require("./contatti-trasmittente"), exports);
|
|
26
|
-
__exportStar(require("./dati-anagrafici"), exports);
|
|
27
|
-
__exportStar(require("./dati-anagrafici-cedente-prestatore"), exports);
|
|
28
|
-
__exportStar(require("./dati-anagrafici-cessionario-committente"), exports);
|
|
29
|
-
__exportStar(require("./dati-anagrafici-vettore"), exports);
|
|
30
|
-
__exportStar(require("./dati-beni-servizi"), exports);
|
|
31
|
-
__exportStar(require("./dati-bollo"), exports);
|
|
32
|
-
__exportStar(require("./dati-cassa-previdenziale"), exports);
|
|
33
|
-
__exportStar(require("./dati-contratto"), exports);
|
|
34
|
-
__exportStar(require("./dati-convenzione"), exports);
|
|
35
|
-
__exportStar(require("./dati-ddt"), exports);
|
|
36
|
-
__exportStar(require("./dati-fatture-collegate"), exports);
|
|
37
|
-
__exportStar(require("./dati-generali"), exports);
|
|
38
|
-
__exportStar(require("./dati-generali-documento"), exports);
|
|
39
|
-
__exportStar(require("./dati-ordine-acquisto"), exports);
|
|
40
|
-
__exportStar(require("./dati-pagamento"), exports);
|
|
41
|
-
__exportStar(require("./dati-ricezione"), exports);
|
|
42
|
-
__exportStar(require("./dati-riepilogo"), exports);
|
|
43
|
-
__exportStar(require("./dati-ritenuta"), exports);
|
|
44
|
-
__exportStar(require("./dati-sal"), exports);
|
|
45
|
-
__exportStar(require("./dati-trasmissione"), exports);
|
|
46
|
-
__exportStar(require("./dati-trasporto"), exports);
|
|
47
|
-
__exportStar(require("./dati-veicoli"), exports);
|
|
48
|
-
__exportStar(require("./dettaglio-linee"), exports);
|
|
49
|
-
__exportStar(require("./dettaglio-pagamento"), exports);
|
|
50
|
-
__exportStar(require("./document-data"), exports);
|
|
51
18
|
__exportStar(require("./event"), exports);
|
|
52
|
-
__exportStar(require("./fattura-elettronica-body"), exports);
|
|
53
|
-
__exportStar(require("./fattura-elettronica-header"), exports);
|
|
54
|
-
__exportStar(require("./fattura-ordinaria"), exports);
|
|
55
|
-
__exportStar(require("./fattura-principale"), exports);
|
|
56
|
-
__exportStar(require("./id-fiscale-iva"), exports);
|
|
57
|
-
__exportStar(require("./id-trasmittente"), exports);
|
|
58
|
-
__exportStar(require("./indirizzo-resa"), exports);
|
|
59
|
-
__exportStar(require("./iscrizione-rea"), exports);
|
|
60
|
-
__exportStar(require("./model-error"), exports);
|
|
61
|
-
__exportStar(require("./problem-details"), exports);
|
|
62
|
-
__exportStar(require("./problem-http-result"), exports);
|
|
63
|
-
__exportStar(require("./rappresentante-fiscale"), exports);
|
|
64
|
-
__exportStar(require("./rappresentante-fiscale-cessionario-committente"), exports);
|
|
65
19
|
__exportStar(require("./receive"), exports);
|
|
66
|
-
__exportStar(require("./sconto-maggiorazione"), exports);
|
|
67
|
-
__exportStar(require("./sede-cedente-prestatore"), exports);
|
|
68
|
-
__exportStar(require("./sede-cessionario-committente"), exports);
|
|
69
20
|
__exportStar(require("./send"), exports);
|
|
70
|
-
__exportStar(require("./send-reduced"), exports);
|
|
71
|
-
__exportStar(require("./stabile-organizzazione"), exports);
|
|
72
21
|
__exportStar(require("./status"), exports);
|
|
73
|
-
__exportStar(require("./terzo-intermediario-osoggetto-emittente"), exports);
|
|
74
22
|
__exportStar(require("./update"), exports);
|
|
75
23
|
__exportStar(require("./web-hook"), exports);
|
|
76
24
|
__exportStar(require("./web-hook-history"), exports);
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DocumentData } from './document-data';
|
|
13
|
+
/**
|
|
14
|
+
* A received invoice.
|
|
15
|
+
*/
|
|
13
16
|
export interface Receive {
|
|
14
17
|
/**
|
|
15
18
|
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Company } from './company';
|
|
13
13
|
import type { DocumentData } from './document-data';
|
|
14
|
+
/**
|
|
15
|
+
* A sent invoice.
|
|
16
|
+
*/
|
|
14
17
|
export interface Send {
|
|
15
18
|
/**
|
|
16
19
|
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SendReduced } from './send-reduced';
|
|
13
|
+
/**
|
|
14
|
+
* An SDI status update for a sent invoice.
|
|
15
|
+
*/
|
|
13
16
|
export interface Update {
|
|
14
17
|
/**
|
|
15
18
|
* Unique identifier. Leave it at 0 for new records as it will be set automatically.
|
package/docs/CompanyApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost*
|
|
|
9
9
|
|[**companyIdGet**](#companyidget) | **GET** /company/{id} | Get a company by id|
|
|
10
10
|
|[**companyPost**](#companypost) | **POST** /company | Add a company|
|
|
11
11
|
|[**companyPut**](#companyput) | **PUT** /company | Update a company|
|
|
12
|
+
|[**companyVatGet**](#companyvatget) | **GET** /company/{vat} | Get a company by vat number|
|
|
12
13
|
|
|
13
14
|
# **companyGet**
|
|
14
15
|
> Array<Company> companyGet()
|
|
@@ -287,3 +288,56 @@ const { status, data } = await apiInstance.companyPut(
|
|
|
287
288
|
|
|
288
289
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
289
290
|
|
|
291
|
+
# **companyVatGet**
|
|
292
|
+
> Company companyVatGet()
|
|
293
|
+
|
|
294
|
+
Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
295
|
+
|
|
296
|
+
### Example
|
|
297
|
+
|
|
298
|
+
```typescript
|
|
299
|
+
import {
|
|
300
|
+
CompanyApi,
|
|
301
|
+
Configuration
|
|
302
|
+
} from '@invoicetronic/ts-sdk';
|
|
303
|
+
|
|
304
|
+
const configuration = new Configuration();
|
|
305
|
+
const apiInstance = new CompanyApi(configuration);
|
|
306
|
+
|
|
307
|
+
let vat: string; // (default to undefined)
|
|
308
|
+
|
|
309
|
+
const { status, data } = await apiInstance.companyVatGet(
|
|
310
|
+
vat
|
|
311
|
+
);
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
### Parameters
|
|
315
|
+
|
|
316
|
+
|Name | Type | Description | Notes|
|
|
317
|
+
|------------- | ------------- | ------------- | -------------|
|
|
318
|
+
| **vat** | [**string**] | | defaults to undefined|
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
### Return type
|
|
322
|
+
|
|
323
|
+
**Company**
|
|
324
|
+
|
|
325
|
+
### Authorization
|
|
326
|
+
|
|
327
|
+
[Basic](../README.md#Basic)
|
|
328
|
+
|
|
329
|
+
### HTTP request headers
|
|
330
|
+
|
|
331
|
+
- **Content-Type**: Not defined
|
|
332
|
+
- **Accept**: application/json
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
### HTTP response details
|
|
336
|
+
| Status code | Description | Response headers |
|
|
337
|
+
|-------------|-------------|------------------|
|
|
338
|
+
|**200** | OK | - |
|
|
339
|
+
|**404** | Not Found | - |
|
|
340
|
+
|**400** | Bad Request | - |
|
|
341
|
+
|
|
342
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
343
|
+
|
package/docs/Event.md
CHANGED
package/docs/Receive.md
CHANGED
package/docs/ReceiveApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**receiveGet**](#receiveget) | **GET** /receive | List incoming invoices|
|
|
8
8
|
|[**receiveIdDelete**](#receiveiddelete) | **DELETE** /receive/{id} | Delete an incoming invoice by id|
|
|
9
9
|
|[**receiveIdGet**](#receiveidget) | **GET** /receive/{id} | Get an incoming invoice by id|
|
|
10
|
+
|[**receiveIdPayloadGet**](#receiveidpayloadget) | **GET** /receive/{id}/payload | Get a receive invoice payload by id|
|
|
10
11
|
|
|
11
12
|
# **receiveGet**
|
|
12
13
|
> Array<Receive> receiveGet()
|
|
@@ -219,3 +220,55 @@ const { status, data } = await apiInstance.receiveIdGet(
|
|
|
219
220
|
|
|
220
221
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
221
222
|
|
|
223
|
+
# **receiveIdPayloadGet**
|
|
224
|
+
> receiveIdPayloadGet()
|
|
225
|
+
|
|
226
|
+
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`.
|
|
227
|
+
|
|
228
|
+
### Example
|
|
229
|
+
|
|
230
|
+
```typescript
|
|
231
|
+
import {
|
|
232
|
+
ReceiveApi,
|
|
233
|
+
Configuration
|
|
234
|
+
} from '@invoicetronic/ts-sdk';
|
|
235
|
+
|
|
236
|
+
const configuration = new Configuration();
|
|
237
|
+
const apiInstance = new ReceiveApi(configuration);
|
|
238
|
+
|
|
239
|
+
let id: number; //Item id (default to undefined)
|
|
240
|
+
|
|
241
|
+
const { status, data } = await apiInstance.receiveIdPayloadGet(
|
|
242
|
+
id
|
|
243
|
+
);
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Parameters
|
|
247
|
+
|
|
248
|
+
|Name | Type | Description | Notes|
|
|
249
|
+
|------------- | ------------- | ------------- | -------------|
|
|
250
|
+
| **id** | [**number**] | Item id | defaults to undefined|
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
### Return type
|
|
254
|
+
|
|
255
|
+
void (empty response body)
|
|
256
|
+
|
|
257
|
+
### Authorization
|
|
258
|
+
|
|
259
|
+
[Basic](../README.md#Basic)
|
|
260
|
+
|
|
261
|
+
### HTTP request headers
|
|
262
|
+
|
|
263
|
+
- **Content-Type**: Not defined
|
|
264
|
+
- **Accept**: application/problem+json
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
### HTTP response details
|
|
268
|
+
| Status code | Description | Response headers |
|
|
269
|
+
|-------------|-------------|------------------|
|
|
270
|
+
|**200** | OK | - |
|
|
271
|
+
|**404** | Not Found | - |
|
|
272
|
+
|
|
273
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
274
|
+
|
package/docs/Send.md
CHANGED
package/docs/SendApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**sendFilePost**](#sendfilepost) | **POST** /send/file | Add an invoice by file|
|
|
8
8
|
|[**sendGet**](#sendget) | **GET** /send | List invoices|
|
|
9
9
|
|[**sendIdGet**](#sendidget) | **GET** /send/{id} | Get a invoice by id|
|
|
10
|
+
|[**sendIdPayloadGet**](#sendidpayloadget) | **GET** /send/{id}/payload | Get a send invoice payload by id|
|
|
10
11
|
|[**sendIdentifierGet**](#sendidentifierget) | **GET** /send/{identifier} | Get a invoice by identifier|
|
|
11
12
|
|[**sendJsonPost**](#sendjsonpost) | **POST** /send/json | Add an invoice by json|
|
|
12
13
|
|[**sendPost**](#sendpost) | **POST** /send | Add an invoice|
|
|
@@ -220,6 +221,58 @@ const { status, data } = await apiInstance.sendIdGet(
|
|
|
220
221
|
- **Accept**: application/json
|
|
221
222
|
|
|
222
223
|
|
|
224
|
+
### HTTP response details
|
|
225
|
+
| Status code | Description | Response headers |
|
|
226
|
+
|-------------|-------------|------------------|
|
|
227
|
+
|**200** | OK | - |
|
|
228
|
+
|**404** | Not Found | - |
|
|
229
|
+
|
|
230
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
231
|
+
|
|
232
|
+
# **sendIdPayloadGet**
|
|
233
|
+
> sendIdPayloadGet()
|
|
234
|
+
|
|
235
|
+
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.
|
|
236
|
+
|
|
237
|
+
### Example
|
|
238
|
+
|
|
239
|
+
```typescript
|
|
240
|
+
import {
|
|
241
|
+
SendApi,
|
|
242
|
+
Configuration
|
|
243
|
+
} from '@invoicetronic/ts-sdk';
|
|
244
|
+
|
|
245
|
+
const configuration = new Configuration();
|
|
246
|
+
const apiInstance = new SendApi(configuration);
|
|
247
|
+
|
|
248
|
+
let id: number; //Item id (default to undefined)
|
|
249
|
+
|
|
250
|
+
const { status, data } = await apiInstance.sendIdPayloadGet(
|
|
251
|
+
id
|
|
252
|
+
);
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Parameters
|
|
256
|
+
|
|
257
|
+
|Name | Type | Description | Notes|
|
|
258
|
+
|------------- | ------------- | ------------- | -------------|
|
|
259
|
+
| **id** | [**number**] | Item id | defaults to undefined|
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
### Return type
|
|
263
|
+
|
|
264
|
+
void (empty response body)
|
|
265
|
+
|
|
266
|
+
### Authorization
|
|
267
|
+
|
|
268
|
+
[Basic](../README.md#Basic)
|
|
269
|
+
|
|
270
|
+
### HTTP request headers
|
|
271
|
+
|
|
272
|
+
- **Content-Type**: Not defined
|
|
273
|
+
- **Accept**: application/problem+json
|
|
274
|
+
|
|
275
|
+
|
|
223
276
|
### HTTP response details
|
|
224
277
|
| Status code | Description | Response headers |
|
|
225
278
|
|-------------|-------------|------------------|
|
package/docs/Status.md
CHANGED
package/docs/Update.md
CHANGED
package/docs/WebHook.md
CHANGED
package/package.json
CHANGED
package/src/api/company-api.ts
CHANGED
|
@@ -238,6 +238,44 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
238
238
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
239
239
|
localVarRequestOptions.data = serializeDataIfNeeded(company, localVarRequestOptions, configuration)
|
|
240
240
|
|
|
241
|
+
return {
|
|
242
|
+
url: toPathString(localVarUrlObj),
|
|
243
|
+
options: localVarRequestOptions,
|
|
244
|
+
};
|
|
245
|
+
},
|
|
246
|
+
/**
|
|
247
|
+
* Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
248
|
+
* @summary Get a company by vat number
|
|
249
|
+
* @param {string} vat
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
companyVatGet: async (vat: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
254
|
+
// verify required parameter 'vat' is not null or undefined
|
|
255
|
+
assertParamExists('companyVatGet', 'vat', vat)
|
|
256
|
+
const localVarPath = `/company/{vat}`
|
|
257
|
+
.replace(`{${"vat"}}`, encodeURIComponent(String(vat)));
|
|
258
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
259
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
260
|
+
let baseOptions;
|
|
261
|
+
if (configuration) {
|
|
262
|
+
baseOptions = configuration.baseOptions;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
266
|
+
const localVarHeaderParameter = {} as any;
|
|
267
|
+
const localVarQueryParameter = {} as any;
|
|
268
|
+
|
|
269
|
+
// authentication Basic required
|
|
270
|
+
// http basic authentication required
|
|
271
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
272
|
+
|
|
273
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
274
|
+
|
|
275
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
276
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
277
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
278
|
+
|
|
241
279
|
return {
|
|
242
280
|
url: toPathString(localVarUrlObj),
|
|
243
281
|
options: localVarRequestOptions,
|
|
@@ -320,6 +358,19 @@ export const CompanyApiFp = function(configuration?: Configuration) {
|
|
|
320
358
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.companyPut']?.[localVarOperationServerIndex]?.url;
|
|
321
359
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
322
360
|
},
|
|
361
|
+
/**
|
|
362
|
+
* Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
363
|
+
* @summary Get a company by vat number
|
|
364
|
+
* @param {string} vat
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
async companyVatGet(vat: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Company>> {
|
|
369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.companyVatGet(vat, options);
|
|
370
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
371
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.companyVatGet']?.[localVarOperationServerIndex]?.url;
|
|
372
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
373
|
+
},
|
|
323
374
|
}
|
|
324
375
|
};
|
|
325
376
|
|
|
@@ -382,6 +433,16 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
|
|
|
382
433
|
companyPut(company: Company, options?: RawAxiosRequestConfig): AxiosPromise<Company> {
|
|
383
434
|
return localVarFp.companyPut(company, options).then((request) => request(axios, basePath));
|
|
384
435
|
},
|
|
436
|
+
/**
|
|
437
|
+
* Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
438
|
+
* @summary Get a company by vat number
|
|
439
|
+
* @param {string} vat
|
|
440
|
+
* @param {*} [options] Override http request option.
|
|
441
|
+
* @throws {RequiredError}
|
|
442
|
+
*/
|
|
443
|
+
companyVatGet(vat: string, options?: RawAxiosRequestConfig): AxiosPromise<Company> {
|
|
444
|
+
return localVarFp.companyVatGet(vat, options).then((request) => request(axios, basePath));
|
|
445
|
+
},
|
|
385
446
|
};
|
|
386
447
|
};
|
|
387
448
|
|
|
@@ -437,6 +498,15 @@ export interface CompanyApiInterface {
|
|
|
437
498
|
*/
|
|
438
499
|
companyPut(company: Company, options?: RawAxiosRequestConfig): AxiosPromise<Company>;
|
|
439
500
|
|
|
501
|
+
/**
|
|
502
|
+
* Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
503
|
+
* @summary Get a company by vat number
|
|
504
|
+
* @param {string} vat
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
*/
|
|
508
|
+
companyVatGet(vat: string, options?: RawAxiosRequestConfig): AxiosPromise<Company>;
|
|
509
|
+
|
|
440
510
|
}
|
|
441
511
|
|
|
442
512
|
/**
|
|
@@ -500,5 +570,16 @@ export class CompanyApi extends BaseAPI implements CompanyApiInterface {
|
|
|
500
570
|
public companyPut(company: Company, options?: RawAxiosRequestConfig) {
|
|
501
571
|
return CompanyApiFp(this.configuration).companyPut(company, options).then((request) => request(this.axios, this.basePath));
|
|
502
572
|
}
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Retrieve a company by its VAT number. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
576
|
+
* @summary Get a company by vat number
|
|
577
|
+
* @param {string} vat
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
public companyVatGet(vat: string, options?: RawAxiosRequestConfig) {
|
|
582
|
+
return CompanyApiFp(this.configuration).companyVatGet(vat, options).then((request) => request(this.axios, this.basePath));
|
|
583
|
+
}
|
|
503
584
|
}
|
|
504
585
|
|