using System.ComponentModel.DataAnnotations;

namespace GestionIntegral.Api.Dtos.Suscripciones;
public class UpdateAjusteDto
{
  [Required]
  public int IdEmpresa { get; set; }

  [Required]
  public DateTime FechaAjuste { get; set; }

  [Required]
  [RegularExpression("^(Credito|Debito)$")]
  public string TipoAjuste { get; set; } = string.Empty;

  [Required]
  [Range(0.01, 999999.99)]
  public decimal Monto { get; set; }

  [Required]
  [StringLength(250)]
  public string Motivo { get; set; } = string.Empty;
}