-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_model.go
281 lines (272 loc) · 11.9 KB
/
api_model.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
package mercedes
import "time"
type ConfigResponse struct {
ForceUpdate struct {
Status string `json:"status"`
StoreUrl string `json:"storeUrl"`
} `json:"forceUpdate"`
VehicleImagesBaseUrl string `json:"vehicleImagesBaseUrl"`
}
type LoginResponse struct {
IsEmail bool `json:"isEmail"`
Username string `json:"username"`
}
type OAuth2Response struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
TokenType string `json:"token_type"`
ExpiresIn int `json:"expires_in"`
}
type RefreshTokenResponse struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn int `json:"expires_in"`
}
type GetVehiclesResponse struct {
AssignedVehicles []struct {
AuthorizationType string `json:"authorizationType"`
Carline string `json:"carline"`
DataCollectorVersion string `json:"dataCollectorVersion"`
Dealers struct {
Items []struct {
DealerData struct {
Address struct {
City string `json:"city"`
CountryIsoCode string `json:"countryIsoCode"`
Street string `json:"street"`
ZipCode string `json:"zipCode"`
} `json:"address"`
Communication struct {
Fax string `json:"fax"`
Phone string `json:"phone"`
Website string `json:"website"`
} `json:"communication"`
GeoCoordinates struct {
Latitude int `json:"latitude"`
Longitude int `json:"longitude"`
} `json:"geoCoordinates"`
ID string `json:"id"`
LegalName string `json:"legalName"`
OpeningHours struct {
Friday struct {
Periods []struct {
From string `json:"from"`
Until string `json:"until"`
} `json:"periods"`
Status string `json:"status"`
} `json:"FRIDAY"`
Monday struct {
Periods []struct {
From string `json:"from"`
Until string `json:"until"`
} `json:"periods"`
Status string `json:"status"`
} `json:"MONDAY"`
Saturday struct {
Periods []struct {
From string `json:"from"`
Until string `json:"until"`
} `json:"periods"`
Status string `json:"status"`
} `json:"SATURDAY"`
Sunday struct {
Periods []struct {
From string `json:"from"`
Until string `json:"until"`
} `json:"periods"`
Status string `json:"status"`
} `json:"SUNDAY"`
Thursday struct {
Periods []struct {
From string `json:"from"`
Until string `json:"until"`
} `json:"periods"`
Status string `json:"status"`
} `json:"THURSDAY"`
Tuesday struct {
Periods []struct {
From string `json:"from"`
Until string `json:"until"`
} `json:"periods"`
Status string `json:"status"`
} `json:"TUESDAY"`
Wednesday struct {
Periods []struct {
From string `json:"from"`
Until string `json:"until"`
} `json:"periods"`
Status string `json:"status"`
} `json:"WEDNESDAY"`
} `json:"openingHours"`
Region struct {
Region string `json:"region"`
} `json:"region"`
SpokenLanguages interface{} `json:"spokenLanguages"`
} `json:"dealerData"`
DealerID string `json:"dealerId"`
Role string `json:"role"`
UpdatedAt time.Time `json:"updatedAt"`
} `json:"items"`
} `json:"dealers"`
Fin string `json:"fin"`
IsOwner bool `json:"isOwner"`
IsTemporarilyAccessible bool `json:"isTemporarilyAccessible"`
LicensePlate string `json:"licensePlate"`
Mopf bool `json:"mopf"`
NormalizedProfileControlSupport string `json:"normalizedProfileControlSupport"`
ProfileSyncSupport string `json:"profileSyncSupport"`
SalesRelatedInformation struct {
Baumuster struct {
Baumuster string `json:"baumuster"`
BaumusterDescription string `json:"baumusterDescription"`
} `json:"baumuster"`
Line struct {
Code string `json:"code"`
Description string `json:"description"`
} `json:"line"`
Paint struct {
Code string `json:"code"`
Description string `json:"description"`
} `json:"paint"`
Upholstery struct {
Code string `json:"code"`
Description string `json:"description"`
} `json:"upholstery"`
} `json:"salesRelatedInformation"`
TirePressureMonitoringType string `json:"tirePressureMonitoringType"`
TrustLevel int `json:"trustLevel"`
VehicleConnectivity string `json:"vehicleConnectivity"`
VehicleSegment string `json:"vehicleSegment"`
Vin string `json:"vin"`
WindowsLiftCount string `json:"windowsLiftCount"`
} `json:"assignedVehicles"`
Fleets []interface{} `json:"fleets"`
}
type GetUserDetailResponse struct {
AccountCountryCode string `json:"accountCountryCode"`
AccountIdentifier string `json:"accountIdentifier"`
AccountVerified bool `json:"accountVerified"`
AdaptionValues struct {
Alias string `json:"alias"`
BodyHeight int `json:"bodyHeight"`
PreAdjustment bool `json:"preAdjustment"`
} `json:"adaptionValues"`
Address struct {
AddressLine1 string `json:"addressLine1"`
AddressLine2 string `json:"addressLine2"`
AddressLine3 string `json:"addressLine3"`
City string `json:"city"`
CountryCode string `json:"countryCode"`
DoorNo string `json:"doorNo"`
FloorNo string `json:"floorNo"`
HouseName string `json:"houseName"`
HouseNo string `json:"houseNo"`
PostOfficeBox string `json:"postOfficeBox"`
Province string `json:"province"`
State string `json:"state"`
Street string `json:"street"`
StreetType string `json:"streetType"`
ZipCode string `json:"zipCode"`
} `json:"address"`
AddressLines []string `json:"addressLines"`
Birthday string `json:"birthday"`
CiamID string `json:"ciamId"`
CommunicationPreference struct {
ContactedByEmail bool `json:"contactedByEmail"`
ContactedByLetter bool `json:"contactedByLetter"`
ContactedByPhone bool `json:"contactedByPhone"`
ContactedBySms bool `json:"contactedBySms"`
} `json:"communicationPreference"`
CreatedAt time.Time `json:"createdAt"`
CreatedBy string `json:"createdBy"`
Email string `json:"email"`
FirstName string `json:"firstName"`
IsEmailVerified bool `json:"isEmailVerified"`
IsMobileVerified bool `json:"isMobileVerified"`
LandlinePhone string `json:"landlinePhone"`
LastName1 string `json:"lastName1"`
LastName2 string `json:"lastName2"`
MiddleInitial string `json:"middleInitial"`
MobilePhoneNumber string `json:"mobilePhoneNumber"`
NamePrefix string `json:"namePrefix"`
Nickname string `json:"nickname"`
PreferredLanguageCode string `json:"preferredLanguageCode"`
SalutationCode string `json:"salutationCode"`
TaxNumber string `json:"taxNumber"`
Title string `json:"title"`
UnitPreferences struct {
ClockHours string `json:"clockHours"`
ConsumptionCo string `json:"consumptionCo"`
ConsumptionEv string `json:"consumptionEv"`
ConsumptionGas string `json:"consumptionGas"`
RelevantConsumptionUnitOptions []string `json:"relevantConsumptionUnitOptions"`
SpeedDistance string `json:"speedDistance"`
Temperature string `json:"temperature"`
TirePressure string `json:"tirePressure"`
UserLengthUnit string `json:"userLengthUnit"`
} `json:"unitPreferences"`
UpdatedAt time.Time `json:"updatedAt"`
UserPinStatus string `json:"userPinStatus"`
UserPinUpdatedAt time.Time `json:"userPinUpdatedAt"`
}
type GetCapabilitiesResponse struct {
Features struct {
AuxHeat bool `json:"auxHeat"`
BidirectionalCharging bool `json:"bidirectionalCharging"`
ChargingClockTimer bool `json:"chargingClockTimer"`
ControllableRearWindowBlind bool `json:"controllableRearWindowBlind"`
ControllableSunroof bool `json:"controllableSunroof"`
Convertible bool `json:"convertible"`
DcCharging bool `json:"dcCharging"`
DistronicPro bool `json:"distronicPro"`
DoubleDoorLock bool `json:"doubleDoorLock"`
DriverAssistancePackageHigh bool `json:"driverAssistancePackageHigh"`
DriverAssistancePackagePlus bool `json:"driverAssistancePackagePlus"`
EcoCharging bool `json:"ecoCharging"`
FastCharging bool `json:"fastCharging"`
HepaFilter bool `json:"hepaFilter"`
Mopf bool `json:"mopf"`
PictureTransfer bool `json:"pictureTransfer"`
PluggedStateDependingPreEntryClimateControl bool `json:"pluggedStateDependingPreEntryClimateControl"`
PrecondNow bool `json:"precondNow"`
RearSunProtectionBlinds bool `json:"rearSunProtectionBlinds"`
RemoteSettingPersonalizedTemperature bool `json:"remoteSettingPersonalizedTemperature"`
RemoteSettingTemperature bool `json:"remoteSettingTemperature"`
TwinTire bool `json:"twinTire"`
UrbanGuard bool `json:"urbanGuard"`
VariableOpenableSunroof bool `json:"variableOpenableSunroof"`
VariableOpenableWindow bool `json:"variableOpenableWindow"`
WeeklyProfile bool `json:"weeklyProfile"`
} `json:"features"`
Vehicle struct {
Baumuster string `json:"baumuster"`
ChangeYearCodes interface{} `json:"changeYearCodes"`
ControllableSunroofBlindsCount interface{} `json:"controllableSunroofBlindsCount"`
DigitalVehicleKeys []string `json:"digitalVehicleKeys"`
DoorsCount int `json:"doorsCount"`
DoorsHandleType string `json:"doorsHandleType"`
DrivingSide string `json:"drivingSide"`
ElectricVehicleType interface{} `json:"electricVehicleType"`
ElectricWindowLifts []string `json:"electricWindowLifts"`
FuelTypes []string `json:"fuelTypes"`
HeadUnitSoftwareVersion string `json:"headUnitSoftwareVersion"`
HeadUnitType string `json:"headUnitType"`
ModelYearCode string `json:"modelYearCode"`
PowertrainBatteryModel []interface{} `json:"powertrainBatteryModel"`
ProductGroup string `json:"productGroup"`
RemoteSeatConfiguration string `json:"remoteSeatConfiguration"`
StarArchitecture string `json:"starArchitecture"`
SunroofType string `json:"sunroofType"`
TcuType string `json:"tcuType"`
TirePressureMonitorType string `json:"tirePressureMonitorType"`
} `json:"vehicle"`
}
type GetCommandCapabilitiesResponse struct {
Commands []struct {
AdditionalInformation interface{} `json:"additionalInformation"`
CapabilityInformation interface{} `json:"capabilityInformation"`
CommandName string `json:"commandName"`
IsAvailable bool `json:"isAvailable"`
Parameters interface{} `json:"parameters"`
} `json:"commands"`
}