From 7bd1828482cd7c421bf5fcd66603ae86f956d779 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 17 May 2022 12:12:52 +0200 Subject: -deduplicate --- src/exchange/taler-exchange-httpd_responses.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/exchange/taler-exchange-httpd_responses.h') diff --git a/src/exchange/taler-exchange-httpd_responses.h b/src/exchange/taler-exchange-httpd_responses.h index 03841e801..2c4ac018c 100644 --- a/src/exchange/taler-exchange-httpd_responses.h +++ b/src/exchange/taler-exchange-httpd_responses.h @@ -58,6 +58,22 @@ TEH_RESPONSE_reply_unknown_denom_pub_hash ( const struct TALER_DenominationHashP *dph); +/** + * Return error message indicating that a reserve had + * an insufficient balance for the given operation. + * + * @param connection connection to the client + * @param balance_required the balance required for the operation + * @param reserve_pub the reserve with insufficient balance + * @return MHD result code + */ +MHD_RESULT +TEH_RESPONSE_reply_reserve_insufficient_balance ( + struct MHD_Connection *connection, + const struct TALER_Amount *balance_required, + const struct TALER_ReservePublicKeyP *reserve_pub); + + /** * Send assertion that the given denomination key hash * is not usable (typically expired) at this time. -- cgit v1.2.3