From 6b53355b97a183abb5538930a2cb9f088276c816 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 13 May 2020 14:19:03 +0200 Subject: [PATCH] For public signature removed parameter hasRetrievedTransactionsWithTanJustBefore from tryGetTransactionsOfLast90DaysWithoutTan() --- fints4k/src/main/kotlin/net/dankito/fints/FinTsClient.kt | 8 ++++++-- .../src/test/kotlin/net/dankito/fints/FinTsClientTest.kt | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fints4k/src/main/kotlin/net/dankito/fints/FinTsClient.kt b/fints4k/src/main/kotlin/net/dankito/fints/FinTsClient.kt index 1f13ba0a..ad010e00 100644 --- a/fints4k/src/main/kotlin/net/dankito/fints/FinTsClient.kt +++ b/fints4k/src/main/kotlin/net/dankito/fints/FinTsClient.kt @@ -219,8 +219,12 @@ open class FinTsClient @JvmOverloads constructor( * * Check if bank supports this. */ - open fun tryGetTransactionsOfLast90DaysWithoutTan(bank: BankData, customer: CustomerData, account: AccountData, - hasRetrievedTransactionsWithTanJustBefore: Boolean): GetTransactionsResponse { + open fun tryGetTransactionsOfLast90DaysWithoutTan(bank: BankData, customer: CustomerData, account: AccountData): GetTransactionsResponse { + return tryGetTransactionsOfLast90DaysWithoutTan(bank, customer, account, false) + } + + protected open fun tryGetTransactionsOfLast90DaysWithoutTan(bank: BankData, customer: CustomerData, account: AccountData, + hasRetrievedTransactionsWithTanJustBefore: Boolean): GetTransactionsResponse { val now = Date() val ninetyDaysAgo = Date(now.time - NinetyDaysAgoMilliseconds - now.timezoneOffset * 60 * 1000) // map to UTC diff --git a/fints4k/src/test/kotlin/net/dankito/fints/FinTsClientTest.kt b/fints4k/src/test/kotlin/net/dankito/fints/FinTsClientTest.kt index b56650c6..02c2a5df 100644 --- a/fints4k/src/test/kotlin/net/dankito/fints/FinTsClientTest.kt +++ b/fints4k/src/test/kotlin/net/dankito/fints/FinTsClientTest.kt @@ -145,7 +145,7 @@ class FinTsClientTest { // when // some banks support retrieving account transactions of last 90 days without TAN - val result = underTest.tryGetTransactionsOfLast90DaysWithoutTan(Bank, Customer, account!!, false) + val result = underTest.tryGetTransactionsOfLast90DaysWithoutTan(Bank, Customer, account!!) // then