16 lines
		
	
	
		
			839 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			839 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| 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);
 | |
|         Task<Factura?> GetBySuscripcionYPeriodoAsync(int idSuscripcion, string periodo, IDbTransaction transaction);
 | |
|         Task<Factura?> CreateAsync(Factura nuevaFactura, IDbTransaction transaction);
 | |
|         Task<bool> UpdateEstadoAsync(int idFactura, string nuevoEstado, IDbTransaction transaction);
 | |
|         Task<bool> UpdateNumeroFacturaAsync(int idFactura, string numeroFactura, IDbTransaction transaction);
 | |
|         Task<bool> UpdateLoteDebitoAsync(IEnumerable<int> idsFacturas, int idLoteDebito, IDbTransaction transaction);
 | |
|     }
 | |
| } |