diff options
author | MS <ms@taler.net> | 2023-09-19 17:50:06 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2023-09-19 17:50:06 +0200 |
commit | 18386de91382982c266cb95a00ab716068c122af (patch) | |
tree | 962505589ec0e2fbbe777d3964b4f3cedaf2f656 | |
parent | b29af1277282420bff553a24ec2fbcd1c986a1e4 (diff) | |
download | docs-18386de91382982c266cb95a00ab716068c122af.tar.gz docs-18386de91382982c266cb95a00ab716068c122af.tar.bz2 docs-18386de91382982c266cb95a00ab716068c122af.zip |
Removing double def. of TalerAmount.
-rw-r--r-- | core/api-common.rst | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/core/api-common.rst b/core/api-common.rst index 1ecfc0b9..2af9cfea 100644 --- 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; |