-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.go
131 lines (116 loc) · 4.27 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
package vpic
type VINBatchRequest struct {
VIN string
Year int
}
type Spec struct {
Data []struct {
Name string `json:"Name"`
Values string `json:"Value"`
} `json:"Specs"`
}
type EquipmentPlantCode struct {
Name string `json:"Name"`
Address string `json:"Address"`
City string `json:"City"`
Country string `json:"Country"`
DOTCode string `json:"DOTCode"`
OldDOTCode string `json:"OldDOTCode"`
PostalCode string `json:"PostalCode"`
StateProvince string `json:"StateProvince"`
Status string `json:"Status"`
}
type Part struct {
CoverLetterURL string `json:"CoverLetterURL"`
LetterDate string `json:"LetterDate"`
ManufacturerID int64 `json:"ManufacturerId"`
ManufacturerName string `json:"ManufacturerName"`
ModelYearFrom string `json:"ModelYearFrom"`
ModelYearTo string `json:"ModelYearTo"`
Name string `json:"Name"`
Type string `json:"Type"`
URL string `json:"URL"`
}
type Model struct {
MakeID int64 `json:"Make_ID"`
MakeName string `json:"Make_Name"`
ModelID int64 `json:"Model_ID"`
ModelName string `json:"Model_Name"`
}
type EquipmentItem struct{}
type ManufacturerType struct{}
type VehicleType struct {
MakeID int64 `json:"MakeId"`
MakeName string `json:"MakeName"`
ID int64 `json:"VehicleTypeId"`
Name string `json:"VehicleTypeName"`
}
type Manufacturer struct {
Address string `json:"Address"`
Address2 string `json:"Address2"`
City string `json:"City"`
Email string `json:"ContactEmail"`
Fax string `json:"ContactFax"`
Phone string `json:"ContactPhone"`
Country string `json:"Country"`
EquipmentItems []EquipmentItem `json:"EquipmentItems"`
LastUpdated string `json:"LastUpdated"`
ManufacturerTypes []ManufacturerType `json:"ManufacturerTypes"`
CommonName string `json:"Mfr_CommonName"`
ID int64 `json:"Mfr_ID"`
Name string `json:"Mfr_Name"`
Other string `json:"OtherManufacturerDetails"`
PostalCode string `json:"PostalCode"`
PrimaryProduct string `json:"PrimaryProduct"`
PrincipalFirstName string `json:"PrincipalFirstName"`
PrincipalLastName string `json:"PrincipalLastName"`
PrincipalPosition string `json:"PrincipalPosition"`
StateProvince string `json:"StateProvince"`
SubmittedName string `json:"SubmittedName"`
SubmittedOn string `json:"SubmittedOn"`
SubmittedPosition string `json:"SubmittedPosition"`
VehicleTypes []VehicleType `json:"VehicleTypes"`
}
type Make struct {
ID int64 `json:"Make_ID"`
Name string `json:"Make_Name"`
}
type WMI struct {
CanceledDate string `json:"CanceledDate"`
CreatedOn string `json:"CreatedOn"`
UpdatedOn string `json:"UpdatedOn"`
VehicleType string `json:"VehicleType"`
Country string `json:"Country"`
ID int `json:"Id"`
Name string `json:"Name"`
WMI string `json:"WMI"`
}
type DecodeWMIResult struct {
CanceledDate string `json:"CanceledDate"`
CommonName string `json:"CommonName"`
CreatedOn string `json:"CreatedOn"`
DateAvailableToPublic string `json:"DateAvailableToPublic"`
Make string `json:"Make"`
ManufacturerName string `json:"ManufacturerName"`
ParentCompanyName string `json:"ParentCompanyName"`
URL string `json:"URL"`
UpdatedOn string `json:"UpdatedOn"`
VehicleType string `json:"VehicleType"`
}
type VehicleVariable struct {
Name string `json:"Name"`
DataType string `json:"DataType"`
Description string `json:"Description"`
ID int `json:"Id"`
}
type VehicleVariableValues struct {
ElementName string `json:"ElementName"`
ID int `json:"Id"`
Name string `json:"Name"`
}
type DecodeVINResult struct {
Value string `json:"Value"`
ValueID string `json:"ValueId"`
Variable string `json:"Variable"`
VariableId int `json:"VariableId"`
}