namespace CashLineERP.Domain.Finance;

public sealed class AccountsPayablePaymentAllocation
{
    public long Id { get; private set; }

    public long AccountsPayablePaymentId { get; private set; }

    public long AccountsPayableBillId { get; private set; }

    public decimal AllocationAmount { get; private set; }

    public DateOnly AllocationDate { get; private set; }

    public AccountsPayablePaymentAllocation(
        long accountsPayablePaymentId,
        long accountsPayableBillId,
        decimal allocationAmount,
        DateOnly allocationDate)
    {
        AccountsPayablePaymentId = accountsPayablePaymentId;
        AccountsPayableBillId = accountsPayableBillId;
        AllocationAmount = allocationAmount;
        AllocationDate = allocationDate;
    }

    private AccountsPayablePaymentAllocation()
    {
    }
}
