// payment collection summary dto
import { ApiProperty } from "@nestjs/swagger"
import { IsEnum, IsOptional, IsString, IsNumber } from "class-validator"

export class PaymentCollectionSummaryDto {
  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  start_date: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  end_date: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  search: string

  @IsNumber()
  @IsOptional()
  @ApiProperty({ type: Number, required: false })
  client_id: number

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  payment_method: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  skip: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  limit: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  @IsEnum(["true", "false"])
  is_export: string
}
