using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CrazyStudio.Core.Common.WeChat
{
    /// <summary>
    /// 微信信息选项
    /// </summary>
    public class WeChatOptions
    {
        /// <summary>
        /// 微信公众平台 AppID
        /// </summary>
        public string AppID { get; set; } = string.Empty;

        /// <summary>
        /// 微信公众平台 AppSecret
        /// </summary>
        public string AppSecret { get; set; } = string.Empty;

        /// <summary>
        /// 商户号
        /// </summary>
        public string MchID { get; set; } = string.Empty;

        /// <summary>
        /// 商户平台设置的密钥key （仅退款、撤销订单时需要）
        /// </summary>
        public string MchKey { get; set; } = string.Empty;

        /// <summary>
        /// 支付完成后微信通知回调页面
        /// </summary>
        public string PayNotifyUrl { get; set; } = string.Empty;

        /// <summary>
        /// 退款完成后微信通知回调页面
        /// </summary>
        public string RefundNotifyUrl { get; set; } = string.Empty;

        /// <summary>
        /// P12证书绝对路径（仅退款、撤销订单时需要）
        /// </summary>
        public string SslCertPath { get; set; } = string.Empty;

        /// <summary>
        /// P12证书密码
        /// </summary>
        public string SslCertPassword { get; set; } = string.Empty;

        /// <summary>
        /// 【商户系统后台机器IP】此参数可手动配置也可在程序中自动获取
        /// </summary>
        public string Ip { get; set; } = string.Empty;
    }
}
