From 4298fc9e40d6a7bc768393664366a343aa53d4f9 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 8 Sep 2024 22:46:47 +0200 Subject: [PATCH] Added isNumericTan --- .../kotlin/net/codinux/banking/client/model/tan/TanMethod.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethod.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethod.kt index 0da8e433..534730cf 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethod.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethod.kt @@ -10,5 +10,9 @@ open class TanMethod( open val maxTanInputLength: Int? = null, open val allowedTanFormat: AllowedTanFormat = AllowedTanFormat.Alphanumeric ) { + + open val isNumericTan: Boolean + get() = allowedTanFormat == AllowedTanFormat.Numeric + override fun toString() = "$displayName ($type, ${identifier})" } \ No newline at end of file