namespace Baya.Domain.Entities.Payments;

/// <summary>
/// The two <c>ledger_entries.direction</c> codes. <c>amount_irr</c> is <b>always positive</b>; the direction
/// carries the sign. A balanced posting group has Σ(debit) = Σ(credit).
/// </summary>
public static class LedgerDirection
{
    public const string Debit = "debit";
    public const string Credit = "credit";
}

/// <summary>
/// The <c>ledger_entries.source_ref_type</c> codes — what a posting group's <c>source_ref_id</c> points at.
/// </summary>
public static class LedgerSourceRefType
{
    public const string PaymentTransaction = "payment_transaction";
    public const string Refund = "refund";
    public const string NursePayout = "nurse_payout";
    public const string BnplTransaction = "bnpl_transaction";
    public const string Clawback = "clawback";
}
