diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-07-10 15:30:17 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-07-10 15:30:17 +0200 |
commit | 61e737f03e85d1e68bb5b58228b9937f8269038c (patch) | |
tree | 647afba09094bc9dd9759eda9bc1559cb4a60274 /src/include | |
parent | 109a4a5aa1393da6241e479d13bce6d8c37b3275 (diff) |
Put logic to sum KYC-monitored wire transfers.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 54 |
1 files changed, 36 insertions, 18 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index cf2842ea9..c0fcdaeef 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2251,9 +2251,9 @@ struct TALER_EXCHANGEDB_Plugin * @return database transaction status. */ enum GNUNET_DB_QueryStatus - (*insert_kyc_merchant) (void *cls, - struct TALER_EXCHANGEDB_Session *session, - const char *payto_url); + (*insert_kyc_merchant)(void *cls, + struct TALER_EXCHANGEDB_Session *session, + const char *payto_url); /** * Mark a merchant as KYC-checked. @@ -2266,9 +2266,9 @@ struct TALER_EXCHANGEDB_Plugin * @return database transaction status. */ enum GNUNET_DB_QueryStatus - (*mark_kyc_merchant) (void *cls, - struct TALER_EXCHANGEDB_Session *session, - const char *payto_url); + (*mark_kyc_merchant)(void *cls, + struct TALER_EXCHANGEDB_Session *session, + const char *payto_url); /** @@ -2282,9 +2282,9 @@ struct TALER_EXCHANGEDB_Plugin * @return database transaction status. */ enum GNUNET_DB_QueryStatus - (*unmark_kyc_merchant) (void *cls, - struct TALER_EXCHANGEDB_Session *session, - const char *payto_url); + (*unmark_kyc_merchant)(void *cls, + struct TALER_EXCHANGEDB_Session *session, + const char *payto_url); /** @@ -2300,11 +2300,11 @@ struct TALER_EXCHANGEDB_Plugin * @return transaction status. */ enum GNUNET_DB_QueryStatus - (*get_kyc_status) (void *cls, - struct TALER_EXCHANGEDB_Session *session, - const char *payto_url, - TALER_EXCHANGEDB_KycStatusCallback ksc, - void *ksc_cls); + (*get_kyc_status)(void *cls, + struct TALER_EXCHANGEDB_Session *session, + const char *payto_url, + TALER_EXCHANGEDB_KycStatusCallback ksc, + void *ksc_cls); /** * Record timestamp where a particular merchant performed @@ -2318,10 +2318,28 @@ struct TALER_EXCHANGEDB_Plugin * @return database transaction status. */ enum GNUNET_DB_QueryStatus - (*insert_kyc_event) (void *cls, - struct TALER_EXCHANGEDB_Session *session, - uint64_t merchant_serial_id, - struct TALER_Amount *amount); + (*insert_kyc_event)(void *cls, + struct TALER_EXCHANGEDB_Session *session, + uint64_t merchant_serial_id, + struct TALER_Amount *amount); + + + /** + * Calculate sum of money flow related to a particular merchant, + * used for KYC monitoring. + * + * @param cls closure + * @param session DB session + * @param merchant_serial_id serial id identifying the merchant + * into the KYC monitoring system. + * @param amount[out] will store the amount of money received + * by this merchant. + */ + enum GNUNET_DB_QueryStatus + (*get_kyc_events)(void *cls, + struct TALER_EXCHANGEDB_Session *session, + uint64_t merchant_serial_id, + struct TALER_Amount *amount); }; #endif /* _TALER_EXCHANGE_DB_H */ |