Replaced newUserInfoResponse by getAccountsResponse
This commit is contained in:
parent
8108926d71
commit
dd01c7416a
|
@ -288,14 +288,14 @@ open class FinTsClient(
|
||||||
|
|
||||||
/* Fourth dialog: Try to retrieve account balances and transactions of last 90 days without TAN */
|
/* Fourth dialog: Try to retrieve account balances and transactions of last 90 days without TAN */
|
||||||
|
|
||||||
addAccountGetAccountBalancesAndTransactions(bank, newUserInfoResponse, didOverwriteUserUnselectedTanMethod,
|
addAccountGetAccountBalancesAndTransactions(bank, getAccountsResponse, didOverwriteUserUnselectedTanMethod,
|
||||||
originalAreWeThatGentleToCloseDialogs, callback)
|
originalAreWeThatGentleToCloseDialogs, callback)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected open fun addAccountGetAccountBalancesAndTransactions(bank: BankData, newUserInfoResponse: BankResponse,
|
protected open fun addAccountGetAccountBalancesAndTransactions(bank: BankData, getAccountsResponse: BankResponse,
|
||||||
didOverwriteUserUnselectedTanMethod: Boolean, originalAreWeThatGentleToCloseDialogs: Boolean,
|
didOverwriteUserUnselectedTanMethod: Boolean, originalAreWeThatGentleToCloseDialogs: Boolean,
|
||||||
callback: (AddAccountResponse) -> Unit) {
|
callback: (AddAccountResponse) -> Unit) {
|
||||||
|
|
||||||
|
@ -306,7 +306,7 @@ open class FinTsClient(
|
||||||
var countRetrievedAccounts = 0
|
var countRetrievedAccounts = 0
|
||||||
|
|
||||||
if (countAccountsSupportingRetrievingTransactions == 0) {
|
if (countAccountsSupportingRetrievingTransactions == 0) {
|
||||||
addAccountAfterRetrievingTransactions(bank, newUserInfoResponse, didOverwriteUserUnselectedTanMethod,
|
addAccountAfterRetrievingTransactions(bank, getAccountsResponse, didOverwriteUserUnselectedTanMethod,
|
||||||
originalAreWeThatGentleToCloseDialogs, retrievedAccountData, callback)
|
originalAreWeThatGentleToCloseDialogs, retrievedAccountData, callback)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -316,14 +316,14 @@ open class FinTsClient(
|
||||||
|
|
||||||
countRetrievedAccounts++
|
countRetrievedAccounts++
|
||||||
if (countRetrievedAccounts == countAccountsSupportingRetrievingTransactions) {
|
if (countRetrievedAccounts == countAccountsSupportingRetrievingTransactions) {
|
||||||
addAccountAfterRetrievingTransactions(bank, newUserInfoResponse, didOverwriteUserUnselectedTanMethod, originalAreWeThatGentleToCloseDialogs,
|
addAccountAfterRetrievingTransactions(bank, getAccountsResponse, didOverwriteUserUnselectedTanMethod, originalAreWeThatGentleToCloseDialogs,
|
||||||
retrievedAccountData, callback)
|
retrievedAccountData, callback)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected open fun addAccountAfterRetrievingTransactions(bank: BankData, newUserInfoResponse: BankResponse,
|
protected open fun addAccountAfterRetrievingTransactions(bank: BankData, getAccountsResponse: BankResponse,
|
||||||
didOverwriteUserUnselectedTanMethod: Boolean, originalAreWeThatGentleToCloseDialogs: Boolean,
|
didOverwriteUserUnselectedTanMethod: Boolean, originalAreWeThatGentleToCloseDialogs: Boolean,
|
||||||
retrievedAccountData: Map<AccountData, RetrievedAccountData>,
|
retrievedAccountData: Map<AccountData, RetrievedAccountData>,
|
||||||
callback: (AddAccountResponse) -> Unit) {
|
callback: (AddAccountResponse) -> Unit) {
|
||||||
|
@ -333,7 +333,7 @@ open class FinTsClient(
|
||||||
|
|
||||||
areWeThatGentleToCloseDialogs = originalAreWeThatGentleToCloseDialogs
|
areWeThatGentleToCloseDialogs = originalAreWeThatGentleToCloseDialogs
|
||||||
|
|
||||||
callback(AddAccountResponse(newUserInfoResponse, bank, retrievedAccountData.values.toList()))
|
callback(AddAccountResponse(getAccountsResponse, bank, retrievedAccountData.values.toList()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue