ProyectoGrupal/dolibarr-bff/DoliMiddlewareApi/Dtos/command/CreateClientDto.cs

45 lines
1004 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace DoliMiddlewareApi.Dtos.command;
public class CreateClientDto
{
[Required]
[StringLength(200)]
public string Name { get; set; } = "";
[StringLength(50)]
public string? Address { get; set; }
[StringLength(50)]
public string? Zip { get; set; }
[StringLength(50)]
public string? Town { get; set; }
[StringLength(20)]
public string? Phone { get; set; }
[EmailAddress]
[StringLength(200)]
public string? Email { get; set; }
[StringLength(50)]
public string? CountryCode { get; set; }
[StringLength(50)]
public string? VatNumber { get; set; }
[Url]
[StringLength(255)]
public string? Url { get; set; }
[StringLength(500)]
public string? NotePublic { get; set; }
[StringLength(500)]
public string? NotePrivate { get; set; }
/// <summary>"client" | "supplier" | "both" — defaults to client</summary>
public string? Role { get; set; }
}