From 8f32ad272dd319b74e0a4a3d3ecc1472884c87e2 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 6 Mar 2023 15:12:43 -0300 Subject: centered forms, show balance in accont info --- packages/demobank-ui/src/declaration.d.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'packages/demobank-ui/src/declaration.d.ts') diff --git a/packages/demobank-ui/src/declaration.d.ts b/packages/demobank-ui/src/declaration.d.ts index 03ab8f2a8..8dc5fd8b2 100644 --- a/packages/demobank-ui/src/declaration.d.ts +++ b/packages/demobank-ui/src/declaration.d.ts @@ -99,6 +99,11 @@ type Amount = string; type UUID = string; type Integer = number; +interface Balance { + amount: Amount; + credit_debit_indicator: "credit" | "debit"; +} + namespace SandboxBackend { export interface Config { // Name of this API, always "circuit". @@ -161,10 +166,7 @@ namespace SandboxBackend { interface BankAccountBalanceResponse { // Available balance on the account. - balance: { - amount: Amount; - credit_debit_indicator: "credit" | "debit"; - }; + balance: Balance; // payto://-URI of the account. (New) paytoUri: string; } @@ -304,6 +306,9 @@ namespace SandboxBackend { // Legal subject owning the account. name: string; + + // current balance of the account + balance: Balance; } interface CircuitAccountData { -- cgit v1.2.3