import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsInt, IsOptional, IsString, Max, MaxLength, Min } from 'class-validator';

/** Acknowledge (optionally snooze) an item's fee-accrual alert. */
export class AcknowledgeAccrualDto {
  @ApiPropertyOptional({ minimum: 1, maximum: 90, description: 'Days to suppress alerts; omit = indefinitely.' })
  @IsOptional()
  @IsInt()
  @Min(1)
  @Max(90)
  snoozeDays?: number;

  @ApiPropertyOptional({ description: 'Optional reason / note.' })
  @IsOptional()
  @IsString()
  @MaxLength(500)
  note?: string;
}
