Moved balance up

This commit is contained in:
dankito 2024-09-03 22:18:32 +02:00
parent f17c9bb781
commit 5bfe492ada
2 changed files with 6 additions and 6 deletions

View File

@ -16,12 +16,12 @@ open class BankAccount(
val currency: String = "EUR",
var accountLimit: String? = null,
val isAccountTypeSupportedByApplication: Boolean = true,
val features: Set<BankAccountFeatures> = emptySet(),
// var balance: BigDecimal = BigDecimal.ZERO,
var balance: Amount = Amount.Zero, // TODO: add a BigDecimal library
val isAccountTypeSupportedByApplication: Boolean = false,
val features: Set<BankAccountFeatures> = emptySet(),
open var lastTransactionsRetrievalTime: Instant? = null,
var retrievedTransactionsFrom: LocalDate? = null,

View File

@ -126,9 +126,9 @@ 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, account.isAccountTypeSupportedByApplication,
mapFeatures(account),
mapAmount(account.balance), account.lastTransactionsRetrievalTime, account.retrievedTransactionsFrom,
account.productName, account.currency, account.accountLimit, mapAmount(account.balance),
account.isAccountTypeSupportedByApplication, mapFeatures(account),
account.lastTransactionsRetrievalTime, account.retrievedTransactionsFrom,
// TODO: map haveAllTransactionsBeenRetrieved
countDaysForWhichTransactionsAreKept = account.countDaysForWhichTransactionsAreKept,
bookedTransactions = mapBookedTransactions(account).toMutableList()