profileShare

rasmusjy / splitapp-backend-clean-onion

Read-only snapshot

No repository description.

main default branch 429 files Expires Sep 13, 2026, 9:06 AM
ISettlementPlanRepository.cs 454 bytes
1 using Base.Contracts;
2
3 namespace App.Domain.Contracts;
4
5 public interface ISettlementPlanRepository : IBaseRepository<SettlementPlan>
6 {
7 Task<SettlementPlan?> GetLatestByTripIdAsync(Guid tripId);
8
9 /// <summary>
10 /// Hard-deletes a settlement plan and all of its payments, bypassing EF change-tracking.
11 /// Used when "reopening" a trip to clear the auto-generated plan.
12 /// </summary>
13 Task DeletePlanWithPaymentsAsync(Guid planId);
14 }
15