From b648238c4120ed341c76818b4ffa223d0122af78 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 21 Feb 2023 21:02:36 +0100 Subject: harness: improve peer-pull integration test, check notifications --- packages/taler-util/src/notifications.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'packages/taler-util/src') 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; -- cgit v1.2.3