commit 437c041cb5b22b959938f45e8b18fc93269a79b7
parent 7c9328254757b3fe1ee96f8cbbf10a0c805ba1d5
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 4 Dec 2025 22:25:01 +0100
update GANA
Diffstat:
2 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h
@@ -2913,12 +2913,11 @@ enum TALER_ErrorCode
/**
- * Legacy stuff. Remove me with protocol v1.
- * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).
+ * The refund request is too late because it is past the wire transfer deadline of the order. The merchant must find a different way to pay back the money to the customer.
+ * 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_DEAD_QQQ_PAY_MERCHANT_POST_ORDERS_ID_ABORT_REFUND_REFUSED_PAYMENT_COMPLETE
- = 2169,
+ TALER_EC_MERCHANT_PRIVATE_POST_REFUND_AFTER_WIRE_DEADLINE = 2169,
/**
@@ -4777,6 +4776,14 @@ enum TALER_ErrorCode
/**
+ * The order could not be found. Maybe the merchant deleted it.
+ * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ TALER_EC_WALLET_MERCHANT_ORDER_NOT_FOUND = 7049,
+
+
+ /**
* We encountered a timeout with our payment backend.
* Returned with an HTTP status code of #MHD_HTTP_GATEWAY_TIMEOUT (504).
* (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
@@ -2895,10 +2895,10 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
{
/* 2169 */
- .ec =
- TALER_EC_DEAD_QQQ_PAY_MERCHANT_POST_ORDERS_ID_ABORT_REFUND_REFUSED_PAYMENT_COMPLETE,
- .hint = gettext_noop ("Legacy stuff. Remove me with protocol v1."),
- .http_code = MHD_HTTP_UNINITIALIZED
+ .ec = TALER_EC_MERCHANT_PRIVATE_POST_REFUND_AFTER_WIRE_DEADLINE,
+ .hint = gettext_noop (
+ "The refund request is too late because it is past the wire transfer deadline of the order. The merchant must find a different way to pay back the money to the customer."),
+ .http_code = MHD_HTTP_GONE
},
{
@@ -4731,6 +4731,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
},
{
+ /* 7049 */
+ .ec = TALER_EC_WALLET_MERCHANT_ORDER_NOT_FOUND,
+ .hint = gettext_noop (
+ "The order could not be found. Maybe the merchant deleted it."),
+ .http_code = MHD_HTTP_UNINITIALIZED
+ },
+
+ {
/* 8000 */
.ec = TALER_EC_ANASTASIS_GENERIC_BACKEND_TIMEOUT,
.hint = gettext_noop ("We encountered a timeout with our payment backend."),
@@ -5483,7 +5491,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
/**
* The length of @e code_hint_pairs.
*/
-static const unsigned int code_hint_pairs_length = 686;
+static const unsigned int code_hint_pairs_length = 687;
const char *