aboutsummaryrefslogtreecommitdiff
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.ts49
1 files changed, 38 insertions, 11 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 2cee19f8e..c48a43f11 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -311,11 +311,20 @@ export enum WithdrawalGroupStatus {
/**
* Exchange wants KYC info from the user.
+ * KYC link is ready.
*/
PendingBalanceKyc = 0x0100_0006,
SuspendedBalanceKyc = 0x0110_006,
/**
+ * Exchange wants KYC info from the user.
+ *
+ * KYC link is not ready yet, the KYC process is still initializing.
+ */
+ PendingBalanceKycInit = 0x0100_0007,
+ SuspendedBalanceKycInit = 0x0110_007,
+
+ /**
* Proposed to the user, has can choose to accept/refuse.
*/
DialogProposed = 0x0101_0000,
@@ -1461,6 +1470,7 @@ export interface KycPendingInfo {
paytoHash: string;
requirementRow: number;
}
+
/**
* Group of withdrawal operations that need to be executed.
* (Either for a normal withdrawal or from a reward.)
@@ -1936,24 +1946,33 @@ export interface PeerPushDebitRecord {
}
export enum PeerPullPaymentCreditStatus {
+ /**
+ * Typically the initial state of the peer-pull-credit transaction,
+ * purse will be created.
+ */
PendingCreatePurse = 0x0100_0000,
+ SuspendedCreatePurse = 0x0110_0000,
+
/**
* Purse created, waiting for the other party to accept the
* invoice and deposit money into it.
*/
PendingReady = 0x0100_0001,
- PendingMergeKycRequired = 0x0100_0002,
- PendingWithdrawing = 0x0100_0003,
- PendingBalanceKycRequired = 0x0100_0004,
-
- AbortingDeletePurse = 0x0103_0000,
-
- SuspendedCreatePurse = 0x0110_0000,
SuspendedReady = 0x0110_0001,
+
+ PendingMergeKycRequired = 0x0100_0002,
SuspendedMergeKycRequired = 0x0110_0002,
+
+ PendingWithdrawing = 0x0100_0003,
SuspendedWithdrawing = 0x0110_0003,
+
+ PendingBalanceKycRequired = 0x0100_0004,
SuspendedBalanceKycRequired = 0x0110_0004,
+ PendingBalanceKycInit = 0x0100_0005,
+ SuspendedBalanceKycInit = 0x0110_0005,
+
+ AbortingDeletePurse = 0x0103_0000,
SuspendedAbortingDeletePurse = 0x0113_0000,
Done = 0x0500_0000,
@@ -2014,25 +2033,31 @@ export interface PeerPullCreditRecord {
kycUrl?: string;
+ kycAccessToken?: string;
+
withdrawalGroupId: string | undefined;
}
export enum PeerPushCreditStatus {
PendingMerge = 0x0100_0000,
+ SuspendedMerge = 0x0110_0000,
+
PendingMergeKycRequired = 0x0100_0001,
+ SuspendedMergeKycRequired = 0x0110_0001,
+
/**
* Merge was successful and withdrawal group has been created, now
* everything is in the hand of the withdrawal group.
*/
PendingWithdrawing = 0x0100_0002,
+ SuspendedWithdrawing = 0x0110_0002,
PendingBalanceKycRequired = 0x0100_0003,
-
- SuspendedMerge = 0x0110_0000,
- SuspendedMergeKycRequired = 0x0110_0001,
- SuspendedWithdrawing = 0x0110_0002,
SuspendedBalanceKycRequired = 0x0110_0003,
+ PendingBalanceKycInit = 0x0100_0004,
+ SuspendedBalanceKycInit = 0x0110_0004,
+
DialogProposed = 0x0101_0000,
Done = 0x0500_0000,
@@ -2087,6 +2112,8 @@ export interface PeerPushPaymentIncomingRecord {
kycInfo?: KycPendingInfo;
kycUrl?: string;
+
+ kycAccessToken?: string;
}
export enum PeerPullDebitRecordStatus {