gnunet-svn
[Top][All Lists]
Advanced

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

[taler-docs] branch master updated: addressing #7669


From: gnunet
Subject: [taler-docs] branch master updated: addressing #7669
Date: Thu, 09 Feb 2023 16:50:12 +0100

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

ms pushed a commit to branch master
in repository docs.

The following commit(s) were added to refs/heads/master by this push:
     new af11ed5  addressing #7669
af11ed5 is described below

commit af11ed5ff33defdb3b01e14b2c2be146848a8abc
Author: MS <ms@taler.net>
AuthorDate: Thu Feb 9 16:49:31 2023 +0100

    addressing #7669
---
 libeufin/api-common.rst  | 28 ++++++++++++++++++++++++++++
 libeufin/api-sandbox.rst |  4 ++--
 libeufin/index.rst       |  1 +
 3 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/libeufin/api-common.rst b/libeufin/api-common.rst
new file mode 100644
index 0000000..3bfb457
--- /dev/null
+++ b/libeufin/api-common.rst
@@ -0,0 +1,28 @@
+====================================
+Common LibEuFin HTTP API Conventions
+====================================
+
+
+Contact details
+^^^^^^^^^^^^^^^
+
+.. ts:def:: EmailAddress
+
+  type EmailAddress = string;
+
+.. ts:def:: PhoneNumber
+
+  type PhoneNumber = string;
+
+Phone numbers should start with the ``+`` symbol and the country code.
+
+Amounts
+^^^^^^^
+
+.. ts:def:: Amount
+
+  type Amount = string;
+
+Amounts have the ``$currency:X.Y`` format, where the
+fractional part is optional and may contain at most two
+digits.
diff --git a/libeufin/api-sandbox.rst b/libeufin/api-sandbox.rst
index 3b1a39c..7ff86e0 100644
--- a/libeufin/api-sandbox.rst
+++ b/libeufin/api-sandbox.rst
@@ -83,10 +83,10 @@ Accounts
      interface CircuitContactData {
 
        // E-Mail address
-       email?: string;
+       email?: EmailAddress;
 
        // Phone number.
-       phone?: string;
+       phone?: PhoneNumber;
      }
 
 
diff --git a/libeufin/index.rst b/libeufin/index.rst
index 1d68980..1fab991 100644
--- a/libeufin/index.rst
+++ b/libeufin/index.rst
@@ -8,6 +8,7 @@ LibEuFin is a project providing free software tooling for 
European FinTech.
 
   concepts
   bank-transport-ebics
+  api-common
   api-nexus
   api-sandbox
   ebics

-- 
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]