Skip to content

Commit

Permalink
Added PSD Bank
Browse files Browse the repository at this point in the history
  • Loading branch information
mtotschnig committed Aug 17, 2024
1 parent aef7d3e commit 0768a4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fints/src/main/java/org/totschnig/fints/WellKnownBank.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,18 @@ enum class WellKnownBank(@DrawableRes val icon: Int, val color: Int, val blz: St
POSTBANK(R.drawable.postbank, Color.rgb(255, 204, 0)),
LIGA(R.drawable.liga, Color.rgb(2, 41, 164), "75090300"),
RENAULT(R.drawable.renault, Color.rgb(128, 128, 128), "30520037"),
MLP(R.drawable.mlp, Color.rgb(190,182,170),"67230000"),
DIREKT1822(R.drawable.direkt1822_96, Color.rgb(0, 58,107),"50050222")
MLP(R.drawable.mlp, Color.rgb(190, 182, 170), "67230000"),
DIREKT1822(R.drawable.direkt1822_96, Color.rgb(0, 58, 107), "50050222"),
PSD(R.drawable.psd, Color.rgb(1, 153, 102))

}

val Bank.asWellKnown: WellKnownBank?
get() = WellKnownBank.entries.find { it.blz == blz } ?: when {
blz.startsWith("200411") -> WellKnownBank.COMDIRECT
bankName.contains("sparda", ignoreCase = true) -> WellKnownBank.SPARDA
bankName.contains("postbank", ignoreCase = true) -> WellKnownBank.POSTBANK
bankName.contains("PSD Bank", ignoreCase = true) -> WellKnownBank.PSD
blz[3] == '5' -> WellKnownBank.SPARKASSE
blz[3] == '7' -> WellKnownBank.DEUTSCHE_BANK
blz[3] == '9' || blz[3] == '6' -> WellKnownBank.VOLKSBANK
Expand Down
Binary file added fints/src/main/res/drawable-xxhdpi/psd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0768a4e

Please sign in to comment.