summaryrefslogtreecommitdiff
path: root/taler-wallet.rst
diff options
context:
space:
mode:
Diffstat (limited to 'taler-wallet.rst')
-rw-r--r--taler-wallet.rst30
1 files changed, 15 insertions, 15 deletions
diff --git a/taler-wallet.rst b/taler-wallet.rst
index 2ac95df..0ba46b2 100644
--- a/taler-wallet.rst
+++ b/taler-wallet.rst
@@ -92,16 +92,16 @@ Envelope Format
All API responses and notifications are returned in the
following envelope:
-.. ts:def:: WalletCoreResponseEnvelope
+.. ts:def:: WalletResponseEnvelope
- type WalletCoreResponseEnvelope =
- | WalletCoreSuccess
- | WalletCoreError
- | WalletCoreNotification
+ type WalletResponseEnvelope =
+ | WalletSuccess
+ | WalletError
+ | WalletNotification
-.. ts:def:: WalletCoreSuccess
+.. ts:def:: WalletSuccess
- export interface WalletCoreSuccess {
+ export interface WalletSuccess {
type: "response";
operation: string,
// ID to correlate success response to request
@@ -110,19 +110,19 @@ following envelope:
result: unknown;
}
-.. ts:def:: WalletCoreError
+.. ts:def:: WalletError
- export interface WalletCoreError {
+ export interface WalletError {
type: "error";
operation: string,
- // ID to correlate success response to request
+ // ID to correlate error response to request
id: string;
- error: WalletCoreErrorInfo;
+ error: WalletErrorInfo;
}
-.. ts:def:: WalletCoreNotification
+.. ts:def:: WalletNotification
- export interface WalletCoreSuccess {
+ export interface WalletSuccess {
type: "notification";
// actual type is WalletNotification,
@@ -130,9 +130,9 @@ following envelope:
payload: any;
}
-.. ts:def:: WalletCoreErrorInfo
+.. ts:def:: WalletErrorInfo
- export interface WalletCoreErrorInfo {
+ export interface WalletErrorInfo {
// Numeric error code defined defined in the
// GANA gnu-taler-error-codes registry.
talerErrorCode: number;