Renamed otherPartyBankCode to otherPartyBankId and made reference nullable
This commit is contained in:
parent
e6aec071a2
commit
2c2db147b4
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue