package cn.pluss.platform.ys.impl.v20220527;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author DJH
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "ys")
public class YsConfigV3 {

    /**
     * 商户报备接口，自动报备失败后调用
     */
    public static String MER_REPORT = "https://ysgate.ysepay.com/openapi/smsc/saas/sweep/sweepreport";

    /**
     * 商户重新报备，已报备过的商户可以重新报备
     */
    public static String MER_REPORT_AGAIN = "https://ysgate.ysepay.com/openapi/smsc/saas/sweep/reportAgain";



    /**
     * 发起方交易号
     */
    private String srcMerchantNo;

    @Value("agentNoV2")
    private String agentNo;

    public static final String INTERFACE_VERSION = "v3";

    public static final String REQ_SUCCESS = "00000";

    public static final String BIZ_SUCCESS = "0000";

    public static final String AUDIT_NOTIFY_URL = "https://ky.sxczgkj.cn/api/auditCallback/ysV3";

    public static final String AUDIT_SIGN_NOTIFY_URL = "https://www.shouyinbei.net/api/auditCallback/ysSignV3";

    /** 成功 */
    public static final String STATUS_SUCCESS = "00";

    /** 审核中 */
    public static final String STATUS_IN_AUDIT = "02";

    /** 转人工审核 */
    public static final String STATUS_TO_MANUAL = "10";

    /** 拒绝 */
    public static final String STATUS_REFUSE = "90";

    /** 签约拒绝，主动查询时候会存在该状态 */
    public static final String STATUS_SIGN_REFUSE = "04";

    /** 错误 */
    public static final String STATUS_FAIL = "99";
}
