diff options
author | Torsten Grote <t@grobox.de> | 2020-05-13 10:18:31 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-05-13 10:18:49 -0300 |
commit | 84aaedffc6ab612595e724103a1b7b3311b23417 (patch) | |
tree | fe38fe4cb24d99d3b386206fc59675c299073afd /taler-wallet.rst | |
parent | 58dffa046cc531114a031d2cfcc833f987285155 (diff) | |
download | docs-84aaedffc6ab612595e724103a1b7b3311b23417.tar.gz docs-84aaedffc6ab612595e724103a1b7b3311b23417.tar.bz2 docs-84aaedffc6ab612595e724103a1b7b3311b23417.zip |
Add TransactionError to transaction API
Diffstat (limited to 'taler-wallet.rst')
-rw-r--r-- | taler-wallet.rst | 17 |
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 |