From 45f926055f560f6a1efd42de7e9dc76e1b026ba4 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 19 Nov 2020 14:01:53 +0100 Subject: [PATCH] Removed setting bank name to value in bank parameters as this value contains a lot of confusing and irrelevant names (like DB24 for Deutsche Bank and Rechenzentrum Bayer. Gen. for Bavarian Raiffeisen banks) --- .../kotlin/net/dankito/banking/fints/FinTsClient.kt | 5 ----- 1 file changed, 5 deletions(-) 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 8db365e3..0e4601d0 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt @@ -987,7 +987,6 @@ open class FinTsClient( protected open fun updateBankData(bank: BankData, response: BankResponse) { response.getFirstSegmentById(InstituteSegmentId.BankParameters)?.let { bankParameters -> bank.bpdVersion = bankParameters.bpdVersion - bank.bankName = adjustBankName(bankParameters.bankName) bank.bankCode = bankParameters.bankCode bank.countryCode = bankParameters.bankCountryCode bank.countMaxJobsPerMessage = bankParameters.countMaxJobsPerMessage @@ -1032,10 +1031,6 @@ open class FinTsClient( } } - protected open fun adjustBankName(bankName: String): String { - return bankName.replace("DB24-Filiale", "Deutsche Bank") // set a better name for Deutsche Bank's self title 'DB24-Filiale' - } - protected open fun updateCustomerData(bank: BankData, response: BankResponse) { response.getFirstSegmentById(InstituteSegmentId.BankParameters)?.let { bankParameters -> // TODO: ask user if there is more than one supported language? But it seems that almost all banks only support German.