Renamed userDidNotEnterTan() to userDidNotEnterAtc()
This commit is contained in:
parent
6b53355b97
commit
302dc6f8ed
|
@ -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.
|
||||
*
|
||||
* 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
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ open class NoOpFinTsClientCallback : FinTsClientCallback {
|
|||
}
|
||||
|
||||
override fun enterTanGeneratorAtc(customer: CustomerData, tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult {
|
||||
return EnterTanGeneratorAtcResult.userDidNotEnterTan()
|
||||
return EnterTanGeneratorAtcResult.userDidNotEnterAtc()
|
||||
}
|
||||
|
||||
}
|
|
@ -21,7 +21,7 @@ open class SimpleFinTsClientCallback(
|
|||
}
|
||||
|
||||
override fun enterTanGeneratorAtc(customer: CustomerData, tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult {
|
||||
return enterTanGeneratorAtc?.invoke(customer, tanMedium) ?: EnterTanGeneratorAtcResult.userDidNotEnterTan()
|
||||
return enterTanGeneratorAtc?.invoke(customer, tanMedium) ?: EnterTanGeneratorAtcResult.userDidNotEnterAtc()
|
||||
}
|
||||
|
||||
}
|
|
@ -12,7 +12,7 @@ open class EnterTanGeneratorAtcResult protected constructor(
|
|||
return EnterTanGeneratorAtcResult(enteredTan, enteredAtc)
|
||||
}
|
||||
|
||||
fun userDidNotEnterTan(): EnterTanGeneratorAtcResult {
|
||||
fun userDidNotEnterAtc(): EnterTanGeneratorAtcResult {
|
||||
return EnterTanGeneratorAtcResult(null, null)
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ class FinTsClientTest {
|
|||
override fun enterTanGeneratorAtc(customer: CustomerData, tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult {
|
||||
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.")
|
||||
return EnterTanGeneratorAtcResult.userDidNotEnterTan() // should actually never be called
|
||||
return EnterTanGeneratorAtcResult.userDidNotEnterAtc() // should actually never be called
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
||||
atcEnteredCallback(result)
|
||||
|
|
|
@ -42,7 +42,7 @@ open class RouterJavaFx : IRouter {
|
|||
}
|
||||
|
||||
override fun getAtcFromUserFromNonUiThread(tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult {
|
||||
return EnterTanGeneratorAtcResult.userDidNotEnterTan()
|
||||
return EnterTanGeneratorAtcResult.userDidNotEnterAtc()
|
||||
}
|
||||
|
||||
override fun showTransferMoneyDialog(presenter: BankingPresenter, preselectedBankAccount: BankAccount?, preselectedValues: TransferMoneyData?) {
|
||||
|
|
|
@ -12,7 +12,7 @@ open class EnterTanGeneratorAtcResult protected constructor(
|
|||
return EnterTanGeneratorAtcResult(enteredTan, enteredAtc)
|
||||
}
|
||||
|
||||
fun userDidNotEnterTan(): EnterTanGeneratorAtcResult {
|
||||
fun userDidNotEnterAtc(): EnterTanGeneratorAtcResult {
|
||||
return EnterTanGeneratorAtcResult(null, null)
|
||||
}
|
||||
|
||||
|
|
|
@ -364,7 +364,7 @@ open class fints4javaModelMapper {
|
|||
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 {
|
||||
|
|
Loading…
Reference in New Issue