summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-06-20 18:22:33 +0200
committerChristian Grothoff <christian@grothoff.org>2020-06-20 18:22:33 +0200
commitda5f393967e9a4e6b7c78b72f1c9f74a49bb52c6 (patch)
tree95e94f74d7c9661865a5dfe11c73fdc16147a188 /src/include
parent9bae03573f31f22893839bbbbdaeba94821e3a57 (diff)
downloadmerchant-da5f393967e9a4e6b7c78b72f1c9f74a49bb52c6.tar.gz
merchant-da5f393967e9a4e6b7c78b72f1c9f74a49bb52c6.tar.bz2
merchant-da5f393967e9a4e6b7c78b72f1c9f74a49bb52c6.zip
start with reserve processing logic
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_merchantdb_plugin.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h
index e8c71546..abd1ef03 100644
--- a/src/include/taler_merchantdb_plugin.h
+++ b/src/include/taler_merchantdb_plugin.h
@@ -484,6 +484,24 @@ typedef void
/**
+ * Callback with details about a reserve pending exchange confirmation.
+ *
+ * @param cls closure
+ * @param instance_id for which instance is this reserve
+ * @param exchange_url base URL of the exchange
+ * @param reserve_pub public key of the reserve
+ * @param expected_amount how much do we expect to see in the reserve
+ */
+typedef void
+(*TALER_MERCHANTDB_PendingReservesCallback)(
+ void *cls,
+ const char *instance_id,
+ const char *exchange_url,
+ const struct TALER_ReservePublicKeyP *reserve_pub,
+ const struct TALER_Amount *expected_amount);
+
+
+/**
* Details about a tip.
*/
struct TALER_MERCHANTDB_TipDetails
@@ -1703,6 +1721,20 @@ struct TALER_MERCHANTDB_Plugin
/**
+ * Lookup reserves pending activation across all instances.
+ *
+ * @param cls closure
+ * @param cb function to call with reserve data
+ * @param cb_cls closure for @a cb
+ * @return transaction status
+ */
+ enum GNUNET_DB_QueryStatus
+ (*lookup_pending_reserves)(void *cls,
+ TALER_MERCHANTDB_PendingReservesCallback cb,
+ void *cb_cls);
+
+
+ /**
* Lookup reserve details.
*
* @param cls closure