taler-docs

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

commit b347cb2e039584a1f9b3ad1feb84bb2e6165f2cd
parent 76459a6058236db94a7378991d7a48d3249ab9d5
Author: Antoine A <>
Date:   Mon, 20 Nov 2023 16:14:27 +0000

Fix CurrencySpecification and improve corebank /config endpoints

Diffstat:
Mcore/api-bank-conversion-info.rst | 10++--------
Mcore/api-corebank.rst | 5+----
Mcore/api-exchange.rst | 4+++-
3 files changed, 6 insertions(+), 13 deletions(-)

diff --git 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 @@ -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 @@ -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;