Added received segments to FinTsClientResponse

This commit is contained in:
dankito 2024-08-20 14:33:27 +02:00
parent 9a7615fe88
commit 17702d1fe7
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package net.dankito.banking.fints.response.client
import net.dankito.banking.fints.model.JobContext
import net.dankito.banking.fints.model.MessageLogEntry
import net.dankito.banking.fints.response.BankResponse
import net.dankito.banking.fints.response.segments.ReceivedSegment
import net.dankito.banking.fints.response.segments.TanResponse
@ -34,6 +35,8 @@ open class FinTsClientResponse(
open val tanRequiredButWeWereToldToAbortIfSo: Boolean = false,
open val receivedSegments: List<ReceivedSegment> = listOf(),
// i think they can be removed
open val isJobAllowed: Boolean = true,
open val isJobVersionSupported: Boolean = true,
@ -46,6 +49,7 @@ open class FinTsClientResponse(
response.isStrongAuthenticationRequired, response.tanResponse, context.messageLog,
response.internalError, response.errorsToShowToUser, response.isPinLocked, response.wrongCredentialsEntered,
response.tanRequiredButUserDidNotEnterOne, response.tanRequiredButWeWereToldToAbortIfSo,
response.receivedSegments,
response.messageThatCouldNotBeCreated?.isJobAllowed ?: true,
response.messageThatCouldNotBeCreated?.isJobVersionSupported ?: true,
response.messageThatCouldNotBeCreated?.allowedVersions ?: listOf(),

View File

@ -13,6 +13,7 @@ open class GetTransactionsResponse(
retrievedResponses.flatMap { it.errorMessagesFromBank }, retrievedResponses.any { it.isPinLocked },
retrievedResponses.any { it.wrongCredentialsEntered }, retrievedResponses.any { it.userCancelledAction },
retrievedResponses.any { it.tanRequiredButWeWereToldToAbortIfSo },
retrievedResponses.flatMap { it.receivedSegments },
retrievedResponses.any { it.isJobAllowed }, retrievedResponses.any { it.isJobAllowed },
retrievedResponses.flatMap { it.allowedVersions }.toSet().toList(),
retrievedResponses.flatMap { it.supportedVersions }.toSet().toList()