Mapping accounts named 'Tagesgeld' to Sparkonto as according to Wikipedia some direct banks offer 'Tagesgeldkonten' as a modern version of Sparkonto

This commit is contained in:
dankito 2020-10-06 10:54:45 +02:00
parent 3d3d143023
commit 269ad0bb33
1 changed files with 2 additions and 1 deletions

View File

@ -1263,7 +1263,8 @@ open class FinTsClient(
// comdirect doesn't set account type field but names its bank accounts according to them like 'Girokonto', 'Tagesgeldkonto', ...
return when {
name.contains("Girokonto", true) -> AccountType.Girokonto
name.contains("Tagesgeld", true) || name.contains("Festgeld", true) -> AccountType.Festgeldkonto
name.contains("Festgeld", true) -> AccountType.Festgeldkonto
name.contains("Tagesgeld", true) -> AccountType.Sparkonto // learnt something new today: according to Wikipedia some direct banks offer a modern version of saving accounts as 'Tagesgeldkonto'
name.contains("Kreditkarte", true) -> AccountType.Kreditkartenkonto
else -> accountInfo.accountType
}