-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
68 lines (60 loc) · 1.41 KB
/
models.go
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
package main
// UserInfo struct
type UserInfo struct {
CompagnyName string `json:"CompagnyName"`
Name string `json:"Name"`
PhoneNumber string `json:"PhoneNumber"`
Email string `json:"Email"`
}
// BanqueInfo struct
type BanqueInfo struct {
BanqueName string `json:"BanqueName"`
SwiftBic string `json:"SwiftBic"`
IBAN string `json:"IBAN"`
}
// Address struct
type Address struct {
PostCode string `json:"Postcode"`
Country string `json:"Country"`
Address string `json:"Address"`
City string `json:"City"`
}
// User struct
type User struct {
UserInfo UserInfo `json:"UserInfo"`
Address Address `json:"UserAddress"`
BanqueInfo BanqueInfo `json:"BanqueInfo"`
TVANumber string `json:"TVANumber"`
SIRET string `json:"SIRET"`
}
// Client struct
type Client struct {
Name string `json:"ClientName"`
Address Address `json:"ClientAddress"`
}
// Settings struct
type Settings struct {
User User `json:"User"`
Client Client `json:"BilledClient"`
}
// Project struct
type Project struct {
Index string
Name string
Time string
Amount string
UnitAmount string
Currency string
}
// Invoice struct
type Invoice struct {
InvoiceNumber string
InvoiceDate string //date
InvoiceUntil string //date
Currency string
Rate string
TotalAmount string
Client Client
Projects []Project
Settings Settings
}