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)

This commit is contained in:
dankito 2020-11-19 14:01:53 +01:00
parent f9a8e36078
commit 45f926055f
1 changed files with 0 additions and 5 deletions

View File

@ -987,7 +987,6 @@ open class FinTsClient(
protected open fun updateBankData(bank: BankData, response: BankResponse) { protected open fun updateBankData(bank: BankData, response: BankResponse) {
response.getFirstSegmentById<BankParameters>(InstituteSegmentId.BankParameters)?.let { bankParameters -> response.getFirstSegmentById<BankParameters>(InstituteSegmentId.BankParameters)?.let { bankParameters ->
bank.bpdVersion = bankParameters.bpdVersion bank.bpdVersion = bankParameters.bpdVersion
bank.bankName = adjustBankName(bankParameters.bankName)
bank.bankCode = bankParameters.bankCode bank.bankCode = bankParameters.bankCode
bank.countryCode = bankParameters.bankCountryCode bank.countryCode = bankParameters.bankCountryCode
bank.countMaxJobsPerMessage = bankParameters.countMaxJobsPerMessage 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) { protected open fun updateCustomerData(bank: BankData, response: BankResponse) {
response.getFirstSegmentById<BankParameters>(InstituteSegmentId.BankParameters)?.let { bankParameters -> response.getFirstSegmentById<BankParameters>(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. // TODO: ask user if there is more than one supported language? But it seems that almost all banks only support German.