From 5d127828cb4a7066fa6e2296d37e63b5f6aaa066 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 16 Oct 2024 15:34:54 +0200 Subject: [PATCH] Added preferredTanMethods to constructor overload --- .../client/model/request/TransferMoneyRequestForUser.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequestForUser.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequestForUser.kt index 92ab2b9a..4d8d8c08 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequestForUser.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequestForUser.kt @@ -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.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 }