package org.dromara.payment.worker.service;

import org.dromara.payment.worker.domain.ThirdConf;

/**
 * @author sunzexing
 * @version 1.0
 * @title IIdCardAndOtherService
 * @description  身份证，银行卡验证等三方接口
 * @create 2024-04-28 16:31
 */
public interface IIdCardAndOtherService {



    /***
     * 身份证二要素认证
     * @param name
     * @param idCard
     * @throws Exception
     */
    boolean cardId2(String name, String idCard, String code) throws Exception;


    /***
     * 银行卡四要素认证
     * @param bankCard
     * @param name
     * @param phone
     * @param idCard
     * @return
     * @throws Exception
     */
    boolean bankCard4(String bankCard,String name,String phone,String idCard,String code)throws Exception;


    /***
     * 银行卡三要素认证
     * @param bankCard
     * @param name
     * @param idCard
     * @return
     * @throws Exception
     */
    boolean bankCard3(String bankCard,String name,String idCard,String code)throws Exception;



    /***
     * 身份证二要素认证
     * @param name
     * @param idCard
     * @param config
     * @return
     * @throws Exception
     */
    boolean cardId2(String name, String idCard, ThirdConf config) throws Exception;


    /***
     * 银行卡四要素认证
     * @param bankCard
     * @param name
     * @param phone
     * @param idCard
     * @param conf
     * @return
     * @throws Exception
     */
    boolean bankCard4(String bankCard,String name,String phone,String idCard,ThirdConf conf)throws Exception;


    /***
     * 银行卡三要素认证
     * @param bankCard
     * @param name
     * @param idCard
     * @param conf
     * @return
     * @throws Exception
     */
    boolean bankCard3(String bankCard,String name,String idCard,ThirdConf conf)throws Exception;



}
