Added preferredTanMethods to constructor overload
This commit is contained in:
parent
803e44118c
commit
5d127828cb
|
@ -49,10 +49,13 @@ open class TransferMoneyRequestForUser(
|
|||
constructor(
|
||||
bank: BankAccess, account: BankAccount?,
|
||||
recipientName: String, recipientAccountIdentifier: String, recipientBankIdentifier: String? = null,
|
||||
amount: Amount, currency: String = DefaultValues.DefaultCurrency, paymentReference: String? = null, instantTransfer: Boolean = false
|
||||
amount: Amount, currency: String = DefaultValues.DefaultCurrency, paymentReference: String? = null, instantTransfer: Boolean = false,
|
||||
preferredTanMethods: List<TanMethodType>? = TanMethodType.TanMethodsPreferredByMostApplications
|
||||
) : this(bank.domesticBankCode, bank.loginName, bank.password!!, account?.let { BankAccountIdentifier(it.identifier, it.subAccountNumber, it.iban) },
|
||||
recipientName, recipientAccountIdentifier, recipientBankIdentifier, amount, currency, paymentReference, instantTransfer,
|
||||
listOf(bank.selectedTanMethod.type) + TanMethodType.TanMethodsPreferredByMostApplications, TanMethodType.TanMethodsNotSupportedByMostApplications, bank.clientData, bank.serializedClientData) {
|
||||
listOf(bank.selectedTanMethod.type) + (preferredTanMethods ?: emptyList()), TanMethodType.TanMethodsNotSupportedByMostApplications,
|
||||
bank.clientData, bank.serializedClientData
|
||||
) {
|
||||
this.bank = bank
|
||||
this.account = account
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue