add more card support, include credit cards in accounts

This commit is contained in:
2026-05-23 21:21:01 +05:00
parent e9f0cec698
commit 219ca9bf00
3 changed files with 7 additions and 4 deletions
@@ -171,10 +171,11 @@ class BmlAccountClient {
val cardBalance = item.optJSONObject("cardBalance")
val available = cardBalance?.optDouble("AvailableLimit", 0.0) ?: 0.0
val current = cardBalance?.optDouble("CurrentBalance", 0.0) ?: 0.0
val isVisible = item.optBoolean("account_visible", false)
val cardProfileType = when {
isPrepaid -> "BML_PREPAID"
product.contains("CREDIT", ignoreCase = true) -> "BML_CREDIT"
else -> "BML_DEBIT"
isVisible -> "BML_CREDIT" // non-prepaid, visible = credit card
else -> "BML_DEBIT" // non-prepaid, not visible = debit card
}
prepaidCards.add(BankAccount(
bank = "BML",