aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-02-21 12:37:31 -0300
committerSebastian <sebasjm@gmail.com>2023-02-22 08:49:59 -0300
commit7879efcff70ea73935e139f4522aedadfe755c04 (patch)
tree18680a14e66c9f31968883e1434582e1d18afd8b
parentd34faf254913b269bf1f0b5c457bbacbebf1400c (diff)
show cashout destination
-rw-r--r--packages/demobank-ui/src/declaration.d.ts5
-rw-r--r--packages/demobank-ui/src/pages/BusinessAccount.tsx6
2 files changed, 11 insertions, 0 deletions
diff --git a/packages/demobank-ui/src/declaration.d.ts b/packages/demobank-ui/src/declaration.d.ts
index e31eb47b7..03ab8f2a8 100644
--- a/packages/demobank-ui/src/declaration.d.ts
+++ b/packages/demobank-ui/src/declaration.d.ts
@@ -392,6 +392,11 @@ namespace SandboxBackend {
subject: string;
// Circuit bank account that created the cash-out.
account: string;
+ // Fiat bank account that will receive the cashed out amount.
+ cashout_address: string;
+ // Ratios and fees related to this cash-out at the time
+ // when the operation was created.
+ ratios_and_fees: RatiosAndFees;
// Time when the cash-out was created.
creation_time: number; // milliseconds since the Unix epoch
// Time when the cash-out was confirmed via its TAN.
diff --git a/packages/demobank-ui/src/pages/BusinessAccount.tsx b/packages/demobank-ui/src/pages/BusinessAccount.tsx
index fd7d2535c..23a03cc9b 100644
--- a/packages/demobank-ui/src/pages/BusinessAccount.tsx
+++ b/packages/demobank-ui/src/pages/BusinessAccount.tsx
@@ -652,6 +652,12 @@ export function ShowCashoutDetails({
</label>
<input readOnly value={result.data.status} />
</fieldset>
+ <fieldset>
+ <label>
+ <i18n.Translate>Destination</i18n.Translate>
+ </label>
+ <input readOnly value={result.data.cashout_address} />
+ </fieldset>
{isPending ? (
<fieldset>
<label>