diff options
author | Sebastian <sebasjm@gmail.com> | 2023-02-17 16:23:37 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-02-17 16:23:49 -0300 |
commit | 9697e953f56dc37208c2852d686d1854256f71ef (patch) | |
tree | fbbe6e5934c1a8dd438da76d37b719372811b542 /packages/demobank-ui/src/declaration.d.ts | |
parent | 8b83f729d7394837a3be231bbeeea44f6a01e9a1 (diff) | |
download | wallet-core-9697e953f56dc37208c2852d686d1854256f71ef.tar.xz |
cashout for business accounts
Diffstat (limited to 'packages/demobank-ui/src/declaration.d.ts')
-rw-r--r-- | packages/demobank-ui/src/declaration.d.ts | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/packages/demobank-ui/src/declaration.d.ts b/packages/demobank-ui/src/declaration.d.ts index c46fcc9ed..e3160d9ae 100644 --- a/packages/demobank-ui/src/declaration.d.ts +++ b/packages/demobank-ui/src/declaration.d.ts @@ -322,11 +322,6 @@ namespace SandboxBackend { // where to send cashouts. cashout_address: string; } - enum TanChannel { - SMS = "sms", - EMAIL = "email", - FILE = "file", - } interface CashoutRequest { // Optional subject to associate to the // cashout operation. This data will appear @@ -369,6 +364,7 @@ namespace SandboxBackend { // Contains ratios and fees related to buying // and selling the circuit currency. ratios_and_fees: RatiosAndFees; + currency: string; } interface RatiosAndFees { // Exchange rate to buy the circuit currency from fiat. @@ -400,14 +396,6 @@ namespace SandboxBackend { // Missing or null, when the operation wasn't confirmed yet. confirmation_time?: number | null; // milliseconds since the Unix epoch } - enum CashoutStatus { - // The payment was initiated after a valid - // TAN was received by the bank. - CONFIRMED = "confirmed", - - // The cashout was created and now waits - // for the TAN by the author. - PENDING = "pending", - } + type CashoutStatusResponseWithId = CashoutStatusResponse & { id: string }; } } |