gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-docs] branch master updated: wallet api


From: gnunet
Subject: [taler-docs] branch master updated: wallet api
Date: Thu, 16 Jul 2020 19:48:33 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository docs.

The following commit(s) were added to refs/heads/master by this push:
     new 8918201  wallet api
8918201 is described below

commit 8918201896dba4d55f7344ab0190252d57720633
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Thu Jul 16 23:18:23 2020 +0530

    wallet api
---
 taler-wallet.rst | 38 ++++++++++++++++++++++++++++++--------
 1 file changed, 30 insertions(+), 8 deletions(-)

diff --git a/taler-wallet.rst b/taler-wallet.rst
index 306cd4f..985a038 100644
--- a/taler-wallet.rst
+++ b/taler-wallet.rst
@@ -213,6 +213,33 @@ Transactions are all operations or events that are 
affecting the balance.
      details?: any;
    }
 
+  .. ts:def:: WithdrawalDetails
+
+    export type WithdrawalDetails =
+      | WithdrawalDetailsForManualTransfer
+      | WithdrawalDetailsForTalerBankIntegrationApi;
+
+    interface WithdrawalDetailsForManualTransfer {
+      type: "manual-transfer";
+
+      // Payto URIs that the exchange supports.
+      // Already contains the amount and message.
+      exchangePaytoUris: string[];
+    }
+
+    interface WithdrawalDetailsForTalerBankIntegrationApi {
+      type: "taler-bank-integration-api";
+
+      // Set to true if the bank has confirmed the withdrawal, false if not.
+      // An unconfirmed withdrawal usually requires user-input and should be 
highlighted in the UI.
+      // See also bankConfirmationUrl below.
+      confirmed: boolean;
+
+      // If the withdrawal is unconfirmed, this can include a URL for user
+      // initiated confirmation.
+      bankConfirmationUrl?: string;
+    }
+
   .. ts:def:: TransactionWithdrawal
 
     // This should only be used for actual withdrawals
@@ -223,20 +250,15 @@ Transactions are all operations or events that are 
affecting the balance.
       // Exchange that was withdrawn from.
       exchangeBaseUrl: string;
 
-      // true if the bank has confirmed the withdrawal, false if not.
-      // An unconfirmed withdrawal usually requires user-input and should be 
highlighted in the UI.
-      // See also bankConfirmationUrl below.
-      confirmed: boolean;
-
-      // If the withdrawal is unconfirmed, this can include a URL for user 
initiated confirmation.
-      bankConfirmationUrl?: string;
-
       // Amount that has been subtracted from the reserve's balance for this 
withdrawal.
       amountRaw: Amount;
 
       // Amount that actually was (or will be) added to the wallet's balance.
       // Should always be shown as a positive amount.
       amountEffective: Amount;
+
+      // Further details
+      withdrawalDetails: WithdrawalDetails;
     }
 
   .. ts:def:: TransactionPayment

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]