diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/FinTsClientResponse.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/FinTsClientResponse.kt index ed63ec7a..3b53d669 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/FinTsClientResponse.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/FinTsClientResponse.kt @@ -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 = 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(), diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetTransactionsResponse.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetTransactionsResponse.kt index a21aac4c..9f2c15ea 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetTransactionsResponse.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetTransactionsResponse.kt @@ -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()