using Lada.Framework.Data.Enums;
using Lada.Framework.DTO;
using Lada.Framework.Infrastructures.Helpers;

namespace Ladaer.BackEnd.Infrastructures.DTO.Items.FuelCards;

public class FuelCardTransactionItem : BaseItem<Guid>
{
    public int FuelCardId { get; set; }
    public string CardNumber { get; set; } = string.Empty;
    public DateTimeOffset TransactionDate { get; set; }
    public decimal Amount { get; set; }
    public decimal RawAmount { get; set; }
    public string Currency { get; set; } = "VND";
    public string TransactionType { get; set; } = string.Empty;
    public string Location { get; set; } = string.Empty;
    public FuelCardTransactionStatus Status { get; set; }
    public string StatusStr => Status.GetDescription();
    public int? FuelRefillId { get; set; }
    public bool IsReconciled { get; set; }
    public bool IsPaidToBank { get; set; }
    public DateTimeOffset? PaidToBank { get; set; }
    public string ProcessNote { get; set; } = string.Empty;
    
    /// <summary>
    /// Giao dịch đã được đổ dầu hay chưa (có FuelRefillId)
    /// </summary>
    public bool HasRefill { get; set; }
}
