summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-04-30 11:50:59 +0200
committerFlorian Dold <florian@dold.me>2024-04-30 11:51:07 +0200
commit8b5d1276b9d9043e85cba91704c908ff544916e0 (patch)
treebc558f2ec7fb7b77731c5afd3838567e32c7eb4f /packages/taler-wallet-core/src/db.ts
parent22709ff4e2918a8d0e528539d11d761381920b45 (diff)
downloadwallet-core-8b5d1276b9d9043e85cba91704c908ff544916e0.tar.gz
wallet-core-8b5d1276b9d9043e85cba91704c908ff544916e0.tar.bz2
wallet-core-8b5d1276b9d9043e85cba91704c908ff544916e0.zip
wallet-core: new states for withdrawal, prepare/confirm requests
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 085e909cf..1edafb315 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -298,6 +298,11 @@ export enum WithdrawalGroupStatus {
SuspendedReady = 0x0110_0004,
/**
+ * Proposed to the user, has can choose to accept/refuse.
+ */
+ DialogProposed = 0x0101_0000,
+
+ /**
* We are telling the bank that we don't want to complete
* the withdrawal!
*/
@@ -338,6 +343,21 @@ export enum WithdrawalGroupStatus {
AbortedExchange = 0x0503_0001,
AbortedBank = 0x0503_0002,
+
+ /**
+ * User didn't refused the withdrawal.
+ */
+ AbortedUserRefused = 0x0503_0003,
+
+ /**
+ * Another wallet confirmed the withdrawal
+ * (by POSTing the reseve pub to the bank)
+ * before we had the chance.
+ *
+ * In this situation, we'll let the other wallet continue
+ * and give up ourselves.
+ */
+ AbortedOtherWallet = 0x0503_0004,
}
/**