line-gestao-api/Dtos/VigenciaDtos.cs

45 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
namespace line_gestao_api.Dtos
{
public class VigenciaLineListDto
{
public Guid Id { get; set; }
public int Item { get; set; }
public string? Conta { get; set; }
public string? Linha { get; set; }
public string? Cliente { get; set; }
public string? Usuario { get; set; }
public string? PlanoContrato { get; set; }
public DateTime? DtEfetivacaoServico { get; set; }
public DateTime? DtTerminoFidelizacao { get; set; }
public decimal? Total { get; set; }
}
public class VigenciaClientGroupDto
{
public string Cliente { get; set; } = "";
public int Linhas { get; set; }
public decimal Total { get; set; }
public int Vencidos { get; set; }
public int AVencer30 { get; set; }
public DateTime? ProximoVencimento { get; set; }
public DateTime? UltimoVencimento { get; set; }
}
// ✅ NOVO: Objeto de resposta contendo KPIs + Dados Paginados
public class VigenciaGroupResponse
{
public PagedResult<VigenciaClientGroupDto> Data { get; set; } = new();
public VigenciaKpis Kpis { get; set; } = new();
}
public class VigenciaKpis
{
public int TotalClientes { get; set; }
public int TotalLinhas { get; set; }
public int TotalVencidos { get; set; }
public decimal ValorTotal { get; set; }
}
}