@invoicetronic/ts-sdk 1.0.1 → 1.1.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.
Files changed (234) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/base.ts +0 -24
  4. package/common.ts +1 -38
  5. package/configuration.ts +25 -19
  6. package/dist/base.d.ts +0 -24
  7. package/dist/base.js +0 -19
  8. package/dist/common.d.ts +0 -37
  9. package/dist/common.js +0 -37
  10. package/dist/configuration.d.ts +24 -17
  11. package/dist/configuration.js +2 -2
  12. package/dist/esm/base.d.ts +0 -24
  13. package/dist/esm/base.js +0 -19
  14. package/dist/esm/common.d.ts +0 -37
  15. package/dist/esm/common.js +0 -37
  16. package/dist/esm/configuration.d.ts +24 -17
  17. package/dist/esm/configuration.js +2 -2
  18. package/dist/esm/src/api/company-api.d.ts +0 -18
  19. package/dist/esm/src/api/company-api.js +0 -11
  20. package/dist/esm/src/api/log-api.d.ts +0 -12
  21. package/dist/esm/src/api/log-api.js +0 -8
  22. package/dist/esm/src/api/receive-api.d.ts +0 -14
  23. package/dist/esm/src/api/receive-api.js +0 -9
  24. package/dist/esm/src/api/send-api.d.ts +0 -42
  25. package/dist/esm/src/api/send-api.js +0 -29
  26. package/dist/esm/src/api/status-api.d.ts +0 -10
  27. package/dist/esm/src/api/status-api.js +0 -7
  28. package/dist/esm/src/api/update-api.d.ts +0 -15
  29. package/dist/esm/src/api/update-api.js +0 -11
  30. package/dist/esm/src/api/webhook-api.d.ts +0 -22
  31. package/dist/esm/src/api/webhook-api.js +0 -13
  32. package/dist/esm/src/models/allegati.d.ts +0 -30
  33. package/dist/esm/src/models/altri-dati-gestionali.d.ts +0 -25
  34. package/dist/esm/src/models/anagrafica.d.ts +0 -30
  35. package/dist/esm/src/models/cedente-prestatore.d.ts +0 -35
  36. package/dist/esm/src/models/cessionario-committente.d.ts +0 -25
  37. package/dist/esm/src/models/codice-articolo.d.ts +0 -15
  38. package/dist/esm/src/models/company.d.ts +0 -16
  39. package/dist/esm/src/models/contatti-trasmittente.d.ts +0 -15
  40. package/dist/esm/src/models/contatti.d.ts +0 -20
  41. package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -45
  42. package/dist/esm/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -20
  43. package/dist/esm/src/models/dati-anagrafici-vettore.d.ts +0 -25
  44. package/dist/esm/src/models/dati-anagrafici.d.ts +0 -20
  45. package/dist/esm/src/models/dati-beni-servizi.d.ts +0 -15
  46. package/dist/esm/src/models/dati-bollo.d.ts +0 -15
  47. package/dist/esm/src/models/dati-cassa-previdenziale.d.ts +0 -45
  48. package/dist/esm/src/models/dati-contratto.d.ts +0 -40
  49. package/dist/esm/src/models/dati-convenzione.d.ts +0 -40
  50. package/dist/esm/src/models/dati-ddt.d.ts +0 -20
  51. package/dist/esm/src/models/dati-fatture-collegate.d.ts +0 -40
  52. package/dist/esm/src/models/dati-generali-documento.d.ts +0 -65
  53. package/dist/esm/src/models/dati-generali.d.ts +0 -55
  54. package/dist/esm/src/models/dati-ordine-acquisto.d.ts +0 -40
  55. package/dist/esm/src/models/dati-pagamento.d.ts +0 -15
  56. package/dist/esm/src/models/dati-ricezione.d.ts +0 -40
  57. package/dist/esm/src/models/dati-riepilogo.d.ts +0 -45
  58. package/dist/esm/src/models/dati-ritenuta.d.ts +0 -25
  59. package/dist/esm/src/models/dati-sal.d.ts +0 -10
  60. package/dist/esm/src/models/dati-trasmissione.d.ts +0 -35
  61. package/dist/esm/src/models/dati-trasporto.d.ts +0 -70
  62. package/dist/esm/src/models/dati-veicoli.d.ts +0 -15
  63. package/dist/esm/src/models/dettaglio-linee.d.ts +0 -85
  64. package/dist/esm/src/models/dettaglio-pagamento.d.ts +0 -110
  65. package/dist/esm/src/models/document-data.d.ts +0 -15
  66. package/dist/esm/src/models/event.d.ts +8 -39
  67. package/dist/esm/src/models/fattura-elettronica-body.d.ts +0 -30
  68. package/dist/esm/src/models/fattura-elettronica-header.d.ts +0 -35
  69. package/dist/esm/src/models/fattura-ordinaria.d.ts +0 -20
  70. package/dist/esm/src/models/fattura-principale.d.ts +0 -15
  71. package/dist/esm/src/models/id-fiscale-iva.d.ts +0 -15
  72. package/dist/esm/src/models/id-trasmittente.d.ts +0 -15
  73. package/dist/esm/src/models/indirizzo-resa.d.ts +0 -35
  74. package/dist/esm/src/models/iscrizione-rea.d.ts +0 -30
  75. package/dist/esm/src/models/model-error.d.ts +0 -8
  76. package/dist/esm/src/models/problem-details.d.ts +0 -30
  77. package/dist/esm/src/models/problem-http-result.d.ts +0 -20
  78. package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -25
  79. package/dist/esm/src/models/rappresentante-fiscale.d.ts +0 -10
  80. package/dist/esm/src/models/receive.d.ts +0 -39
  81. package/dist/esm/src/models/sconto-maggiorazione.d.ts +0 -20
  82. package/dist/esm/src/models/sede-cedente-prestatore.d.ts +0 -35
  83. package/dist/esm/src/models/sede-cessionario-committente.d.ts +0 -35
  84. package/dist/esm/src/models/send-reduced.d.ts +0 -12
  85. package/dist/esm/src/models/send.d.ts +0 -42
  86. package/dist/esm/src/models/stabile-organizzazione.d.ts +0 -35
  87. package/dist/esm/src/models/status.d.ts +0 -9
  88. package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -10
  89. package/dist/esm/src/models/update.d.ts +0 -34
  90. package/dist/esm/src/models/web-hook-history.d.ts +0 -20
  91. package/dist/esm/src/models/web-hook.d.ts +0 -25
  92. package/dist/src/api/company-api.d.ts +0 -18
  93. package/dist/src/api/company-api.js +0 -11
  94. package/dist/src/api/log-api.d.ts +0 -12
  95. package/dist/src/api/log-api.js +0 -8
  96. package/dist/src/api/receive-api.d.ts +0 -14
  97. package/dist/src/api/receive-api.js +0 -9
  98. package/dist/src/api/send-api.d.ts +0 -42
  99. package/dist/src/api/send-api.js +0 -29
  100. package/dist/src/api/status-api.d.ts +0 -10
  101. package/dist/src/api/status-api.js +0 -7
  102. package/dist/src/api/update-api.d.ts +0 -15
  103. package/dist/src/api/update-api.js +0 -11
  104. package/dist/src/api/webhook-api.d.ts +0 -22
  105. package/dist/src/api/webhook-api.js +0 -13
  106. package/dist/src/models/allegati.d.ts +0 -30
  107. package/dist/src/models/altri-dati-gestionali.d.ts +0 -25
  108. package/dist/src/models/anagrafica.d.ts +0 -30
  109. package/dist/src/models/cedente-prestatore.d.ts +0 -35
  110. package/dist/src/models/cessionario-committente.d.ts +0 -25
  111. package/dist/src/models/codice-articolo.d.ts +0 -15
  112. package/dist/src/models/company.d.ts +0 -16
  113. package/dist/src/models/contatti-trasmittente.d.ts +0 -15
  114. package/dist/src/models/contatti.d.ts +0 -20
  115. package/dist/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -45
  116. package/dist/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -20
  117. package/dist/src/models/dati-anagrafici-vettore.d.ts +0 -25
  118. package/dist/src/models/dati-anagrafici.d.ts +0 -20
  119. package/dist/src/models/dati-beni-servizi.d.ts +0 -15
  120. package/dist/src/models/dati-bollo.d.ts +0 -15
  121. package/dist/src/models/dati-cassa-previdenziale.d.ts +0 -45
  122. package/dist/src/models/dati-contratto.d.ts +0 -40
  123. package/dist/src/models/dati-convenzione.d.ts +0 -40
  124. package/dist/src/models/dati-ddt.d.ts +0 -20
  125. package/dist/src/models/dati-fatture-collegate.d.ts +0 -40
  126. package/dist/src/models/dati-generali-documento.d.ts +0 -65
  127. package/dist/src/models/dati-generali.d.ts +0 -55
  128. package/dist/src/models/dati-ordine-acquisto.d.ts +0 -40
  129. package/dist/src/models/dati-pagamento.d.ts +0 -15
  130. package/dist/src/models/dati-ricezione.d.ts +0 -40
  131. package/dist/src/models/dati-riepilogo.d.ts +0 -45
  132. package/dist/src/models/dati-ritenuta.d.ts +0 -25
  133. package/dist/src/models/dati-sal.d.ts +0 -10
  134. package/dist/src/models/dati-trasmissione.d.ts +0 -35
  135. package/dist/src/models/dati-trasporto.d.ts +0 -70
  136. package/dist/src/models/dati-veicoli.d.ts +0 -15
  137. package/dist/src/models/dettaglio-linee.d.ts +0 -85
  138. package/dist/src/models/dettaglio-pagamento.d.ts +0 -110
  139. package/dist/src/models/document-data.d.ts +0 -15
  140. package/dist/src/models/event.d.ts +8 -39
  141. package/dist/src/models/fattura-elettronica-body.d.ts +0 -30
  142. package/dist/src/models/fattura-elettronica-header.d.ts +0 -35
  143. package/dist/src/models/fattura-ordinaria.d.ts +0 -20
  144. package/dist/src/models/fattura-principale.d.ts +0 -15
  145. package/dist/src/models/id-fiscale-iva.d.ts +0 -15
  146. package/dist/src/models/id-trasmittente.d.ts +0 -15
  147. package/dist/src/models/indirizzo-resa.d.ts +0 -35
  148. package/dist/src/models/iscrizione-rea.d.ts +0 -30
  149. package/dist/src/models/model-error.d.ts +0 -8
  150. package/dist/src/models/problem-details.d.ts +0 -30
  151. package/dist/src/models/problem-http-result.d.ts +0 -20
  152. package/dist/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -25
  153. package/dist/src/models/rappresentante-fiscale.d.ts +0 -10
  154. package/dist/src/models/receive.d.ts +0 -39
  155. package/dist/src/models/sconto-maggiorazione.d.ts +0 -20
  156. package/dist/src/models/sede-cedente-prestatore.d.ts +0 -35
  157. package/dist/src/models/sede-cessionario-committente.d.ts +0 -35
  158. package/dist/src/models/send-reduced.d.ts +0 -12
  159. package/dist/src/models/send.d.ts +0 -42
  160. package/dist/src/models/stabile-organizzazione.d.ts +0 -35
  161. package/dist/src/models/status.d.ts +0 -9
  162. package/dist/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -10
  163. package/dist/src/models/update.d.ts +0 -34
  164. package/dist/src/models/web-hook-history.d.ts +0 -20
  165. package/dist/src/models/web-hook.d.ts +0 -25
  166. package/docs/Event.md +4 -2
  167. package/package.json +1 -1
  168. package/src/api/company-api.ts +0 -18
  169. package/src/api/log-api.ts +0 -12
  170. package/src/api/receive-api.ts +0 -14
  171. package/src/api/send-api.ts +0 -42
  172. package/src/api/status-api.ts +0 -10
  173. package/src/api/update-api.ts +0 -15
  174. package/src/api/webhook-api.ts +0 -22
  175. package/src/models/allegati.ts +0 -30
  176. package/src/models/altri-dati-gestionali.ts +0 -25
  177. package/src/models/anagrafica.ts +0 -30
  178. package/src/models/cedente-prestatore.ts +0 -35
  179. package/src/models/cessionario-committente.ts +0 -25
  180. package/src/models/codice-articolo.ts +0 -15
  181. package/src/models/company.ts +0 -16
  182. package/src/models/contatti-trasmittente.ts +0 -15
  183. package/src/models/contatti.ts +0 -20
  184. package/src/models/dati-anagrafici-cedente-prestatore.ts +0 -45
  185. package/src/models/dati-anagrafici-cessionario-committente.ts +0 -20
  186. package/src/models/dati-anagrafici-vettore.ts +0 -25
  187. package/src/models/dati-anagrafici.ts +0 -20
  188. package/src/models/dati-beni-servizi.ts +0 -15
  189. package/src/models/dati-bollo.ts +0 -15
  190. package/src/models/dati-cassa-previdenziale.ts +0 -45
  191. package/src/models/dati-contratto.ts +0 -40
  192. package/src/models/dati-convenzione.ts +0 -40
  193. package/src/models/dati-ddt.ts +0 -20
  194. package/src/models/dati-fatture-collegate.ts +0 -40
  195. package/src/models/dati-generali-documento.ts +0 -65
  196. package/src/models/dati-generali.ts +0 -55
  197. package/src/models/dati-ordine-acquisto.ts +0 -40
  198. package/src/models/dati-pagamento.ts +0 -15
  199. package/src/models/dati-ricezione.ts +0 -40
  200. package/src/models/dati-riepilogo.ts +0 -45
  201. package/src/models/dati-ritenuta.ts +0 -25
  202. package/src/models/dati-sal.ts +0 -10
  203. package/src/models/dati-trasmissione.ts +0 -35
  204. package/src/models/dati-trasporto.ts +0 -70
  205. package/src/models/dati-veicoli.ts +0 -15
  206. package/src/models/dettaglio-linee.ts +0 -85
  207. package/src/models/dettaglio-pagamento.ts +0 -110
  208. package/src/models/document-data.ts +0 -15
  209. package/src/models/event.ts +8 -39
  210. package/src/models/fattura-elettronica-body.ts +0 -30
  211. package/src/models/fattura-elettronica-header.ts +0 -35
  212. package/src/models/fattura-ordinaria.ts +0 -20
  213. package/src/models/fattura-principale.ts +0 -15
  214. package/src/models/id-fiscale-iva.ts +0 -15
  215. package/src/models/id-trasmittente.ts +0 -15
  216. package/src/models/indirizzo-resa.ts +0 -35
  217. package/src/models/iscrizione-rea.ts +0 -30
  218. package/src/models/model-error.ts +0 -8
  219. package/src/models/problem-details.ts +0 -30
  220. package/src/models/problem-http-result.ts +0 -20
  221. package/src/models/rappresentante-fiscale-cessionario-committente.ts +0 -25
  222. package/src/models/rappresentante-fiscale.ts +0 -10
  223. package/src/models/receive.ts +0 -39
  224. package/src/models/sconto-maggiorazione.ts +0 -20
  225. package/src/models/sede-cedente-prestatore.ts +0 -35
  226. package/src/models/sede-cessionario-committente.ts +0 -35
  227. package/src/models/send-reduced.ts +0 -12
  228. package/src/models/send.ts +0 -42
  229. package/src/models/stabile-organizzazione.ts +0 -35
  230. package/src/models/status.ts +0 -9
  231. package/src/models/terzo-intermediario-osoggetto-emittente.ts +0 -10
  232. package/src/models/update.ts +0 -34
  233. package/src/models/web-hook-history.ts +0 -20
  234. package/src/models/web-hook.ts +0 -25
