Derived AddAccountResponse from GetTransactionsResponse

This commit is contained in:
dankito 2020-09-19 02:54:09 +02:00
parent 044648f569
commit f444a45730
1 changed files with 2 additions and 2 deletions

View File

@ -8,9 +8,9 @@ open class AddAccountResponse(
isSuccessful: Boolean,
errorToShowToUser: String?,
open val customer: TypedCustomer,
open val retrievedData: List<RetrievedAccountData> = listOf(),
retrievedData: List<RetrievedAccountData> = listOf(),
userCancelledAction: Boolean = false
) : BankingClientResponse(isSuccessful, errorToShowToUser, userCancelledAction) {
) : GetTransactionsResponse(isSuccessful, errorToShowToUser, retrievedData, userCancelledAction) {
open val supportsRetrievingTransactionsOfLast90DaysWithoutTan: Boolean
get() = retrievedData.isNotEmpty() && retrievedData.any { it.successfullyRetrievedData }