diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-06-12 10:45:26 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-06-12 10:45:26 +0200 |
commit | d38e116d7e79aa3e55f0d5ce8c8e2ad24196068f (patch) | |
tree | 2074e23ee83927a3084a2c1f11b62c4b51ac9bf1 /src/backenddb | |
parent | 0d4f84de8fb328983a38dd6672504f90609a59dc (diff) | |
download | merchant-d38e116d7e79aa3e55f0d5ce8c8e2ad24196068f.tar.gz merchant-d38e116d7e79aa3e55f0d5ce8c8e2ad24196068f.tar.bz2 merchant-d38e116d7e79aa3e55f0d5ce8c8e2ad24196068f.zip |
insert missing functions (unimplemented)
Diffstat (limited to 'src/backenddb')
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 78 |
1 files changed, 78 insertions, 0 deletions
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 @@ -2057,6 +2057,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(). */ struct FindRefundContext @@ -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; |