@@ -14,47 +14,12 @@
14
14
 
15
15
 
16
16
 
17
- /**
18
- *
19
- * @export
20
- * @interface IndirizzoResa
21
- */
22
17
  export interface IndirizzoResa {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof IndirizzoResa
27
- */
28
18
  'indirizzo'?: string | null;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof IndirizzoResa
33
- */
34
19
  'numero_civico'?: string | null;
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof IndirizzoResa
39
- */
40
20
  'cap'?: string | null;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof IndirizzoResa
45
- */
46
21
  'comune'?: string | null;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof IndirizzoResa
51
- */
52
22
  'provincia'?: string | null;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof IndirizzoResa
57
- */
58
23
  'nazione'?: string | null;
59
24
  }
60
25
 
@@ -14,41 +14,11 @@
14
14
 
15
15
 
16
16
 
17
- /**
18
- *
19
- * @export
20
- * @interface IscrizioneREA
21
- */
22
17
  export interface IscrizioneREA {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof IscrizioneREA
27
- */
28
18
  'ufficio'?: string | null;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof IscrizioneREA
33
- */
34
19
  'numero_rea'?: string | null;
35
- /**
36
- *
37
- * @type {number}
38
- * @memberof IscrizioneREA
39
- */
40
20
  'capitale_sociale'?: number | null;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof IscrizioneREA
45
- */
46
21
  'socio_unico'?: string | null;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof IscrizioneREA
51
- */
52
22
  'stato_liquidazione'?: string | null;
53
23
  }
