From 37c575a1afe7d94332c006283d402f91d1dedaa2 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 27 Aug 2024 02:16:03 +0200 Subject: [PATCH] Mapping preferredTanMethods --- .../net/codinux/banking/client/fints4k/FinTs4kMapper.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FinTs4jBankingClient/src/commonMain/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapper.kt b/FinTs4jBankingClient/src/commonMain/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapper.kt index 1f1d2ea0..40a10bb4 100644 --- a/FinTs4jBankingClient/src/commonMain/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapper.kt +++ b/FinTs4jBankingClient/src/commonMain/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapper.kt @@ -34,9 +34,13 @@ open class FinTs4kMapper { options.accounts.map { BankAccountIdentifierImpl(it.identifier, it.subAccountNumber, it.iban) }, options.retrieveBalance, RetrieveTransactions.valueOf(options.retrieveTransactions.name), options.retrieveTransactionsFrom, options.retrieveTransactionsTo, + preferredTanMethods = options.preferredTanMethods?.map { mapTanMethodType(it) }, abortIfTanIsRequired = options.abortIfTanIsRequired ) + protected open fun mapTanMethodType(type: TanMethodType): net.codinux.banking.fints.model.TanMethodType = + net.codinux.banking.fints.model.TanMethodType.valueOf(type.name) + open fun map(response: net.dankito.banking.client.model.response.GetAccountDataResponse): Response { return if (response.successful && response.customerAccount != null) {