feat(domain-events): add refund requested event

This commit is contained in:
Karol Sójko 2022-07-14 15:44:00 +02:00
parent eec76a7ec3
commit 7e95eea337
No known key found for this signature in database
GPG key ID: A50543BF560BDEB0
4 changed files with 15 additions and 0 deletions

View file

@ -22,5 +22,6 @@ export enum EmailMessageIdentifier {
SEND_INVOICE = 'SEND_INVOICE',
DISCOUNT_NOTICE = 'DISCOUNT_NOTICE',
REFUND_NOTICE = 'REFUND_NOTICE',
REFUND_REQUESTED = 'REFUND_REQUESTED',
RATE_ADJUSTMENT_NOTICE = 'RATE_ADJUSTMENT_NOTICE',
}

View file

@ -0,0 +1,8 @@
import { DomainEventInterface } from './DomainEventInterface'
import { RefundRequestedEventPayload } from './RefundRequestedEventPayload'
export interface RefundRequestedEvent extends DomainEventInterface {
type: 'REFUND_REQUESTED'
payload: RefundRequestedEventPayload
}

View file

@ -0,0 +1,4 @@
export interface RefundRequestedEventPayload {
userEmail: string
refundProcessingLink: string
}

View file

@ -56,6 +56,8 @@ export * from './Event/PredicateVerificationRequestedEvent'
export * from './Event/PredicateVerificationRequestedEventPayload'
export * from './Event/PredicateVerifiedEvent'
export * from './Event/PredicateVerifiedEventPayload'
export * from './Event/RefundRequestedEvent'
export * from './Event/RefundRequestedEventPayload'
export * from './Event/RefundProcessedEvent'
export * from './Event/RefundProcessedEventPayload'
export * from './Event/SharedSubscriptionInvitationCanceledEvent'