Beta version
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s

This commit is contained in:
2025-06-04 12:48:53 -04:00
parent e25b6a67f3
commit 934f1259d0
4 changed files with 31 additions and 30 deletions

View File

@ -94,6 +94,24 @@ var apiURLs = map[string]string{
// "API_FEATURE_G3_TELEMATICS": "g3",
// }
var API_ERRORS = map[string]string{
"403-soa-unableToParseResponseBody": "ERROR_SOA_403", // G2 Error Codes
"InvalidCredentials": "ERROR_INVALID_CREDENTIALS",
"ServiceAlreadyStarted": "ERROR_SERVICE_ALREADY_STARTED",
"invalidAccount": "ERROR_INVALID_ACCOUNT",
"passwordWarning": "ERROR_PASSWORD_WARNING",
"accountLocked": "ERROR_ACCOUNT_LOCKED",
"noVehiclesOnAccount": "ERROR_NO_VEHICLES",
"accountNotFound": "ERROR_NO_ACCOUNT",
"tooManyAttempts": "ERROR_TOO_MANY_ATTEMPTS",
"vehicleNotInAccount": "ERROR_VEHICLE_NOT_IN_ACCOUNT",
"SXM40004": "ERROR_G1_NO_SUBSCRIPTION", // G1 Error Codes
"SXM40005": "ERROR_G1_STOLEN_VEHICLE",
"SXM40006": "ERROR_G1_INVALID_PIN",
"SXM40009": "ERROR_G1_SERVICE_ALREADY_STARTED",
"SXM40017": "ERROR_G1_PIN_LOCKED",
}
// TODO: Get back and add error wrapper
// var apiErrors = map[string]string{
// "ERROR_SOA_403": "403-soa-unableToParseResponseBody", // G2 Error Codes