From 753b947425b12425f153b97ba7e2895bfb7ea379 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 20 Aug 2024 11:01:15 +0200 Subject: [PATCH] Removed setCallback() --- .../kotlin/net/dankito/banking/fints/FinTsClientDeprecated.kt | 2 +- .../net/dankito/banking/fints/FinTsClientForCustomer.kt | 4 ---- .../kotlin/net/dankito/banking/fints/FinTsTestBase.kt | 3 ++- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClientDeprecated.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClientDeprecated.kt index 60228c3c..96fa6910 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClientDeprecated.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClientDeprecated.kt @@ -20,7 +20,7 @@ import net.dankito.banking.fints.webclient.IWebClient */ open class FinTsClientDeprecated( protected val config: FinTsClientConfiguration, - open var callback: FinTsClientCallback + open val callback: FinTsClientCallback ) { constructor(callback: FinTsClientCallback) : this(FinTsClientConfiguration(), callback) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClientForCustomer.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClientForCustomer.kt index e0d62302..8c29c709 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClientForCustomer.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClientForCustomer.kt @@ -22,10 +22,6 @@ open class FinTsClientForCustomer( open val messageLogWithoutSensitiveData: List = mutableListOf() - open fun setCallback(callback: FinTsClientCallback) { - client.callback = callback - } - open suspend fun addAccountAsync(): AddAccountResponse { return addAccountAsync(bank.toAddAccountParameter()) diff --git a/fints4k/src/commonTest/kotlin/net/dankito/banking/fints/FinTsTestBase.kt b/fints4k/src/commonTest/kotlin/net/dankito/banking/fints/FinTsTestBase.kt index 2fb6b8f1..405a2464 100644 --- a/fints4k/src/commonTest/kotlin/net/dankito/banking/fints/FinTsTestBase.kt +++ b/fints4k/src/commonTest/kotlin/net/dankito/banking/fints/FinTsTestBase.kt @@ -3,6 +3,7 @@ package net.dankito.banking.fints import kotlinx.datetime.LocalDate import net.dankito.banking.fints.callback.SimpleFinTsClientCallback import net.dankito.banking.fints.config.FinTsClientConfiguration +import net.dankito.banking.fints.config.FinTsClientOptions import net.dankito.banking.fints.extensions.randomWithSeed import net.dankito.banking.fints.messages.datenelemente.abgeleiteteformate.Datum import net.dankito.banking.fints.messages.datenelemente.abgeleiteteformate.Laenderkennzeichen @@ -56,7 +57,7 @@ abstract class FinTsTestBase { const val Time = 182752 - val ClientConfig = FinTsClientConfiguration() + val ClientConfig = FinTsClientConfiguration(FinTsClientOptions(version = ProductVersion, productName = ProductName)) init {