import { ApiProperty } from '@nestjs/swagger';
import { IsObject } from 'class-validator';
import { ItemRateModel } from 'src/modules/item-related/item-rate/data/models/item-rate.model';
import { SeasonTypeModel } from 'src/modules/season-related/season-type/data/models/season-type.model';

export class UpdateSeasonPriceDto {
  @ApiProperty({
    type: Object,
    required: true,
    example: {
      id: 'uuid',
      name: 'High Season',
    },
  })
  @IsObject()
  season_period: SeasonTypeModel;

  @ApiProperty({
    type: [Object],
    example: [
      {
        item: {
          id: 'uuid',
          name: 'Entrance Ticket',
        },
        price: 10000,
      },
    ],
  })
  item_rates: ItemRateModel[];
}
