NewGaoKaoApi/New_College.Common/Helper/WeChatPayOrderQuery.cs

82 lines
2.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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
{
/// <summary>
/// 0微信支付1z支付宝支付
/// </summary>
public int PayType { get; set; }
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";
}
}