gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] 199/277: insert missing functions (unimplemented)


From: gnunet
Subject: [taler-merchant] 199/277: insert missing functions (unimplemented)
Date: Sun, 05 Jul 2020 20:51:52 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

commit d38e116d7e79aa3e55f0d5ce8c8e2ad24196068f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Jun 12 10:45:26 2020 +0200

    insert missing functions (unimplemented)
---
 src/backenddb/plugin_merchantdb_postgres.c | 78 ++++++++++++++++++++++++++++++
 1 file changed, 78 insertions(+)

diff --git a/src/backenddb/plugin_merchantdb_postgres.c 
b/src/backenddb/plugin_merchantdb_postgres.c
index 684e0b3..70ff62c 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -2056,6 +2056,79 @@ postgres_lookup_payment_status (void *cls,
 }
 
 
+/**
+ * Retrieve details about coins that were deposited for an order.
+ *
+ * @param cls closure
+ * @param order_serial identifies the order
+ * @param cb function to call for each deposited coin
+ * @param cb_cls closure for @a cb
+ * @return transaction status
+ */
+static enum GNUNET_DB_QueryStatus
+postgres_lookup_deposits_by_order (void *cls,
+                                   uint64_t order_serial,
+                                   TALER_MERCHANTDB_DepositedCoinsCallback cb,
+                                   void *cb_cls)
+{
+  // FIXME
+}
+
+
+/**
+ * Retrieve wire transfer details for all deposits associated with
+ * a given @a order_serial.
+ *
+ * @param cls closure
+ * @param order_serial identifies the order
+ * @param cb function called with the wire transfer details
+ * @param cb_cls closure for @a cb
+ * @return transaction status
+ */
+static enum GNUNET_DB_QueryStatus
+postgres_lookup_transfer_details_by_order (
+  void *cls,
+  uint64_t order_serial,
+  TALER_MERCHANTDB_OrderTransferDetailsCallback cb,
+  void *cb_cls)
+{
+  // FIXME
+}
+
+
+/**
+ * Insert wire transfer details for a deposit.
+ *
+ * @param cls closure
+ * @param deposit_serial serial number of the deposit
+ * @param dd deposit transfer data from the exchange to store
+ * @return transaction status
+ */
+static enum GNUNET_DB_QueryStatus
+postgres_insert_deposit_to_transfer (void *cls,
+                                     uint64_t deposit_serial,
+                                     const struct
+                                     TALER_EXCHANGE_DepositData *dd)
+{
+  // FIXME: not implemented yet!
+}
+
+
+/**
+ * Set 'wired' status for an order to 'true'.
+ *
+ * @param cls closure
+ * @param order_serial serial number of the order
+ * @return transaction status
+ */
+static enum GNUNET_DB_QueryStatus
+postgres_mark_order_wired (void *cls,
+                           uint64_t order_serial)
+{
+  // FIXME: not implemented yet!
+}
+
+
 /**
  * Closure for #process_refund_cb().
  */
@@ -7580,6 +7653,11 @@ libtaler_plugin_merchantdb_postgres_init (void *cls)
   plugin->refund_coin = &postgres_refund_coin;
   plugin->lookup_order_status = &postgres_lookup_order_status;
   plugin->lookup_payment_status = &postgres_lookup_payment_status;
+  plugin->lookup_deposits_by_order = &postgres_lookup_deposits_by_order;
+  plugin->lookup_transfer_details_by_order =
+    &postgres_lookup_transfer_details_by_order;
+  plugin->insert_deposit_to_transfer = &postgres_insert_deposit_to_transfer;
+  plugin->mark_order_wired = &postgres_mark_order_wired;
   plugin->increase_refund = &postgres_increase_refund;
   plugin->lookup_refunds_detailed = &postgres_lookup_refunds_detailed;
   plugin->insert_refund_proof = &postgres_insert_refund_proof;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]