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

export class PlantingOrderPaidEvent implements DomainEvent {
  readonly type = 'PlantingOrderPaid';
  readonly aggregateType = 'PlantingOrder';
  readonly occurredAt: Date;

  constructor(
    public readonly aggregateId: string,
    public readonly data: {
      orderNo: string;
      userId: string;
      accountSequence: string;
      treeCount: number;
      totalAmount: number;
      provinceCode: string;
      cityCode: string;
    },
  ) {
    this.occurredAt = new Date();
  }
}
