Implemented toString()

This commit is contained in:
dankl 2020-01-25 19:53:44 +01:00 committed by dankito
parent 900b6624e0
commit 90ce8be25d
1 changed files with 17 additions and 0 deletions

View File

@ -39,4 +39,21 @@ open class FinTsClientResponse(
return Response(this.isSuccessful) return Response(this.isSuccessful)
} }
override fun toString(): String {
if (noTanProcedureSelected) {
return "Error: No TAN procedure selected"
}
if (isJobAllowed == false) {
return "Error: Job is not allowed"
}
if (isJobVersionSupported == false) {
return "Error: Job version is not supported. Supported versions are $supportedVersions"
}
return "isSuccessful = $isSuccessful"
}
} }