Feat: Se añaden las capas de modelos y respositorios para el modulo de Suscripciones

This commit is contained in:
2025-07-29 14:11:50 -03:00
parent 7e4d3282fb
commit 19e7192a16
18 changed files with 732 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
namespace GestionIntegral.Api.Models.Suscripciones
{
public class Factura
{
public int IdFactura { get; set; }
public int IdSuscripcion { get; set; }
public string Periodo { get; set; } = string.Empty;
public DateTime FechaEmision { get; set; }
public DateTime FechaVencimiento { get; set; }
public decimal ImporteBruto { get; set; }
public decimal DescuentoAplicado { get; set; }
public decimal ImporteFinal { get; set; }
public string Estado { get; set; } = string.Empty;
public string? NumeroFactura { get; set; }
public int? IdLoteDebito { get; set; }
public string? MotivoRechazo { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
namespace GestionIntegral.Api.Models.Suscripciones
{
public class FormaPago
{
public int IdFormaPago { get; set; }
public string Nombre { get; set; } = string.Empty;
public bool RequiereCBU { get; set; }
public bool Activo { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace GestionIntegral.Api.Models.Suscripciones
{
public class LoteDebito
{
public int IdLoteDebito { get; set; }
public DateTime FechaGeneracion { get; set; }
public string Periodo { get; set; } = string.Empty;
public string NombreArchivo { get; set; } = string.Empty;
public decimal ImporteTotal { get; set; }
public int CantidadRegistros { get; set; }
public int IdUsuarioGeneracion { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
namespace GestionIntegral.Api.Models.Suscripciones
{
public class Pago
{
public int IdPago { get; set; }
public int IdFactura { get; set; }
public DateTime FechaPago { get; set; }
public int IdFormaPago { get; set; }
public decimal Monto { get; set; }
public string Estado { get; set; } = string.Empty;
public string? Referencia { get; set; }
public string? Observaciones { get; set; }
public int IdUsuarioRegistro { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
namespace GestionIntegral.Api.Models.Suscripciones
{
public class Suscripcion
{
public int IdSuscripcion { get; set; }
public int IdSuscriptor { get; set; }
public int IdPublicacion { get; set; }
public DateTime FechaInicio { get; set; }
public DateTime? FechaFin { get; set; }
public string Estado { get; set; } = string.Empty;
public string DiasEntrega { get; set; } = string.Empty;
public string? Observaciones { get; set; }
public int IdUsuarioAlta { get; set; }
public DateTime FechaAlta { get; set; }
public int? IdUsuarioMod { get; set; }
public DateTime? FechaMod { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
namespace GestionIntegral.Api.Models.Suscripciones
{
public class Suscriptor
{
public int IdSuscriptor { get; set; }
public string NombreCompleto { get; set; } = string.Empty;
public string? Email { get; set; }
public string? Telefono { get; set; }
public string Direccion { get; set; } = string.Empty;
public string TipoDocumento { get; set; } = string.Empty;
public string NroDocumento { get; set; } = string.Empty;
public string? CBU { get; set; }
public int IdFormaPagoPreferida { get; set; }
public string? Observaciones { get; set; }
public bool Activo { get; set; }
public int IdUsuarioAlta { get; set; }
public DateTime FechaAlta { get; set; }
public int? IdUsuarioMod { get; set; }
public DateTime? FechaMod { get; set; }
}
}