Derived AddAccountResponse from GetTransactionsResponse
This commit is contained in:
parent
044648f569
commit
f444a45730
|
@ -8,9 +8,9 @@ open class AddAccountResponse(
|
||||||
isSuccessful: Boolean,
|
isSuccessful: Boolean,
|
||||||
errorToShowToUser: String?,
|
errorToShowToUser: String?,
|
||||||
open val customer: TypedCustomer,
|
open val customer: TypedCustomer,
|
||||||
open val retrievedData: List<RetrievedAccountData> = listOf(),
|
retrievedData: List<RetrievedAccountData> = listOf(),
|
||||||
userCancelledAction: Boolean = false
|
userCancelledAction: Boolean = false
|
||||||
) : BankingClientResponse(isSuccessful, errorToShowToUser, userCancelledAction) {
|
) : GetTransactionsResponse(isSuccessful, errorToShowToUser, retrievedData, userCancelledAction) {
|
||||||
|
|
||||||
open val supportsRetrievingTransactionsOfLast90DaysWithoutTan: Boolean
|
open val supportsRetrievingTransactionsOfLast90DaysWithoutTan: Boolean
|
||||||
get() = retrievedData.isNotEmpty() && retrievedData.any { it.successfullyRetrievedData }
|
get() = retrievedData.isNotEmpty() && retrievedData.any { it.successfullyRetrievedData }
|
||||||
|
|
Loading…
Reference in New Issue