2026-03-26 00:09:20 +08:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using YD_Event.Core.Enum;
|
|
|
|
|
|
|
|
|
|
namespace YD_Event.Application.Merchant.Dtos;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 微信支付配置输入DTO
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class WeChatPayConfigInputDto
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 微信支付商户号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required(ErrorMessage = "微信支付商户号不能为空")]
|
|
|
|
|
public string MerchantIdValue { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 微信支付 APIv3 密钥
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required(ErrorMessage = "微信支付 APIv3 密钥不能为空")]
|
|
|
|
|
public string MerchantV3Secret { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 微信支付商户证书序列号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required(ErrorMessage = "微信支付商户证书序列号不能为空")]
|
|
|
|
|
public string MerchantCertificateSerialNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-04-02 18:06:01 +08:00
|
|
|
/// 微信支付商户私钥文件URL
|
2026-03-26 00:09:20 +08:00
|
|
|
/// </summary>
|
|
|
|
|
public string MerchantCertificatePrivateKey { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 可用状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public AvailabilityStatus Status { get; set; } = AvailabilityStatus.Enable;
|
|
|
|
|
}
|