feat(domain-events): add payment failed event

This commit is contained in:
Karol Sójko 2022-07-14 12:38:53 +02:00
parent 11c2e08353
commit 4384ba2f47
No known key found for this signature in database
GPG key ID: A50543BF560BDEB0
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,8 @@
import { DomainEventInterface } from './DomainEventInterface'
import { PaymentFailedEventPayload } from './PaymentFailedEventPayload'
export interface PaymentFailedEvent extends DomainEventInterface {
type: 'PAYMENT_FAILED'
payload: PaymentFailedEventPayload
}

View file

@ -0,0 +1,3 @@
export interface PaymentFailedEventPayload {
userEmail: string
}

View file

@ -48,6 +48,8 @@ export * from './Event/OfflineSubscriptionTokenCreatedEvent'
export * from './Event/OfflineSubscriptionTokenCreatedEventPayload'
export * from './Event/OneDriveBackupFailedEvent'
export * from './Event/OneDriveBackupFailedEventPayload'
export * from './Event/PaymentFailedEvent'
export * from './Event/PaymentFailedEventPayload'
export * from './Event/PredicateVerificationRequestedEvent'
export * from './Event/PredicateVerificationRequestedEventPayload'
export * from './Event/PredicateVerifiedEvent'