aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-02-21 21:02:36 +0100
committerFlorian Dold <florian@dold.me>2023-02-21 21:02:36 +0100
commitb648238c4120ed341c76818b4ffa223d0122af78 (patch)
treedff1c75182170cfeed76c8d926e919470f2c9d71 /packages/taler-util
parenta3c7da975b6375f8c57154875642fb29a67e8731 (diff)
harness: improve peer-pull integration test, check notificationsv0.9.3-dev.2
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/notifications.ts15
1 files changed, 13 insertions, 2 deletions
diff --git a/packages/taler-util/src/notifications.ts b/packages/taler-util/src/notifications.ts
index 55d838007..51d573a98 100644
--- a/packages/taler-util/src/notifications.ts
+++ b/packages/taler-util/src/notifications.ts
@@ -65,6 +65,7 @@ export enum NotificationType {
WithdrawalGroupKycRequested = "withdrawal-group-kyc-requested",
WithdrawalGroupBankConfirmed = "withdrawal-group-bank-confirmed",
WithdrawalGroupReserveReady = "withdrawal-group-reserve-ready",
+ PeerPullCreditReady = "peer-pull-credit-ready",
DepositOperationError = "deposit-operation-error",
}
@@ -135,11 +136,20 @@ export interface WithdrawalGroupBankConfirmed {
transactionId: string;
}
-export interface WithdrawalGroupReserveReady {
+export interface WithdrawalGroupReserveReadyNotification {
type: NotificationType.WithdrawalGroupReserveReady;
transactionId: string;
}
+/**
+ * The purse creation of a peer-pull-credit transaction
+ * is done, and the other party can now pay.
+ */
+export interface PeerPullCreditReadyNotification {
+ type: NotificationType.PeerPullCreditReady;
+ transactionId: string;
+}
+
export interface RefreshRevealedNotification {
type: NotificationType.RefreshRevealed;
}
@@ -316,4 +326,5 @@ export type WalletNotification =
| PayOperationSuccessNotification
| WithdrawalGroupKycRequested
| WithdrawalGroupBankConfirmed
- | WithdrawalGroupReserveReady;
+ | WithdrawalGroupReserveReadyNotification
+ | PeerPullCreditReadyNotification;