From 13f0442736479fb6ea8d1ecc7311cdac354a4de5 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 12 Feb 2023 19:30:59 +0100 Subject: harness: finish kyc test We mock the KYC gateway now, use the new notification-based wallet API and the test is not experimental anymore. --- packages/taler-util/src/notifications.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'packages/taler-util/src') diff --git a/packages/taler-util/src/notifications.ts b/packages/taler-util/src/notifications.ts index bc1c4b71f..9d3ca32b0 100644 --- a/packages/taler-util/src/notifications.ts +++ b/packages/taler-util/src/notifications.ts @@ -62,6 +62,7 @@ export enum NotificationType { PendingOperationProcessed = "pending-operation-processed", ProposalRefused = "proposal-refused", ReserveRegisteredWithBank = "reserve-registered-with-bank", + WithdrawalKycRequested = "withdrawal-kyc-requested", DepositOperationError = "deposit-operation-error", } @@ -117,6 +118,12 @@ export interface RefreshMeltedNotification { type: NotificationType.RefreshMelted; } +export interface WithdrawalKycRequested { + type: NotificationType.WithdrawalKycRequested; + transactionId: string; + kycUrl: string; +} + export interface RefreshRevealedNotification { type: NotificationType.RefreshRevealed; } @@ -285,4 +292,5 @@ export type WalletNotification = | ProposalRefusedNotification | ReserveRegisteredWithBankNotification | ReserveNotYetFoundNotification - | PayOperationSuccessNotification; + | PayOperationSuccessNotification + | WithdrawalKycRequested; -- cgit v1.2.3