From 2cb6c5b9fe5813aab586674cc6f81c2839ae0f8b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 22 Oct 2017 19:07:07 +0200 Subject: starting with error codes for tipping API --- src/include/taler_error_codes.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) 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 ************* */ -- cgit v1.2.3