Added displayName to be able to replace shortcut `productName ?: identifier` in application
This commit is contained in:
parent
aab562ccf4
commit
c3c0b2830e
|
@ -2,6 +2,7 @@ package net.codinux.banking.client.model
|
|||
|
||||
import kotlinx.datetime.LocalDate
|
||||
import kotlinx.datetime.LocalDateTime
|
||||
import net.codinux.banking.client.model.config.JsonIgnore
|
||||
import net.codinux.banking.client.model.config.NoArgConstructor
|
||||
|
||||
@NoArgConstructor
|
||||
|
@ -35,5 +36,9 @@ open class BankAccount(
|
|||
var hideAccount: Boolean = false,
|
||||
var includeInAutomaticAccountsUpdate: Boolean = true
|
||||
) {
|
||||
@get:JsonIgnore
|
||||
open val displayName: String
|
||||
get() = productName ?: identifier
|
||||
|
||||
override fun toString() = "$type $identifier $productName (IBAN: $iban)"
|
||||
}
|
Loading…
Reference in New Issue