Renamed ChipTan to ChipTanOptisch; added ChipTanManuell

This commit is contained in:
dankl 2019-11-03 23:57:04 +01:00 committed by dankito
parent 3c76bbd93c
commit f62f6bf61b
3 changed files with 10 additions and 6 deletions

View File

@ -78,8 +78,9 @@ open class fints4javaModelMapper {
open fun mapTanProcedureType(type: net.dankito.fints.model.TanProcedureType): TanProcedureType { open fun mapTanProcedureType(type: net.dankito.fints.model.TanProcedureType): TanProcedureType {
return when (type) { return when (type) {
net.dankito.fints.model.TanProcedureType.EnterTan -> TanProcedureType.EnterTan // TODO: add ChipTanManuell net.dankito.fints.model.TanProcedureType.EnterTan -> TanProcedureType.EnterTan
net.dankito.fints.model.TanProcedureType.ChipTan -> TanProcedureType.ChipTanOptisch net.dankito.fints.model.TanProcedureType.ChipTanManuell -> TanProcedureType.ChipTanManuell
net.dankito.fints.model.TanProcedureType.ChipTanOptisch -> TanProcedureType.ChipTanOptisch
net.dankito.fints.model.TanProcedureType.ChipTanQrCode -> TanProcedureType.ChipTanQrCode net.dankito.fints.model.TanProcedureType.ChipTanQrCode -> TanProcedureType.ChipTanQrCode
net.dankito.fints.model.TanProcedureType.PhotoTan -> TanProcedureType.PhotoTan net.dankito.fints.model.TanProcedureType.PhotoTan -> TanProcedureType.PhotoTan
net.dankito.fints.model.TanProcedureType.SmsTan -> TanProcedureType.SmsTan net.dankito.fints.model.TanProcedureType.SmsTan -> TanProcedureType.SmsTan
@ -129,8 +130,8 @@ open class fints4javaModelMapper {
open fun mapTanProcedureTypeBack(type: TanProcedureType): net.dankito.fints.model.TanProcedureType { open fun mapTanProcedureTypeBack(type: TanProcedureType): net.dankito.fints.model.TanProcedureType {
return when (type) { return when (type) {
TanProcedureType.EnterTan -> net.dankito.fints.model.TanProcedureType.EnterTan TanProcedureType.EnterTan -> net.dankito.fints.model.TanProcedureType.EnterTan
TanProcedureType.ChipTanManuell -> net.dankito.fints.model.TanProcedureType.EnterTan // TODO: add ChipTanManuell TanProcedureType.ChipTanManuell -> net.dankito.fints.model.TanProcedureType.ChipTanManuell
TanProcedureType.ChipTanOptisch -> net.dankito.fints.model.TanProcedureType.ChipTan TanProcedureType.ChipTanOptisch -> net.dankito.fints.model.TanProcedureType.ChipTanOptisch
TanProcedureType.ChipTanQrCode -> net.dankito.fints.model.TanProcedureType.ChipTanQrCode TanProcedureType.ChipTanQrCode -> net.dankito.fints.model.TanProcedureType.ChipTanQrCode
TanProcedureType.PhotoTan -> net.dankito.fints.model.TanProcedureType.PhotoTan TanProcedureType.PhotoTan -> net.dankito.fints.model.TanProcedureType.PhotoTan
TanProcedureType.SmsTan -> net.dankito.fints.model.TanProcedureType.SmsTan TanProcedureType.SmsTan -> net.dankito.fints.model.TanProcedureType.SmsTan

View File

@ -728,7 +728,8 @@ open class FinTsClient @JvmOverloads constructor(
nameLowerCase.contains("chiptan") -> { nameLowerCase.contains("chiptan") -> {
return when { return when {
nameLowerCase.contains("qr") -> TanProcedureType.ChipTanQrCode nameLowerCase.contains("qr") -> TanProcedureType.ChipTanQrCode
else -> TanProcedureType.ChipTan nameLowerCase.contains("manuell") -> TanProcedureType.ChipTanManuell
else -> TanProcedureType.ChipTanOptisch
} }
} }

View File

@ -5,7 +5,9 @@ enum class TanProcedureType {
EnterTan, EnterTan,
ChipTan, ChipTanManuell,
ChipTanOptisch,
ChipTanQrCode, ChipTanQrCode,