using EasyTemplate.Tool.Entity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace ZhonTai.Admin.Contracts.Domain.VehicleTerminal.Payment
{
    /// <summary>
    /// 支付记录表
    /// </summary>
    [SugarTable(null, "支付记录表")]
    public class PaymentRecordEntity : EntityBaseLite
    {
        /// <summary>
        /// 支付记录ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 订单ID
        /// </summary>
        public long? OrderId { get; set; }

        /// <summary>
        /// 所属站点ID
        /// </summary>
        public long? SiteId { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public long? UserId { get; set; }

        /// <summary>
        /// 原金额
        /// </summary>
        public decimal? OriginalAmount { get; set; }

        /// <summary>
        /// 实际支付金额
        /// </summary>
        public decimal? PaymentAmount { get; set; }

        /// <summary>
        /// 支付方式：1-微信，2-支付宝，3-银联，4-现金，5-加油卡、6-融合支付等 
        /// </summary>
        public string PaymentMethod { get; set; }

        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? PaymentTime { get; set; }

        /// <summary>
        /// 支付返回结果
        /// </summary>
        public string ResultData { get; set; }

        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrorMessage { get; set; }

        /// <summary>
        /// 支付结果代码
        /// </summary>
        public string ResultCode { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNo { get; set; }
    }
}
