diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-01 00:29:39 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-01 00:29:39 -0300 |
commit | f8b6782cd49169fffa35e4dc3062c900e1f60531 (patch) | |
tree | 33382f4dbb30f30508561df387d13709e311d242 | |
parent | bc61d4831cf615a6a9ccaec4dc54dc5423f55163 (diff) | |
download | docs-f8b6782cd49169fffa35e4dc3062c900e1f60531.tar.gz docs-f8b6782cd49169fffa35e4dc3062c900e1f60531.tar.bz2 docs-f8b6782cd49169fffa35e4dc3062c900e1f60531.zip |
currency_fraction_limit and currency_fraction_digits spec, to be implemented in server and used by the bank SPA
-rw-r--r-- | core/api-corebank.rst | 45 |
1 files changed, 28 insertions, 17 deletions
diff --git a/core/api-corebank.rst b/core/api-corebank.rst index 214d8c6d..937b3664 100644 --- 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 |