using PaySharp.Core;
using PaySharp.Core.Response;
namespace PaySharp.Wechatpay.Response
{
public class OAuthResponse : IResponse
{
///
/// 网页授权接口调用凭证
///
public string AccessToken { get; set; }
///
/// access_token接口调用凭证超时时间,单位(秒)
///
public string ExpiresIn { get; set; }
///
/// 用户刷新access_token
///
public string RefreshToken { get; set; }
///
/// 用户唯一标识,请注意,在未关注公众号时,用户访问公众号的网页,也会产生一个用户和公众号唯一的OpenID
///
[ReName(Name = "openid")]
public string OpenId { get; set; }
///
/// 当且仅当该网站应用已获得该用户的userinfo授权时,才会出现该字段
///
[ReName(Name = "unionid")]
public string UnionId { get; set; }
///
/// 用户授权的作用域,使用逗号(,)分隔
///
public string Scope { get; set; }
///
/// 错误代码
///
public string ErrCode { get; set; }
///
/// 错误代码描述
///
public string ErrMsg { get; set; }
public string Raw { get; set; }
internal GatewayData GatewayData { get; set; }
}
}