tencentcloud-sdk-af 1.0.200

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ca5b387fb3368dccb4428a949f87cdd49fe7777c
4
+ data.tar.gz: a181afd530c4699955b303c72572b4b1cfc991e0
5
+ SHA512:
6
+ metadata.gz: 0527b36d566575ef25725fd606483edbc454d7263d145b91bff1bf95de665ba44978ad9757bad3cc1f625344e6bc1fc2a3b3b11c29b9aa1aba95e09231a7c95c
7
+ data.tar.gz: c2fd13204247aba0d21dfc5989cc1f6560b9e6856c5dbb7709c4faf12bf39b76b35dd0d86151d99efa71f50c31e2e5362f53f7571cc055d84c9214b20cec7ec7
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20200226/client'
6
+ require_relative 'v20200226/models'
7
+
8
+ module TencentCloud
9
+ module Af
10
+ end
11
+ end
@@ -0,0 +1,88 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Af
21
+ module V20200226
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-02-26'
26
+ api_endpoint = 'af.tencentcloudapi.com'
27
+ sdk_version = 'AF_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 天御反欺诈服务,主要应用于银行、证券、保险、消费金融等金融行业客户,通过腾讯的大数据风控能力,
33
+ # 可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
34
+ # 的损失。
35
+
36
+ # @param request: Request instance for DescribeAntiFraud.
37
+ # @type request: :class:`Tencentcloud::af::V20200226::DescribeAntiFraudRequest`
38
+ # @rtype: :class:`Tencentcloud::af::V20200226::DescribeAntiFraudResponse`
39
+ def DescribeAntiFraud(request)
40
+ body = send_request('DescribeAntiFraud', request.serialize)
41
+ response = JSON.parse(body)
42
+ if response['Response'].key?('Error') == false
43
+ model = DescribeAntiFraudResponse.new
44
+ model.deserialize(response['Response'])
45
+ model
46
+ else
47
+ code = response['Response']['Error']['Code']
48
+ message = response['Response']['Error']['Message']
49
+ reqid = response['Response']['RequestId']
50
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
51
+ end
52
+ rescue TencentCloud::Common::TencentCloudSDKException => e
53
+ raise e
54
+ rescue StandardError => e
55
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
56
+ end
57
+
58
+ # 天御反欺诈服务,主要应用于银行、证券、保险、消费金融等金融行业客户,通过腾讯的大数据风控能力,
59
+ # 可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
60
+ # 的损失。
61
+
62
+ # @param request: Request instance for QueryAntiFraud.
63
+ # @type request: :class:`Tencentcloud::af::V20200226::QueryAntiFraudRequest`
64
+ # @rtype: :class:`Tencentcloud::af::V20200226::QueryAntiFraudResponse`
65
+ def QueryAntiFraud(request)
66
+ body = send_request('QueryAntiFraud', request.serialize)
67
+ response = JSON.parse(body)
68
+ if response['Response'].key?('Error') == false
69
+ model = QueryAntiFraudResponse.new
70
+ model.deserialize(response['Response'])
71
+ model
72
+ else
73
+ code = response['Response']['Error']['Code']
74
+ message = response['Response']['Error']['Message']
75
+ reqid = response['Response']['RequestId']
76
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
77
+ end
78
+ rescue TencentCloud::Common::TencentCloudSDKException => e
79
+ raise e
80
+ rescue StandardError => e
81
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
82
+ end
83
+
84
+
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,473 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Af
19
+ module V20200226
20
+ # DescribeAntiFraud请求参数结构体
21
+ class DescribeAntiFraudRequest < TencentCloud::Common::AbstractModel
22
+ # @param BusinessSecurityData: 原始业务入参(二选一)
23
+ # @type BusinessSecurityData: :class:`Tencentcloud::Af.v20200226.models.FinanceAntiFraudFilter`
24
+ # @param BusinessCryptoData: 密文业务入参(二选一)
25
+ # @type BusinessCryptoData: :class:`Tencentcloud::Af.v20200226.models.FinanceAntiFraudCryptoFilter`
26
+
27
+ attr_accessor :BusinessSecurityData, :BusinessCryptoData
28
+
29
+ def initialize(businesssecuritydata=nil, businesscryptodata=nil)
30
+ @BusinessSecurityData = businesssecuritydata
31
+ @BusinessCryptoData = businesscryptodata
32
+ end
33
+
34
+ def deserialize(params)
35
+ unless params['BusinessSecurityData'].nil?
36
+ @BusinessSecurityData = FinanceAntiFraudFilter.new
37
+ @BusinessSecurityData.deserialize(params['BusinessSecurityData'])
38
+ end
39
+ unless params['BusinessCryptoData'].nil?
40
+ @BusinessCryptoData = FinanceAntiFraudCryptoFilter.new
41
+ @BusinessCryptoData.deserialize(params['BusinessCryptoData'])
42
+ end
43
+ end
44
+ end
45
+
46
+ # DescribeAntiFraud返回参数结构体
47
+ class DescribeAntiFraudResponse < TencentCloud::Common::AbstractModel
48
+ # @param Data: 返回结果
49
+ # 注意:此字段可能返回 null,表示取不到有效值。
50
+ # @type Data: :class:`Tencentcloud::Af.v20200226.models.FinanceAntiFraudRecord`
51
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
52
+ # @type RequestId: String
53
+
54
+ attr_accessor :Data, :RequestId
55
+
56
+ def initialize(data=nil, requestid=nil)
57
+ @Data = data
58
+ @RequestId = requestid
59
+ end
60
+
61
+ def deserialize(params)
62
+ unless params['Data'].nil?
63
+ @Data = FinanceAntiFraudRecord.new
64
+ @Data.deserialize(params['Data'])
65
+ end
66
+ @RequestId = params['RequestId']
67
+ end
68
+ end
69
+
70
+ # 借贷反欺诈密文业务入参
71
+ class FinanceAntiFraudCryptoFilter < TencentCloud::Common::AbstractModel
72
+ # @param CryptoType: 值1定义:AES加密方式[加密模式ECB;填充格式pkcs7padding;秘钥16字节即128位
73
+ # @type CryptoType: String
74
+ # @param CryptoContent: 业务字段BusinessSecurityData的json数据格式,采用CryptoType相应的加密方式计算后得到的bash64编码内容。比如对{"PhoneNumber":"13430420001","IdNumber":"420115199501010001","BankCardNumber":"6214000100010001"}包体做加密。
75
+ # @type CryptoContent: String
76
+
77
+ attr_accessor :CryptoType, :CryptoContent
78
+
79
+ def initialize(cryptotype=nil, cryptocontent=nil)
80
+ @CryptoType = cryptotype
81
+ @CryptoContent = cryptocontent
82
+ end
83
+
84
+ def deserialize(params)
85
+ @CryptoType = params['CryptoType']
86
+ @CryptoContent = params['CryptoContent']
87
+ end
88
+ end
89
+
90
+ # 借贷反欺诈原始业务入参
91
+ class FinanceAntiFraudFilter < TencentCloud::Common::AbstractModel
92
+ # @param PhoneNumber: 电话号码(五选二)
93
+ # @type PhoneNumber: String
94
+ # @param IdNumber: 身份证Id(五选二) 参数详细定义请加微信:TYXGJ-01
95
+ # @type IdNumber: String
96
+ # @param BankCardNumber: 银行卡号(五选二)
97
+ # @type BankCardNumber: String
98
+ # @param UserIp: 用户请求来源 IP(五选二)
99
+ # @type UserIp: String
100
+ # @param Imei: 国际移动设备识别码(五选二)
101
+ # @type Imei: String
102
+ # @param Idfa: ios 系统广告标示符(五选二)
103
+ # @type Idfa: String
104
+ # @param Scene: 业务场景ID,需要找技术对接
105
+ # @type Scene: String
106
+ # @param Name: 姓名
107
+ # @type Name: String
108
+ # @param EmailAddress: 用户邮箱地址
109
+ # @type EmailAddress: String
110
+ # @param Address: 用户住址
111
+ # @type Address: String
112
+ # @param Mac: MAC 地址
113
+ # @type Mac: String
114
+ # @param Imsi: 国际移动用户识别码
115
+ # @type Imsi: String
116
+ # @param AccountType: 1:关联的腾讯帐号QQ;2:开放帐号微信
117
+ # @type AccountType: String
118
+ # @param Uid: 可选的 QQ 或微信 openid
119
+ # @type Uid: String
120
+ # @param AppIdU: qq 或微信分配给网站或应用的 appid,用来唯一标识网站或应用
121
+ # @type AppIdU: String
122
+ # @param WifiMac: WIFI MAC
123
+ # @type WifiMac: String
124
+ # @param WifiSSID: WIFI 服务集标识
125
+ # @type WifiSSID: String
126
+ # @param WifiBSSID: WIFI-BSSID
127
+ # @type WifiBSSID: String
128
+ # @param BusinessId: 业务 ID,在多个业务中使用此服务,通过此ID 区分统计数据
129
+ # @type BusinessId: String
130
+ # @param PhoneCryptoType: 手机号加密类型 0:不加密(默认值);1:md5;2:sha256;3:SM3
131
+ # @type PhoneCryptoType: String
132
+ # @param IdCryptoType: 身份证Id加密类型 0:不加密(默认值);1:md5;2:sha256;3:SM3
133
+ # @type IdCryptoType: String
134
+ # @param NameCryptoType: 姓名加密类型 0:不加密(默认值);1:md5;2:sha256;3:SM3
135
+ # @type NameCryptoType: String
136
+
137
+ attr_accessor :PhoneNumber, :IdNumber, :BankCardNumber, :UserIp, :Imei, :Idfa, :Scene, :Name, :EmailAddress, :Address, :Mac, :Imsi, :AccountType, :Uid, :AppIdU, :WifiMac, :WifiSSID, :WifiBSSID, :BusinessId, :PhoneCryptoType, :IdCryptoType, :NameCryptoType
138
+
139
+ def initialize(phonenumber=nil, idnumber=nil, bankcardnumber=nil, userip=nil, imei=nil, idfa=nil, scene=nil, name=nil, emailaddress=nil, address=nil, mac=nil, imsi=nil, accounttype=nil, uid=nil, appidu=nil, wifimac=nil, wifissid=nil, wifibssid=nil, businessid=nil, phonecryptotype=nil, idcryptotype=nil, namecryptotype=nil)
140
+ @PhoneNumber = phonenumber
141
+ @IdNumber = idnumber
142
+ @BankCardNumber = bankcardnumber
143
+ @UserIp = userip
144
+ @Imei = imei
145
+ @Idfa = idfa
146
+ @Scene = scene
147
+ @Name = name
148
+ @EmailAddress = emailaddress
149
+ @Address = address
150
+ @Mac = mac
151
+ @Imsi = imsi
152
+ @AccountType = accounttype
153
+ @Uid = uid
154
+ @AppIdU = appidu
155
+ @WifiMac = wifimac
156
+ @WifiSSID = wifissid
157
+ @WifiBSSID = wifibssid
158
+ @BusinessId = businessid
159
+ @PhoneCryptoType = phonecryptotype
160
+ @IdCryptoType = idcryptotype
161
+ @NameCryptoType = namecryptotype
162
+ end
163
+
164
+ def deserialize(params)
165
+ @PhoneNumber = params['PhoneNumber']
166
+ @IdNumber = params['IdNumber']
167
+ @BankCardNumber = params['BankCardNumber']
168
+ @UserIp = params['UserIp']
169
+ @Imei = params['Imei']
170
+ @Idfa = params['Idfa']
171
+ @Scene = params['Scene']
172
+ @Name = params['Name']
173
+ @EmailAddress = params['EmailAddress']
174
+ @Address = params['Address']
175
+ @Mac = params['Mac']
176
+ @Imsi = params['Imsi']
177
+ @AccountType = params['AccountType']
178
+ @Uid = params['Uid']
179
+ @AppIdU = params['AppIdU']
180
+ @WifiMac = params['WifiMac']
181
+ @WifiSSID = params['WifiSSID']
182
+ @WifiBSSID = params['WifiBSSID']
183
+ @BusinessId = params['BusinessId']
184
+ @PhoneCryptoType = params['PhoneCryptoType']
185
+ @IdCryptoType = params['IdCryptoType']
186
+ @NameCryptoType = params['NameCryptoType']
187
+ end
188
+ end
189
+
190
+ # 借贷反欺查询返回结果出参
191
+ class FinanceAntiFraudRecord < TencentCloud::Common::AbstractModel
192
+ # @param Found: 表示该条记录能否查到:1为能查到,-1为查不到
193
+ # 注意:此字段可能返回 null,表示取不到有效值。
194
+ # @type Found: String
195
+ # @param IdFound: 表示该条Id能否查到:1为能查到,-1为查不到
196
+ # 注意:此字段可能返回 null,表示取不到有效值。
197
+ # @type IdFound: String
198
+ # @param RiskScore: 评分0~100;值越高 欺诈可能性越大
199
+ # 注意:此字段可能返回 null,表示取不到有效值。
200
+ # @type RiskScore: String
201
+ # @param RiskInfo: 扩展字段,对风险类型的说明
202
+ # 注意:此字段可能返回 null,表示取不到有效值。
203
+ # @type RiskInfo: Array
204
+ # @param OtherModelScores: 多模型返回结果
205
+ # 注意:此字段可能返回 null,表示取不到有效值。
206
+ # @type OtherModelScores: Array
207
+ # @param Code: 业务侧错误码。成功时返回0,错误时返回非0值
208
+ # 注意:此字段可能返回 null,表示取不到有效值。
209
+ # @type Code: String
210
+ # @param Message: 业务侧错误信息。成功时返回Success,错误时返回具体业务错误原因。
211
+ # 注意:此字段可能返回 null,表示取不到有效值
212
+ # 注意:此字段可能返回 null,表示取不到有效值。
213
+ # @type Message: String
214
+
215
+ attr_accessor :Found, :IdFound, :RiskScore, :RiskInfo, :OtherModelScores, :Code, :Message
216
+
217
+ def initialize(found=nil, idfound=nil, riskscore=nil, riskinfo=nil, othermodelscores=nil, code=nil, message=nil)
218
+ @Found = found
219
+ @IdFound = idfound
220
+ @RiskScore = riskscore
221
+ @RiskInfo = riskinfo
222
+ @OtherModelScores = othermodelscores
223
+ @Code = code
224
+ @Message = message
225
+ end
226
+
227
+ def deserialize(params)
228
+ @Found = params['Found']
229
+ @IdFound = params['IdFound']
230
+ @RiskScore = params['RiskScore']
231
+ unless params['RiskInfo'].nil?
232
+ @RiskInfo = []
233
+ params['RiskInfo'].each do |i|
234
+ riskdetailinfo_tmp = RiskDetailInfo.new
235
+ riskdetailinfo_tmp.deserialize(i)
236
+ @RiskInfo << riskdetailinfo_tmp
237
+ end
238
+ end
239
+ unless params['OtherModelScores'].nil?
240
+ @OtherModelScores = []
241
+ params['OtherModelScores'].each do |i|
242
+ financeothermodelscores_tmp = FinanceOtherModelScores.new
243
+ financeothermodelscores_tmp.deserialize(i)
244
+ @OtherModelScores << financeothermodelscores_tmp
245
+ end
246
+ end
247
+ @Code = params['Code']
248
+ @Message = params['Message']
249
+ end
250
+ end
251
+
252
+ # 借贷反欺返回结果出参中的多模型返回结果
253
+ class FinanceOtherModelScores < TencentCloud::Common::AbstractModel
254
+ # @param ModelId: 模型ID序号
255
+ # 注意:此字段可能返回 null,表示取不到有效值。
256
+ # @type ModelId: String
257
+ # @param ModelScore: 模型ID序号对应的评分结果
258
+ # 注意:此字段可能返回 null,表示取不到有效值。
259
+ # @type ModelScore: String
260
+
261
+ attr_accessor :ModelId, :ModelScore
262
+
263
+ def initialize(modelid=nil, modelscore=nil)
264
+ @ModelId = modelid
265
+ @ModelScore = modelscore
266
+ end
267
+
268
+ def deserialize(params)
269
+ @ModelId = params['ModelId']
270
+ @ModelScore = params['ModelScore']
271
+ end
272
+ end
273
+
274
+ # QueryAntiFraud请求参数结构体
275
+ class QueryAntiFraudRequest < TencentCloud::Common::AbstractModel
276
+ # @param PhoneNumber: 电话号码(五选二)
277
+ # @type PhoneNumber: String
278
+ # @param IdNumber: Id(五选二)
279
+ # @type IdNumber: String
280
+ # @param BankCardNumber: 银行卡号(五选二)
281
+ # @type BankCardNumber: String
282
+ # @param UserIp: 用户请求来源 IP(五选二)
283
+ # @type UserIp: String
284
+ # @param Imei: 国际移动设备识别码(五选二)
285
+ # @type Imei: String
286
+ # @param Idfa: ios 系统广告标示符(五选二)
287
+ # @type Idfa: String
288
+ # @param Scene: 业务场景 ID,需要找技术对接
289
+ # @type Scene: String
290
+ # @param Name: 姓名
291
+ # @type Name: String
292
+ # @param EmailAddress: 用户邮箱地址
293
+ # @type EmailAddress: String
294
+ # @param Address: 用户住址
295
+ # @type Address: String
296
+ # @param Mac: MAC 地址
297
+ # @type Mac: String
298
+ # @param Imsi: 国际移动用户识别码
299
+ # @type Imsi: String
300
+ # @param AccountType: 关联的腾讯帐号 QQ:1;
301
+ # 开放帐号微信: 2;
302
+ # @type AccountType: String
303
+ # @param Uid: 可选的 QQ 或微信 openid
304
+ # @type Uid: String
305
+ # @param AppIdU: qq 或微信分配给网站或应用的 appid,用来
306
+ # 唯一标识网站或应用
307
+ # @type AppIdU: String
308
+ # @param WifiMac: WIFI MAC
309
+ # @type WifiMac: String
310
+ # @param WifiSSID: WIFI 服务集标识
311
+ # @type WifiSSID: String
312
+ # @param WifiBSSID: WIFI-BSSID
313
+ # @type WifiBSSID: String
314
+ # @param BusinessId: 业务 ID,在多个业务中使用此服务,通过此
315
+ # ID 区分统计数据
316
+ # @type BusinessId: String
317
+ # @param IdCryptoType: Id加密类型
318
+ # 0:不加密(默认值)
319
+ # 1:md5
320
+ # 2:sha256
321
+ # 3:SM3
322
+ # @type IdCryptoType: String
323
+ # @param PhoneCryptoType: 手机号加密类型
324
+ # 0:不加密(默认值)
325
+ # 1:md5, 2:sha256
326
+ # 3:SM3
327
+ # @type PhoneCryptoType: String
328
+ # @param NameCryptoType: 姓名加密类型
329
+ # 0:不加密(默认值)
330
+ # 1:md5
331
+ # 2:sha256
332
+ # 3:SM3
333
+ # @type NameCryptoType: String
334
+
335
+ attr_accessor :PhoneNumber, :IdNumber, :BankCardNumber, :UserIp, :Imei, :Idfa, :Scene, :Name, :EmailAddress, :Address, :Mac, :Imsi, :AccountType, :Uid, :AppIdU, :WifiMac, :WifiSSID, :WifiBSSID, :BusinessId, :IdCryptoType, :PhoneCryptoType, :NameCryptoType
336
+
337
+ def initialize(phonenumber=nil, idnumber=nil, bankcardnumber=nil, userip=nil, imei=nil, idfa=nil, scene=nil, name=nil, emailaddress=nil, address=nil, mac=nil, imsi=nil, accounttype=nil, uid=nil, appidu=nil, wifimac=nil, wifissid=nil, wifibssid=nil, businessid=nil, idcryptotype=nil, phonecryptotype=nil, namecryptotype=nil)
338
+ @PhoneNumber = phonenumber
339
+ @IdNumber = idnumber
340
+ @BankCardNumber = bankcardnumber
341
+ @UserIp = userip
342
+ @Imei = imei
343
+ @Idfa = idfa
344
+ @Scene = scene
345
+ @Name = name
346
+ @EmailAddress = emailaddress
347
+ @Address = address
348
+ @Mac = mac
349
+ @Imsi = imsi
350
+ @AccountType = accounttype
351
+ @Uid = uid
352
+ @AppIdU = appidu
353
+ @WifiMac = wifimac
354
+ @WifiSSID = wifissid
355
+ @WifiBSSID = wifibssid
356
+ @BusinessId = businessid
357
+ @IdCryptoType = idcryptotype
358
+ @PhoneCryptoType = phonecryptotype
359
+ @NameCryptoType = namecryptotype
360
+ end
361
+
362
+ def deserialize(params)
363
+ @PhoneNumber = params['PhoneNumber']
364
+ @IdNumber = params['IdNumber']
365
+ @BankCardNumber = params['BankCardNumber']
366
+ @UserIp = params['UserIp']
367
+ @Imei = params['Imei']
368
+ @Idfa = params['Idfa']
369
+ @Scene = params['Scene']
370
+ @Name = params['Name']
371
+ @EmailAddress = params['EmailAddress']
372
+ @Address = params['Address']
373
+ @Mac = params['Mac']
374
+ @Imsi = params['Imsi']
375
+ @AccountType = params['AccountType']
376
+ @Uid = params['Uid']
377
+ @AppIdU = params['AppIdU']
378
+ @WifiMac = params['WifiMac']
379
+ @WifiSSID = params['WifiSSID']
380
+ @WifiBSSID = params['WifiBSSID']
381
+ @BusinessId = params['BusinessId']
382
+ @IdCryptoType = params['IdCryptoType']
383
+ @PhoneCryptoType = params['PhoneCryptoType']
384
+ @NameCryptoType = params['NameCryptoType']
385
+ end
386
+ end
387
+
388
+ # QueryAntiFraud返回参数结构体
389
+ class QueryAntiFraudResponse < TencentCloud::Common::AbstractModel
390
+ # @param Found: 表示该条记录能否查到:1为能查到,-1为查不到
391
+ # @type Found: Integer
392
+ # @param IdFound: 表示该条Id能否查到:1为能查到,-1为查不到
393
+ # @type IdFound: Integer
394
+ # @param RiskScore: 0~100;值越高 欺诈可能性越大
395
+ # @type RiskScore: Integer
396
+ # @param RiskInfo: 扩展字段,对风险类型的说明
397
+ # @type RiskInfo: Array
398
+ # @param CodeDesc: 业务侧错误码。成功时返回Success,错误时返回具体业务错误原因。
399
+ # 注意:此字段可能返回 null,表示取不到有效值。
400
+ # @type CodeDesc: String
401
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
402
+ # @type RequestId: String
403
+
404
+ attr_accessor :Found, :IdFound, :RiskScore, :RiskInfo, :CodeDesc, :RequestId
405
+
406
+ def initialize(found=nil, idfound=nil, riskscore=nil, riskinfo=nil, codedesc=nil, requestid=nil)
407
+ @Found = found
408
+ @IdFound = idfound
409
+ @RiskScore = riskscore
410
+ @RiskInfo = riskinfo
411
+ @CodeDesc = codedesc
412
+ @RequestId = requestid
413
+ end
414
+
415
+ def deserialize(params)
416
+ @Found = params['Found']
417
+ @IdFound = params['IdFound']
418
+ @RiskScore = params['RiskScore']
419
+ unless params['RiskInfo'].nil?
420
+ @RiskInfo = []
421
+ params['RiskInfo'].each do |i|
422
+ riskdetail_tmp = RiskDetail.new
423
+ riskdetail_tmp.deserialize(i)
424
+ @RiskInfo << riskdetail_tmp
425
+ end
426
+ end
427
+ @CodeDesc = params['CodeDesc']
428
+ @RequestId = params['RequestId']
429
+ end
430
+ end
431
+
432
+ # 扩展字段,对风险类型的说明
433
+ class RiskDetail < TencentCloud::Common::AbstractModel
434
+ # @param RiskCode: 风险码 参数详细定义请加微信:TYXGJ-01
435
+ # @type RiskCode: Integer
436
+
437
+ attr_accessor :RiskCode
438
+
439
+ def initialize(riskcode=nil)
440
+ @RiskCode = riskcode
441
+ end
442
+
443
+ def deserialize(params)
444
+ @RiskCode = params['RiskCode']
445
+ end
446
+ end
447
+
448
+ # 金融借贷反欺诈 风险码输出类型
449
+ class RiskDetailInfo < TencentCloud::Common::AbstractModel
450
+ # @param RiskCode: 风险码
451
+ # 注意:此字段可能返回 null,表示取不到有效值。
452
+ # @type RiskCode: String
453
+ # @param RiskValue: 风险码对应的风险值
454
+ # 注意:此字段可能返回 null,表示取不到有效值。
455
+ # @type RiskValue: String
456
+
457
+ attr_accessor :RiskCode, :RiskValue
458
+
459
+ def initialize(riskcode=nil, riskvalue=nil)
460
+ @RiskCode = riskcode
461
+ @RiskValue = riskvalue
462
+ end
463
+
464
+ def deserialize(params)
465
+ @RiskCode = params['RiskCode']
466
+ @RiskValue = params['RiskValue']
467
+ end
468
+ end
469
+
470
+ end
471
+ end
472
+ end
473
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-af
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.200
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ AF.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-af.rb
38
+ - lib/v20200226/client.rb
39
+ - lib/v20200226/models.rb
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-af
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - AF
66
+ test_files: []