zbb378@sohu.com
2024-11-04 b2bad51be3c8d3e78d7f81a19415faeac2d0297c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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);
}