import { Event } from '@boostercloud/framework-core' ; import { Order } from '../entities/order' ; import { UUID } from '@boostercloud/framework-types' ; @ Event export class OrderCreated { public constructor ( readonly order ) { } public entityID ( ) { return this . order . id ; } }