using PowderCoating.Core.Entities;

namespace PowderCoating.Web.ViewModels;

public class OnlinePaymentsViewModel
{
    public DateTime From                  { get; set; }
    public DateTime To                    { get; set; }
    public decimal TotalCollected         { get; set; }
    public decimal TotalRefunded          { get; set; }
    public decimal SurchargesCollected    { get; set; }
    public decimal NetRevenue             => TotalCollected - TotalRefunded;
    public List<Invoice> Invoices         { get; set; } = new();
    public List<Refund>  Refunds          { get; set; } = new();
}
