diff --git a/packages/domain-events/src/Domain/Event/StudentDiscountRequestedEvent.ts b/packages/domain-events/src/Domain/Event/StudentDiscountRequestedEvent.ts new file mode 100644 index 000000000..d4cd3123f --- /dev/null +++ b/packages/domain-events/src/Domain/Event/StudentDiscountRequestedEvent.ts @@ -0,0 +1,8 @@ +import { DomainEventInterface } from './DomainEventInterface' + +import { StudentDiscountRequestedEventPayload } from './StudentDiscountRequestedEventPayload' + +export interface StudentDiscountRequestedEvent extends DomainEventInterface { + type: 'STUDENT_DISCOUNT_REQUESTED' + payload: StudentDiscountRequestedEventPayload +} diff --git a/packages/domain-events/src/Domain/Event/StudentDiscountRequestedEventPayload.ts b/packages/domain-events/src/Domain/Event/StudentDiscountRequestedEventPayload.ts new file mode 100644 index 000000000..264c4bee3 --- /dev/null +++ b/packages/domain-events/src/Domain/Event/StudentDiscountRequestedEventPayload.ts @@ -0,0 +1,5 @@ +export interface StudentDiscountRequestedEventPayload { + studentEmail: string + userEmail: string + adminApprovalLink: string +} diff --git a/packages/domain-events/src/Domain/index.ts b/packages/domain-events/src/Domain/index.ts index a79b600f7..baf7c8fbb 100644 --- a/packages/domain-events/src/Domain/index.ts +++ b/packages/domain-events/src/Domain/index.ts @@ -54,6 +54,8 @@ export * from './Event/SharedSubscriptionInvitationCanceledEvent' export * from './Event/SharedSubscriptionInvitationCanceledEventPayload' export * from './Event/SharedSubscriptionInvitationCreatedEvent' export * from './Event/SharedSubscriptionInvitationCreatedEventPayload' +export * from './Event/StudentDiscountRequestedEvent' +export * from './Event/StudentDiscountRequestedEventPayload' export * from './Event/SubscriptionCancelledEvent' export * from './Event/SubscriptionCancelledEventPayload' export * from './Event/SubscriptionPurchasedEvent'