exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 2a01aaa917c82abcaf395eb16f4008faf9250f41
parent 2143266a50d7f4fff243c1f5f1cff1cb07e081dc
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 10 Jan 2019 14:31:47 +0100

more error codes for the merchant

Diffstat:
Msrc/include/taler_error_codes.h | 70++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 70 insertions(+), 0 deletions(-)

diff --git 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.