From 269ad0bb33d9f03376572521016f68279e9dff27 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 6 Oct 2020 10:54:45 +0200 Subject: [PATCH] Mapping accounts named 'Tagesgeld' to Sparkonto as according to Wikipedia some direct banks offer 'Tagesgeldkonten' as a modern version of Sparkonto --- .../commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt index 81d29634..ec22509f 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt @@ -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 }