From 0c959e75d109fc914ab8891518f7963ade74cff8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 5 May 2016 22:57:55 +0200 Subject: working on #3641: more on /refund implementation --- src/exchange/taler-exchange-httpd_db.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/exchange/taler-exchange-httpd_db.h') diff --git a/src/exchange/taler-exchange-httpd_db.h b/src/exchange/taler-exchange-httpd_db.h index d6245a702..7cf498285 100644 --- a/src/exchange/taler-exchange-httpd_db.h +++ b/src/exchange/taler-exchange-httpd_db.h @@ -40,6 +40,20 @@ TMH_DB_execute_deposit (struct MHD_Connection *connection, const struct TALER_EXCHANGEDB_Deposit *deposit); +/** + * Execute a "/refund". Returns a confirmation that the refund + * was successful, or a failure if we are not aware of a matching + * /deposit or if it is too late to do the refund. + * + * @param connection the MHD connection to handle + * @param refund refund details + * @return MHD result code + */ +int +TMH_DB_execute_refund (struct MHD_Connection *connection, + const struct TALER_EXCHANGEDB_Refund *refund); + + /** * Execute a "/reserve/status". Given the public key of a reserve, * return the associated transaction history. -- cgit v1.2.3