package com.czg.pay;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 支付宝授权信息
 * @author yjjie
 * @date 2026/1/9 11:31
 */
@Data
@Accessors(chain = true)
public class AlipayAuthInfoDto {

    /**
     * 授权商户的user_id
     */
    @JSONField(name = "user_id")
    private String userId;

    /**
     * 授权商户的open_id
     */
    @JSONField(name = "open_id")
    private String openId;

    /**
     * 授权商户的appid
     */
    @JSONField(name = "auth_app_id")
    private String authAppId;

    /**
     * 应用授权令牌
     */
    @JSONField(name = "app_auth_token")
    private String appAuthToken;

    /**
     * 应用授权令牌有效期
     */
    @JSONField(name = "expires_in")
    private String expiresIn;

    /**
     * 刷新令牌
     */
    @JSONField(name = "app_refresh_token")
    private String appRefreshToken;

    /**
     * 刷新令牌的有效时间
     */
    @JSONField(name = "re_expires_in")
    private String reExpiresIn;

    /**
     * 签约单号
     */
    @JSONField(name = "order_no")
    private String orderNo;
}
