namespace CashLineERP.Application.IslamicFinance.Facilities;

public interface IIslamicFinanceFacilityRepository
{
    IReadOnlyCollection<IslamicFinanceFacilityDetailView> GetFacilities(
        bool activeOnly = false,
        long? customerPartyId = null,
        long? partnerLenderId = null);

    IslamicFinanceFacilityDetailView? GetFacility(long facilityId);
    IslamicFinanceFacilityDetailView Create(CreateIslamicFinanceFacilityCommand command);
    IslamicFinanceFacilityDetailView Submit(long facilityId, long actorUserId);
    IslamicFinanceFacilityDetailView Approve(long facilityId, long actorUserId);
    IslamicFinanceFacilityDetailView Activate(long facilityId, long actorUserId);
}
