Also added displayName for UserAccount and both respect now userSetDisplayName

This commit is contained in:
dankito 2024-09-03 02:13:02 +02:00
parent c3c0b2830e
commit 9a2bc6b430
2 changed files with 6 additions and 1 deletions

View File

@ -38,7 +38,7 @@ open class BankAccount(
) {
@get:JsonIgnore
open val displayName: String
get() = productName ?: identifier
get() = userSetDisplayName ?: productName ?: identifier
override fun toString() = "$type $identifier $productName (IBAN: $iban)"
}

View File

@ -51,6 +51,11 @@ open class UserAccount(
var displayIndex: Int = 0
@get:JsonIgnore
open val displayName: String
get() = userSetDisplayName ?: bankName
@get:JsonIgnore
val selectedTanMethod: TanMethod
get() = tanMethods.first { it.identifier == selectedTanMethodId }