From aab562ccf483f28e950ce28b3a3858b597628319 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 3 Sep 2024 01:08:04 +0200 Subject: [PATCH] Updated to that fints4k replaced retrievedTransactionsTo with lastTransactionRetrievalTime --- .../kotlin/net/codinux/banking/client/model/BankAccount.kt | 3 ++- .../kotlin/net/codinux/banking/client/fints4k/FinTs4kMapper.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccount.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccount.kt index 32afd735..375a6282 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccount.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccount.kt @@ -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, diff --git a/FinTs4jBankingClient/src/commonMain/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapper.kt b/FinTs4jBankingClient/src/commonMain/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapper.kt index f9c1a2ea..071f628a 100644 --- a/FinTs4jBankingClient/src/commonMain/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapper.kt +++ b/FinTs4jBankingClient/src/commonMain/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapper.kt @@ -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()