From 675066c2162ba38fcd5e88a5f6bc5cf7bcae6fd1 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 5 Sep 2024 22:43:37 +0200 Subject: [PATCH] Added convenience constructor --- .../net/codinux/banking/client/model/BankAccountIdentifier.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccountIdentifier.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccountIdentifier.kt index 08cd0145..3bf5b0c3 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccountIdentifier.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccountIdentifier.kt @@ -8,5 +8,7 @@ open class BankAccountIdentifier( val subAccountNumber: String?, val iban: String? ) { + constructor(account: BankAccount) : this(account.identifier, account.subAccountNumber, account.iban) + override fun toString() = "$identifier, $iban" } \ No newline at end of file