aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/declaration.d.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-03-06 15:12:43 -0300
committerSebastian <sebasjm@gmail.com>2023-03-06 15:18:25 -0300
commit8f32ad272dd319b74e0a4a3d3ecc1472884c87e2 (patch)
treebf6fac4c0dc696dff1364fee94e2256aad593c47 /packages/demobank-ui/src/declaration.d.ts
parent8743db9e4056dbb656ef269737313ac24c870dff (diff)
downloadwallet-core-8f32ad272dd319b74e0a4a3d3ecc1472884c87e2.tar.xz
centered forms, show balance in accont info
Diffstat (limited to 'packages/demobank-ui/src/declaration.d.ts')
-rw-r--r--packages/demobank-ui/src/declaration.d.ts13
1 files changed, 9 insertions, 4 deletions
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 {