aboutsummaryrefslogtreecommitdiff
path: root/src/TalerErrorCode.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-28 15:18:01 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-28 15:18:01 +0530
commit43655adff0f8f1db082e1f0c18f1271a29ab8905 (patch)
treeaf106a1e45f85eb12399d8e25ae6f3a413d4fe60 /src/TalerErrorCode.ts
parent86fd5f24406d05fe473c0ffe6c22666fe1b3e343 (diff)
downloadwallet-core-43655adff0f8f1db082e1f0c18f1271a29ab8905.tar.gz
wallet-core-43655adff0f8f1db082e1f0c18f1271a29ab8905.tar.bz2
wallet-core-43655adff0f8f1db082e1f0c18f1271a29ab8905.zip
updated preparePay API according to spec
Diffstat (limited to 'src/TalerErrorCode.ts')
-rw-r--r--src/TalerErrorCode.ts23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/TalerErrorCode.ts b/src/TalerErrorCode.ts
index f338f1ad4..56c28ee20 100644
--- a/src/TalerErrorCode.ts
+++ b/src/TalerErrorCode.ts
@@ -550,7 +550,7 @@ export enum TalerErrorCode {
DEPOSIT_INVALID_WIRE_FORMAT_JSON = 1210,
/**
- * The hash of the given wire address does not match the hash specified in the proposal data.
+ * The hash of the given wire address does not match the wire hash specified in the proposal data.
* Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400).
* (A value of 0 indicates that the error is generated client-side).
*/
@@ -1404,6 +1404,13 @@ export enum TalerErrorCode {
PAY_EXCHANGE_FAILED = 2135,
/**
+ * The merchant backend couldn't verify the order payment because of a database failure.
+ * Returned with an HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR (500).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ PAID_DB_ERROR = 2146,
+
+ /**
* The order is not known.
* Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
* (A value of 0 indicates that the error is generated client-side).
@@ -2678,6 +2685,13 @@ export enum TalerErrorCode {
MERCHANT_ORDER_GET_REPLY_MALFORMED = 2922,
/**
+ * The token used to authenticate the client is invalid for this order.
+ * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ MERCHANT_GET_ORDER_INVALID_TOKEN = 2923,
+
+ /**
* The signature from the exchange on the deposit confirmation is invalid. Returned with a "400 Bad Request" status code.
* Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).
* (A value of 0 indicates that the error is generated client-side).
@@ -3063,6 +3077,13 @@ export enum TalerErrorCode {
WALLET_CORE_API_OPERATION_UNKNOWN = 7007,
/**
+ * The given taler://pay URI is invalid.
+ * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ WALLET_INVALID_TALER_PAY_URI = 7008,
+
+ /**
* The exchange does not know about the reserve (yet), and thus withdrawal can't progress.
* Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
* (A value of 0 indicates that the error is generated client-side).