package com.nova.sankuai.service;
|
|
import com.nova.sankuai.domain.api.yixin.response.YXAuditResponse;
|
import com.nova.sankuai.domain.api.yixin.response.YXCreditLimitResponse;
|
import com.nova.sankuai.domain.api.yixin.response.YxLoanResultQueryResponse;
|
import com.nova.sankuai.domain.api.yixin.response.YxRepaymentResultResponse;
|
import com.nova.sankuai.domain.entity.CustomerCapitalResult;
|
import com.nova.sankuai.domain.entity.YqgRepayOrder;
|
import com.nova.sankuai.infra.utils.ResultJson;
|
import com.nova.sankuai.security.UserDetail;
|
|
import java.util.Map;
|
|
/**
|
* @author weikangdi
|
* @create 2022/3/15
|
*/
|
public interface IYiXinService {
|
|
/**
|
* 获取人脸核身的SIGN和NONCE信息
|
* @param phone
|
* @param channelInfo
|
* @param idNo
|
* @param name
|
* @return
|
*/
|
ResultJson getTXFaceInfo(String phone, String name, String idNo, String channelInfo);
|
|
/**
|
* 获取ocr签名信息
|
* @param phone
|
* @param channelInfo
|
* @return
|
*/
|
ResultJson getTXOcrInfo(String phone, String channelInfo);
|
|
/**
|
* 宜信合同信息
|
* @param userDetail
|
* @return
|
*/
|
ResultJson getYxContractListQuery(UserDetail userDetail);
|
|
/**
|
* 绿地授信审批结果通知
|
* @param request
|
* @return
|
* @throws Exception
|
*/
|
String yxAuditCallback(Map<String, String> request) throws Exception;
|
|
/**
|
* 授信审批查询
|
* @param phone
|
* @return
|
*/
|
YXAuditResponse getYxCreditAudit(String phone);
|
|
/**
|
*额度查询接口
|
* @param userDetail
|
* @return
|
*/
|
YXCreditLimitResponse getYxCreditLimit(UserDetail userDetail);
|
|
/**
|
* 上传base64图片
|
* @param base64Info
|
* @return
|
*/
|
ResultJson uploadBase64File(String base64Info);
|
|
/**
|
* 绿地用信结果通知接口
|
* @param request
|
* @throws Exception
|
* @return
|
*/
|
String yxLoanApplyCallback(Map<String, String> request) throws Exception ;
|
|
/**
|
* 根据绿地授信审批回调或主动授信查询更新资方结果信息
|
* @param capitalResult
|
* @param yxResponse
|
* @return
|
*/
|
CustomerCapitalResult updateByApprovalReturn(CustomerCapitalResult capitalResult, YXAuditResponse yxResponse);
|
|
/**
|
* 根据绿地用信结果回调或主动用信查询更新资方结果信息
|
* @param capitalResult
|
* @param yxResponse
|
* @return
|
*/
|
CustomerCapitalResult updateByLoanReturn(CustomerCapitalResult capitalResult, YxLoanResultQueryResponse yxResponse);
|
|
/**
|
* 绿地还款计划变动通知
|
* @param request
|
* @return
|
*/
|
String yxRepayPlanCallback(Map<String, String> request) throws Exception;
|
|
/**
|
* 绿地还款结果通知
|
* @param request
|
* @return
|
*/
|
String yxRepayResultCallback(Map<String, String> request) throws Exception;
|
|
/**
|
* 根据绿地还款结果回调或主动还款结果查询更新还款申请
|
* @param yqgRepayOrder
|
* @param yxRepaymentResult
|
* @return
|
*/
|
YqgRepayOrder updateByRepayResultReturn(YqgRepayOrder yqgRepayOrder, YxRepaymentResultResponse yxRepaymentResult);
|
}
|