diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-01 12:50:43 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-01 12:50:43 -0300 |
commit | 372ddff91798cf9247eaf045f0d0ce33694fd880 (patch) | |
tree | 16af670c4bb95aec956210c7b5fc9777c385cf0c /packages/demobank-ui/src/declaration.d.ts | |
parent | 1708d49a2d5da1f325173a030695223e5a24e75c (diff) |
render amount and limit input
Diffstat (limited to 'packages/demobank-ui/src/declaration.d.ts')
-rw-r--r-- | packages/demobank-ui/src/declaration.d.ts | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/packages/demobank-ui/src/declaration.d.ts b/packages/demobank-ui/src/declaration.d.ts index bd7edf033..5c55cfade 100644 --- a/packages/demobank-ui/src/declaration.d.ts +++ b/packages/demobank-ui/src/declaration.d.ts @@ -107,9 +107,27 @@ namespace SandboxBackend { name: string; // API version in the form $n:$n:$n version: string; - // Contains ratios and fees related to buying - // and selling the circuit currency. - ratios_and_fees: RatiosAndFees; + // 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; + + // 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; } interface RatiosAndFees { // Exchange rate to buy the circuit currency from fiat. |