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 534730cf..d32ddd70 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 @@ -1,7 +1,9 @@ package net.codinux.banking.client.model.tan +import net.codinux.banking.client.model.config.JsonIgnore import net.codinux.banking.client.model.config.NoArgConstructor +@Suppress("RUNTIME_ANNOTATION_NOT_SUPPORTED") @NoArgConstructor open class TanMethod( open val displayName: String, @@ -11,6 +13,7 @@ open class TanMethod( open val allowedTanFormat: AllowedTanFormat = AllowedTanFormat.Alphanumeric ) { + @get:JsonIgnore open val isNumericTan: Boolean get() = allowedTanFormat == AllowedTanFormat.Numeric