接口文件
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Alipay.AopSdk.Core.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// AlipayOpenAuthTokenAppModel Data Structure.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class AlipayOpenAuthTokenAppModel : AopObject
|
||||
{
|
||||
/// <summary>
|
||||
/// 授权码,如果grant_type的值为authorization_code。该值必须填写
|
||||
/// </summary>
|
||||
[JsonProperty("code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// authorization_code表示换取app_auth_token。 refresh_token表示刷新app_auth_token。
|
||||
/// </summary>
|
||||
[JsonProperty("grant_type")]
|
||||
public string GrantType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 刷新令牌,如果grant_type值为refresh_token。该值不能为空。该值来源于此接口的返回值app_refresh_token(至少需要通过grant_type=authorization_code调用此接口一次才能获取)
|
||||
/// </summary>
|
||||
[JsonProperty("refresh_token")]
|
||||
public string RefreshToken { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user