import { DomainEvent } from './domain-event.interface';

export class ProvinceCityConfirmedEvent implements DomainEvent {
  readonly type = 'ProvinceCityConfirmed';
  readonly aggregateType = 'PlantingOrder';
  readonly occurredAt: Date;

  constructor(
    public readonly aggregateId: string,
    public readonly data: {
      orderNo: string;
      userId: string;
      provinceCode: string;
      provinceName: string;
      cityCode: string;
      cityName: string;
    },
  ) {
    this.occurredAt = new Date();
  }
}
