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

export class CreateChargeTypeDto {
  @ApiProperty({ description: "Name of the charge type" })
  @IsNotEmpty()
  @IsString()
  name: string

  @ApiProperty({
    description: "Unit of measure (e.g., Per Hour, Per Day, Per KM)",
  })
  @IsNotEmpty()
  @IsString()
  unit_of_measure: string

  @ApiProperty({
    description: "Description of the charge type",
    required: false,
  })
  @IsOptional()
  @IsString()
  description?: string
}
