gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant] branch master updated: comments + passing


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: comments + passing refund reason to refund cb
Date: Wed, 07 Jun 2017 11:49:24 +0200

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

marcello pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 190d229  comments + passing refund reason to refund cb
190d229 is described below

commit 190d229f43aa14adc6cd58336beb541b36b7f43f
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jun 7 11:49:03 2017 +0200

    comments + passing refund reason to refund cb
---
 src/backenddb/plugin_merchantdb_postgres.c |  1 +
 src/include/taler_merchantdb_plugin.h      | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/src/backenddb/plugin_merchantdb_postgres.c 
b/src/backenddb/plugin_merchantdb_postgres.c
index 73fd330..9e9ac4a 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -157,6 +157,7 @@ postgres_initialize (void *cls)
                           " rtransaction_id SERIAL"
                           ",h_contract_terms BYTEA NOT NULL"
                           ",coin_pub BYTEA NOT NULL CHECK 
(LENGTH(coin_pub)=32)"
+                          ",reason VARCHAR NOT NULL"
                           ",refund_amount_val INT8 NOT NULL"
                           ",refund_amount_frac INT8 NOT NULL"
                           ",refund_amount_curr VARCHAR(" 
TALER_CURRENCY_LEN_STR ") NOT NULL"
diff --git a/src/include/taler_merchantdb_plugin.h 
b/src/include/taler_merchantdb_plugin.h
index 67b5c0c..9e7ec88 100644
--- a/src/include/taler_merchantdb_plugin.h
+++ b/src/include/taler_merchantdb_plugin.h
@@ -125,10 +125,21 @@ typedef void
                                   const json_t *proof);
 
 
+/**
+ * Function called with information about a refund.
+ *
+ * @param cls closure
+ * @param coin_pub public coin from which the refund comes from
+ * @param rtransaction_id identificator of the refund
+ * @param reason human-readable explaination of the refund
+ * @param refund_amount refund amount which is being taken from coin_pub
+ * @param refund_fee cost of this refund operation
+ */
 typedef void
 (*TALER_MERCHANTDB_RefundCallback)(void *cls,
                                    const struct TALER_CoinSpendPublicKeyP 
*coin_pub,
                                    uint64_t rtransaction_id,
+                                   const char *reason,
                                    const struct TALER_Amount *refund_amount,
                                    const struct TALER_Amount *refund_fee);
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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