diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-10-17 13:22:15 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-17 13:22:15 +0200 |
commit | 932d2aaf88d9c871bc64abcd8d7ab9c5a4f543fd (patch) | |
tree | 56e30b12989583a01d24dd496d8dec67ab3a90f5 /src/include | |
parent | 0739405f679782ed925cb3041dda14d062798ff2 (diff) |
implement returning KYC status from GET /deposits/ endpoint
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchange_service.h | 6 | ||||
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 41 |
2 files changed, 20 insertions, 27 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 2bfb08547..9d89c96b6 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -1874,6 +1874,12 @@ struct TALER_EXCHANGE_GetDepositResponse * to check for its KYC status. */ uint64_t payment_target_uuid; + + /** + * Set to 'true' if the KYC check is already finished and + * the exchange is merely waiting for the @e execution_time. + */ + bool kyc_ok; } accepted; } details; diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 17d78217d..286162fbc 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1833,29 +1833,6 @@ typedef void /** - * Function called with the results of the lookup of the wire transfer - * identifier information. Only called if we are at least aware of the - * transaction existing. - * - * @param cls closure - * @param wtid wire transfer identifier, NULL - * if the transaction was not yet done - * @param coin_contribution how much did the coin we asked about - * contribute to the total transfer value? (deposit value including fee) - * @param coin_fee how much did the exchange charge for the deposit fee - * @param execution_time when was the transaction done, or - * when we expect it to be done (if @a wtid was NULL) - */ -typedef void -(*TALER_EXCHANGEDB_WireTransferByCoinCallback)( - void *cls, - const struct TALER_WireTransferIdentifierRawP *wtid, - const struct TALER_Amount *coin_contribution, - const struct TALER_Amount *coin_fee, - struct GNUNET_TIME_Absolute execution_time); - - -/** * Function called with the results of the lookup of the * transaction data associated with a wire transfer identifier. * @@ -2916,8 +2893,14 @@ struct TALER_EXCHANGEDB_Plugin * @param h_wire hash of merchant wire details * @param coin_pub public key of deposited coin * @param merchant_pub merchant public key - * @param cb function to call with the result - * @param cb_cls closure to pass to @a cb + * @param[out] pending set to true if the transaction is still pending + * @param[out] wtid wire transfer identifier, only set if @a pending is false + * @param[out] coin_contribution how much did the coin we asked about + * contribute to the total transfer value? (deposit value including fee) + * @param[out] coin_fee how much did the exchange charge for the deposit fee + * @param[out] execution_time when was the transaction done, or + * when we expect it to be done (if @a pending is false) + * @param[out] kyc set to the kyc status of the receiver (if @a pending) * @return transaction status code */ enum GNUNET_DB_QueryStatus @@ -2927,8 +2910,12 @@ struct TALER_EXCHANGEDB_Plugin const struct GNUNET_HashCode *h_wire, const struct TALER_CoinSpendPublicKeyP *coin_pub, const struct TALER_MerchantPublicKeyP *merchant_pub, - TALER_EXCHANGEDB_WireTransferByCoinCallback cb, - void *cb_cls); + bool *pending, + struct TALER_WireTransferIdentifierRawP *wtid, + struct GNUNET_TIME_Absolute *exec_time, + struct TALER_Amount *amount_with_fee, + struct TALER_Amount *deposit_fee, + struct TALER_EXCHANGEDB_KycStatus *kyc); /** |