summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine A <>2023-11-20 16:14:27 +0000
committerAntoine A <>2023-11-20 16:14:27 +0000
commitb347cb2e039584a1f9b3ad1feb84bb2e6165f2cd (patch)
treee5b2902805dd7179af316373bcfb687b462b7483
parent76459a6058236db94a7378991d7a48d3249ab9d5 (diff)
downloaddocs-b347cb2e039584a1f9b3ad1feb84bb2e6165f2cd.tar.gz
docs-b347cb2e039584a1f9b3ad1feb84bb2e6165f2cd.tar.bz2
docs-b347cb2e039584a1f9b3ad1feb84bb2e6165f2cd.zip
Fix CurrencySpecification and improve corebank /config endpoints
-rw-r--r--core/api-bank-conversion-info.rst10
-rw-r--r--core/api-corebank.rst5
-rw-r--r--core/api-exchange.rst4
3 files changed, 6 insertions, 13 deletions
diff --git a/core/api-bank-conversion-info.rst b/core/api-bank-conversion-info.rst
index 122f6533..d1bc7dc0 100644
--- a/core/api-bank-conversion-info.rst
+++ b/core/api-bank-conversion-info.rst
@@ -52,16 +52,10 @@ is used by wallets for withdrawals that involve a currency conversion.
name: "taler-conversion-info";
// Currency used by this bank.
- regional_currency: string;
-
- // How the bank SPA should render this currency.
- regional_currency_specification: CurrencySpecification;
+ regional_currency: CurrencySpecification;
// External currency used during conversion.
- fiat_currency: string;
-
- // How the bank SPA should render this currency.
- fiat_currency_specification: CurrencySpecification;
+ fiat_currency: CurrencySpecification;
// Extra conversion rate information.
// Only present if server opts in to report the static conversion rate.
diff --git a/core/api-corebank.rst b/core/api-corebank.rst
index 78abd914..7d4a25f1 100644
--- a/core/api-corebank.rst
+++ b/core/api-corebank.rst
@@ -90,10 +90,7 @@ Config
allow_deletions: boolean;
// Currency used by this bank.
- currency: string;
-
- // How the bank SPA should render this currency.
- currency_specification: CurrencySpecification;
+ currency: CurrencySpecification;
}
diff --git a/core/api-exchange.rst b/core/api-exchange.rst
index 7188acd2..4057af74 100644
--- a/core/api-exchange.rst
+++ b/core/api-exchange.rst
@@ -92,10 +92,12 @@ possibly by using HTTPS.
.. ts:def:: CurrencySpecification
interface CurrencySpecification {
-
// Name of the currency.
name: string;
+ // Code of the currency
+ currency: string;
+
// how many digits the user may enter after the decimal_separator
num_fractional_input_digits: Integer;