diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-05-24 00:38:49 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-05-24 00:38:49 +0200 |
commit | 7c355636735d989ee5a60f855f6f64a6b6fe50d2 (patch) | |
tree | 347606bc67b037368a9611eaaa75175eb9036a66 /src/include/taler_merchantdb_plugin.h | |
parent | 0c4ff0eb09285481b9e78a3bdc3c1c9db8d5f239 (diff) | |
download | merchant-7c355636735d989ee5a60f855f6f64a6b6fe50d2.tar.gz merchant-7c355636735d989ee5a60f855f6f64a6b6fe50d2.tar.bz2 merchant-7c355636735d989ee5a60f855f6f64a6b6fe50d2.zip |
more SQL for tips
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r-- | src/include/taler_merchantdb_plugin.h | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h index 1324b4d9..23ad9b84 100644 --- a/src/include/taler_merchantdb_plugin.h +++ b/src/include/taler_merchantdb_plugin.h @@ -1716,25 +1716,19 @@ struct TALER_MERCHANTDB_Plugin /** - * Lookup tip details for tip @a tip_id. - * - * @param cls closure, typically a connection to the db - * @param instance_id which instance should we lookup tip details for - * @param tip_id which tip should we lookup details on - * @param[out] total_authorized amount how high is the tip (with fees) - * @param[out] total_picked_up how much of the tip was so far picked up (with fees) - * @param[out] expiration set to when the tip expires - * @param[out] exchange_url set to the exchange URL where the reserve is - * @param[out] reserve_priv set to private key of reserve to be debited - * @return transaction status, - * #TALER_EC_TIP_AUTHORIZE_RESERVE_EXPIRED if the reserve is known but has expired - * #TALER_EC_TIP_AUTHORIZE_RESERVE_UNKNOWN if the reserve is not known - * #TALER_EC_TIP_AUTHORIZE_INSUFFICIENT_FUNDS if the reserve has insufficient funds left - * #TALER_EC_TIP_AUTHORIZE_DB_HARD_ERROR on hard DB errors - * #TALER_EC_TIP_AUTHORIZE_DB_SOFT_ERROR on soft DB errors (client should retry) - * #TALER_EC_NONE upon success - */ - enum TALER_ErrorCode + * Lookup tip details for tip @a tip_id. + * + * @param cls closure, typically a connection to the db + * @param instance_id which instance should we lookup tip details for + * @param tip_id which tip should we lookup details on + * @param[out] total_authorized amount how high is the tip (with fees) + * @param[out] total_picked_up how much of the tip was so far picked up (with fees) + * @param[out] expiration set to when the tip expires + * @param[out] exchange_url set to the exchange URL where the reserve is + * @param[out] reserve_priv set to private key of reserve to be debited + * @return transaction status + */ + enum GNUNET_DB_QueryStatus (*lookup_tip)(void *cls, const char *instance_id, const struct GNUNET_HashCode *tip_id, |