namespace CashLineERP.Domain.Finance;

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

    public long AccountsReceivableReceiptId { get; private set; }

    public long AccountsReceivableInvoiceId { get; private set; }

    public decimal AllocationAmount { get; private set; }

    public DateOnly AllocationDate { get; private set; }

    public AccountsReceivableReceiptAllocation(
        long accountsReceivableReceiptId,
        long accountsReceivableInvoiceId,
        decimal allocationAmount,
        DateOnly allocationDate)
    {
        AccountsReceivableReceiptId = accountsReceivableReceiptId;
        AccountsReceivableInvoiceId = accountsReceivableInvoiceId;
        AllocationAmount = allocationAmount;
        AllocationDate = allocationDate;
    }

    private AccountsReceivableReceiptAllocation()
    {
    }
}
