NewGaoKaoApi/PaymentSDK/AliPay/Response/AlipaySystemOauthTokenRespo...

54 lines
1.6 KiB
C#
Raw Permalink 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;
using System.Xml.Serialization;
namespace Aop.Api.Response
{
/// <summary>
/// AlipaySystemOauthTokenResponse.
/// </summary>
public class AlipaySystemOauthTokenResponse : AopResponse
{
/// <summary>
/// 访问令牌。通过该令牌调用需要授权类接口
/// </summary>
[XmlElement("access_token")]
public string AccessToken { get; set; }
/// <summary>
/// 已废弃,请勿使用
/// </summary>
[XmlElement("alipay_user_id")]
public string AlipayUserId { get; set; }
/// <summary>
/// 令牌类型permanent表示返回的access_token和refresh_token永久有效非永久令牌不返回该字段
/// </summary>
[XmlElement("auth_token_type")]
public string AuthTokenType { get; set; }
/// <summary>
/// 访问令牌的有效时间,单位是秒。
/// </summary>
[XmlElement("expires_in")]
public string ExpiresIn { get; set; }
/// <summary>
/// 刷新令牌的有效时间,单位是秒。
/// </summary>
[XmlElement("re_expires_in")]
public string ReExpiresIn { get; set; }
/// <summary>
/// 刷新令牌。通过该令牌可以刷新access_token
/// </summary>
[XmlElement("refresh_token")]
public string RefreshToken { get; set; }
/// <summary>
/// 支付宝用户的唯一userId
/// </summary>
[XmlElement("user_id")]
public string UserId { get; set; }
}
}