forked from thijooree/android
add more card support, include credit cards in accounts
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user