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:
dankito 2020-09-23 03:42:11 +02:00
parent 09d90c6c9d
commit 395ef5445c
2 changed files with 6 additions and 2 deletions

View File

@ -14,6 +14,8 @@ open class GetTransactionsResponse(
) : FinTsClientResponse(response) { ) : FinTsClientResponse(response) {
override val successful: Boolean 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 }
} }

View File

@ -19,6 +19,8 @@ open class GetTransactionsResponse(
override val successful: Boolean 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 }
} }