Moved balance up
This commit is contained in:
parent
f17c9bb781
commit
5bfe492ada
|
@ -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,
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue