aboutsummaryrefslogtreecommitdiff
path: root/cashier/src/main
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-09-01 23:21:10 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-09-01 23:21:10 +0530
commit36821f996fddc80681b0fef9f057b0065c738418 (patch)
treebb42b0d7c121f3bf9671af831b53bdebdef46638 /cashier/src/main
parent6f304b20e6f1410753a02221625ec7cce30434fd (diff)
downloadtaler-android-36821f996fddc80681b0fef9f057b0065c738418.tar.gz
taler-android-36821f996fddc80681b0fef9f057b0065c738418.tar.bz2
taler-android-36821f996fddc80681b0fef9f057b0065c738418.zip
[cashier] amount, not balance amount (following ISO 20022)
Diffstat (limited to 'cashier/src/main')
-rw-r--r--cashier/src/main/java/net/taler/cashier/MainViewModel.kt2
1 files changed, 1 insertions, 1 deletions
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