import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsDateString, IsOptional, IsUUID } from 'class-validator';

export class TransactionSummaryQueryDto {

    @ApiProperty({
        example: '2026-03-01'
    })
    @IsDateString()
    startDate: string;

    @ApiProperty({
        example: '2026-03-31'
    })
    @IsDateString()
    endDate: string;

    @ApiPropertyOptional({
        example: 'branch-uuid'
    })
    @IsOptional()
    @IsUUID()
    branchId?: string;
}