import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger"
import { IsNotEmpty, IsOptional } from "class-validator"

export class ServicePricingFilterDto {
  @ApiPropertyOptional({
    description: "Page size (limit)",
    example: 10,
    default: 10,
  })
  @IsOptional()
  limit?: number

  @ApiPropertyOptional({
    description: "Page offset (skip)",
    example: 0,
    default: 0,
  })
  @IsOptional()
  skip?: number

  @ApiProperty({
    description: "Filter by Plan ID",
    example: 1,
  })
  @IsNotEmpty()
  plan_id: number

  @ApiPropertyOptional({
    description: "Filter by Service Type ID",
    example: 3,
  })
  @IsOptional()
  service_type_id?: number

  @ApiPropertyOptional({
    description: "Filter by City ID",
    example: 5,
  })
  @IsOptional()
  city_id?: number
}
