/
PartnersClient.java
253 lines (229 loc) · 11.1 KB
/
PartnersClient.java
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.partners.v20180321;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.partners.v20180321.models.*;
public class PartnersClient extends AbstractClient{
private static String endpoint = "partners.tencentcloudapi.com";
private static String service = "partners";
private static String version = "2018-03-21";
public PartnersClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public PartnersClient(Credential credential, String region, ClientProfile profile) {
super(PartnersClient.endpoint, PartnersClient.version, credential, region, profile);
}
/**
*代理商支付订单接口,支持自付/代付
* @param req AgentPayDealsRequest
* @return AgentPayDealsResponse
* @throws TencentCloudSDKException
*/
public AgentPayDealsResponse AgentPayDeals(AgentPayDealsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AgentPayDeals", AgentPayDealsResponse.class);
}
/**
*为合作伙伴提供转账给客户能力。仅支持合作伙伴为自己名下客户转账。
* @param req AgentTransferMoneyRequest
* @return AgentTransferMoneyResponse
* @throws TencentCloudSDKException
*/
public AgentTransferMoneyResponse AgentTransferMoney(AgentTransferMoneyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AgentTransferMoney", AgentTransferMoneyResponse.class);
}
/**
*为代客or申请中代客分派跟进人(业务员),入参可从以下API获取
- 代客列表获取API: [DescribeAgentAuditedClients](https://cloud.tencent.com/document/product/563/19184)
- 申请中代客列表获取API:[DescribeAgentClients](https://cloud.tencent.com/document/product/563/16046)
- 业务员列表获取API:[DescribeSalesmans](https://cloud.tencent.com/document/product/563/35196) <br><br>
* @param req AssignClientsToSalesRequest
* @return AssignClientsToSalesResponse
* @throws TencentCloudSDKException
*/
public AssignClientsToSalesResponse AssignClientsToSales(AssignClientsToSalesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssignClientsToSales", AssignClientsToSalesResponse.class);
}
/**
*代理商可以审核其名下申请中代客
* @param req AuditApplyClientRequest
* @return AuditApplyClientResponse
* @throws TencentCloudSDKException
*/
public AuditApplyClientResponse AuditApplyClient(AuditApplyClientRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AuditApplyClient", AuditApplyClientResponse.class);
}
/**
*合作伙伴为客户创建强代付关系
* @param req CreatePayRelationForClientRequest
* @return CreatePayRelationForClientResponse
* @throws TencentCloudSDKException
*/
public CreatePayRelationForClientResponse CreatePayRelationForClient(CreatePayRelationForClientRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreatePayRelationForClient", CreatePayRelationForClientResponse.class);
}
/**
*查询已审核客户列表
* @param req DescribeAgentAuditedClientsRequest
* @return DescribeAgentAuditedClientsResponse
* @throws TencentCloudSDKException
*/
public DescribeAgentAuditedClientsResponse DescribeAgentAuditedClients(DescribeAgentAuditedClientsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAgentAuditedClients", DescribeAgentAuditedClientsResponse.class);
}
/**
*代理商可查询自己及名下代客所有业务明细
* @param req DescribeAgentBillsRequest
* @return DescribeAgentBillsResponse
* @throws TencentCloudSDKException
*/
public DescribeAgentBillsResponse DescribeAgentBills(DescribeAgentBillsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAgentBills", DescribeAgentBillsResponse.class);
}
/**
*传入代客uin,查客户级别,客户审核状态,客户实名认证状态
* @param req DescribeAgentClientGradeRequest
* @return DescribeAgentClientGradeResponse
* @throws TencentCloudSDKException
*/
public DescribeAgentClientGradeResponse DescribeAgentClientGrade(DescribeAgentClientGradeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAgentClientGrade", DescribeAgentClientGradeResponse.class);
}
/**
*代理商可查询自己名下待审核客户列表
* @param req DescribeAgentClientsRequest
* @return DescribeAgentClientsResponse
* @throws TencentCloudSDKException
*/
public DescribeAgentClientsResponse DescribeAgentClients(DescribeAgentClientsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAgentClients", DescribeAgentClientsResponse.class);
}
/**
*供代理商拉取缓存的全量预付费客户订单
* @param req DescribeAgentDealsByCacheRequest
* @return DescribeAgentDealsByCacheResponse
* @throws TencentCloudSDKException
*/
public DescribeAgentDealsByCacheResponse DescribeAgentDealsByCache(DescribeAgentDealsByCacheRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAgentDealsByCache", DescribeAgentDealsByCacheResponse.class);
}
/**
*可以查询代理商代付的预付费订单
* @param req DescribeAgentPayDealsV2Request
* @return DescribeAgentPayDealsV2Response
* @throws TencentCloudSDKException
*/
public DescribeAgentPayDealsV2Response DescribeAgentPayDealsV2(DescribeAgentPayDealsV2Request req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAgentPayDealsV2", DescribeAgentPayDealsV2Response.class);
}
/**
*查询代理商名下指定代客的自付订单(预付费)
* @param req DescribeAgentSelfPayDealsV2Request
* @return DescribeAgentSelfPayDealsV2Response
* @throws TencentCloudSDKException
*/
public DescribeAgentSelfPayDealsV2Response DescribeAgentSelfPayDealsV2(DescribeAgentSelfPayDealsV2Request req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAgentSelfPayDealsV2", DescribeAgentSelfPayDealsV2Response.class);
}
/**
*为合作伙伴提供查询客户余额能力。调用者必须是合作伙伴,只能查询自己名下客户余额
* @param req DescribeClientBalanceNewRequest
* @return DescribeClientBalanceNewResponse
* @throws TencentCloudSDKException
*/
public DescribeClientBalanceNewResponse DescribeClientBalanceNew(DescribeClientBalanceNewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeClientBalanceNew", DescribeClientBalanceNewResponse.class);
}
/**
*【该接口已下线,请切换使用升级版本DescribeRebateInfosNew】代理商可查询自己名下全部返佣信息
* @param req DescribeRebateInfosRequest
* @return DescribeRebateInfosResponse
* @throws TencentCloudSDKException
*/
public DescribeRebateInfosResponse DescribeRebateInfos(DescribeRebateInfosRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRebateInfos", DescribeRebateInfosResponse.class);
}
/**
*代理商可查询自己名下全部返佣信息
* @param req DescribeRebateInfosNewRequest
* @return DescribeRebateInfosNewResponse
* @throws TencentCloudSDKException
*/
public DescribeRebateInfosNewResponse DescribeRebateInfosNew(DescribeRebateInfosNewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRebateInfosNew", DescribeRebateInfosNewResponse.class);
}
/**
*代理商查询名下业务员列表信息
* @param req DescribeSalesmansRequest
* @return DescribeSalesmansResponse
* @throws TencentCloudSDKException
*/
public DescribeSalesmansResponse DescribeSalesmans(DescribeSalesmansRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSalesmans", DescribeSalesmansResponse.class);
}
/**
*代理商名下客户解绑记录查询接口
* @param req DescribeUnbindClientListRequest
* @return DescribeUnbindClientListResponse
* @throws TencentCloudSDKException
*/
public DescribeUnbindClientListResponse DescribeUnbindClientList(DescribeUnbindClientListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeUnbindClientList", DescribeUnbindClientListResponse.class);
}
/**
*代理商可以对名下客户添加备注、修改备注
* @param req ModifyClientRemarkRequest
* @return ModifyClientRemarkResponse
* @throws TencentCloudSDKException
*/
public ModifyClientRemarkResponse ModifyClientRemark(ModifyClientRemarkRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyClientRemark", ModifyClientRemarkResponse.class);
}
/**
*合作伙伴为客户消除强代付关系
* @param req RemovePayRelationForClientRequest
* @return RemovePayRelationForClientResponse
* @throws TencentCloudSDKException
*/
public RemovePayRelationForClientResponse RemovePayRelationForClient(RemovePayRelationForClientRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "RemovePayRelationForClient", RemovePayRelationForClientResponse.class);
}
}