Added JsonIgnore

This commit is contained in:
dankito 2024-09-09 00:36:34 +02:00
parent 705740a0d0
commit 432e5016a9
1 changed files with 3 additions and 0 deletions

View File

@ -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