[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] branch master updated: Add TransactionError to transaction
From: |
gnunet |
Subject: |
[taler-docs] branch master updated: Add TransactionError to transaction API |
Date: |
Wed, 13 May 2020 15:19:00 +0200 |
This is an automated email from the git hooks/post-receive script.
torsten-grote pushed a commit to branch master
in repository docs.
The following commit(s) were added to refs/heads/master by this push:
new 84aaedf Add TransactionError to transaction API
84aaedf is described below
commit 84aaedffc6ab612595e724103a1b7b3311b23417
Author: Torsten Grote <address@hidden>
AuthorDate: Wed May 13 10:18:31 2020 -0300
Add TransactionError to transaction API
---
taler-wallet.rst | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/taler-wallet.rst b/taler-wallet.rst
index beae206..e7351fd 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
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-docs] branch master updated: Add TransactionError to transaction API,
gnunet <=