54
24
 
@@ -16,26 +16,18 @@
16
16
 
17
17
  /**
18
18
  * Validation error from the SDI.
19
- * @export
20
- * @interface ModelError
21
19
  */
22
20
  export interface ModelError {
23
21
  /**
24
22
  * Error code.
25
- * @type {string}
26
- * @memberof ModelError
27
23
  */
28
24
  'code'?: string | null;
29
25
  /**
30
26
  * Error description.
31
- * @type {string}
32
- * @memberof ModelError
33
27
  */
34
28
  'description'?: string | null;
35
29
  /**
36
30
  * Hint on how to solve the issue.
37
- * @type {string}
38
- * @memberof ModelError
39
31
  */
40
32
  'hint'?: string | null;
41
33
  }
@@ -14,43 +14,13 @@
14
14
 
15
15
 
16
16
 
17
- /**
18
- *
19
- * @export
20
- * @interface ProblemDetails
21
- */
22
17
  export interface ProblemDetails {
23
18
  [key: string]: any;
24
19
 
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof ProblemDetails
29
- */
30
20
  'type'?: string | null;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof ProblemDetails
35
- */
36
21
  'title'?: string | null;
37
- /**
38
- *
39
- * @type {number}
40
- * @memberof ProblemDetails
41
- */
42
22
  'status'?: number | null;
43
- /**
44
- *
45
- * @type {string}
46
- * @memberof ProblemDetails
47
- */
48
23
  'detail'?: string | null;
49
- /**
50
- *
51
- * @type {string}
52
- * @memberof ProblemDetails
53
- */
54
24
  'instance'?: string | null;
55
25
  }
