From 62b750c4f3f98534955be2e70ca31858e2d75382 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 20 Oct 2024 11:23:54 +0200 Subject: [PATCH] Using now TanMethodTypesToMigrate from BankingClient --- BankingPersistence/build.gradle.kts | 1 + .../net/codinux/banking/persistence/SqliteBankingRepository.kt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/BankingPersistence/build.gradle.kts b/BankingPersistence/build.gradle.kts index 4d3cfb4..66f3f85 100644 --- a/BankingPersistence/build.gradle.kts +++ b/BankingPersistence/build.gradle.kts @@ -41,6 +41,7 @@ kotlin { sourceSets { commonMain.dependencies { implementation(libs.banking.client.model) + implementation(libs.fints4k.banking.client) implementation(libs.kotlinx.datetime) implementation(libs.sqldelight.runtime) diff --git a/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt b/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt index d125635..21f74c9 100644 --- a/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt +++ b/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt @@ -21,6 +21,7 @@ import net.codinux.banking.client.model.tan.TanMediumStatus import net.codinux.banking.client.model.tan.TanMediumType import net.codinux.banking.client.model.tan.TanMethod import net.codinux.banking.client.model.tan.TanMethodType +import net.codinux.banking.client.fints4k.FinTs4kMapper import net.codinux.banking.persistence.entities.* import net.codinux.banking.ui.model.AccountTransactionViewModel import net.codinux.banking.ui.model.settings.* @@ -258,7 +259,7 @@ open class SqliteBankingRepository : BankingRepository { bankId, displayName, - mapToEnum(type, TanMethodType.entries, TanMethodTypesToMigrate), + mapToEnum(type, TanMethodType.entries, FinTs4kMapper.TanMethodTypesToMigrate), identifier, mapToInt(maxTanInputLength), mapToEnum(allowedTanFormat, AllowedTanFormat.entries),