aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/utils.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-02-17 16:23:37 -0300
committerSebastian <sebasjm@gmail.com>2023-02-17 16:23:49 -0300
commit9697e953f56dc37208c2852d686d1854256f71ef (patch)
treefbbe6e5934c1a8dd438da76d37b719372811b542 /packages/demobank-ui/src/utils.ts
parent8b83f729d7394837a3be231bbeeea44f6a01e9a1 (diff)
cashout for business accounts
Diffstat (limited to 'packages/demobank-ui/src/utils.ts')
-rw-r--r--packages/demobank-ui/src/utils.ts15
1 files changed, 15 insertions, 0 deletions
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 extends object> = {
: 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<T extends object>(obj: T | undefined, () => complete): WithIntermediate<T> {
// const root = obj === undefined ? {} : obj;
// return Object.entries(root).([key, value]) => {