From 36821f996fddc80681b0fef9f057b0065c738418 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 1 Sep 2020 23:21:10 +0530 Subject: [cashier] amount, not balance amount (following ISO 20022) --- cashier/src/main/java/net/taler/cashier/MainViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cashier/src/main/java/net/taler/cashier/MainViewModel.kt b/cashier/src/main/java/net/taler/cashier/MainViewModel.kt index 95d94d7..2fd53a3 100644 --- a/cashier/src/main/java/net/taler/cashier/MainViewModel.kt +++ b/cashier/src/main/java/net/taler/cashier/MainViewModel.kt @@ -69,7 +69,7 @@ class MainViewModel(private val app: Application) : AndroidViewModel(app) { val result = when (val response = makeJsonGetRequest(url, config)) { is HttpJsonResult.Success -> { try { - val balance = response.json.getString("balance") + val balance = response.json.getString("amount") val positive = when (val creditDebitIndicator = response.json.getString("credit_debit_indicator")) { "credit" -> true -- cgit v1.2.3