2025-07-29 14:11:50 -03:00
|
|
|
using GestionIntegral.Api.Models.Suscripciones;
|
|
|
|
|
using System.Data;
|
|
|
|
|
|
|
|
|
|
namespace GestionIntegral.Api.Data.Repositories.Suscripciones
|
|
|
|
|
{
|
|
|
|
|
public interface IFacturaRepository
|
|
|
|
|
{
|
|
|
|
|
Task<Factura?> GetByIdAsync(int idFactura);
|
|
|
|
|
Task<IEnumerable<Factura>> GetByPeriodoAsync(string periodo);
|
2025-08-08 09:48:15 -03:00
|
|
|
Task<Factura?> GetBySuscriptorYPeriodoAsync(int idSuscriptor, string periodo, IDbTransaction transaction);
|
|
|
|
|
Task<IEnumerable<Factura>> GetListBySuscriptorYPeriodoAsync(int idSuscriptor, string periodo);
|
2025-07-29 14:11:50 -03:00
|
|
|
Task<Factura?> CreateAsync(Factura nuevaFactura, IDbTransaction transaction);
|
2025-08-08 09:48:15 -03:00
|
|
|
Task<bool> UpdateEstadoPagoAsync(int idFactura, string nuevoEstadoPago, IDbTransaction transaction);
|
2025-07-29 14:11:50 -03:00
|
|
|
Task<bool> UpdateNumeroFacturaAsync(int idFactura, string numeroFactura, IDbTransaction transaction);
|
|
|
|
|
Task<bool> UpdateLoteDebitoAsync(IEnumerable<int> idsFacturas, int idLoteDebito, IDbTransaction transaction);
|
2025-08-08 09:48:15 -03:00
|
|
|
Task<IEnumerable<(Factura Factura, string NombreSuscriptor, int IdEmpresa, decimal TotalPagado)>> GetByPeriodoEnrichedAsync(string periodo, string? nombreSuscriptor, string? estadoPago, string? estadoFacturacion);
|
|
|
|
|
Task<bool> UpdateEstadoYMotivoAsync(int idFactura, string nuevoEstadoPago, string? motivoRechazo, IDbTransaction transaction);
|
|
|
|
|
Task<string?> GetUltimoPeriodoFacturadoAsync();
|
|
|
|
|
Task<IEnumerable<Factura>> GetFacturasPagadasPendientesDeFacturar(string periodo);
|
2025-07-29 14:11:50 -03:00
|
|
|
}
|
|
|
|
|
}
|