56
26
 
@@ -17,29 +17,9 @@
17
17
  // @ts-ignore
18
18
  import type { ProblemDetails } from './problem-details';
19
19
 
20
- /**
21
- *
22
- * @export
23
- * @interface ProblemHttpResult
24
- */
25
20
  export interface ProblemHttpResult {
26
- /**
27
- *
28
- * @type {ProblemDetails}
29
- * @memberof ProblemHttpResult
30
- */
31
21
  'problem_details'?: ProblemDetails;
32
- /**
33
- *
34
- * @type {string}
35
- * @memberof ProblemHttpResult
36
- */
37
22
  'content_type'?: string | null;
38
- /**
39
- *
40
- * @type {number}
41
- * @memberof ProblemHttpResult
42
- */
43
23
  'status_code'?: number;
44
24
  }
45
25
 
@@ -17,35 +17,10 @@
17
17
  // @ts-ignore
18
18
  import type { IdFiscaleIVA } from './id-fiscale-iva';
19
19
 
20
- /**
21
- *
22
- * @export
23
- * @interface RappresentanteFiscaleCessionarioCommittente
24
- */
25
20
  export interface RappresentanteFiscaleCessionarioCommittente {
26
- /**
27
- *
28
- * @type {string}
29
- * @memberof RappresentanteFiscaleCessionarioCommittente
30
- */
31
21
  'denominazione'?: string | null;
32
- /**
33
- *
34
- * @type {string}
35
- * @memberof RappresentanteFiscaleCessionarioCommittente
36
- */
37
22
  'nome'?: string | null;
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof RappresentanteFiscaleCessionarioCommittente
42
- */
43
23
  'cognome'?: string | null;
44
- /**
45
- *
46
- * @type {IdFiscaleIVA}
47
- * @memberof RappresentanteFiscaleCessionarioCommittente
48
- */
49
24
  'id_fiscale_iva'?: IdFiscaleIVA;
50
25
  }
51
26
 
@@ -17,17 +17,7 @@
17
17
  // @ts-ignore
18
18
  import type { DatiAnagrafici } from './dati-anagrafici';
19
19
 
20
- /**
21
- *
22
- * @export
23
- * @interface RappresentanteFiscale
24
- */
25
20
  export interface RappresentanteFiscale {
26
- /**
27
- *
28
- * @type {DatiAnagrafici}
29
- * @memberof RappresentanteFiscale
30
- */
31
21
  'dati_anagrafici'?: DatiAnagrafici;
32
22
  }
33
23
 
@@ -17,112 +17,73 @@
17
17
  // @ts-ignore
18
18
  import type { DocumentData } from './document-data';
19
19
 
20
- /**
21
- *
22
- * @export
23
- * @interface Receive
24
- */
25
20
  export interface Receive {
26
21
  /**
27
22
  * Unique identifier. Leave it at 0 for new records as it will be set automatically.
28
- * @type {number}
29
- * @memberof Receive
30
23
  */
31
24
  'id'?: number;
32
25
  /**
33
26
  * Creation date. It is set automatically.
34
- * @type {string}
35
- * @memberof Receive
36
27
  */
37
28
  'created'?: string;
38
29
  /**
39
30
  * Row version, for optimistic concurrency. It is set automatically.
40
- * @type {number}
41
- * @memberof Receive
42
31
  */
43
32
  'version'?: number;
44
33
  /**
45
34
  * User id.
46
- * @type {number}
47
- * @memberof Receive
48
35
  */
49
36
  'user_id'?: number;
50
37
  /**
51
38
  * Company id. On send, this is the sender and must be set in advance. On receive, it will be automatically set based on the recipient\'s VAT number. If a matching company is not found, the invoice will be rejected until the company is created.
52
- * @type {number}
53
- * @memberof Receive
54
39
  */
55
40
  'company_id'?: number;
56
41
  /**
57
42
  * VAT number of the Cessionario/Committente (customer). This is automatically set based on the recipient\'s VAT number.
58
- * @type {string}
59
- * @memberof Receive
60
43
  */
61
44
  'committente'?: string | null;
62
45
  /**
63
46
  * VAT number of the Cedente/Prestatore (vendor). This is automatically set based on the sender\'s VAT number.
64
- * @type {string}
65
- * @memberof Receive
66
47
  */
67
48
  'prestatore'?: string | null;
68
49
  /**
69
50
  * SDI identifier. This is set by the SDI and is guaranted to be unique within the SDI system.
70
- * @type {string}
71
- * @memberof Receive
72
51
  */
73
52
  'identifier'?: string | null;
74
53
  /**
75
54
  * Xml file name.
76
- * @type {string}
77
- * @memberof Receive
78
55
  */
79
56
  'file_name'?: string | null;
80
57
  /**
81
58
  * SDI format (FPA12, FPR12, FSM10, ...)
82
- * @type {string}
83
- * @memberof Receive
84
59
  */
85
60
  'format'?: string | null;
86
61
  /**
87
62
  * Xml payloaad. This is the actual xml content, as string. On send, it can be base64 encoded. If it\'s not, it will be encoded before sending. It is guaranteed to be cyphered at rest.
88
- * @type {string}
89
- * @memberof Receive
90
63
  */
91
64
  'payload'?: string | null;
92
65
  /**
93
66
  * Last update from SDI.
94
- * @type {string}
95
- * @memberof Receive
96
67
  */
97
68
  'last_update'?: string | null;
98
69
  /**
99
70
  * When the invoice was sent to SDI.
100
- * @type {string}
101
- * @memberof Receive
102
71
  */
103
72
  'date_sent'?: string | null;
104
73
  /**
105
74
  * The invoices included in the payload. This is set by the system, based on the xml content.
106
- * @type {Array<DocumentData>}
107
- * @memberof Receive
108
75
  */
109
76
  'documents'?: Array<DocumentData> | null;
110
77
  /**
111
78
  * Whether the payload is Base64 encoded or a plain XML (text).
112
- * @type {string}
113
- * @memberof Receive
114
79
  */
115
80
  'encoding'?: ReceiveEncodingEnum;
116
81
  /**
117
82
  * Wether the invoice has been read at least once.
118
- * @type {boolean}
119
- * @memberof Receive
120
83
  */
121
84
  'is_read'?: boolean;
122
85
  /**
123
86
  * SDI message id.
124
- * @type {string}
125
- * @memberof Receive
126
87
  */
127
88
  'message_id'?: string | null;
128
89
  }
