From 6975502f28c9fb95d19e6d01199c2b1c5da82f9b Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 2 Jan 2021 22:53:51 +0100 Subject: [PATCH] Re-added setting bank name to BankParameters.bankName in case that it's not set (as the value from BankParameters contains a lot of confusion and irrelevant names) --- .../net/dankito/banking/fints/model/mapper/ModelMapper.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/mapper/ModelMapper.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/mapper/ModelMapper.kt index a783ec14..10500a69 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/mapper/ModelMapper.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/mapper/ModelMapper.kt @@ -27,6 +27,11 @@ open class ModelMapper( bank.supportedHbciVersions = bankParameters.supportedHbciVersions bank.supportedLanguages = bankParameters.supportedLanguages + if (bank.bankName.isBlank()) { + // just as fallback as this value contains a lot of confusing and irrelevant names (like DB24 for Deutsche Bank and Rechenzentrum Bayer. Gen. for Bavarian Raiffeisen banks) + bank.bankName = bankParameters.bankName + } + // bank.bic = bankParameters. // TODO: where's the BIC? }