Added isPinLocked to FinTsClientResponse; also explicitly added it to successful, even though it's already contained in responseContainsErrors
This commit is contained in:
parent
462917467d
commit
e90579a1b7
|
@ -61,7 +61,8 @@ open class BankResponse(
|
|||
open val successful: Boolean
|
||||
get() = internalError == null &&
|
||||
noTanMethodSelected == false && couldCreateMessage && didReceiveResponse
|
||||
&& responseContainsErrors == false && wrongCredentialsEntered == false
|
||||
&& responseContainsErrors == false
|
||||
&& isPinLocked == false && wrongCredentialsEntered == false
|
||||
&& tanRequiredButUserDidNotEnterOne == false && tanRequiredButWeWereToldToAbortIfSo == false
|
||||
|
||||
open val isStrongAuthenticationRequired: Boolean
|
||||
|
|
|
@ -24,6 +24,8 @@ open class FinTsClientResponse(
|
|||
|
||||
open val errorMessagesFromBank: List<String> = listOf(),
|
||||
|
||||
open val isPinLocked: Boolean = false,
|
||||
|
||||
open val wrongCredentialsEntered: Boolean = false,
|
||||
|
||||
open val userCancelledAction: Boolean = false,
|
||||
|
@ -40,7 +42,7 @@ open class FinTsClientResponse(
|
|||
|
||||
constructor(context: JobContext, response: BankResponse) : this(response.successful, response.noTanMethodSelected,
|
||||
response.isStrongAuthenticationRequired, response.tanResponse, context.messageLogWithoutSensitiveData,
|
||||
response.internalError, response.errorsToShowToUser, response.wrongCredentialsEntered,
|
||||
response.internalError, response.errorsToShowToUser, response.isPinLocked, response.wrongCredentialsEntered,
|
||||
response.tanRequiredButUserDidNotEnterOne, response.tanRequiredButWeWereToldToAbortIfSo,
|
||||
response.messageThatCouldNotBeCreated?.isJobAllowed ?: true,
|
||||
response.messageThatCouldNotBeCreated?.isJobVersionSupported ?: true,
|
||||
|
|
Loading…
Reference in New Issue