From 7353b0347eff670f17588c5fdbc528f8aadcd185 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 5 Sep 2024 22:06:06 +0200 Subject: [PATCH] Renamed countDaysForWhichTransactionsAreKeptOnBankServer to transactionsRetentionDays --- .../kotlin/net/codinux/banking/client/model/BankAccount.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 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 da0a32e2..ce20953e 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 @@ -21,7 +21,7 @@ open class BankAccount( val isAccountTypeSupportedByApplication: Boolean = false, val features: Set = emptySet(), - val countDaysForWhichTransactionsAreKeptOnBankServer: Int? = null, + val transactionsRetentionDays: Int? = null, open var lastTransactionsRetrievalTime: Instant? = null, var retrievedTransactionsFrom: LocalDate? = null, @@ -44,7 +44,7 @@ open class BankAccount( /** * Determines if all transactions that are retained on bank server have been fetched. * - * Does this by comparing [countDaysForWhichTransactionsAreKeptOnBankServer] to [retrievedTransactionsFrom]. + * Does this by comparing [transactionsRetentionDays] to [retrievedTransactionsFrom]. */ open val haveAllRetainedTransactionsBeenRetrieved: Boolean by lazy { val fromDay = retrievedTransactionsFrom @@ -52,7 +52,7 @@ open class BankAccount( false } else { // if countDaysForWhichTransactionsAreKeptOnBankServer is not set, we cannot know for how long bank server keeps transactions. We then assume for 90 days - val storageDays = countDaysForWhichTransactionsAreKeptOnBankServer ?: 90 + val storageDays = transactionsRetentionDays ?: 90 fromDay < Clock.System.now().toLocalDateTime(TimeZone.of("Europe/Berlin")).date.minus(storageDays, DateTimeUnit.DAY) } }