@@ -14,29 +14,9 @@
14
14
 
15
15
 
16
16
 
17
- /**
18
- *
19
- * @export
20
- * @interface ScontoMaggiorazione
21
- */
22
17
  export interface ScontoMaggiorazione {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof ScontoMaggiorazione
27
- */
28
18
  'tipo'?: string | null;
29
- /**
30
- *
31
- * @type {number}
32
- * @memberof ScontoMaggiorazione
33
- */
34
19
  'percentuale'?: number | null;
35
- /**
36
- *
37
- * @type {number}
38
- * @memberof ScontoMaggiorazione
39
- */
40
20
  'importo'?: number | null;
41
21
  }
42
22
 
@@ -14,47 +14,12 @@
14
14
 
15
15
 
16
16
 
17
- /**
18
- *
19
- * @export
20
- * @interface SedeCedentePrestatore
21
- */
22
17
  export interface SedeCedentePrestatore {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof SedeCedentePrestatore
27
- */
28
18
  'indirizzo'?: string | null;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof SedeCedentePrestatore
33
- */
34
19
  'numero_civico'?: string | null;
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof SedeCedentePrestatore
39
- */
40
20
  'cap'?: string | null;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof SedeCedentePrestatore
45
- */
46
21
  'comune'?: string | null;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof SedeCedentePrestatore
51
- */
52
22
  'provincia'?: string | null;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof SedeCedentePrestatore
57
- */
58
23
  'nazione'?: string | null;
59
24
  }
