Files
juipnet/Infrastructure/ServiceClient/Alipay.AopSdk.Core/Domain/AlipayOpenAuthTokenAppModel.cs
“wanyongkang” ed3b2c653e 接口文件
2024-04-10 13:55:27 +08:00

30 lines
959 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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; }
}
}