using Hncore.Payment.Request;

namespace Hncore.Pass.PaymentCenter.Request.WechatJsPay
{
    public class CreateOrderRequest: CreateOrderRequestBase
    {
        /// <summary>
        /// 支付环境
        /// </summary>
        public PayEnvironment PayEnvironment { get; set; }
        
        /// <summary>
        /// 微信用户关注商家公众号的openid
        /// </summary>
        public string UserOpenId { get; set; }
        
        /// <summary>
        /// 公众账号或小程序ID
        /// </summary>
        public string AppId { get; set; }
    }

    /// <summary>
    /// 支付环境
    /// </summary>
    public enum PayEnvironment
    {
        /// <summary>
        /// 小程序支付
        /// </summary>
        WeApp=1,
        /// <summary>
        /// 公众号支付
        /// </summary>
        H5=2
    }

}