Renamed userDidNotEnterTan() to userDidNotEnterAtc()

This commit is contained in:
dankito 2020-05-13 14:22:20 +02:00
parent 6b53355b97
commit 302dc6f8ed
9 changed files with 9 additions and 9 deletions

View File

@ -23,7 +23,7 @@ interface FinTsClientCallback {
/** /**
* This method gets called for chipTan TAN generators when the bank asks the customer to synchronize her/his TAN generator. * This method gets called for chipTan TAN generators when the bank asks the customer to synchronize her/his TAN generator.
* *
* If you do not support entering TAN generator ATC, return [EnterTanGeneratorAtcResult.userDidNotEnterTan] * If you do not support entering TAN generator ATC, return [EnterTanGeneratorAtcResult.userDidNotEnterAtc]
*/ */
fun enterTanGeneratorAtc(customer: CustomerData, tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult fun enterTanGeneratorAtc(customer: CustomerData, tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult

View File

@ -17,7 +17,7 @@ open class NoOpFinTsClientCallback : FinTsClientCallback {
} }
override fun enterTanGeneratorAtc(customer: CustomerData, tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult { override fun enterTanGeneratorAtc(customer: CustomerData, tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult {
return EnterTanGeneratorAtcResult.userDidNotEnterTan() return EnterTanGeneratorAtcResult.userDidNotEnterAtc()
} }
} }

View File

@ -21,7 +21,7 @@ open class SimpleFinTsClientCallback(
} }
override fun enterTanGeneratorAtc(customer: CustomerData, tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult { override fun enterTanGeneratorAtc(customer: CustomerData, tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult {
return enterTanGeneratorAtc?.invoke(customer, tanMedium) ?: EnterTanGeneratorAtcResult.userDidNotEnterTan() return enterTanGeneratorAtc?.invoke(customer, tanMedium) ?: EnterTanGeneratorAtcResult.userDidNotEnterAtc()
} }
} }

View File

@ -12,7 +12,7 @@ open class EnterTanGeneratorAtcResult protected constructor(
return EnterTanGeneratorAtcResult(enteredTan, enteredAtc) return EnterTanGeneratorAtcResult(enteredTan, enteredAtc)
} }
fun userDidNotEnterTan(): EnterTanGeneratorAtcResult { fun userDidNotEnterAtc(): EnterTanGeneratorAtcResult {
return EnterTanGeneratorAtcResult(null, null) return EnterTanGeneratorAtcResult(null, null)
} }

View File

@ -53,7 +53,7 @@ class FinTsClientTest {
override fun enterTanGeneratorAtc(customer: CustomerData, tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult { override fun enterTanGeneratorAtc(customer: CustomerData, tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult {
Assert.fail("Bank asks you to synchronize your TAN generator for card ${tanMedium.cardNumber} " + Assert.fail("Bank asks you to synchronize your TAN generator for card ${tanMedium.cardNumber} " +
"(card sequence number ${tanMedium.cardSequenceNumber}). Please do this via your online banking portal or Banking UI.") "(card sequence number ${tanMedium.cardSequenceNumber}). Please do this via your online banking portal or Banking UI.")
return EnterTanGeneratorAtcResult.userDidNotEnterTan() // should actually never be called return EnterTanGeneratorAtcResult.userDidNotEnterAtc() // should actually never be called
} }
} }

View File

@ -70,7 +70,7 @@ open class EnterAtcDialog : DialogFragment() {
} }
} }
val result = if (enteredTan == null || enteredAtc == null) EnterTanGeneratorAtcResult.userDidNotEnterTan() val result = if (enteredTan == null || enteredAtc == null) EnterTanGeneratorAtcResult.userDidNotEnterAtc()
else EnterTanGeneratorAtcResult.userEnteredAtc(enteredTan, enteredAtc) else EnterTanGeneratorAtcResult.userEnteredAtc(enteredTan, enteredAtc)
atcEnteredCallback(result) atcEnteredCallback(result)

View File

@ -42,7 +42,7 @@ open class RouterJavaFx : IRouter {
} }
override fun getAtcFromUserFromNonUiThread(tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult { override fun getAtcFromUserFromNonUiThread(tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult {
return EnterTanGeneratorAtcResult.userDidNotEnterTan() return EnterTanGeneratorAtcResult.userDidNotEnterAtc()
} }
override fun showTransferMoneyDialog(presenter: BankingPresenter, preselectedBankAccount: BankAccount?, preselectedValues: TransferMoneyData?) { override fun showTransferMoneyDialog(presenter: BankingPresenter, preselectedBankAccount: BankAccount?, preselectedValues: TransferMoneyData?) {

View File

@ -12,7 +12,7 @@ open class EnterTanGeneratorAtcResult protected constructor(
return EnterTanGeneratorAtcResult(enteredTan, enteredAtc) return EnterTanGeneratorAtcResult(enteredTan, enteredAtc)
} }
fun userDidNotEnterTan(): EnterTanGeneratorAtcResult { fun userDidNotEnterAtc(): EnterTanGeneratorAtcResult {
return EnterTanGeneratorAtcResult(null, null) return EnterTanGeneratorAtcResult(null, null)
} }

View File

@ -364,7 +364,7 @@ open class fints4javaModelMapper {
return net.dankito.fints.model.EnterTanGeneratorAtcResult.userEnteredAtc(result.tan!!, result.atc!!) return net.dankito.fints.model.EnterTanGeneratorAtcResult.userEnteredAtc(result.tan!!, result.atc!!)
} }
return net.dankito.fints.model.EnterTanGeneratorAtcResult.userDidNotEnterTan() return net.dankito.fints.model.EnterTanGeneratorAtcResult.userDidNotEnterAtc()
} }
open fun mapTanChallenge(tanChallenge: net.dankito.fints.model.TanChallenge): TanChallenge { open fun mapTanChallenge(tanChallenge: net.dankito.fints.model.TanChallenge): TanChallenge {