-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrevision.go
93 lines (79 loc) · 2.7 KB
/
revision.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
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
package main
type Metadata struct {
Id string `json:"id"`
}
type Owner struct {
PersonId string `json:"PersonId"`
}
type Owners struct {
PrimaryOwner Owner `json:"PrimaryOwner"`
SecondaryOwners []Owner `json:"SecondaryOwners"`
}
type VehicleRegistrationData struct {
Id string `json:"Id"`
VIN string `json:"VIN"`
LicensePlateNumber string `json:"LicensePlateNumber"`
State string `json:"State"`
City string `json:"City"`
PendingPenaltyTicketAmount float64 `json:"PendingPenaltyTicketAmount"`
ValidFromDate string `json:"ValidFromDate"`
ValidToDate string `json:"ValidToDate"`
Owners Owners `json:"Owners"`
}
type VehicleRegistrationRevision struct {
Data VehicleRegistrationData `json:"data"`
Metadata Metadata `json:"metadata"`
}
type PersonData struct {
Id string `json:"Id"`
FirstName string `json:"FirstName"`
LastName string `json:"LastName"`
DOB string `json:"DOB"`
GovId string `json:"GovId"`
GovIdType string `json:"GovIdType"`
Address string `json:"Address"`
}
type PersonRevision struct {
Data PersonData `json:"data"`
Metadata Metadata `json:"metadata"`
}
type DriversLicenseData struct {
Id string `json:"Id"`
LicensePlateNumber string `json:"LicensePlateNumber"`
LicenseType string `json:"LicenseType"`
ValidFromDate string `json:"ValidFromDate"`
ValidToDate string `json:"ValidToDate"`
PersonIdFk string `json:"PersonId"`
}
type DriversLicenseRevision struct {
Data DriversLicenseData `json:"data"`
Metadata Metadata `json:"metadata"`
}
type VehicleData struct {
Id string `json:"Id"`
VIN string `json:"VIN"`
VehicleType string `json:"Type"`
Year int `json:"Year"`
Make string `json:"Make"`
Model string `json:"Model"`
Color string `json:"Color"`
}
type VehicleRevision struct {
Data VehicleData `json:"data"`
Metadata Metadata `json:"metadata"`
}
type LicensePlateNumberMappingData struct {
LicensePlateNumber string `json:"LicensePlateNumber"`
VehicleRegistrationIdFk string `json:"VehicleRegistrationIdFk"`
DriversLicenseIdFk string `json:"DriversLicenseIdFk"`
}
type VinMappingData struct {
VIN string `json:"VIN"`
VehicleRegistrationIdFk string `json:"VehicleRegistrationIdFk"`
VehicleIdFk string `json:"VehicleIdFk"`
}
type VehicleOwnershipData struct {
VehicleRegistrationIdFk string `json:"VehicleRegistrationIdFk"`
PersonIdFk string `json:"PersonIdFk"`
IsPrimaryOwner bool `json:"IsPrimaryOwner"`
}