From 2f2c47e4e2c9c2f421bc2eba386b89d4783e00d4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 31 Jul 2020 22:49:55 +0530 Subject: wallet api --- taler-wallet.rst | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/taler-wallet.rst b/taler-wallet.rst index 2ac95df6..0ba46b22 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; -- cgit v1.2.3