gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: adjust refund status according t


From: gnunet
Subject: [taler-merchant] branch master updated: adjust refund status according to latest docs
Date: Wed, 22 Jul 2020 11:49:39 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new dbc78e9  adjust refund status according to latest docs
dbc78e9 is described below

commit dbc78e917cb1cfd8eb5d0f5b1749fcdb2f8006ad
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Wed Jul 22 15:18:50 2020 +0530

    adjust refund status according to latest docs
---
 src/backend/taler-merchant-httpd_get-orders-ID.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c 
b/src/backend/taler-merchant-httpd_get-orders-ID.c
index e6bad56..7a11865 100644
--- a/src/backend/taler-merchant-httpd_get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_get-orders-ID.c
@@ -1000,7 +1000,9 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
       {
         if (NULL == cr->exchange_reply)
         {
-          refund = json_pack ("{s:I,s:I,s:o,s:o}"
+          refund = json_pack ("{s:b, s:I,s:I,s:o,s:o}"
+                              "success",
+                              0,
                               "exchange_status",
                               (json_int_t) cr->exchange_status,
                               "rtransaction_id",
@@ -1012,7 +1014,9 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
         }
         else
         {
-          refund = json_pack ("{s:I,s:I,s:o,s:I,s:o,s:o}"
+          refund = json_pack ("{s:b,s:I,s:I,s:o,s:I,s:o,s:o}"
+                              "success",
+                              0,
                               "exchange_status",
                               (json_int_t) cr->exchange_status,
                               "exchange_code",
@@ -1029,7 +1033,9 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
       }
       else
       {
-        refund = json_pack ("{s:I,s:o,s:o,s:I,s:o,s:o}",
+        refund = json_pack ("{s:b,s:I,s:o,s:o,s:I,s:o,s:o}",
+                            "success",
+                            0,
                             "exchange_status",
                             (json_int_t) cr->exchange_status,
                             "exchange_sig",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]