commit ddd8b2f834c45416b5e53ff1d9b18f034f6c6464
parent f580fb2bdbcb91bf9b5c544fe31ceebb7ffd249f
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date: Sun, 26 Jul 2026 18:42:53 +0200
update GANA
Diffstat:
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h
@@ -3589,7 +3589,7 @@ enum TALER_ErrorCode
/**
- * The amount to be refunded is inconsistent: either is lower than the previous amount being awarded, or it exceeds the original price paid by the customer.
+ * The requested cumulative Taler refund is inconsistent: it is lower than the amount already awarded, exceeds the amount paid through Taler, or would make the combined Taler and external refunds exceed the full order total.
* Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
* (A value of 0 indicates that the error is generated client-side).
*/
@@ -3663,6 +3663,15 @@ enum TALER_ErrorCode
/**
+ * An external refund with the same identifier was already recorded for this order, but with different details.
+ * 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_POST_ORDERS_ID_REFUND_EXTERNAL_ALREADY_EXISTS =
+ 2539,
+
+
+ /**
* The exchange says it does not know this transfer.
* Returned with an HTTP status code of #MHD_HTTP_BAD_GATEWAY (502).
* (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
@@ -3468,7 +3468,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
/* 2530 */
.ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_INCONSISTENT_AMOUNT,
.hint =
- "The amount to be refunded is inconsistent: either is lower than the previous amount being awarded, or it exceeds the original price paid by the customer.",
+ "The requested cumulative Taler refund is inconsistent: it is lower than the amount already awarded, exceeds the amount paid through Taler, or would make the combined Taler and external refunds exceed the full order total.",
.http_code = MHD_HTTP_CONFLICT
},
@@ -3539,6 +3539,15 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
},
{
+ /* 2539 */
+ .ec =
+ TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_EXTERNAL_ALREADY_EXISTS,
+ .hint =
+ "An external refund with the same identifier was already recorded for this order, but with different details.",
+ .http_code = MHD_HTTP_CONFLICT
+ },
+
+ {
/* 2550 */
.ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_EXCHANGE_UNKNOWN,
.hint = "The exchange says it does not know this transfer.",
@@ -5753,7 +5762,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
/**
* The length of @e code_hint_pairs.
*/
-static const unsigned int code_hint_pairs_length = 743;
+static const unsigned int code_hint_pairs_length = 744;
const char *