From d9e5efe0519ed9d1177f85d637664d107b12a5f8 Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 1 May 2020 12:29:06 +0200 Subject: [PATCH] Fixed that TanGeneratorTanMedium didn't get mapped correctly --- .../net/dankito/banking/mapper/fints4javaModelMapper.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fints4javaBankingClient/src/main/kotlin/net/dankito/banking/mapper/fints4javaModelMapper.kt b/fints4javaBankingClient/src/main/kotlin/net/dankito/banking/mapper/fints4javaModelMapper.kt index 990be575..fcd37bd3 100644 --- a/fints4javaBankingClient/src/main/kotlin/net/dankito/banking/mapper/fints4javaModelMapper.kt +++ b/fints4javaBankingClient/src/main/kotlin/net/dankito/banking/mapper/fints4javaModelMapper.kt @@ -236,6 +236,10 @@ open class fints4javaModelMapper { } open fun mapTanMedium(tanMedium: net.dankito.fints.messages.datenelemente.implementierte.tan.TanMedium): TanMedium { + if (tanMedium is net.dankito.fints.messages.datenelemente.implementierte.tan.TanGeneratorTanMedium) { + return mapTanMedium(tanMedium) + } + return TanMedium( getDisplayNameForTanMedium(tanMedium), mapTanMediumStatus(tanMedium)