taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 18386de91382982c266cb95a00ab716068c122af
parent b29af1277282420bff553a24ec2fbcd1c986a1e4
Author: MS <ms@taler.net>
Date:   Tue, 19 Sep 2023 17:50:06 +0200

Removing double def. of TalerAmount.

Diffstat:
Mcore/api-common.rst | 29++++++-----------------------
1 file changed, 6 insertions(+), 23 deletions(-)

diff --git a/core/api-common.rst b/core/api-common.rst @@ -392,29 +392,6 @@ Contact details Phone numbers should start with the ``+`` symbol and the country code. -Ratios and Fees -^^^^^^^^^^^^^^^ - -.. ts:def:: LibeufinNumber - - type LibeufinNumber = number; - -**Note:** this quantity is normally enforced to have at most -two decimal digits. The reason is to preserve the 2-decimal -digits policy of the `Amount` type, as `LibeufinNumber` is used -to multiply `Amount`. - -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. - Permissions ^^^^^^^^^^^ @@ -646,6 +623,12 @@ The following constrains apply for a valid amount: An amount that is prefixed with a ``+`` or ``-`` character is also used in certain contexts. When no sign is present, the amount is assumed to be positive. +.. note:: + + In some setups, when Libeufin-Bank offers cashouts towards traditional + currencies like EUR for example, the fractional part gets restricted + to at most 2 digits. + .. ts:def:: SignedAmount type SignedAmount = string;