From 24a2a3f887ce34d42dc20dc7952b8edeb4a21bd4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 3 Jun 2020 20:39:11 +0200 Subject: new backenddb APIs for GET /private/orders/ID --- src/include/taler_merchantdb_plugin.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'src/include/taler_merchantdb_plugin.h') 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); /** @@ -1239,6 +1241,25 @@ struct TALER_MERCHANTDB_Plugin bool *paid); + /** + * 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 -- cgit v1.2.3