diff options
Diffstat (limited to 'packages/taler-util/src/notifications.ts')
-rw-r--r-- | packages/taler-util/src/notifications.ts | 15 |
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; |