From ee68dd09b2fb706f136778f21e0ef3e7bde7ac08 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 21 Feb 2022 23:22:49 +0100 Subject: [PATCH] Added convenience getAccountData() method --- .../kotlin/net/dankito/banking/fints/FinTsClient.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt index 06fde6b3..3b3364a8 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt @@ -37,6 +37,10 @@ open class FinTsClient @JvmOverloads constructor( protected open val mapper = FinTsModelMapper() + open suspend fun getAccountData(bankCode: String, loginName: String, password: String): GetAccountDataResponse { + return getAccountData(GetAccountDataParameter(bankCode, loginName, password)) + } + open suspend fun getAccountData(param: GetAccountDataParameter): GetAccountDataResponse { val finTsServerAddress = finTsServerAddressFinder.findFinTsServerAddress(param.bankCode) if (finTsServerAddress.isNullOrBlank()) {