exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 81771e271ee007dcc45acf5cd2f882204e64221b
parent 55e033da608a6bf60e0b08050cd8e548b23fd5ea
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 11 Oct 2026 14:47:58 +0200

gana bump

Diffstat:
Msrc/include/taler/taler_error_codes.h | 16++++++++++++++++
Msrc/util/taler_error_codes.c | 18+++++++++++++++++-
2 files changed, 33 insertions(+), 1 deletion(-)

diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h @@ -1032,6 +1032,14 @@ enum TALER_ErrorCode /** + * The denominations of an age-restricted withdraw request do not all use the same age mask. All denominations of an age-restricted withdraw must have the same age groups. + * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_EXCHANGE_WITHDRAW_AGE_MASK_MISMATCH = 1166, + + + /** * The withdraw operation included the same planchet more than once. This is not allowed. * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). * (A value of 0 indicates that the error is generated client-side). @@ -1776,6 +1784,14 @@ enum TALER_ErrorCode /** + * A different request to keep the reserve open was already processed with the same request timestamp. Each open request of a reserve must use a distinct request timestamp. + * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_EXCHANGE_RESERVES_OPEN_TIMESTAMP_REUSE = 1791, + + + /** * The auditor that was supposed to be disabled is unknown to this exchange. * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). * (A value of 0 indicates that the error is generated client-side). diff --git a/src/util/taler_error_codes.c b/src/util/taler_error_codes.c @@ -1017,6 +1017,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1166 */ + .ec = TALER_EC_EXCHANGE_WITHDRAW_AGE_MASK_MISMATCH, + .hint = + "The denominations of an age-restricted withdraw request do not all use the same age mask. All denominations of an age-restricted withdraw must have the same age groups.", + .http_code = MHD_HTTP_BAD_REQUEST + }, + + { /* 1175 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_IDEMPOTENT_PLANCHET, .hint = @@ -1730,6 +1738,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1791 */ + .ec = TALER_EC_EXCHANGE_RESERVES_OPEN_TIMESTAMP_REUSE, + .hint = + "A different request to keep the reserve open was already processed with the same request timestamp. Each open request of a reserve must use a distinct request timestamp.", + .http_code = MHD_HTTP_CONFLICT + }, + + { /* 1800 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_AUDITOR_NOT_FOUND, .hint = @@ -6258,7 +6274,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { /** * The length of @e code_hint_pairs. */ -static const unsigned int code_hint_pairs_length = 806; +static const unsigned int code_hint_pairs_length = 808; const char *