From 3aa0edfb34f18ede9455569b9a1b830e1ff317ab Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 11 Sep 2024 23:05:26 +0200 Subject: [PATCH] Renamed lastTransactionsRetrievalTime to lastAccountUpdateTime --- .../net/codinux/banking/fints/mapper/FinTsModelMapper.kt | 4 ++-- .../kotlin/net/dankito/banking/client/model/BankAccount.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt index feede22c..7c20fbeb 100644 --- a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt +++ b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt @@ -94,8 +94,8 @@ open class FinTsModelMapper { val retrievalTime = if (retrieveTransactionsTo == null) accountTransactionsResponse.retrievalTime else retrieveTransactionsTo.atTime(0, 0).toInstant(TimeZone.EuropeBerlin) - if (bankAccount.lastTransactionsRetrievalTime == null || bankAccount.lastTransactionsRetrievalTime!! <= retrievalTime) { // if retrieveTransactionsTo is set it may is older than current account's lastTransactionsRetrievalTime - bankAccount.lastTransactionsRetrievalTime = retrievalTime + if (bankAccount.lastAccountUpdateTime == null || bankAccount.lastAccountUpdateTime!! <= retrievalTime) { // if retrieveTransactionsTo is set it may is older than current account's lastTransactionsRetrievalTime + bankAccount.lastAccountUpdateTime = retrievalTime } if (accountTransactionsResponse.bookedTransactions.isNotEmpty()) { diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/client/model/BankAccount.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/client/model/BankAccount.kt index 5c83d885..c33d0f2a 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/client/model/BankAccount.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/client/model/BankAccount.kt @@ -37,7 +37,7 @@ open class BankAccount( open var retrievedTransactionsFrom: LocalDate? = null - open var lastTransactionsRetrievalTime: Instant? = null + open var lastAccountUpdateTime: Instant? = null open var bookedTransactions: List = listOf()