Also added displayName for UserAccount and both respect now userSetDisplayName
This commit is contained in:
parent
c3c0b2830e
commit
9a2bc6b430
|
@ -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)"
|
||||
}
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue