Removed useStrongAuthentication from createInitDialogMessage() as this value can be determined by if user's TAN procedure is selected or not
This commit is contained in:
parent
2f4bac9fbf
commit
16284e5782
|
@ -128,7 +128,7 @@ open class FinTsClient(
|
|||
|
||||
val dialogContext = DialogContext(bank, customer, product)
|
||||
|
||||
val initDialogResponse = initDialogAfterSuccessfulChecks(dialogContext, false)
|
||||
val initDialogResponse = initDialogAfterSuccessfulChecks(dialogContext)
|
||||
|
||||
closeDialog(dialogContext) // TODO: only close dialog if a) bank didn't close it already and b) if a global flag is set to close dialog as actually it's not necessary
|
||||
|
||||
|
@ -455,13 +455,12 @@ open class FinTsClient(
|
|||
return tanProcedureSelectedResponse
|
||||
}
|
||||
|
||||
return initDialogAfterSuccessfulChecks(dialogContext, true)
|
||||
return initDialogAfterSuccessfulChecks(dialogContext)
|
||||
}
|
||||
|
||||
protected open fun initDialogAfterSuccessfulChecks(dialogContext: DialogContext,
|
||||
useStrongAuthentication: Boolean = true): Response {
|
||||
protected open fun initDialogAfterSuccessfulChecks(dialogContext: DialogContext): Response {
|
||||
|
||||
val message = messageBuilder.createInitDialogMessage(dialogContext, useStrongAuthentication)
|
||||
val message = messageBuilder.createInitDialogMessage(dialogContext)
|
||||
|
||||
val response = GetUserTanProceduresResponse(getAndHandleResponseForMessage(message, dialogContext))
|
||||
dialogContext.response = response
|
||||
|
|
|
@ -65,14 +65,14 @@ open class MessageBuilder(protected val generator: ISegmentNumberGenerator = Seg
|
|||
}
|
||||
|
||||
|
||||
open fun createInitDialogMessage(dialogContext: DialogContext, useStrongAuthentication: Boolean = true): MessageBuilderResult {
|
||||
open fun createInitDialogMessage(dialogContext: DialogContext): MessageBuilderResult {
|
||||
|
||||
val segments = mutableListOf(
|
||||
IdentifikationsSegment(generator.resetSegmentNumber(2), dialogContext),
|
||||
Verarbeitungsvorbereitung(generator.getNextSegmentNumber(), dialogContext)
|
||||
)
|
||||
|
||||
if (useStrongAuthentication) {
|
||||
if (dialogContext.customer.isTanProcedureSelected) {
|
||||
segments.add(ZweiSchrittTanEinreichung(generator.getNextSegmentNumber(), TanProcess.TanProcess4, CustomerSegmentId.Identification))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue