19 lines
466 B
C#
19 lines
466 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
|
||
|
|
namespace GestionIntegral.Api.Dtos.Suscripciones;
|
||
|
|
public class UpdateAjusteDto
|
||
|
|
{
|
||
|
|
[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;
|
||
|
|
}
|