diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-06-03 20:39:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-06-03 20:39:11 +0200 |
commit | 24a2a3f887ce34d42dc20dc7952b8edeb4a21bd4 (patch) | |
tree | d08dd484947496b178a1017f7ebc6e3a46be648c /src/include/taler_merchantdb_plugin.h | |
parent | 2789caa9b8658e88eebf3333475f989e7cd2fd37 (diff) | |
download | merchant-24a2a3f887ce34d42dc20dc7952b8edeb4a21bd4.tar.gz merchant-24a2a3f887ce34d42dc20dc7952b8edeb4a21bd4.tar.bz2 merchant-24a2a3f887ce34d42dc20dc7952b8edeb4a21bd4.zip |
new backenddb APIs for GET /private/orders/ID
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r-- | src/include/taler_merchantdb_plugin.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h index 0346597e..1ca4f9a0 100644 --- a/src/include/taler_merchantdb_plugin.h +++ b/src/include/taler_merchantdb_plugin.h @@ -1036,13 +1036,15 @@ struct TALER_MERCHANTDB_Plugin * @param instance_id instance's identifier * @param order_id order_id used to lookup. * @param[out] contract_terms where to store the result, NULL to only check for existence + * @param[out] order_serial set to the order's serial number * @return transaction status */ enum GNUNET_DB_QueryStatus (*lookup_contract_terms)(void *cls, const char *instance_id, const char *order_id, - json_t **contract_terms); + json_t **contract_terms, + uint64_t *order_serial); /** @@ -1240,6 +1242,25 @@ struct TALER_MERCHANTDB_Plugin /** + * Retrieve payment and wire status for a given @a order_serial and + * session ID. + * + * @param cls closure + * @param order_serial identifies the order + * @param session_id session for which to check the payment status, NULL for any + * @param[out] paid set to the payment status of the contract + * @param[out] wired set to the wire transfer status of the exchange payment + * @return transaction status + */ + enum GNUNET_DB_QueryStatus + (*lookup_payment_status)(void *cls, + uint64_t order_serial, + const char *session_id, + bool *paid, + bool *wired); + + + /** * Function called when some backoffice staff decides to award or * increase the refund on an existing contract. This function * MUST be called from within a transaction scope setup by the |