aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/pending-types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-02-20 00:36:02 +0100
committerFlorian Dold <florian@dold.me>2023-02-20 00:38:24 +0100
commit30b3949d2bd9da6bceddb40f3d1921b95fa80316 (patch)
tree6163df600f17eadc94f7f3e51cc220bc8122ee8a /packages/taler-wallet-core/src/pending-types.ts
parente6ed901626a5219a1d091f4f41654365d2c29531 (diff)
downloadwallet-core-30b3949d2bd9da6bceddb40f3d1921b95fa80316.tar.xz
wallet-core: pending operation for peer push credit, save withdrawalGroupId
Diffstat (limited to 'packages/taler-wallet-core/src/pending-types.ts')
-rw-r--r--packages/taler-wallet-core/src/pending-types.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/pending-types.ts b/packages/taler-wallet-core/src/pending-types.ts
index fd742250c..0e83ef38c 100644
--- a/packages/taler-wallet-core/src/pending-types.ts
+++ b/packages/taler-wallet-core/src/pending-types.ts
@@ -37,8 +37,10 @@ export enum PendingTaskType {
Withdraw = "withdraw",
Deposit = "deposit",
Backup = "backup",
+ // FIXME: Rename to peer-push-debit and peer-pull-debit
PeerPushInitiation = "peer-push-initiation",
PeerPullInitiation = "peer-pull-initiation",
+ PeerPushCredit = "peer-push-credit",
PeerPullDebit = "peer-pull-debit",
}
@@ -59,6 +61,7 @@ export type PendingTaskInfo = PendingTaskInfoCommon &
| PendingPeerPushInitiationTask
| PendingPeerPullInitiationTask
| PendingPeerPullDebitTask
+ | PendingPeerPushCreditTask
);
export interface PendingBackupTask {
@@ -101,6 +104,13 @@ export interface PendingPeerPullDebitTask {
}
/**
+ */
+export interface PendingPeerPushCreditTask {
+ type: PendingTaskType.PeerPushCredit;
+ peerPushPaymentIncomingId: string;
+}
+
+/**
* The wallet should check whether coins from this exchange
* need to be auto-refreshed.
*/