summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-31 22:49:55 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-31 22:49:55 +0530
commit2f2c47e4e2c9c2f421bc2eba386b89d4783e00d4 (patch)
tree5e579ba9e24ebf6c6458924a36f7dd730f670fc0
parent454cfe38028263d68058f694ca7bf1b2cffbc290 (diff)
downloaddocs-2f2c47e4e2c9c2f421bc2eba386b89d4783e00d4.tar.gz
docs-2f2c47e4e2c9c2f421bc2eba386b89d4783e00d4.tar.bz2
docs-2f2c47e4e2c9c2f421bc2eba386b89d4783e00d4.zip
wallet api
-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;