Adjusting bank name for Deutsche Bank

This commit is contained in:
dankito 2020-08-05 10:44:12 +02:00
parent 633462dea3
commit 1e987e63ea
1 changed files with 5 additions and 1 deletions

View File

@ -903,7 +903,7 @@ open class FinTsClient(
protected open fun updateBankData(bank: BankData, response: Response) {
response.getFirstSegmentById<BankParameters>(InstituteSegmentId.BankParameters)?.let { bankParameters ->
bank.bpdVersion = bankParameters.bpdVersion
bank.name = bankParameters.bankName
bank.name = adjustBankName(bankParameters.bankName)
bank.bankCode = bankParameters.bankCode
bank.countryCode = bankParameters.bankCountryCode
bank.countMaxJobsPerMessage = bankParameters.countMaxJobsPerMessage
@ -942,6 +942,10 @@ 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(customer: CustomerData, bank: BankData, response: Response) {
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.