Extracted TanMethodsPreferredByMostApplications
This commit is contained in:
parent
12304684fc
commit
803e44118c
|
@ -34,7 +34,7 @@ open class GetAccountDataOptions(
|
||||||
* But also graphical applications prefer non visual TanMethods as then they only have to display a text field to input
|
* But also graphical applications prefer non visual TanMethods as then they only have to display a text field to input
|
||||||
* TAN, and then image based TanMethods as then they additionally only have to display an image.
|
* TAN, and then image based TanMethods as then they additionally only have to display an image.
|
||||||
*/
|
*/
|
||||||
val preferredTanMethods: List<TanMethodType>? = TanMethodType.NonVisualOrImageBased,
|
val preferredTanMethods: List<TanMethodType>? = TanMethodType.TanMethodsPreferredByMostApplications,
|
||||||
|
|
||||||
val tanMethodsNotSupportedByApplication: List<TanMethodType> = TanMethodType.TanMethodsNotSupportedByMostApplications,
|
val tanMethodsNotSupportedByApplication: List<TanMethodType> = TanMethodType.TanMethodsNotSupportedByMostApplications,
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ open class TransferMoneyRequest(
|
||||||
* But also graphical applications prefer non visual TanMethods as then they only have to display a text field to input
|
* But also graphical applications prefer non visual TanMethods as then they only have to display a text field to input
|
||||||
* TAN, and then image based TanMethods as then they additionally only have to display an image.
|
* TAN, and then image based TanMethods as then they additionally only have to display an image.
|
||||||
*/
|
*/
|
||||||
val preferredTanMethods: List<TanMethodType>? = TanMethodType.NonVisualOrImageBased,
|
val preferredTanMethods: List<TanMethodType>? = TanMethodType.TanMethodsPreferredByMostApplications,
|
||||||
|
|
||||||
val tanMethodsNotSupportedByApplication: List<TanMethodType> = TanMethodType.TanMethodsNotSupportedByMostApplications,
|
val tanMethodsNotSupportedByApplication: List<TanMethodType> = TanMethodType.TanMethodsNotSupportedByMostApplications,
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ open class TransferMoneyRequestForUser(
|
||||||
instantTransfer: Boolean = false,
|
instantTransfer: Boolean = false,
|
||||||
|
|
||||||
|
|
||||||
preferredTanMethods: List<TanMethodType>? = TanMethodType.NonVisualOrImageBased,
|
preferredTanMethods: List<TanMethodType>? = TanMethodType.TanMethodsPreferredByMostApplications,
|
||||||
tanMethodsNotSupportedByApplication: List<TanMethodType> = TanMethodType.TanMethodsNotSupportedByMostApplications,
|
tanMethodsNotSupportedByApplication: List<TanMethodType> = TanMethodType.TanMethodsNotSupportedByMostApplications,
|
||||||
|
|
||||||
clientData: Any? = null,
|
clientData: Any? = null,
|
||||||
|
@ -52,7 +52,7 @@ open class TransferMoneyRequestForUser(
|
||||||
amount: Amount, currency: String = DefaultValues.DefaultCurrency, paymentReference: String? = null, instantTransfer: Boolean = false
|
amount: Amount, currency: String = DefaultValues.DefaultCurrency, paymentReference: String? = null, instantTransfer: Boolean = false
|
||||||
) : this(bank.domesticBankCode, bank.loginName, bank.password!!, account?.let { BankAccountIdentifier(it.identifier, it.subAccountNumber, it.iban) },
|
) : this(bank.domesticBankCode, bank.loginName, bank.password!!, account?.let { BankAccountIdentifier(it.identifier, it.subAccountNumber, it.iban) },
|
||||||
recipientName, recipientAccountIdentifier, recipientBankIdentifier, amount, currency, paymentReference, instantTransfer,
|
recipientName, recipientAccountIdentifier, recipientBankIdentifier, amount, currency, paymentReference, instantTransfer,
|
||||||
listOf(bank.selectedTanMethod.type) + TanMethodType.NonVisualOrImageBased, TanMethodType.TanMethodsNotSupportedByMostApplications, bank.clientData, bank.serializedClientData) {
|
listOf(bank.selectedTanMethod.type) + TanMethodType.TanMethodsPreferredByMostApplications, TanMethodType.TanMethodsNotSupportedByMostApplications, bank.clientData, bank.serializedClientData) {
|
||||||
this.bank = bank
|
this.bank = bank
|
||||||
this.account = account
|
this.account = account
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,6 +57,10 @@ enum class TanMethodType {
|
||||||
this.add(index, ChipTanFlickerCode)
|
this.add(index, ChipTanFlickerCode)
|
||||||
}.toList()
|
}.toList()
|
||||||
|
|
||||||
|
|
||||||
|
val TanMethodsPreferredByMostApplications = NonVisualOrImageBased
|
||||||
|
|
||||||
|
|
||||||
val TanMethodsNotSupportedByMostApplications = listOf(TanMethodType.ChipTanUsb)
|
val TanMethodsNotSupportedByMostApplications = listOf(TanMethodType.ChipTanUsb)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue