From 432e5016a9f57f06691806bbbab86696cd564826 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 9 Sep 2024 00:36:34 +0200 Subject: [PATCH] Added JsonIgnore --- .../kotlin/net/codinux/banking/client/model/tan/TanMethod.kt | 3 +++ 1 file changed, 3 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 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