/
structs.go
336 lines (313 loc) · 16.2 KB
/
structs.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
package nhtsa
type VinRequest struct {
Vin string
Year string
}
type PartsRequest struct {
Type string
FromDate string
ToDate string
Manufacturer string
Page string
}
type CAVehicleSpecRequest struct {
Year string
Make string
Model string
Units string
}
type ManufacturerType struct {
Name string `json:"Name"`
}
type ManufacturerVehicleType struct {
IsPrimary bool `json:"IsPrimary"`
Name string `json:"Name"`
}
type BaseApiResponse[T any] struct {
Count int64 `json:"Count"`
Message string `json:"Message"`
SearchCriteria interface{} `json:"SearchCriteria"`
Results []T `json:"Results"`
}
type DecodeVinResult struct {
Value string `json:"Value"`
ValueID string `json:"ValueId"`
Variable string `json:"Variable"`
VariableID int64 `json:"VariableId"`
}
type DecodeWmiResult struct {
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 interface{} `json:"UpdatedOn"`
VehicleType string `json:"VehicleType"`
}
type DecodeFlatResult struct {
ABS string `json:"ABS"`
ActiveSafetySysNote string `json:"ActiveSafetySysNote"`
AdaptiveCruiseControl string `json:"AdaptiveCruiseControl"`
AdaptiveDrivingBeam string `json:"AdaptiveDrivingBeam"`
AdaptiveHeadlights string `json:"AdaptiveHeadlights"`
AdditionalErrorText string `json:"AdditionalErrorText"`
AirBagLocCurtain string `json:"AirBagLocCurtain"`
AirBagLocFront string `json:"AirBagLocFront"`
AirBagLocKnee string `json:"AirBagLocKnee"`
AirBagLocSeatCushion string `json:"AirBagLocSeatCushion"`
AirBagLocSide string `json:"AirBagLocSide"`
AutoReverseSystem string `json:"AutoReverseSystem"`
AutomaticPedestrianAlertingSound string `json:"AutomaticPedestrianAlertingSound"`
AxleConfiguration string `json:"AxleConfiguration"`
Axles string `json:"Axles"`
BasePrice string `json:"BasePrice"`
BatteryA string `json:"BatteryA"`
BatteryATo string `json:"BatteryA_to"`
BatteryCells string `json:"BatteryCells"`
BatteryInfo string `json:"BatteryInfo"`
BatteryKWh string `json:"BatteryKWh"`
BatteryKWhTo string `json:"BatteryKWh_to"`
BatteryModules string `json:"BatteryModules"`
BatteryPacks string `json:"BatteryPacks"`
BatteryType string `json:"BatteryType"`
BatteryV string `json:"BatteryV"`
BatteryVTo string `json:"BatteryV_to"`
BedLengthIN string `json:"BedLengthIN"`
BedType string `json:"BedType"`
BlindSpotIntervention string `json:"BlindSpotIntervention"`
BlindSpotMon string `json:"BlindSpotMon"`
BodyCabType string `json:"BodyCabType"`
BodyClass string `json:"BodyClass"`
BrakeSystemDesc string `json:"BrakeSystemDesc"`
BrakeSystemType string `json:"BrakeSystemType"`
BusFloorConfigType string `json:"BusFloorConfigType"`
BusLength string `json:"BusLength"`
BusType string `json:"BusType"`
CanAacn string `json:"CAN_AACN"`
CIB string `json:"CIB"`
CashForClunkers string `json:"CashForClunkers"`
ChargerLevel string `json:"ChargerLevel"`
ChargerPowerKW string `json:"ChargerPowerKW"`
CoolingType string `json:"CoolingType"`
CurbWeightLB string `json:"CurbWeightLB"`
CustomMotorcycleType string `json:"CustomMotorcycleType"`
DaytimeRunningLight string `json:"DaytimeRunningLight"`
DestinationMarket string `json:"DestinationMarket"`
DisplacementCC string `json:"DisplacementCC"`
DisplacementCI string `json:"DisplacementCI"`
DisplacementL string `json:"DisplacementL"`
Doors string `json:"Doors"`
DriveType string `json:"DriveType"`
DriverAssist string `json:"DriverAssist"`
DynamicBrakeSupport string `json:"DynamicBrakeSupport"`
EDR string `json:"EDR"`
ESC string `json:"ESC"`
EVDriveUnit string `json:"EVDriveUnit"`
ElectrificationLevel string `json:"ElectrificationLevel"`
EngineConfiguration string `json:"EngineConfiguration"`
EngineCycles string `json:"EngineCycles"`
EngineCylinders string `json:"EngineCylinders"`
EngineHP string `json:"EngineHP"`
EngineHPTo string `json:"EngineHP_to"`
EngineKW string `json:"EngineKW"`
EngineManufacturer string `json:"EngineManufacturer"`
EngineModel string `json:"EngineModel"`
EntertainmentSystem string `json:"EntertainmentSystem"`
ErrorCode string `json:"ErrorCode"`
ErrorText string `json:"ErrorText"`
ForwardCollisionWarning string `json:"ForwardCollisionWarning"`
FuelInjectionType string `json:"FuelInjectionType"`
FuelTypePrimary string `json:"FuelTypePrimary"`
FuelTypeSecondary string `json:"FuelTypeSecondary"`
GCWR string `json:"GCWR"`
GCWRTo string `json:"GCWR_to"`
GVWR string `json:"GVWR"`
GVWRTo string `json:"GVWR_to"`
KeylessIgnition string `json:"KeylessIgnition"`
LaneCenteringAssistance string `json:"LaneCenteringAssistance"`
LaneDepartureWarning string `json:"LaneDepartureWarning"`
LaneKeepSystem string `json:"LaneKeepSystem"`
LowerBeamHeadlampLightSource string `json:"LowerBeamHeadlampLightSource"`
Make string `json:"Make"`
MakeID string `json:"MakeID"`
Manufacturer string `json:"Manufacturer"`
ManufacturerID string `json:"ManufacturerId"`
Model string `json:"Model"`
ModelID string `json:"ModelID"`
ModelYear string `json:"ModelYear"`
MotorcycleChassisType string `json:"MotorcycleChassisType"`
MotorcycleSuspensionType string `json:"MotorcycleSuspensionType"`
NCSABodyType string `json:"NCSABodyType"`
NCSAMake string `json:"NCSAMake"`
NCSAMapExcApprovedBy string `json:"NCSAMapExcApprovedBy"`
NCSAMapExcApprovedOn string `json:"NCSAMapExcApprovedOn"`
NCSAMappingException string `json:"NCSAMappingException"`
NCSAModel string `json:"NCSAModel"`
NCSANote string `json:"NCSANote"`
NonLandUse string `json:"NonLandUse"`
Note string `json:"Note"`
OtherBusInfo string `json:"OtherBusInfo"`
OtherEngineInfo string `json:"OtherEngineInfo"`
OtherMotorcycleInfo string `json:"OtherMotorcycleInfo"`
OtherRestraintSystemInfo string `json:"OtherRestraintSystemInfo"`
OtherTrailerInfo string `json:"OtherTrailerInfo"`
ParkAssist string `json:"ParkAssist"`
PedestrianAutomaticEmergencyBraking string `json:"PedestrianAutomaticEmergencyBraking"`
PlantCity string `json:"PlantCity"`
PlantCompanyName string `json:"PlantCompanyName"`
PlantCountry string `json:"PlantCountry"`
PlantState string `json:"PlantState"`
PossibleValues string `json:"PossibleValues"`
Pretensioner string `json:"Pretensioner"`
RearAutomaticEmergencyBraking string `json:"RearAutomaticEmergencyBraking"`
RearCrossTrafficAlert string `json:"RearCrossTrafficAlert"`
RearVisibilitySystem string `json:"RearVisibilitySystem"`
SAEAutomationLevel string `json:"SAEAutomationLevel"`
SAEAutomationLevelTo string `json:"SAEAutomationLevel_to"`
SeatBeltsAll string `json:"SeatBeltsAll"`
SeatRows string `json:"SeatRows"`
Seats string `json:"Seats"`
SemiautomaticHeadlampBeamSwitching string `json:"SemiautomaticHeadlampBeamSwitching"`
Series string `json:"Series"`
Series2 string `json:"Series2"`
SteeringLocation string `json:"SteeringLocation"`
SuggestedVIN string `json:"SuggestedVIN"`
TPMS string `json:"TPMS"`
TopSpeedMPH string `json:"TopSpeedMPH"`
TrackWidth string `json:"TrackWidth"`
TractionControl string `json:"TractionControl"`
TrailerBodyType string `json:"TrailerBodyType"`
TrailerLength string `json:"TrailerLength"`
TrailerType string `json:"TrailerType"`
TransmissionSpeeds string `json:"TransmissionSpeeds"`
TransmissionStyle string `json:"TransmissionStyle"`
Trim string `json:"Trim"`
Trim2 string `json:"Trim2"`
Turbo string `json:"Turbo"`
VIN string `json:"VIN"`
ValveTrainDesign string `json:"ValveTrainDesign"`
VehicleDescriptor string `json:"VehicleDescriptor"`
VehicleType string `json:"VehicleType"`
WheelBaseLong string `json:"WheelBaseLong"`
WheelBaseShort string `json:"WheelBaseShort"`
WheelBaseType string `json:"WheelBaseType"`
WheelSizeFront string `json:"WheelSizeFront"`
WheelSizeRear string `json:"WheelSizeRear"`
Wheels string `json:"Wheels"`
Windows string `json:"Windows"`
}
type GetWmiResult struct {
Country interface{} `json:"Country"`
CreatedOn string `json:"CreatedOn"`
DateAvailableToPublic string `json:"DateAvailableToPublic"`
ID int64 `json:"Id"`
Name string `json:"Name"`
UpdatedOn interface{} `json:"UpdatedOn"`
VehicleType string `json:"VehicleType"`
WMI string `json:"WMI"`
}
type GetAllMakesResult struct {
MakeId int64 `json:"Make_ID"`
MakeName string `json:"Make_Name"`
}
type GetPartsResult struct {
CoverLetterURL string `json:"CoverLetterURL"`
LetterDate string `json:"LetterDate"`
ManufacturerID int64 `json:"ManufacturerId"`
ManufacturerName string `json:"ManufacturerName"`
ModelYearFrom interface{} `json:"ModelYearFrom"`
ModelYearTo interface{} `json:"ModelYearTo"`
Name string `json:"Name"`
Type string `json:"Type"`
URL string `json:"URL"`
}
type GetAllManufacturersResult struct {
Country string `json:"Country"`
CommonName string `json:"Mfr_CommonName"`
ID int64 `json:"Mfr_ID"`
Name string `json:"Mfr_Name"`
VehicleTypes []ManufacturerVehicleType `json:"VehicleTypes"`
}
type GetManufacturerDetailsResult struct {
Address string `json:"Address"`
Address2 string `json:"Address2"`
City string `json:"City"`
ContactEmail string `json:"ContactEmail"`
ContactFax interface{} `json:"ContactFax"`
ContactPhone string `json:"ContactPhone"`
Country string `json:"Country"`
DBAs string `json:"DBAs"`
EquipmentItems []interface{} `json:"EquipmentItems"`
LastUpdated string `json:"LastUpdated"`
ManufacturerTypes []ManufacturerType `json:"ManufacturerTypes"`
MfrCommonName string `json:"Mfr_CommonName"`
MfrID int64 `json:"Mfr_ID"`
MfrName string `json:"Mfr_Name"`
OtherManufacturerDetails string `json:"OtherManufacturerDetails"`
PostalCode string `json:"PostalCode"`
PrimaryProduct interface{} `json:"PrimaryProduct"`
PrincipalFirstName string `json:"PrincipalFirstName"`
PrincipalLastName interface{} `json:"PrincipalLastName"`
PrincipalPosition string `json:"PrincipalPosition"`
StateProvince string `json:"StateProvince"`
SubmittedName string `json:"SubmittedName"`
SubmittedOn string `json:"SubmittedOn"`
SubmittedPosition string `json:"SubmittedPosition"`
VehicleTypes []ManufacturerVehicleType `json:"VehicleTypes"`
}
type GetMakeManufacturerNameResult struct {
MakeID int64 `json:"Make_ID"`
MakeName string `json:"Make_Name"`
MfrName string `json:"Mfr_Name"`
}
type GetMakeManufacturerNameYearResult struct {
MakeID int64 `json:"MakeId"`
MakeName string `json:"MakeName"`
MfrID int64 `json:"MfrId"`
MfrName string `json:"MfrName"`
}
type VehicleTypeNameResult struct {
MakeID int64 `json:"MakeId"`
MakeName string `json:"MakeName"`
VehicleTypeID int64 `json:"VehicleTypeId"`
VehicleTypeName string `json:"VehicleTypeName"`
}
type VehicleTypeIdResult struct {
VehicleTypeID int64 `json:"VehicleTypeId"`
VehicleTypeName string `json:"VehicleTypeName"`
}
type GetEquipmentPlantCodesResult struct {
Address interface{} `json:"Address"`
City interface{} `json:"City"`
Country string `json:"Country"`
DotCode string `json:"DOTCode"`
Name string `json:"Name"`
OldDotCode string `json:"OldDotCode"`
PostalCode interface{} `json:"PostalCode"`
StateProvince interface{} `json:"StateProvince"`
Status string `json:"Status"`
}
type GetModelsResult struct {
MakeID int64 `json:"Make_ID"`
MakeName string `json:"Make_Name"`
ModelID int64 `json:"Model_ID"`
ModelName string `json:"Model_Name"`
}
type GetVehicleVariableResult struct {
DataType string `json:"DataType"`
Description string `json:"Description"`
GroupName string `json:"GroupName"`
ID int64 `json:"ID"`
Name string `json:"Name"`
}
type GetVehicleVariableValuesResult struct {
ElementName string `json:"ElementName"`
ID int64 `json:"Id"`
Name string `json:"Name"`
}
type GetCAVehicleSpecsResult struct {
Name string `json:"Name"`
Value string `json:"Value"`
}