exchange

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

commit 2fb250edd39429ffb6a25c83962588ba83e8e635
parent d8ea9eaaf83f5f632b76158ba961d64cdd466c97
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 28 Dec 2025 14:53:34 +0100

gana update

Diffstat:
Msrc/include/taler/taler_error_codes.h | 24++++++++++++++++++++++++
Msrc/util/taler_error_codes.c | 26+++++++++++++++++++++++++-
2 files changed, 49 insertions(+), 1 deletion(-)

diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h @@ -2704,6 +2704,14 @@ enum TALER_ErrorCode /** + * The money pod ID provided to the backend is not known to the backend. + * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_MERCHANT_GENERIC_MONEY_POT_UNKNOWN = 2037, + + + /** * The exchange failed to provide a valid answer to the tracking request, thus those details are not in the response. * Returned with an HTTP status code of #MHD_HTTP_OK (200). * (A value of 0 indicates that the error is generated client-side). @@ -3717,6 +3725,22 @@ enum TALER_ErrorCode /** + * The proposed name for the money pot is already in use. You should select a different name. + * 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_MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_NAME = 2691, + + + /** + * The total amount in the money pot is different from the amount required by the request. The client should fetch the current pot total and retry with the latest amount to succeed. + * 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_MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_TOTAL = 2692, + + + /** * The requested wire method is not supported by the exchange. * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). * (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 @@ -2687,6 +2687,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2037 */ + .ec = TALER_EC_MERCHANT_GENERIC_MONEY_POT_UNKNOWN, + .hint = gettext_noop ( + "The money pod ID provided to the backend is not known to the backend."), + .http_code = MHD_HTTP_NOT_FOUND + }, + + { /* 2100 */ .ec = TALER_EC_MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE, .hint = gettext_noop ( @@ -3692,6 +3700,22 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2691 */ + .ec = TALER_EC_MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_NAME, + .hint = gettext_noop ( + "The proposed name for the money pot is already in use. You should select a different name."), + .http_code = MHD_HTTP_CONFLICT + }, + + { + /* 2692 */ + .ec = TALER_EC_MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_TOTAL, + .hint = gettext_noop ( + "The total amount in the money pot is different from the amount required by the request. The client should fetch the current pot total and retry with the latest amount to succeed."), + .http_code = MHD_HTTP_CONFLICT + }, + + { /* 2700 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_RESERVES_UNSUPPORTED_WIRE_METHOD, .hint = gettext_noop ( @@ -5563,7 +5587,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { /** * The length of @e code_hint_pairs. */ -static const unsigned int code_hint_pairs_length = 696; +static const unsigned int code_hint_pairs_length = 699; const char *