From d38e116d7e79aa3e55f0d5ce8c8e2ad24196068f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 12 Jun 2020 10:45:26 +0200 Subject: insert missing functions (unimplemented) --- src/backenddb/plugin_merchantdb_postgres.c | 78 ++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) (limited to 'src/backenddb') diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 684e0b34..70ff62ca 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; -- cgit v1.2.3