exchange

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

commit d8ea9eaaf83f5f632b76158ba961d64cdd466c97
parent f8c150fde8a0d5465db31c9830dc5cd1a7880b7b
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 27 Dec 2025 13:01:00 +0100

latest GANA

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

diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h @@ -3701,7 +3701,7 @@ enum TALER_ErrorCode /** - * The deletion request is for a product that is locked. + * The deletion request is for a product that is locked. The product cannot be deleted until the existing offer to expires. * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). * (A value of 0 indicates that the error is generated client-side). */ @@ -3709,6 +3709,14 @@ enum TALER_ErrorCode /** + * The proposed name for the product group 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_PRODUCT_GROUP_CONFLICTING_NAME = 2690, + + + /** * 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 @@ -3679,7 +3679,15 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { /* 2680 */ .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_PRODUCTS_CONFLICTING_LOCK, .hint = gettext_noop ( - "The deletion request is for a product that is locked."), + "The deletion request is for a product that is locked. The product cannot be deleted until the existing offer to expires."), + .http_code = MHD_HTTP_CONFLICT + }, + + { + /* 2690 */ + .ec = TALER_EC_MERCHANT_PRIVATE_PRODUCT_GROUP_CONFLICTING_NAME, + .hint = gettext_noop ( + "The proposed name for the product group is already in use. You should select a different name."), .http_code = MHD_HTTP_CONFLICT }, @@ -5555,7 +5563,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { /** * The length of @e code_hint_pairs. */ -static const unsigned int code_hint_pairs_length = 695; +static const unsigned int code_hint_pairs_length = 696; const char *