You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
4.1 KiB

  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BPA.KitChen.StoreManagementOrder.Core.Entity
  8. {
  9. [SugarTable("BPA_OrderRefundLog")]
  10. public class BPA_OrderRefundLog
  11. {
  12. /// <summary>
  13. ///
  14. /// </summary>
  15. public string Id { get; set; } = Guid.NewGuid().ToString();
  16. /// <summary>
  17. /// 订单号(自己系统)
  18. /// </summary>
  19. public System.String OrderNumber { get; set; }
  20. /// <summary>
  21. /// 订单号(第三方)
  22. /// </summary>
  23. public System.String TradeNo { get; set; }
  24. /// <summary>
  25. /// 交易号
  26. /// </summary>
  27. public System.String TransactionId { get; set; }
  28. /// <summary>
  29. /// 售后表Id(null表示为售前退款)
  30. /// </summary>
  31. public System.String ReturnId { get; set; }
  32. /// <summary>
  33. /// 主订单id
  34. /// </summary>
  35. public System.String OrderId { get; set; }
  36. /// <summary>
  37. /// 子订单id
  38. /// </summary>
  39. public System.String SubOrderId { get; set; }
  40. /// <summary>
  41. /// 退款金额()
  42. /// </summary>
  43. public System.Decimal RefundMoney { get; set; }
  44. /// <summary>
  45. /// 退款类型0:售前退款(商品未制作时退款) 1 售后退款 (商品已经开始进行制作)
  46. /// </summary>
  47. public System.Int32 RefundType { get; set; }
  48. /// <summary>
  49. /// 退款结果 0 成功 1失败
  50. /// </summary>
  51. public System.Int32 RefundResult { get; set; }
  52. /// <summary>
  53. /// 退款描述 退款成功;账户余额不足;退款金额大于订单金额..etc
  54. /// </summary>
  55. public System.String RefundDesc { get; set; }
  56. /// <summary>
  57. /// 退款来源(退款到什么地方) 0微信 1支付宝 2 余额
  58. /// </summary>
  59. public System.Int32 RefundSource { get; set; }
  60. /// <summary>
  61. /// 退款调用方式 0 小程序调用退款 1 saas调用退款 2 第三方调用退款 4.POS
  62. /// </summary>
  63. public System.Int32 RefundCallType { get; set; }
  64. /// <summary>
  65. /// 退款时间
  66. /// </summary>
  67. public System.DateTime? RefundTime { get; set; }
  68. /// <summary>
  69. /// 创建于
  70. /// </summary>
  71. public System.DateTime? CreatedAt { get; set; }
  72. /// <summary>
  73. /// 创建人
  74. /// </summary>
  75. public System.String CreatedBy { get; set; }
  76. /// <summary>
  77. /// 更新于
  78. /// </summary>
  79. public System.DateTime? UpdatedAt { get; set; }
  80. /// <summary>
  81. /// 更新人
  82. /// </summary>
  83. public System.String UpdatedBy { get; set; }
  84. /// <summary>
  85. /// 退款状态
  86. /// </summary>
  87. public RefundStatus Stutas { get; set; }
  88. public string GroupId { get; set; }
  89. }
  90. public enum RefundStatus
  91. {
  92. /// <summary>
  93. /// 申请部分退款
  94. /// </summary>
  95. PartRefund = 10,
  96. /// <summary>
  97. /// 部分退款处理中
  98. /// </summary>
  99. PartRefundWait = 101,
  100. /// <summary>
  101. /// 部分退款成功
  102. /// </summary>
  103. PartRefundOk = 102,
  104. /// <summary>
  105. /// 取消部分退款
  106. /// </summary>
  107. PartRefundCancel = 103,
  108. /// <summary>
  109. /// 部分退款失败
  110. /// </summary>
  111. PartRefundError = 104,
  112. /// <summary>
  113. /// 申请全额退款
  114. /// </summary>
  115. FullRefund = 20,
  116. /// <summary>
  117. /// 全额退款处理中
  118. /// </summary>
  119. FullRefundWait = 201,
  120. /// <summary>
  121. /// 全额退款成功
  122. /// </summary>
  123. FullRefundOk = 202,
  124. /// <summary>
  125. /// 取消全额退款
  126. /// </summary>
  127. FullRefundCancel = 203,
  128. /// <summary>
  129. /// 全额退款失败
  130. /// </summary>
  131. FullRefundError = 204,
  132. }
  133. }