Fixed that as now retrievedData contains an entry for each account only if account supports retrieving transactions retrieval must be successful
This commit is contained in:
parent
09d90c6c9d
commit
395ef5445c
|
@ -14,6 +14,8 @@ open class GetTransactionsResponse(
|
|||
) : FinTsClientResponse(response) {
|
||||
|
||||
override val successful: Boolean
|
||||
get() = super.successful && retrievedData.isNotEmpty() && retrievedData.none { it.successfullyRetrievedData == false }
|
||||
get() = super.successful
|
||||
&& retrievedData.isNotEmpty()
|
||||
&& retrievedData.none { it.account.supportsRetrievingAccountTransactions && it.successfullyRetrievedData == false }
|
||||
|
||||
}
|
|
@ -19,6 +19,8 @@ open class GetTransactionsResponse(
|
|||
|
||||
|
||||
override val successful: Boolean
|
||||
get() = errorToShowToUser == null && retrievedData.isNotEmpty() && retrievedData.none { it.successfullyRetrievedData == false }
|
||||
get() = errorToShowToUser == null
|
||||
&& retrievedData.isNotEmpty()
|
||||
&& retrievedData.none { it.account.supportsRetrievingAccountTransactions && it.successfullyRetrievedData == false }
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue