using dodohold.core;
using System.Text.Json.Serialization;

namespace molilian.core
{
    [Table("tk_refund_order_details")]
    public class TkRefundOrderDetailDTO
    {

        [Key]
        public int id { get; set; }
        public int accountId { get; set; } = 0;

        public string accountName { get; set; } = string.Empty;

        public string TkOrderRole { get; set; } = string.Empty;
        public decimal RefundFee { get; set; } = 0;
        [JsonConverter(typeof(DateTimeConverterUsingDateTimeParse))]
        public DateTime ModifiedTime { get; set; } = DateTime.MinValue;
        public decimal TkServiceReturnFee { get; set; } = 0;
        public string ItemTitle { get; set; } = string.Empty;
        [JsonConverter(typeof(DateTimeConverterUsingDateTimeParse))]
        public DateTime EarningTime { get; set; } = DateTime.MinValue;
        public int RefundStatus { get; set; } = 0;
        public decimal AlimamaRate { get; set; } = 0;
        public string ItemImg { get; set; } = string.Empty;
        public decimal PubShareFee { get; set; } = 0;

        [JsonConverter(typeof(DateTimeConverterUsingDateTimeParse))]
        public DateTime TbTradeCreateTime { get; set; } = DateTime.MinValue;
        public decimal RefundServiceFee { get; set; } = 0;
        [JsonConverter(typeof(DateTimeConverterUsingDateTimeParse))]
        public DateTime RefundCreateTime { get; set; } = DateTime.MinValue;

        public string TbTradeId { get; set; } = string.Empty;
        public decimal TkSubsidyFeeRefund { get; set; } = 0;
        public decimal TkCommissionAlimmReturnFee { get; set; } = 0;
        public string MktId { get; set; } = string.Empty;
        public string SellerShopTitle { get; set; } = string.Empty;
        public decimal TkCommissionFeeRefund { get; set; } = 0;
        public string ShowRefundStatus { get; set; } = string.Empty;
        public decimal TkSubsidyAgentReturnFee { get; set; } = 0;
        public decimal ShowReturnFee { get; set; } = 0;
        public string TbTradeParentId { get; set; } = string.Empty;
        public long RefundSuitId { get; set; } = 0;
        public decimal TkSubsidyAlimmReturnFee { get; set; } = 0;
        public decimal AlipayTotalPrice { get; set; } = 0;
        public bool SupportItemClick { get; set; } = false;
        public decimal AlimamaShareFee { get; set; } = 0;
        public decimal TkCommissionAgentReturnFee { get; set; } = 0;
        public string MktItemLink { get; set; } = string.Empty;
        [JsonConverter(typeof(DateTimeConverterUsingDateTimeParse))]
        public DateTime RefundFinishTime { get; set; } = DateTime.MinValue;
        public int TkBizTag { get; set; } = 0;

        [IgnoreUpdate]
        public DateTime create_time { get; set; } = DateTime.Now;
        public DateTime last_time { get; set; } = DateTime.Now;

    }

}
