import { IsNotEmpty, IsOptional, IsString, IsUUID, IsNumber, MaxLength } from 'class-validator';

export class CreateTransportPricingDto {
  @IsUUID() @IsNotEmpty()
  destination_id: string;

  @IsUUID() @IsNotEmpty()
  transport_service_id: string;

  @IsString() @IsNotEmpty() @MaxLength(50)
  category: string;

  @IsString() @IsNotEmpty() @MaxLength(100)
  cab_type: string;

  @IsUUID() @IsNotEmpty()
  currency_id: string;

  @IsNumber() @IsOptional()
  default_price?: number;

  @IsNumber() @IsOptional()
  season_1_price?: number;

  @IsNumber() @IsOptional()
  season_2_price?: number;

  @IsNumber() @IsOptional()
  season_3_price?: number;

  @IsNumber() @IsOptional()
  season_4_price?: number;

  @IsNumber() @IsOptional()
  season_5_price?: number;
}

export class BulkTransportPricingDto {
  items: CreateTransportPricingDto[];
}
