diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-04-24 14:59:53 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-04-24 14:59:53 +0200 |
commit | c834ea48dd18334d476067a99720b80fd37680ee (patch) | |
tree | 667b18a1df66e65912aa3ea1bb7b243a1a023aa2 /src/include/taler_merchantdb_plugin.h | |
parent | 70765db54c9fd0690e9a0865b244a3c0e5014ff4 (diff) | |
download | merchant-c834ea48dd18334d476067a99720b80fd37680ee.tar.gz merchant-c834ea48dd18334d476067a99720b80fd37680ee.tar.bz2 merchant-c834ea48dd18334d476067a99720b80fd37680ee.zip |
add cherry-pick like query used in /history. This API
is used when the backoffice user enters the exact order id
into the form.
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r-- | src/include/taler_merchantdb_plugin.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h index f0b8ccbf..71f14002 100644 --- a/src/include/taler_merchantdb_plugin.h +++ b/src/include/taler_merchantdb_plugin.h @@ -243,6 +243,26 @@ struct TALER_MERCHANTDB_Plugin void *cb_cls); /** + * Lookup for a proposal, respecting the signature used by the + * /history's db methods. + * + * @param cls db plugin handle + * @param order_id order id used to search for the proposal data + * @param merchant_pub public key of the merchant using this method + * @param cb the callback + * @param cb_cls closure to pass to the callback + * @return GNUNET_YES, GNUNET_NO, GNUNET_SYSERR according to the + * query being successful, unsuccessful, or generated errors. + */ + int + (*find_proposal_data_history) (void *cls, + const char *order_id, + const struct TALER_MerchantPublicKeyP *merchant_pub, + TALER_MERCHANTDB_ProposalDataCallback cb, + void *cb_cls); + + + /** * Return proposals whose timestamp are older than `date`. * The rows are sorted having the youngest first.* * |