using System.ComponentModel.DataAnnotations;

namespace DoliMiddlewareApi.Dtos.command;

public class CreateSupplierInvoiceDto
{
    [Required, Range(1, int.MaxValue)]
    public int SupplierId { get; set; }

    [Required]
    public string SupplierRef { get; set; } = "";

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

    public DateTime? ExpireDate { get; set; }

    public string? NotePublic { get; set; }
    public string? NotePrivate { get; set; }

    [Required, MinLength(1)]
    public List<CreateInvoiceLineDto> Lines { get; set; } = [];
}
