diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-04-19 18:44:14 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-04-19 18:44:14 +0200 |
commit | 13a153616e07874b9e70d8b72dd44cebc8766f2c (patch) | |
tree | 061396d66dd40aa4cd0bec774b20172d77683373 /src/include | |
parent | 8f98a5ca6e651e4361851bf305a77ad2090f0d75 (diff) | |
download | exchange-13a153616e07874b9e70d8b72dd44cebc8766f2c.tar.xz |
implementing database functions towards addressing #4956
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 @@ -1759,6 +1759,31 @@ struct TALER_EXCHANGEDB_Plugin /** + * 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. * * @param cls closure |