Fixed selectSuggestedTanProcedure() so that SmsTan(costs money) or ChipTanUSB (not supported) don't get selected by default
This commit is contained in:
parent
2afeaa9073
commit
2f4bac9fbf
|
@ -527,8 +527,10 @@ open class FinTsClient(
|
||||||
}
|
}
|
||||||
|
|
||||||
protected open fun selectSuggestedTanProcedure(customer: CustomerData): TanProcedure? {
|
protected open fun selectSuggestedTanProcedure(customer: CustomerData): TanProcedure? {
|
||||||
return customer.supportedTanProcedures.firstOrNull { it.displayName.contains("manuell", true) == false }
|
return customer.supportedTanProcedures.firstOrNull { it.type != TanProcedureType.ChipTanUsb && it.type != TanProcedureType.SmsTan && it.type != TanProcedureType.ChipTanManuell }
|
||||||
?: customer.supportedTanProcedures.firstOrNull()
|
?: customer.supportedTanProcedures.firstOrNull { it.type != TanProcedureType.ChipTanUsb && it.type != TanProcedureType.SmsTan }
|
||||||
|
?: customer.supportedTanProcedures.firstOrNull { it.type != TanProcedureType.ChipTanUsb }
|
||||||
|
?: customer.supportedTanProcedures.firstOrNull()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue