using System.ComponentModel.DataAnnotations;

namespace GestionIntegral.Api.Dtos.Distribucion
{
    public class UpdateDistribuidorDto
    {
        [Required(ErrorMessage = "El nombre del distribuidor es obligatorio.")]
        [StringLength(100)]
        public string Nombre { get; set; } = string.Empty;

        [StringLength(100)]
        public string? Contacto { get; set; }

        [Required(ErrorMessage = "El número de documento es obligatorio.")]
        [StringLength(11)]
        public string NroDoc { get; set; } = string.Empty;

        public int? IdZona { get; set; }

        [StringLength(30)]
        public string? Calle { get; set; }
        [StringLength(8)]
        public string? Numero { get; set; }
        [StringLength(3)]
        public string? Piso { get; set; }
        [StringLength(4)]
        public string? Depto { get; set; }
        [StringLength(40)]
        public string? Telefono { get; set; }
        [StringLength(40)]
        [EmailAddress(ErrorMessage = "Formato de email inválido.")]
        public string? Email { get; set; }
        [StringLength(50)]
        public string? Localidad { get; set; }
    }
}