summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-01-10 14:31:47 +0100
committerChristian Grothoff <christian@grothoff.org>2019-01-10 14:31:47 +0100
commit2a01aaa917c82abcaf395eb16f4008faf9250f41 (patch)
treec7e8061987bf212cfd83fe4be534b6b013ff0ba1 /src/include
parent2143266a50d7f4fff243c1f5f1cff1cb07e081dc (diff)
downloadexchange-2a01aaa917c82abcaf395eb16f4008faf9250f41.tar.gz
exchange-2a01aaa917c82abcaf395eb16f4008faf9250f41.tar.bz2
exchange-2a01aaa917c82abcaf395eb16f4008faf9250f41.zip
more error codes for the merchant
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_error_codes.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index 4123c435e..fc815cf60 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -735,6 +735,13 @@ enum TALER_ErrorCode
*/
TALER_EC_REFUND_MERCHANT_SIGNATURE_INVALID = 1513,
+ /**
+ * Merchant backend failed to create the refund confirmation signature.
+ * This response is provided with HTTP status code
+ * MHD_HTTP_INTERNAL_SERVER_ERROR.
+ */
+ TALER_EC_REFUND_MERCHANT_SIGNING_FAILED = 1514,
+
/**
* The wire format specified in the "sender_account_details"
@@ -1376,6 +1383,12 @@ enum TALER_ErrorCode
TALER_EC_PAY_DB_STORE_PAYMENTS_ERROR = 2605,
/**
+ * The backend failed to sign the refund request.
+ */
+ TALER_EC_PAY_REFUND_SIGNATURE_FAILED = 2606,
+
+
+ /**
* The backend does not know the instance that was supposed to support
* the tip. Likely to be a configuration error. Returned with an
* HTTP status code of "NOT FOUND".
@@ -1426,6 +1439,63 @@ enum TALER_ErrorCode
TALER_EC_TIP_AUTHORIZE_DB_SOFT_ERROR = 2706,
/**
+ * The backend failed to obtain a reserve status from the exchange.
+ */
+ TALER_EC_TIP_QUERY_RESERVE_STATUS_FAILED_EXCHANGE_DOWN = 2707,
+
+ /**
+ * The backend got an empty (!) reserve history from the exchange.
+ */
+ TALER_EC_TIP_QUERY_RESERVE_HISTORY_FAILED_EMPTY = 2708,
+
+ /**
+ * The backend got an invalid reserve history
+ * (fails to start with a deposit) from the exchange.
+ */
+ TALER_EC_TIP_QUERY_RESERVE_HISTORY_INVALID_NO_DEPOSIT = 2709,
+
+ /**
+ * The backend got an reserve history
+ * with a bad currency from the exchange.
+ */
+ TALER_EC_TIP_QUERY_RESERVE_HISTORY_INVALID_CURRENCY = 2710,
+
+ /**
+ * The backend got a reserve with a currency that does not match
+ * the backend's currency.
+ */
+ TALER_EC_TIP_QUERY_RESERVE_CURRENCY_MISSMATCH = 2711,
+
+ /**
+ * The backend got a reserve history with amounts it cannot
+ * process (addition failure in deposits).
+ */
+ TALER_EC_TIP_QUERY_RESERVE_HISTORY_ARITHMETIC_ISSUE_DEPOSIT = 2712,
+
+ /**
+ * The backend got a reserve history with amounts it cannot
+ * process (addition failure in withdraw amounts).
+ */
+ TALER_EC_TIP_QUERY_RESERVE_HISTORY_ARITHMETIC_ISSUE_WITHDRAW = 2713,
+
+ /**
+ * The backend got a reserve history with amounts it cannot
+ * process (addition failure in closing amounts).
+ */
+ TALER_EC_TIP_QUERY_RESERVE_HISTORY_ARITHMETIC_ISSUE_CLOSED = 2714,
+
+ /**
+ * The backend got a reserve history with inconsistent amounts.
+ */
+ TALER_EC_TIP_QUERY_RESERVE_HISTORY_ARITHMETIC_ISSUE_INCONSISTENT = 2715,
+
+ /**
+ * The backend encountered a database error querying tipping reserves.
+ */
+ TALER_EC_TIP_QUERY_DB_ERROR = 2716,
+
+
+ /**
* The backend had trouble accessing the database to persist
* information about enabling tips.
* Returned with an HTTP status code of internal error.