diff --git a/mysubaru.go b/mysubaru.go index c949e3e..919dbf7 100644 --- a/mysubaru.go +++ b/mysubaru.go @@ -8,10 +8,10 @@ import ( // Response . type Response struct { - Success bool `json:"success"` // true | false - ErrorCode string `json:"errorCode,omitempty"` // string | Error message if Success is false - DataName string `json:"dataName"` // string | Describes the structure which is incleded in Data field - Data interface{} `json:"data"` // Data struct + Success bool `json:"success"` // true | false + ErrorCode string `json:"errorCode,omitempty"` // string | Error message if Success is false + DataName string `json:"dataName"` // string | Describes the structure which is incleded in Data field + Data any `json:"data"` // Data struct } // Account . @@ -270,7 +270,7 @@ type ServiceRequest struct { // "dataName":"errorResponse" type ErrorResponse struct { ErrorLabel string `json:"errorLabel"` // "404-soa-unableToParseResponseBody" - ErrorDescription *string `json:"errorDescription,omitempty"` //null + ErrorDescription *string `json:"errorDescription,omitempty"` // null } // climateSettings: [ climateSettings ] @@ -283,8 +283,8 @@ type ErrorResponse struct { // outerAirCirculation: [ outsideAir, recirculation ] // airConditionOn: [ false | true ] // heatedRearWindowActive: [ false | true ] -// startConfiguration: [ start_Climate_Control_only_allow_key_in_ignition | START_ENGINE_ALLOW_KEY_IN_IGNITION ] -// runTimeMinutes: [ 10 ], +// startConfiguration: [ START_CLIMATE_CONTROL_ONLY_ALLOW_KEY_IN_IGNITION | START_ENGINE_ALLOW_KEY_IN_IGNITION ] +// runTimeMinutes: [ 10 ] type VehicleHealthItem struct { B2cCode string `json:"b2cCode"`