package com.liquidnet.common.third.secureaccess.model;

import lombok.Builder;
import lombok.Getter;

@Getter
@Builder
public class NiaAuthResult {

    private final boolean success;
    private final String resultCode;
    private final String resultDesc;
    private final String bizSeq;
    private final String bizSerialNo;
    /** 网络身份应用标识标准 Base64（40 字节 → 56 字符） */
    private final String openId;
    private final String photoCompareScore;
    private final String encryptedIdInfo;
    /** 失败阶段：CONFIG / PARAM / SAP / PARSE / PLATFORM / UNKNOWN */
    private final String stage;
    /** SAP/平台原始响应摘要，便于联调 */
    private final String rawResponse;

    @Override
    public String toString() {
        return "NiaAuthResult{success=" + success
                + ", resultCode=" + resultCode
                + ", resultDesc=" + resultDesc
                + ", bizSeq=" + bizSeq
                + ", bizSerialNo=" + bizSerialNo
                + ", openId=" + openId
                + ", stage=" + stage
                + '}';
    }
}
