summaryrefslogtreecommitdiff
path: root/src/include/taler_merchantdb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-06-01 14:12:59 +0200
committerChristian Grothoff <christian@grothoff.org>2020-06-01 14:12:59 +0200
commite3c0320132f88f3d13e1f6d96a6cea9c3334df83 (patch)
tree0302c171277e073c31fad043e5672813cd8dcb8a /src/include/taler_merchantdb_plugin.h
parentcd3a94a3c143455350be8e8c0cddbb8dc691da33 (diff)
downloadmerchant-e3c0320132f88f3d13e1f6d96a6cea9c3334df83.tar.gz
merchant-e3c0320132f88f3d13e1f6d96a6cea9c3334df83.tar.bz2
merchant-e3c0320132f88f3d13e1f6d96a6cea9c3334df83.zip
add logic for activation of reserves to merchant backend DB
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r--src/include/taler_merchantdb_plugin.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h
index 8f17da7e..0346597e 100644
--- a/src/include/taler_merchantdb_plugin.h
+++ b/src/include/taler_merchantdb_plugin.h
@@ -1614,6 +1614,26 @@ struct TALER_MERCHANTDB_Plugin
/**
+ * Confirms @a credit as the amount the exchange claims to have received and
+ * thus really 'activates' the reserve. This has to happen before tips can
+ * be authorized.
+ *
+ * @param cls closure, typically a connection to the db
+ * @param instance_id which instance is the reserve tied to
+ * @param reserve_pub which reserve is topped up or created
+ * @param initial_exchange_balance how much money was be added to the reserve
+ * according to the exchange
+ * @return transaction status, usually
+ * #GNUNET_DB_STATUS_SUCCESS_ONE_RESULT for success
+ */
+ enum GNUNET_DB_QueryStatus
+ (*activate_reserve)(void *cls,
+ const char *instance_id,
+ const struct TALER_ReservePublicKeyP *reserve_pub,
+ const struct TALER_Amount *initial_exchange_balance);
+
+
+ /**
* Lookup reserves.
*
* @param cls closure