Added convenience constructor
This commit is contained in:
parent
d48b708a97
commit
675066c216
|
@ -8,5 +8,7 @@ open class BankAccountIdentifier(
|
||||||
val subAccountNumber: String?,
|
val subAccountNumber: String?,
|
||||||
val iban: String?
|
val iban: String?
|
||||||
) {
|
) {
|
||||||
|
constructor(account: BankAccount) : this(account.identifier, account.subAccountNumber, account.iban)
|
||||||
|
|
||||||
override fun toString() = "$identifier, $iban"
|
override fun toString() = "$identifier, $iban"
|
||||||
}
|
}
|
Loading…
Reference in New Issue