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)

This commit is contained in:
dankito 2021-01-02 22:53:51 +01:00
parent 78cb96b8dc
commit 6975502f28
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@ open class ModelMapper(
bank.supportedHbciVersions = bankParameters.supportedHbciVersions bank.supportedHbciVersions = bankParameters.supportedHbciVersions
bank.supportedLanguages = bankParameters.supportedLanguages 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? // bank.bic = bankParameters. // TODO: where's the BIC?
} }