taler-docs

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

commit f8b6782cd49169fffa35e4dc3062c900e1f60531
parent bc61d4831cf615a6a9ccaec4dc54dc5423f55163
Author: Sebastian <sebasjm@gmail.com>
Date:   Sun,  1 Oct 2023 00:29:39 -0300

currency_fraction_limit and currency_fraction_digits spec, to be implemented in server and used by the bank SPA

Diffstat:
Mcore/api-corebank.rst | 45++++++++++++++++++++++++++++-----------------
1 file changed, 28 insertions(+), 17 deletions(-)

diff --git a/core/api-corebank.rst b/core/api-corebank.rst @@ -61,28 +61,39 @@ Config .. http:get:: /config - **Response:** + **Response:** - .. ts:def:: Config + .. ts:def:: Config - interface Config { - // Name of this API, always "taler-corebank". - name: string; + interface Config { + // Name of this API, always "taler-corebank". + name: string; - // API version in the form $n:$n:$n - version: string; + // API version in the form $n:$n:$n + version: string; - // If 'true', the server provides local currency - // conversion support. - // If missing or false, some parts of the API - // are not supported and return 404. - have_cashout?: boolean; + // If 'true', the server provides local currency + // conversion support. + // If missing or false, some parts of the API + // are not supported and return 404. + have_cashout?: boolean; - // Fiat currency. That is the currency in which - // cash-out operations ultimately wire money. - // Only applicable if have_cashout=true. - fiat_currency?: string; - } + // Fiat currency. That is the currency in which + // cash-out operations ultimately wire money. + // Only applicable if have_cashout=true. + fiat_currency?: string; + + // How many digits should the amounts be rendered + // with by default. Small capitals should + // be used to render fractions beyond the number + // given here (like on gas stations). + currency_fraction_digits: number; + + // How many decimal digits an operation can + // have. Wire transfers with more decimal + // digits will not be accepted. + currency_fraction_limit: number; + } Account Management