Updated to that fints4k replaced retrievedTransactionsTo with lastTransactionRetrievalTime

This commit is contained in:
dankito 2024-09-03 01:08:04 +02:00
parent b210c1e7fa
commit aab562ccf4
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package net.codinux.banking.client.model
import kotlinx.datetime.LocalDate
import kotlinx.datetime.LocalDateTime
import net.codinux.banking.client.model.config.NoArgConstructor
@NoArgConstructor
@ -20,7 +21,7 @@ open class BankAccount(
// var balance: BigDecimal = BigDecimal.ZERO,
var balance: Amount = Amount.Zero, // TODO: add a BigDecimal library
var retrievedTransactionsFrom: LocalDate? = null,
var retrievedTransactionsTo: LocalDate? = null,
open var lastTransactionRetrievalTime: LocalDateTime? = null,
var haveAllTransactionsBeenRetrieved: Boolean = false,
val countDaysForWhichTransactionsAreKept: Int? = null,

View File

@ -84,7 +84,7 @@ open class FinTs4kMapper {
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.retrievedTransactionsFrom, account.retrievedTransactionsTo,
mapAmount(account.balance), account.retrievedTransactionsFrom, account.lastTransactionRetrievalTime,
// TODO: map haveAllTransactionsBeenRetrieved
countDaysForWhichTransactionsAreKept = account.countDaysForWhichTransactionsAreKept,
bookedTransactions = account.bookedTransactions.map { mapTransaction(it) }.toMutableList()