event
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import type { OrderStatus, StatusTransitionRef } from '../interface/order.interface';
|
||||||
|
|
||||||
export class OrderCreatedEvent {
|
export class OrderCreatedEvent {
|
||||||
constructor(
|
constructor(
|
||||||
public readonly orderId: string,
|
public readonly orderId: string,
|
||||||
@@ -5,3 +7,15 @@ export class OrderCreatedEvent {
|
|||||||
public readonly orderNumber: string,
|
public readonly orderNumber: string,
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class OrderStatusChangedEvent {
|
||||||
|
constructor(
|
||||||
|
public readonly orderId: string,
|
||||||
|
public readonly userId: string,
|
||||||
|
public readonly orderNumber: string,
|
||||||
|
public readonly restaurantId: string,
|
||||||
|
public readonly previousStatus: OrderStatus,
|
||||||
|
public readonly newStatus: OrderStatus,
|
||||||
|
public readonly changedBy: StatusTransitionRef,
|
||||||
|
) {}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user