From 9697e953f56dc37208c2852d686d1854256f71ef Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 17 Feb 2023 16:23:37 -0300 Subject: cashout for business accounts --- packages/demobank-ui/src/utils.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'packages/demobank-ui/src/utils.ts') diff --git a/packages/demobank-ui/src/utils.ts b/packages/demobank-ui/src/utils.ts index 642b3c68d..49b9ac276 100644 --- a/packages/demobank-ui/src/utils.ts +++ b/packages/demobank-ui/src/utils.ts @@ -59,6 +59,21 @@ export type WithIntermediate = { : Type[prop] | undefined; }; +export enum TanChannel { + SMS = "sms", + EMAIL = "email", + FILE = "file", +} +export 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", +} + // export function partialWithObjects(obj: T | undefined, () => complete): WithIntermediate { // const root = obj === undefined ? {} : obj; // return Object.entries(root).([key, value]) => { -- cgit v1.2.3