Feat: Se agregan servicios y controladores para ABM de suscriptores

This commit is contained in:
2025-07-30 09:48:05 -03:00
parent 19e7192a16
commit f09c795fb0
13 changed files with 623 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
using System.ComponentModel.DataAnnotations;
namespace GestionIntegral.Api.Dtos.Suscripciones
{
public class CreateSuscriptorDto
{
[Required(ErrorMessage = "El nombre completo es obligatorio.")]
[StringLength(150)]
public string NombreCompleto { get; set; } = string.Empty;
[EmailAddress(ErrorMessage = "El formato del email no es válido.")]
[StringLength(100)]
public string? Email { get; set; }
[StringLength(50)]
public string? Telefono { get; set; }
[Required(ErrorMessage = "La dirección es obligatoria.")]
[StringLength(200)]
public string Direccion { get; set; } = string.Empty;
[Required(ErrorMessage = "El tipo de documento es obligatorio.")]
[StringLength(4)]
public string TipoDocumento { get; set; } = string.Empty;
[Required(ErrorMessage = "El número de documento es obligatorio.")]
[StringLength(11)]
public string NroDocumento { get; set; } = string.Empty;
[StringLength(22, MinimumLength = 22, ErrorMessage = "El CBU debe tener 22 dígitos.")]
public string? CBU { get; set; }
[Required(ErrorMessage = "La forma de pago es obligatoria.")]
public int IdFormaPagoPreferida { get; set; }
[StringLength(250)]
public string? Observaciones { get; set; }
}
}