Renamed lastTransactionRetrievalTime to lastTransactionsRetrievalTime

This commit is contained in:
dankito 2024-09-03 21:15:41 +02:00
parent d689c7663f
commit 3b05a8b9c8
2 changed files with 3 additions and 3 deletions

View File

@ -87,8 +87,8 @@ open class FinTsModelMapper {
} }
val retrievalTime = if (retrieveTransactionsTo == null) accountTransactionsResponse.retrievalTime else retrieveTransactionsTo.atTime(0, 0) val retrievalTime = if (retrieveTransactionsTo == null) accountTransactionsResponse.retrievalTime else retrieveTransactionsTo.atTime(0, 0)
if (bankAccount.lastTransactionRetrievalTime == null || bankAccount.lastTransactionRetrievalTime!! <= retrievalTime) { // if retrieveTransactionsTo is set it may is older than current account's lastTransactionRetrievalTime if (bankAccount.lastTransactionsRetrievalTime == null || bankAccount.lastTransactionsRetrievalTime!! <= retrievalTime) { // if retrieveTransactionsTo is set it may is older than current account's lastTransactionsRetrievalTime
bankAccount.lastTransactionRetrievalTime = retrievalTime bankAccount.lastTransactionsRetrievalTime = retrievalTime
} }
bankAccount.bookedTransactions = map(accountTransactionsResponse) bankAccount.bookedTransactions = map(accountTransactionsResponse)

View File

@ -36,7 +36,7 @@ open class BankAccount(
open var retrievedTransactionsFrom: LocalDate? = null open var retrievedTransactionsFrom: LocalDate? = null
open var lastTransactionRetrievalTime: LocalDateTime? = null open var lastTransactionsRetrievalTime: LocalDateTime? = null
open var bookedTransactions: List<AccountTransaction> = listOf() open var bookedTransactions: List<AccountTransaction> = listOf()