60
25
 
@@ -14,47 +14,12 @@
14
14
 
15
15
 
16
16
 
17
- /**
18
- *
19
- * @export
20
- * @interface SedeCessionarioCommittente
21
- */
22
17
  export interface SedeCessionarioCommittente {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof SedeCessionarioCommittente
27
- */
28
18
  'indirizzo'?: string | null;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof SedeCessionarioCommittente
33
- */
34
19
  'numero_civico'?: string | null;
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof SedeCessionarioCommittente
39
- */
40
20
  'cap'?: string | null;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof SedeCessionarioCommittente
45
- */
46
21
  'comune'?: string | null;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof SedeCessionarioCommittente
51
- */
52
22
  'provincia'?: string | null;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof SedeCessionarioCommittente
57
- */
58
23
  'nazione'?: string | null;
59
24
  }
60
25
 
@@ -19,38 +19,26 @@ import type { DocumentData } from './document-data';
19
19
 
20
20
  /**
21
21
  * Reduced Send data for Update responses, containing only the essential fields.
22
- * @export
23
- * @interface SendReduced
24
22
  */
25
23
  export interface SendReduced {
26
24
  /**
27
25
  * SDI identifier.
28
- * @type {string}
29
- * @memberof SendReduced
30
26
  */
31
27
  'identifier'?: string | null;
32
28
  /**
33
29
  * VAT number of the Cedente/Prestatore (vendor).
34
- * @type {string}
35
- * @memberof SendReduced
36
30
  */
37
31
  'prestatore'?: string | null;
38
32
  /**
39
33
  * Optional metadata, as json.
40
- * @type {{ [key: string]: string; }}
41
- * @memberof SendReduced
42
34
  */
43
35
  'meta_data'?: { [key: string]: string; } | null;
44
36
  /**
45
37
  * The invoices included in the payload.
46
- * @type {Array<DocumentData>}
47
- * @memberof SendReduced
48
38
  */
49
39
  'documents'?: Array<DocumentData> | null;
50
40
  /**
51
41
  * When the invoice was sent to SDI.
52
- * @type {string}
53
- * @memberof SendReduced
54
42
  */
55
43
  'date_sent'?: string | null;
56
44
  }
@@ -20,113 +20,71 @@ import type { Company } from './company';
20
20
  // @ts-ignore
21
21
  import type { DocumentData } from './document-data';
22
22
 
