From 2c2db147b4a10cf0febb73295733012f253ba633 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 8 Sep 2024 22:09:59 +0200 Subject: [PATCH] Renamed otherPartyBankCode to otherPartyBankId and made reference nullable --- .../net/codinux/banking/client/model/AccountTransaction.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/AccountTransaction.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/AccountTransaction.kt index 0d68fd80..8e866afc 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/AccountTransaction.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/AccountTransaction.kt @@ -7,7 +7,7 @@ import net.codinux.banking.client.model.config.NoArgConstructor open class AccountTransaction( val amount: Amount = Amount.Zero, // TODO: a string is really bad in UI, find a better solution val currency: String, - val reference: String, // Alternative: Remittance information, Transaction description, (payment) purpose, payment reference + val reference: String?, // Alternative: Remittance information, Transaction description, (payment) purpose, payment reference /** * Transaction date (Buchungstag) - der Tag, an dem ein Zahlungsvorgang in das System einer Bank eingegangen ist. @@ -32,7 +32,7 @@ open class AccountTransaction( /** * Bank Identifier, in most cases BIC, of the Payer or Payee */ - val otherPartyBankCode: String? = null, + val otherPartyBankId: String? = null, /** * Account Identifier, in most cases IBAN, of the Payer or Payee */ @@ -127,7 +127,7 @@ open class AccountTransaction( ) { open val identifier by lazy { - "$amount $currency $bookingDate $valueDate $reference $otherPartyName $otherPartyBankCode $otherPartyAccountId" + "$amount $currency $bookingDate $valueDate $reference $otherPartyName $otherPartyBankId $otherPartyAccountId" } override fun toString() = "${valueDate.dayOfMonth}.${valueDate.monthNumber}.${valueDate.year} ${amount.toString().padStart(4, ' ')} ${if (currency == "EUR") "€" else currency} ${otherPartyName ?: ""} - $reference"