From 400c13d6a2dac87f16440535582faf61c9a545b7 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 16 Sep 2024 17:30:49 +0200 Subject: [PATCH] Added countryCode --- .../kotlin/net/codinux/banking/client/model/BankAccess.kt | 6 +++++- .../net/codinux/banking/client/fints4k/FinTs4kMapper.kt | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccess.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccess.kt index 66d2fb35..5138abc1 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccess.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccess.kt @@ -56,7 +56,11 @@ open class BankAccess( open var tanMedia: List = listOf(), var bankingGroup: BankingGroup? = null, - open var serverAddress: String? = null + open var serverAddress: String? = null, + /** + * The ISO code of the country where the bank resides and to know the system of [domesticBankCode]. + */ + val countryCode: String = "de" ) { var userSetDisplayName: String? = null 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 0feb3431..1273ba06 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 @@ -148,7 +148,8 @@ open class FinTs4kMapper { bank.selectedTanMedium?.mediumName, bank.tanMedia.map { mapTanMedium(it) }, info?.bankingGroup ?: getBankingGroup(bank.bankName, bank.bic), - bank.finTsServerAddress + bank.finTsServerAddress, + "de" ) protected open fun getBankingGroup(bankName: String, bic: String): BankingGroup? =