Skip to content

Commit

Permalink
✨ Add OrderRefundSuccessInfo PaymentStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
BuknSS committed Dec 20, 2023
1 parent 0fcce81 commit 17f0887
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class OrderPaymentCompositionDTO
/// <summary>
/// 支付状态
/// </summary>
public bool PaymentStatus { get; set; }
public PaymentStatus PaymentStatus { get; set; }

/// <summary>
/// 订单 Id
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace BD.WTTS.Models;

/// <summary>
/// 订单退款成功信息
/// </summary>
/// <param name="RefundBillId">退款单Id</param>
/// <param name="PaymentId">支付Id(支付组成Id)</param>
/// <param name="PaymentPlatform">支付平台</param>
public record OrderRefundSuccessInfo(Guid RefundBillId, Guid PaymentId, PaymentType PaymentPlatform);
17 changes: 17 additions & 0 deletions src/BD.WTTS.Primitives/Enums/Payment/PaymentStatus.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// ReSharper disable once CheckNamespace
namespace BD.WTTS.Enums;

/// <summary>
/// 支付状态
/// </summary>
public enum PaymentStatus : byte
{
[Description("待付款")]
WaitPay = 0,

[Description("已付款")]
Paid = 1,

[Description("已退款")]
Refunded = 2,
}

0 comments on commit 17f0887

Please sign in to comment.