23
- /**
24
- *
25
- * @export
26
- * @interface Send
27
- */
28
23
  export interface Send {
29
24
  /**
30
25
  * Unique identifier. Leave it at 0 for new records as it will be set automatically.
31
- * @type {number}
32
- * @memberof Send
33
26
  */
34
27
  'id'?: number;
35
28
  /**
36
29
  * Creation date. It is set automatically.
37
- * @type {string}
38
- * @memberof Send
39
30
  */
40
31
  'created'?: string;
41
32
  /**
42
33
  * Row version, for optimistic concurrency. It is set automatically.
43
- * @type {number}
44
- * @memberof Send
45
34
  */
46
35
  'version'?: number;
47
36
  /**
48
37
  * User id.
49
- * @type {number}
50
- * @memberof Send
51
38
  */
52
39
  'user_id'?: number;
53
40
  /**
54
41
  * Company id. On send, this is the sender and must be set in advance. On receive, it will be automatically set based on the recipient\'s VAT number. If a matching company is not found, the invoice will be rejected until the company is created.
55
- * @type {number}
56
- * @memberof Send
57
42
  */
58
43
  'company_id'?: number;
59
44
  /**
60
45
  * VAT number of the Cessionario/Committente (customer). This is automatically set based on the recipient\'s VAT number.
61
- * @type {string}
62
- * @memberof Send
63
46
  */
64
47
  'committente'?: string | null;
65
48
  /**
66
49
  * VAT number of the Cedente/Prestatore (vendor). This is automatically set based on the sender\'s VAT number.
67
- * @type {string}
68
- * @memberof Send
69
50
  */
70
51
  'prestatore'?: string | null;
71
52
  /**
72
53
  * SDI identifier. This is set by the SDI and is guaranted to be unique within the SDI system.
73
- * @type {string}
74
- * @memberof Send
75
54
  */
76
55
  'identifier'?: string | null;
77
56
  /**
78
57
  * Xml file name.
79
- * @type {string}
80
- * @memberof Send
81
58
  */
82
59
  'file_name'?: string | null;
83
60
  /**
84
61
  * SDI format (FPA12, FPR12, FSM10, ...)
85
- * @type {string}
86
- * @memberof Send
87
62
  */
88
63
  'format'?: string | null;
89
64
  /**
90
65
  * Xml payloaad. This is the actual xml content, as string. On send, it can be base64 encoded. If it\'s not, it will be encoded before sending. It is guaranteed to be cyphered at rest.
91
- * @type {string}
92
- * @memberof Send
93
66
  */
94
67
  'payload'?: string | null;
95
68
  /**
96
69
  * Last update from SDI.
97
- * @type {string}
98
- * @memberof Send
99
70
  */
100
71
  'last_update'?: string | null;
101
72
  /**
102
73
  * When the invoice was sent to SDI.
103
- * @type {string}
104
- * @memberof Send
105
74
  */
106
75
  'date_sent'?: string | null;
107
76
  /**
108
77
  * The invoices included in the payload. This is set by the system, based on the xml content.
109
- * @type {Array<DocumentData>}
110
- * @memberof Send
111
78
  */
112
79
  'documents'?: Array<DocumentData> | null;
113
80
  /**
114
81
  * Whether the payload is Base64 encoded or a plain XML (text).
115
- * @type {string}
116
- * @memberof Send
117
82
  */
118
83
  'encoding'?: SendEncodingEnum;
119
84
  /**
120
85
  * Optional metadata, as json.
121
- * @type {{ [key: string]: string; }}
122
- * @memberof Send
123
86
  */
124
87
  'meta_data'?: { [key: string]: string; } | null;
125
- /**
126
- *
127
- * @type {Company}
128
- * @memberof Send
129
- */
130
88
  'company'?: Company;
131
89
  }
132
90
 
@@ -14,47 +14,12 @@
14
14
 
15
15
 
16
16
 
17
- /**
18
- *
19
- * @export
20
- * @interface StabileOrganizzazione
21
- */
22
17
  export interface StabileOrganizzazione {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof StabileOrganizzazione
27
- */
28
18
  'indirizzo'?: string | null;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof StabileOrganizzazione
33
- */
34
19
  'numero_civico'?: string | null;
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof StabileOrganizzazione
39
- */
40
20
  'cap'?: string | null;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof StabileOrganizzazione
45
- */
46
21
  'comune'?: string | null;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof StabileOrganizzazione
51
- */
52
22
  'provincia'?: string | null;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof StabileOrganizzazione
57
- */
58
23
  'nazione'?: string | null;
59
24
  }
60
25