-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.ts
93 lines (82 loc) · 1.94 KB
/
interfaces.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import type { APIResponseBodyError } from '../interfaces.js'
export interface Customer {
cf: string
desc_iva_default: string
extra: string
fax: string
id: string
indirizzo_cap: string
indirizzo_citta: string
indirizzo_extra: string
indirizzo_provincia: string
indirizzo_via: string
mail: string
nome: string
PA: boolean
PA_codice: string
paese: string
pagamento_fine_mese: boolean
pec: string
piva: string
referente: string
tel: string
termini_pagamento: string
val_iva_default: string
}
export interface ListOptions {
codice_fiscale?: string
name?: string
page?: number
partita_iva?: string
}
export interface RetrieveConfig {
codice_fiscale?: string
id?: string
partita_iva?: string
}
export interface CreateRequestBody {
codice_fiscale?: string
codice_sdi?: string
descrizione_iva_default?: string
email?: string
fax?: string
indirizzo_cap?: string
indirizzo_citta?: string
indirizzo_extra?: string
indirizzo_provincia?: string
indirizzo_via?: string
is_pagamento_fine_mese?: boolean
is_pubblica_amministrazione?: boolean
note_extra?: string
paese?: string
paese_iso?: string
partita_iva?: string
ragione_sociale?: string
referente?: string
tel?: string
termini_pagamento?: number
valore_iva_default?: string
}
export interface UpdateRequestBody extends CreateRequestBody {
id: string
}
export interface DeleteRequestBody {
id: string
}
// responses from the FattureInCloud API ==================================== //
export interface APIResponseBodyList extends APIResponseBodyError {
lista_clienti: Customer[]
numero_pagine: number
pagina_corrente: number
success: boolean
}
export interface APIResponseBodyCreate extends APIResponseBodyError {
id: string
success: boolean
}
export interface APIResponseBodyUpdate extends APIResponseBodyError {
success: boolean
}
export interface APIResponseBodyDelete extends APIResponseBodyError {
success: boolean
}