[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-bank] branch master updated: match spec
From: |
gnunet |
Subject: |
[taler-bank] branch master updated: match spec |
Date: |
Thu, 03 Sep 2020 19:18:39 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new 6da727e match spec
6da727e is described below
commit 6da727e2d32b0a9e7bf3caf7c1adda9afaf981fe
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Thu Sep 3 22:48:32 2020 +0530
match spec
---
talerbank/app/urls.py | 2 +-
talerbank/app/views.py | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/talerbank/app/urls.py b/talerbank/app/urls.py
index ffdd247..adcf8b1 100644
--- a/talerbank/app/urls.py
+++ b/talerbank/app/urls.py
@@ -46,7 +46,7 @@ taler_wire_gateway_patterns = [
# These paths are part of the bank access API
taler_bank_accounts_api_patterns = [
- path("accounts/<str:acct_id>/balance",
+ path("accounts/<str:acct_id>",
views.bank_accounts_api_balance,
name="access-api-balance"),
path(
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index fbce899..2a098e7 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -1293,11 +1293,12 @@ def bank_accounts_api_balance(request, user_account,
acct_id):
return JsonResponse(
dict(
- # The balance field is kept as long as the cashier still uses it
- balance=acct.balance.amount.stringify(),
- # This field should be kept, naming similar to ISO20022
- amount=acct.balance.amount.stringify(),
- credit_debit_indicator=("credit" if acct.balance.is_positive else
"debit"),
+ balance=dict(
+ amount=acct.balance.amount.stringify(),
+ credit_debit_indicator=(
+ "credit" if acct.balance.is_positive else "debit"
+ ),
+ )
)
)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-bank] branch master updated: match spec,
gnunet <=