aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-10-22 19:07:07 +0200
committerChristian Grothoff <christian@grothoff.org>2017-10-22 19:07:07 +0200
commit2cb6c5b9fe5813aab586674cc6f81c2839ae0f8b (patch)
tree5f985dd6996b163c457fd2b9554d676db53191d4 /src
parent9807e5c50c33506c8bc38eebd191f5e9849fc722 (diff)
starting with error codes for tipping API
Diffstat (limited to 'src')
-rw-r--r--src/include/taler_error_codes.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index 5a9563553..21969073f 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -1336,6 +1336,46 @@ enum TALER_ErrorCode
*/
TALER_EC_PAY_DB_STORE_PAYMENTS_ERROR = 2605,
+ /**
+ * 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".
+ */
+ TALER_EC_TIP_AUTHORIZE_INSTANCE_UNKNOWN = 2700,
+
+ /**
+ * The backend knows the instance that was supposed to support the
+ * tip, but it was not configured for tipping (i.e. has no exchange
+ * associated with it). Likely to be a configuration
+ * error. Returned with an HTTP status code of "NOT FOUND".
+ */
+ TALER_EC_TIP_AUTHORIZE_INSTANCE_DOES_NOT_TIP = 2701,
+
+ /**
+ * The backend knows the instance that was supposed to support the
+ * tip, and it was configured for tipping. However, the funds
+ * remaining are insufficient to cover the tip, and the merchant
+ * should top up the reserve.
+ * Returned with an HTTP status code of "PRECONDITION FAILED".
+ */
+ TALER_EC_TIP_AUTHORIZE_INSUFFICIENT_FUNDS = 2702,
+
+ /**
+ * The backend had trouble accessing the database to persist
+ * information about the tip authorization.
+ * Returned with an HTTP status code of internal error.
+ */
+ TALER_EC_TIP_AUTHORIZE_DB_TRANSACTION_ERROR = 2703,
+
+ /**
+ * The backend had trouble accessing the database to persist
+ * information about enabling tips.
+ * Returned with an HTTP status code of internal error.
+ */
+ TALER_EC_TIP_ENABLE_DB_TRANSACTION_ERROR = 2750,
+
+
+
/* ********** /test API error codes ************* */