Renamed lastTransactionsRetrievalTime to lastAccountUpdateTime

This commit is contained in:
dankito 2024-09-11 23:05:26 +02:00
parent e4d605531e
commit 3aa0edfb34
2 changed files with 3 additions and 3 deletions

View File

@ -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()) {

View File

@ -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<AccountTransaction> = listOf()