For public signature removed parameter hasRetrievedTransactionsWithTanJustBefore from tryGetTransactionsOfLast90DaysWithoutTan()
This commit is contained in:
parent
11359b5664
commit
6b53355b97
|
@ -219,8 +219,12 @@ open class FinTsClient @JvmOverloads constructor(
|
||||||
*
|
*
|
||||||
* Check if bank supports this.
|
* Check if bank supports this.
|
||||||
*/
|
*/
|
||||||
open fun tryGetTransactionsOfLast90DaysWithoutTan(bank: BankData, customer: CustomerData, account: AccountData,
|
open fun tryGetTransactionsOfLast90DaysWithoutTan(bank: BankData, customer: CustomerData, account: AccountData): GetTransactionsResponse {
|
||||||
hasRetrievedTransactionsWithTanJustBefore: Boolean): GetTransactionsResponse {
|
return tryGetTransactionsOfLast90DaysWithoutTan(bank, customer, account, false)
|
||||||
|
}
|
||||||
|
|
||||||
|
protected open fun tryGetTransactionsOfLast90DaysWithoutTan(bank: BankData, customer: CustomerData, account: AccountData,
|
||||||
|
hasRetrievedTransactionsWithTanJustBefore: Boolean): GetTransactionsResponse {
|
||||||
|
|
||||||
val now = Date()
|
val now = Date()
|
||||||
val ninetyDaysAgo = Date(now.time - NinetyDaysAgoMilliseconds - now.timezoneOffset * 60 * 1000) // map to UTC
|
val ninetyDaysAgo = Date(now.time - NinetyDaysAgoMilliseconds - now.timezoneOffset * 60 * 1000) // map to UTC
|
||||||
|
|
|
@ -145,7 +145,7 @@ class FinTsClientTest {
|
||||||
// when
|
// when
|
||||||
|
|
||||||
// some banks support retrieving account transactions of last 90 days without TAN
|
// 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
|
// then
|
||||||
|
|
Loading…
Reference in New Issue