import { IsString, MinLength, MaxLength } from 'class-validator';

/**
 * Void-payment payload — Admin only. `reason` is mandatory so the
 * audit trail captures *why* a payment was cancelled (refund of a
 * mistake / duplicate entry / mode correction / etc.).
 */
export class VoidPaymentDto {
  @IsString()
  @MinLength(3)
  @MaxLength(500)
  reason: string;
}
