exchange

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

commit 54f842bae136ac309d54f24b5bdba6089b612e6e
parent b0ffd34b9d7ad3b04c23500d558f6688c1ae3f90
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 25 Mar 2026 23:27:24 +0100

update GANA

Diffstat:
Msrc/include/taler/taler_error_codes.h | 56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Msrc/util/taler_error_codes.c | 52+++++++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 107 insertions(+), 1 deletion(-)

diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h @@ -2744,6 +2744,30 @@ enum TALER_ErrorCode /** + * The Donau 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_DONAU_UNKNOWN = 2041, + + + /** + * The access token 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_ACCESS_TOKEN_UNKNOWN = 2042, + + + /** + * One of the binaries needed to generate the PDF is not installed. If this feature is required, the system administrator should make sure Typst and pdftk are both installed. + * Returned with an HTTP status code of #MHD_HTTP_NOT_IMPLEMENTED (501). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_MERCHANT_GENERIC_NO_TYPST_OR_PDFTK = 2048, + + + /** * 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). @@ -4456,6 +4480,38 @@ enum TALER_ErrorCode /** + * This subject format is not supported. + * 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_BANK_UNSUPPORTED_SUBJECT_FORMAT = 5158, + + + /** + * The derived subject is already used. + * 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_BANK_DERIVATION_REUSE = 5159, + + + /** + * The provided signature is invalid. + * 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_BANK_BAD_SIGNATURE = 5160, + + + /** + * The provided timestamp is too old. + * 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_BANK_OLD_TIMESTAMP = 5161, + + + /** * The sync service failed find the account in its database. * 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 @@ -2727,6 +2727,28 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2041 */ + .ec = TALER_EC_MERCHANT_GENERIC_DONAU_UNKNOWN, + .hint = gettext_noop ("The Donau is not known to the backend."), + .http_code = MHD_HTTP_NOT_FOUND + }, + + { + /* 2042 */ + .ec = TALER_EC_MERCHANT_GENERIC_ACCESS_TOKEN_UNKNOWN, + .hint = gettext_noop ("The access token is not known to the backend."), + .http_code = MHD_HTTP_NOT_FOUND + }, + + { + /* 2048 */ + .ec = TALER_EC_MERCHANT_GENERIC_NO_TYPST_OR_PDFTK, + .hint = gettext_noop ( + "One of the binaries needed to generate the PDF is not installed. If this feature is required, the system administrator should make sure Typst and pdftk are both installed."), + .http_code = MHD_HTTP_NOT_IMPLEMENTED + }, + + { /* 2100 */ .ec = TALER_EC_MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE, .hint = gettext_noop ( @@ -4418,6 +4440,34 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5158 */ + .ec = TALER_EC_BANK_UNSUPPORTED_SUBJECT_FORMAT, + .hint = gettext_noop ("This subject format is not supported."), + .http_code = MHD_HTTP_CONFLICT + }, + + { + /* 5159 */ + .ec = TALER_EC_BANK_DERIVATION_REUSE, + .hint = gettext_noop ("The derived subject is already used."), + .http_code = MHD_HTTP_CONFLICT + }, + + { + /* 5160 */ + .ec = TALER_EC_BANK_BAD_SIGNATURE, + .hint = gettext_noop ("The provided signature is invalid."), + .http_code = MHD_HTTP_CONFLICT + }, + + { + /* 5161 */ + .ec = TALER_EC_BANK_OLD_TIMESTAMP, + .hint = gettext_noop ("The provided timestamp is too old."), + .http_code = MHD_HTTP_CONFLICT + }, + + { /* 6100 */ .ec = TALER_EC_SYNC_ACCOUNT_UNKNOWN, .hint = gettext_noop ( @@ -5676,7 +5726,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { /** * The length of @e code_hint_pairs. */ -static const unsigned int code_hint_pairs_length = 710; +static const unsigned int code_hint_pairs_length = 717; const char *