Renamed lastTransactionsRetrievalTime to lastAccountUpdateTime
This commit is contained in:
parent
e4d605531e
commit
3aa0edfb34
|
@ -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()) {
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue