From 13a153616e07874b9e70d8b72dd44cebc8766f2c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 19 Apr 2017 18:44:14 +0200 Subject: implementing database functions towards addressing #4956 --- src/include/taler_exchangedb_plugin.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index b9c3d79e6..710f556d5 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1758,6 +1758,31 @@ struct TALER_EXCHANGEDB_Plugin struct TALER_MasterSignatureP *master_sig); + /** + * Insert reserve close operation into database. + * + * @param cls closure + * @param session database connection + * @param reserve_pub which reserve is this about? + * @param execution_date when did we perform the transfer? + * @param receiver_account to which account do we transfer? + * @param transfer_details wire transfer details + * @param amount_with_fee amount we charged to the reserve + * @param closing_fee how high is the closing fee + * @return #GNUNET_OK on success, #GNUNET_NO if the record exists, + * #GNUNET_SYSERR on failure + */ + int + (*insert_reserve_closed)(void *cls, + struct TALER_EXCHANGEDB_Session *session, + struct TALER_ReservePublicKeyP *reserve_pub, + struct GNUNET_TIME_Absolute execution_date, + const json_t *receiver_account, + const json_t *transfer_details, + const struct TALER_Amount *amount_with_fee, + const struct TALER_Amount *closing_fee); + + /** * Function called to insert wire transfer commit data into the DB. * -- cgit v1.2.3