exchange

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

commit 41283ab62dbd66c032d64eab222ff12c49b04db0
parent e9bd3b75a72d91f804a81fd68f7cc5401cf5c3be
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  2 Jun 2026 19:33:04 +0200

update GANA

Diffstat:
Msrc/include/taler/taler_error_codes.h | 18+++++++++++++++++-
Msrc/util/taler_error_codes.c | 19+++++++++++++++++--
2 files changed, 34 insertions(+), 3 deletions(-)

diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h @@ -5721,6 +5721,22 @@ enum TALER_ErrorCode /** + * The donation unit has expired and cannot be used any longer. + * Returned with an HTTP status code of #MHD_HTTP_GONE (410). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_DONAU_GENERIC_DONATION_UNIT_EXPIRED = 8619, + + + /** + * The donation unit is not yet valid. The client should repeat the request in the future when it might succeed. + * Returned with an HTTP status code of #MHD_HTTP_TOO_MANY_REQUESTS (429). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_DONAU_GENERIC_DONATION_UNIT_TOO_EARLY = 8620, + + + /** * A generic error happened in the LibEuFin nexus. See the enclose details JSON for more information. * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). * (A value of 0 indicates that the error is generated client-side). @@ -5858,7 +5874,7 @@ enum TALER_ErrorCode /** * The request is invalid as the specified order is unpaid. The client should only call this endpoint after paying the order. - * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). + * 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_PAIVANA_PAYMENT_MISSING = 9800, diff --git a/src/util/taler_error_codes.c b/src/util/taler_error_codes.c @@ -5481,6 +5481,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8619 */ + .ec = TALER_EC_DONAU_GENERIC_DONATION_UNIT_EXPIRED, + .hint = "The donation unit has expired and cannot be used any longer.", + .http_code = MHD_HTTP_GONE + }, + + { + /* 8620 */ + .ec = TALER_EC_DONAU_GENERIC_DONATION_UNIT_TOO_EARLY, + .hint = + "The donation unit is not yet valid. The client should repeat the request in the future when it might succeed.", + .http_code = MHD_HTTP_TOO_MANY_REQUESTS + }, + + { /* 9000 */ .ec = TALER_EC_LIBEUFIN_NEXUS_GENERIC_ERROR, .hint = @@ -5609,7 +5624,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { .ec = TALER_EC_PAIVANA_PAYMENT_MISSING, .hint = "The request is invalid as the specified order is unpaid. The client should only call this endpoint after paying the order.", - .http_code = MHD_HTTP_BAD_REQUEST + .http_code = MHD_HTTP_CONFLICT }, { @@ -5690,7 +5705,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { /** * The length of @e code_hint_pairs. */ -static const unsigned int code_hint_pairs_length = 735; +static const unsigned int code_hint_pairs_length = 737; const char *