summaryrefslogtreecommitdiff
path: root/taler-wallet.rst
diff options
context:
space:
mode:
Diffstat (limited to 'taler-wallet.rst')
-rw-r--r--taler-wallet.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/taler-wallet.rst b/taler-wallet.rst
index beae2068..e7351fd8 100644
--- a/taler-wallet.rst
+++ b/taler-wallet.rst
@@ -127,6 +127,9 @@ Transactions are all operations or events that are affecting the balance.
// but its transactionId will remain unchanged
pending: boolean;
+ // if present, the transaction encountered a fatal error that needs to be shown to the user
+ error?: TransactionError;
+
// Raw amount of the transaction (exclusive of fees or other extra costs)
amountRaw: Amount;
@@ -144,6 +147,20 @@ Transactions are all operations or events that are affecting the balance.
TransactionRefresh
)
+ .. ts:def:: TransactionError
+
+ interface TransactionError {
+ // TALER_EC_* unique error code.
+ // The action(s) offered and message displayed on the transaction item depend on this code.
+ ec: number;
+
+ // English-only error hint, if available.
+ hint?: string;
+
+ // Error details specific to "ec", if applicable/available
+ details?: any;
+ }
+
.. ts:def:: TransactionWithdrawal
// This should only be used for actual withdrawals