summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts31
1 files changed, 22 insertions, 9 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 82ad54a20..0e35fe27c 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -1839,9 +1839,12 @@ export enum PeerPullPaymentInitiationStatus {
PendingReady = 11 /* ACTIVE_START + 1 */,
PendingMergeKycRequired = 12 /* ACTIVE_START + 2 */,
PendingWithdrawing = 13,
+
SuspendedCreatePurse = 30,
SuspendedReady = 31,
- SuspendedWithdrawing = 32,
+ SuspendedMergeKycRequired = 32,
+ SuspendedWithdrawing = 33,
+
DonePurseDeposited = 50 /* DORMANT_START */,
}
@@ -1898,14 +1901,20 @@ export interface PeerPullPaymentInitiationRecord {
}
export enum PeerPushPaymentIncomingStatus {
- Proposed = 30 /* USER_ATTENTION_START */,
- Accepted = 10 /* ACTIVE_START */,
+ PendingMerge = 10 /* ACTIVE_START */,
MergeKycRequired = 11 /* ACTIVE_START + 1 */,
/**
* Merge was successful and withdrawal group has been created, now
* everything is in the hand of the withdrawal group.
*/
- Withdrawing = 12,
+ PendingWithdrawing = 12,
+
+ SuspendedMerge = 20,
+ SuspendedMergeKycRequired = 21,
+ SuspendedWithdrawing = 22,
+
+ DialogProposed = 30 /* USER_ATTENTION_START */,
+
Done = 50 /* DORMANT_START */,
}
@@ -1956,10 +1965,14 @@ export interface PeerPushPaymentIncomingRecord {
kycInfo?: KycPendingInfo;
}
-export enum PeerPullPaymentIncomingStatus {
- Proposed = 30 /* USER_ATTENTION_START */,
- Accepted = 10 /* ACTIVE_START */,
- Paid = 50 /* DORMANT_START */,
+export enum PeerPullDebitRecordStatus {
+ PendingDeposit = 10 /* ACTIVE_START */,
+
+ SuspendedDeposit = 11,
+
+ DialogProposed = 30 /* USER_ATTENTION_START */,
+
+ DonePaid = 50 /* DORMANT_START */,
}
export interface PeerPullPaymentCoinSelection {
@@ -1995,7 +2008,7 @@ export interface PeerPullPaymentIncomingRecord {
/**
* Status of the peer push payment incoming initiation.
*/
- status: PeerPullPaymentIncomingStatus;
+ status: PeerPullDebitRecordStatus;
/**
* Estimated total cost when the record was created.