diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-24 00:21:10 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-24 00:21:10 +0200 |
commit | 1b746eed67c0d85fa008196ce40c84ea5ab00c22 (patch) | |
tree | f9bb1080b65552d5f669799117b45f0e377a2b5f /src/include/taler_merchantdb_plugin.h | |
parent | 598f45b4eb5b060af35bb2976c5911484025a672 (diff) | |
download | merchant-1b746eed67c0d85fa008196ce40c84ea5ab00c22.tar.gz merchant-1b746eed67c0d85fa008196ce40c84ea5ab00c22.tar.bz2 merchant-1b746eed67c0d85fa008196ce40c84ea5ab00c22.zip |
implementing backenddb logic for tipping (not tested)
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r-- | src/include/taler_merchantdb_plugin.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h index 072a00ec..c5a323dd 100644 --- a/src/include/taler_merchantdb_plugin.h +++ b/src/include/taler_merchantdb_plugin.h @@ -659,10 +659,14 @@ struct TALER_MERCHANTDB_Plugin * @param[out] expiration set to when the tip expires * @param[out] tip_id set to the unique ID for the tip * @return transaction status, - * #GNUNET_DB_STATUS_SUCCESS_NO_RESULTS if reserve has insufficient funds, - * #GNUNET_DB_STATUS_SUCCESS_ONE_RESULT upon success + * #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 GNUNET_DB_QueryStatus + enum TALER_ErrorCode (*authorize_tip)(void *cls, const char *justification, const struct TALER_Amount *amount, |