Changed order of BankAccount properties

This commit is contained in:
dankito 2024-09-05 22:25:30 +02:00
parent 9512db3402
commit 4c860e7b20
2 changed files with 9 additions and 8 deletions

View File

@ -7,20 +7,20 @@ import net.codinux.banking.client.model.config.NoArgConstructor
@NoArgConstructor
open class BankAccount(
val identifier: String,
val subAccountNumber: String? = null,
val iban: String? = null,
val productName: String? = null,
var accountHolderName: String,
val type: BankAccountType = BankAccountType.Other,
val iban: String? = null,
val subAccountNumber: String? = null,
val productName: String? = null,
val currency: String = "EUR",
var accountLimit: String? = null,
// var balance: BigDecimal = BigDecimal.ZERO,
var balance: Amount = Amount.Zero, // TODO: add a BigDecimal library
val isAccountTypeSupportedByApplication: Boolean = false,
val features: Set<BankAccountFeatures> = emptySet(),
// var balance: BigDecimal = BigDecimal.ZERO,
var balance: Amount = Amount.Zero, // TODO: add a BigDecimal library
val transactionsRetentionDays: Int? = null,
open var lastTransactionsRetrievalTime: Instant? = null,
var retrievedTransactionsFrom: LocalDate? = null,

View File

@ -129,9 +129,10 @@ open class FinTs4kMapper {
protected open fun mapAccount(account: net.dankito.banking.client.model.BankAccount) = BankAccount(
account.identifier, account.accountHolderName, mapAccountType(account.type), account.iban, account.subAccountNumber,
account.productName, account.currency, account.accountLimit, mapAmount(account.balance),
account.identifier, account.subAccountNumber, account.iban, account.productName, account.accountHolderName,
mapAccountType(account.type), account.currency, account.accountLimit,
account.isAccountTypeSupportedByApplication, mapFeatures(account),
mapAmount(account.balance),
account.countDaysForWhichTransactionsAreKept,
account.lastTransactionsRetrievalTime, account.retrievedTransactionsFrom,
bookedTransactions = mapBookedTransactions(account).toMutableList()