NewGaoKaoApi/PaymentSDK/AliPay/Domain/ZhimaCreditPeUserAuthApplyM...

37 lines
1.9 KiB
C#
Raw 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.Domain
{
/// <summary>
/// ZhimaCreditPeUserAuthApplyModel Data Structure.
/// </summary>
[Serializable]
public class ZhimaCreditPeUserAuthApplyModel : AopObject
{
/// <summary>
/// 产品码,固定值: w1010100001000002428
/// </summary>
[XmlElement("product_code")]
public string ProductCode { get; set; }
/// <summary>
/// 授权回调地址是经过URLENCODE转义的url链接url必须以http或者https开头;在请求之前,开发者需要先到开发者中心对应应用内,配置授权回调地址。 redirect_uri与应用配置的授权回调地址域名部分必须一致。
/// </summary>
[XmlElement("redirect_uri")]
public string RedirectUri { get; set; }
/// <summary>
/// 接口权限值目前只支持auth_user获取用户信息、网站支付宝登录、auth_base用户信息授权、auth_ecard商户会员卡、auth_invoice_info支付宝闪电开票、auth_puc_charge生活缴费auth_zhima等;多个scope时用”,”分隔如scope为”auth_user,auth_ecard”时此时获取到的access_token既可以用来获取用户信息又可以给用户发送会员卡。
/// </summary>
[XmlElement("scope")]
public string Scope { get; set; }
/// <summary>
/// 商户自定义参数用户授权后重定向到redirect_uri时会原样回传给商户。 为防止CSRF攻击建议开发者请求授权时传入state参数该参数要做到既不可预测又可以证明客户端和当前第三方网站的登录认证状态存在关联。 只允许base64字符长度小于等于100
/// </summary>
[XmlElement("state")]
public string State { get; set; }
}
}