diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt index cd448ae4..e7acb726 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt @@ -1150,7 +1150,7 @@ open class FinTsClient( return TanMethod(methodName, parameters.securityFunction, mapToTanMethodType(parameters) ?: TanMethodType.EnterTan, mapHhdVersion(parameters), parameters.maxTanInputLength, parameters.allowedTanFormat, - parameters.nameOfTanMediaRequired == BezeichnungDesTanMediumsErforderlich.BezeichnungDesTanMediumsMussAngegebenWerden) + parameters.nameOfTanMediumRequired == BezeichnungDesTanMediumsErforderlich.BezeichnungDesTanMediumsMussAngegebenWerden) } protected open fun mapToTanMethodType(parameters: TanMethodParameters): TanMethodType? { diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/messages/MessageBuilder.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/messages/MessageBuilder.kt index 60cd24a8..c4159d6a 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/messages/MessageBuilder.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/messages/MessageBuilder.kt @@ -484,7 +484,7 @@ open class MessageBuilder(protected val generator: ISegmentNumberGenerator = Seg protected open fun getTanMediaIdentifierIfRequired(dialogContext: DialogContext): String? { val bank = dialogContext.bank - if (bank.isTanMethodSelected && bank.selectedTanMethod.nameOfTanMediaRequired) { + if (bank.isTanMethodSelected && bank.selectedTanMethod.nameOfTanMediumRequired) { return bank.tanMedia.firstOrNull { it.mediumName != null }?.mediumName } diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/TanMethod.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/TanMethod.kt index 717e2fc8..23a644f9 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/TanMethod.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/TanMethod.kt @@ -11,7 +11,7 @@ open class TanMethod( open val hhdVersion: HHDVersion? = null, open val maxTanInputLength: Int? = null, open val allowedTanFormat: AllowedTanFormat = AllowedTanFormat.Alphanumeric, - open val nameOfTanMediaRequired: Boolean = false + open val nameOfTanMediumRequired: Boolean = false ) { @@ -26,7 +26,7 @@ open class TanMethod( if (displayName != other.displayName) return false if (securityFunction != other.securityFunction) return false if (type != other.type) return false - if (nameOfTanMediaRequired != other.nameOfTanMediaRequired) return false + if (nameOfTanMediumRequired != other.nameOfTanMediumRequired) return false return true } @@ -35,7 +35,7 @@ open class TanMethod( var result = displayName.hashCode() result = 31 * result + securityFunction.hashCode() result = 31 * result + type.hashCode() - result = 31 * result + nameOfTanMediaRequired.hashCode() + result = 31 * result + nameOfTanMediumRequired.hashCode() return result } diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/segments/TanMethodParameters.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/segments/TanMethodParameters.kt index 1fe97d17..2d51487a 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/segments/TanMethodParameters.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/segments/TanMethodParameters.kt @@ -23,7 +23,7 @@ open class TanMethodParameters( val challengeClassRequired: Boolean, val signatureStructured: Boolean, val initializingMode: Initialisierungsmodus, - val nameOfTanMediaRequired: BezeichnungDesTanMediumsErforderlich, + val nameOfTanMediumRequired: BezeichnungDesTanMediumsErforderlich, val hhdUcResponseRequired: Boolean, val countSupportedActiveTanMedia: Int? ) { diff --git a/fints4k/src/jvm6Test/kotlin/net/dankito/banking/fints/bankdetails/BanksFinTsDetailsRetriever.kt b/fints4k/src/jvm6Test/kotlin/net/dankito/banking/fints/bankdetails/BanksFinTsDetailsRetriever.kt index cd2d6446..26b1a123 100644 --- a/fints4k/src/jvm6Test/kotlin/net/dankito/banking/fints/bankdetails/BanksFinTsDetailsRetriever.kt +++ b/fints4k/src/jvm6Test/kotlin/net/dankito/banking/fints/bankdetails/BanksFinTsDetailsRetriever.kt @@ -234,7 +234,7 @@ class BanksFinTsDetailsRetriever { if (methodParameter.signatureStructured) { signatureStructured.add(bankInfo) } - if (methodParameter.nameOfTanMediaRequired == BezeichnungDesTanMediumsErforderlich.BezeichnungDesTanMediumsMussAngegebenWerden) { + if (methodParameter.nameOfTanMediumRequired == BezeichnungDesTanMediumsErforderlich.BezeichnungDesTanMediumsMussAngegebenWerden) { requiresNameOfTanMedia.add(bankInfo) } if (methodParameter.hhdUcResponseRequired) {