Renamed nameOfTanMediaRequired to nameOfTanMediumRequired

This commit is contained in:
dankito 2020-09-22 06:23:50 +02:00
parent 0efb4ba708
commit b99522fda9
5 changed files with 7 additions and 7 deletions

View File

@ -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? {

View File

@ -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
}

View File

@ -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
}

View File

@ -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?
) {

View File

@ -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) {