add more card support, include credit cards in accounts
Auto Tag on Version Change / check-version (push) Successful in 4s

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
@@ -14,6 +14,7 @@ object BmlCardParser {
fun productCodeToAsset(productCode: String): String = when (productCode) {
"C8201" -> "cards/bml/master_prepaid.png"
"C8205" -> "cards/bml/master_prepaid_travel.png"
"C8005" -> "cards/bml/master_prepaid_travel.png"
"C3007" -> "cards/bml/amex_debit_green.png"
"C1007" -> "cards/bml/visa_debit.png"
"C1003" -> "cards/bml/visa_gold.png"
@@ -11,8 +11,9 @@ object BmlDashboardParser {
* Handles both BML CASA accounts and BML prepaid/credit cards.
*/
fun displayData(account: BankAccount): AccountListDisplay? {
if (account.profileType == "BML_LOAN") return null // Loans shown on financing page only
val isCard = account.profileType == "BML_PREPAID" || account.profileType == "BML_CREDIT" || account.profileType == "BML_DEBIT"
if (account.profileType == "BML_LOAN") return null // Loans shown on financing page only
if (account.profileType == "BML_DEBIT") return null // Debit cards shown on card screens only
val isCard = account.profileType == "BML_PREPAID" || account.profileType == "BML_CREDIT"
return if (isCard) {
val isActive = account.statusDesc.equals("Active", ignoreCase = true)
AccountListDisplay(