using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BPA.KitChen.GroupMealOrder.Core.Entity
{
[SugarTable("BPA_OrderRefundLog")]
public class BPA_OrderRefundLog
{
///
///
///
public string Id { get; set; } = Guid.NewGuid().ToString();
///
/// 订单号(自己系统)
///
public System.String OrderNumber { get; set; }
///
/// 订单号(第三方)
///
public System.String TradeNo { get; set; }
///
/// 交易号
///
public System.String TransactionId { get; set; }
///
/// 售后表Id(null表示为售前退款)
///
public System.String ReturnId { get; set; }
///
/// 主订单id
///
public System.String OrderId { get; set; }
///
/// 子订单id
///
public System.String SubOrderId { get; set; }
///
/// 退款金额()
///
public System.Decimal RefundMoney { get; set; }
///
/// 退款类型0:售前退款(商品未制作时退款) 1 售后退款 (商品已经开始进行制作)
///
public System.Int32 RefundType { get; set; }
///
/// 退款结果 0 成功 1失败
///
public System.Int32 RefundResult { get; set; }
///
/// 退款描述 退款成功;账户余额不足;退款金额大于订单金额..etc
///
public System.String RefundDesc { get; set; }
///
/// 退款来源(退款到什么地方) 0微信 1支付宝 2 余额
///
public System.Int32 RefundSource { get; set; }
///
/// 退款调用方式 0 小程序调用退款 1 saas调用退款 2 第三方调用退款 4.POS
///
public System.Int32 RefundCallType { get; set; }
///
/// 退款时间
///
public System.DateTime? RefundTime { get; set; }
///
/// 创建于
///
public System.DateTime? CreatedAt { get; set; }
///
/// 创建人
///
public System.String CreatedBy { get; set; }
///
/// 更新于
///
public System.DateTime? UpdatedAt { get; set; }
///
/// 更新人
///
public System.String UpdatedBy { get; set; }
///
/// 退款状态
///
public RefundStatus Stutas { get; set; }
public string GroupId { get; set; }
}
public enum RefundStatus
{
///
/// 申请部分退款
///
PartRefund = 10,
///
/// 部分退款处理中
///
PartRefundWait = 101,
///
/// 部分退款成功
///
PartRefundOk = 102,
///
/// 取消部分退款
///
PartRefundCancel = 103,
///
/// 部分退款失败
///
PartRefundError = 104,
///
/// 申请全额退款
///
FullRefund = 20,
///
/// 全额退款处理中
///
FullRefundWait = 201,
///
/// 全额退款成功
///
FullRefundOk = 202,
///
/// 取消全额退款
///
FullRefundCancel = 203,
///
/// 全额退款失败
///
FullRefundError = 204,
}
}