143 lines
3.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
/// <summary>
/// 退款记录表
/// </summary>
[SugarTable("RefundRecord")]
public class RefundRecord : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
/// <summary>
/// 商户退款单号(唯一)
/// </summary>
[SugarColumn(Length = 64)]
public string OutRefundNo { get; set; }
/// <summary>
/// 微信退款单号
/// </summary>
[SugarColumn(Length = 64, IsNullable = true)]
public string? RefundId { get; set; }
/// <summary>
/// 关联的报名记录ID
/// </summary>
public long RegistrationId { get; set; }
/// <summary>
/// 商户订单号
/// </summary>
[SugarColumn(Length = 64)]
public string OutTradeNo { get; set; }
/// <summary>
/// 微信支付订单号
/// </summary>
[SugarColumn(Length = 64, IsNullable = true)]
public string? TransactionId { get; set; }
/// <summary>
/// 退款金额(元)
/// </summary>
[SugarColumn(DecimalDigits = 2, Length = 18)]
public decimal RefundAmount { get; set; }
/// <summary>
/// 订单总金额(元)
/// </summary>
[SugarColumn(DecimalDigits = 2, Length = 18)]
public decimal TotalAmount { get; set; }
/// <summary>
/// 退款原因
/// </summary>
[SugarColumn(Length = 512, IsNullable = true)]
public string? RefundReason { get; set; }
/// <summary>
/// 退款状态(0-退款中,1-退款成功,2-退款失败,3-退款关闭)
/// </summary>
public int RefundStatus { get; set; }
/// <summary>
/// 申请时间
/// </summary>
public DateTime ApplyTime { get; set; }
/// <summary>
/// 退款完成时间
/// </summary>
public DateTime? SuccessTime { get; set; }
/// <summary>
/// 商户ID
/// </summary>
public long? MerchantId { get; set; }
/// <summary>
/// 微信支付配置ID
/// </summary>
public long? WeChatPayConfigId { get; set; }
/// <summary>
/// 微信返回的原始数据(JSON)
/// </summary>
[SugarColumn(ColumnDataType = "text", IsNullable = true)]
public string? WeChatResponse { get; set; }
/// <summary>
/// 错误信息
/// </summary>
[SugarColumn(Length = 1024, IsNullable = true)]
public string? ErrorMessage { get; set; }
/// <summary>
/// 可用状态
/// </summary>
public AvailabilityStatus Status { get; set; }
/// <summary>
/// 标记删除
/// </summary>
public bool DeleteMark { get; set; }
/// <summary>
/// 创建人
/// </summary>
public long CreatedUserId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
public long? UpdatedUserId { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdatedTime { get; set; }
/// <summary>
/// 收款人姓名(线下支付退款时使用)
/// </summary>
[SugarColumn(Length = 128, IsNullable = true)]
public string? PayeeName { get; set; }
/// <summary>
/// 收款人开户行(线下支付退款时使用)
/// </summary>
[SugarColumn(Length = 256, IsNullable = true)]
public string? PayeeBankName { get; set; }
/// <summary>
/// 收款人银行卡号(线下支付退款时使用)
/// </summary>
[SugarColumn(Length = 64, IsNullable = true)]
public string? PayeeBankAccount { get; set; }
}