AppTokenExchangeSubElement.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using Newtonsoft.Json;
  3. using System.Xml.Serialization;
  4. namespace Essensoft.AspNetCore.Payment.Alipay.Domain
  5. {
  6. /// <summary>
  7. /// AppTokenExchangeSubElement Data Structure.
  8. /// </summary>
  9. [Serializable]
  10. public class AppTokenExchangeSubElement : AlipayObject
  11. {
  12. /// <summary>
  13. /// 应用授权令牌
  14. /// </summary>
  15. [JsonProperty("app_auth_token")]
  16. [XmlElement("app_auth_token")]
  17. public string AppAuthToken { get; set; }
  18. /// <summary>
  19. /// 刷新令牌
  20. /// </summary>
  21. [JsonProperty("app_refresh_token")]
  22. [XmlElement("app_refresh_token")]
  23. public string AppRefreshToken { get; set; }
  24. /// <summary>
  25. /// 授权商户appid
  26. /// </summary>
  27. [JsonProperty("auth_app_id")]
  28. [XmlElement("auth_app_id")]
  29. public string AuthAppId { get; set; }
  30. /// <summary>
  31. /// 过期时间
  32. /// </summary>
  33. [JsonProperty("expires_in")]
  34. [XmlElement("expires_in")]
  35. public string ExpiresIn { get; set; }
  36. /// <summary>
  37. /// 刷新令牌过期时间
  38. /// </summary>
  39. [JsonProperty("re_expires_in")]
  40. [XmlElement("re_expires_in")]
  41. public string ReExpiresIn { get; set; }
  42. /// <summary>
  43. /// 授权商户的user_id
  44. /// </summary>
  45. [JsonProperty("user_id")]
  46. [XmlElement("user_id")]
  47. public string UserId { get; set; }
  48. }
  49. }