2025-08-08 09:48:15 -03:00
|
|
|
// Archivo: GestionIntegral.Api/Data/Repositories/Suscripciones/IAjusteRepository.cs
|
|
|
|
|
|
2025-08-01 14:38:15 -03:00
|
|
|
using GestionIntegral.Api.Models.Suscripciones;
|
2025-08-08 09:48:15 -03:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2025-08-01 14:38:15 -03:00
|
|
|
using System.Data;
|
2025-08-08 09:48:15 -03:00
|
|
|
using System.Threading.Tasks;
|
2025-08-01 14:38:15 -03:00
|
|
|
|
|
|
|
|
namespace GestionIntegral.Api.Data.Repositories.Suscripciones
|
|
|
|
|
{
|
|
|
|
|
public interface IAjusteRepository
|
|
|
|
|
{
|
|
|
|
|
Task<Ajuste?> GetByIdAsync(int idAjuste);
|
2025-08-08 09:48:15 -03:00
|
|
|
Task<Ajuste?> CreateAsync(Ajuste nuevoAjuste, IDbTransaction transaction);
|
|
|
|
|
Task<bool> UpdateAsync(Ajuste ajuste, IDbTransaction transaction);
|
2025-08-01 14:38:15 -03:00
|
|
|
Task<bool> AnularAjusteAsync(int idAjuste, int idUsuario, IDbTransaction transaction);
|
2025-08-08 09:48:15 -03:00
|
|
|
Task<IEnumerable<Ajuste>> GetAjustesPorSuscriptorAsync(int idSuscriptor, DateTime? fechaDesde, DateTime? fechaHasta);
|
|
|
|
|
Task<IEnumerable<Ajuste>> GetAjustesPendientesHastaFechaAsync(int idSuscriptor, DateTime fechaHasta, IDbTransaction transaction);
|
|
|
|
|
Task<bool> MarcarAjustesComoAplicadosAsync(IEnumerable<int> idsAjustes, int idFactura, IDbTransaction transaction);
|
|
|
|
|
Task<IEnumerable<Ajuste>> GetAjustesPorIdFacturaAsync(int idFactura);
|
2025-08-01 14:38:15 -03:00
|
|
|
}
|
|
|
|
|
}
|