NewGaoKaoApi/New_College.Common/Helper/WeChatPayOrderQuery.cs

78 lines
2.0 KiB
C#

using System.ComponentModel.DataAnnotations;
namespace New_College.Common.Helper
{
public class WeChatPayOrderQuery
{
[Display(Name = "transaction_id")]
public string TransactionId { get; set; }
[Display(Name = "out_trade_no")]
public string OutTradeNo { get; set; }
}
public class WeChatPayRefundQuery
{
[Required]
[Display(Name = "out_refund_no")]
public string OutRefundNo { get; set; }
[Display(Name = "transaction_id")]
public string TransactionId { get; set; }
[Display(Name = "out_trade_no")]
public string OutTradeNo { get; set; }
[Required]
[Display(Name = "total_fee")]
public int TotalFee { get; set; }
[Required]
[Display(Name = "refund_fee")]
public int RefundFee { get; set; }
[Display(Name = "refund_desc")]
public string RefundDesc { get; set; }
[Display(Name = "notify_url")]
public string NotifyUrl { get; set; }
}
public class WeChatPayTransactionsNativeQuery
{
public int? Total { get; set; }
public string Description { get; set; }
public string NotifyUrl { get; set; }
public string OutTradeNo { get; set; }
}
public class ProductPayRequest
{
/// <summary>
/// 1商品2评测3陪考通考试
/// </summary>
public int ProductType { get; set; } = 0;
}
public class WeChatPayPayRequest : ProductPayRequest
{
public string OutTradeNo { get; set; } = "";
public string Body { get; set; } = "";
public int TotalFee { get; set; } = 0;
public string SpBillCreateIp { get; set; }
public string NotifyUrl { get; set; }
public string TradeType { get; set; } = "MWEB";
public int MemberId { get; set; }
public string OpenId { get; set; }
public string PaymentChannel { get; set; } = "微信支付";
public string PaymentType { get; set; } = "WeChat";
}
}