import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; export class AllowanceSummaryResponseDto { @ApiPropertyOptional({ example: '2026-02-01T00:00:00.000Z', description: 'The nearest upcoming payment date among all active schedules (null if no active schedules)', nullable: true, }) nextPaymentAt!: Date | null; @ApiProperty({ example: 1600, description: 'Total monthly equivalent amount for all active schedules', }) monthlyTotal!: number; constructor(nextPaymentAt: Date | null, monthlyTotal: number) { this.nextPaymentAt = nextPaymentAt; this.monthlyTotal = monthlyTotal; } }