using Baya.Application.Models.Common;
using Baya.Application.Models.Payments;
using Mediator;

namespace Baya.Application.Features.Payments.Queries.GetNursePayableBalance;

/// <summary>
/// The IRR balance currently owed a nurse — the signed sum of <c>nurse_payable</c> ledger legs (credit adds,
/// debit subtracts). A <b>pure projection over the append-only ledger</b> (no cached wallet column ever); this
/// is what b13 payouts read to know what to pay. Authorized to the nurse themself or an admin/finance role.
/// </summary>
public record GetNursePayableBalanceQuery(long NurseId) : IRequest<OperationResult<NursePayableBalanceDto>>;
