tencentcloud-sdk-af 1.0.204 → 1.0.205

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e82d766de42d3c6720d8261ff0ec7aa62e7fd4bd
4
- data.tar.gz: d69e9c49a52900d82e5743be667e6bddfdd79132
3
+ metadata.gz: 302c31239f55408cd9799d090726dd4f7920c2fc
4
+ data.tar.gz: 6428718940be8d8687011a9bb463f31d698af81e
5
5
  SHA512:
6
- metadata.gz: a0cfeccf643e5b88b03ef5c3b3fe4979e52842e45536685e98085345426422c8785476c6391a7c2659c729871f79858652b6c68ff9228a7c0baf2edcb44a9613
7
- data.tar.gz: 73c0051829cdb3d65a39fd840ed5fb806c816e78c76805d41742c0099dff16f96d8733e1b21481ff9c0812d07417462d157622cedb30bf0fe86119e4d90e338d
6
+ metadata.gz: 47b3cedddef39d34bf6a92750797c220c11611d0a8700ffca86b7529a1b093fb87ad1c0318830d81f9382e2a18765e7d7d9304790acc9ee72323402076382b81
7
+ data.tar.gz: 4a04f35c1947c359d53b75e079e4525bf416be8048fc48f8a2d3fb561c1fd204b279720feddb70124e277ab6619c938a818e2b198a95979270758d4597e126cd
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.204
1
+ 1.0.205
@@ -55,6 +55,30 @@ module TencentCloud
55
55
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
56
56
  end
57
57
 
58
+ # 反欺诈评分接口
59
+
60
+ # @param request: Request instance for GetAntiFraud.
61
+ # @type request: :class:`Tencentcloud::af::V20200226::GetAntiFraudRequest`
62
+ # @rtype: :class:`Tencentcloud::af::V20200226::GetAntiFraudResponse`
63
+ def GetAntiFraud(request)
64
+ body = send_request('GetAntiFraud', request.serialize)
65
+ response = JSON.parse(body)
66
+ if response['Response'].key?('Error') == false
67
+ model = GetAntiFraudResponse.new
68
+ model.deserialize(response['Response'])
69
+ model
70
+ else
71
+ code = response['Response']['Error']['Code']
72
+ message = response['Response']['Error']['Message']
73
+ reqid = response['Response']['RequestId']
74
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
75
+ end
76
+ rescue TencentCloud::Common::TencentCloudSDKException => e
77
+ raise e
78
+ rescue StandardError => e
79
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
80
+ end
81
+
58
82
  # 天御反欺诈服务,主要应用于银行、证券、保险、消费金融等金融行业客户,通过腾讯的大数据风控能力,
59
83
  # 可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
60
84
  # 的损失。
@@ -17,6 +17,270 @@
17
17
  module TencentCloud
18
18
  module Af
19
19
  module V20200226
20
+ # AntiFraudCryptoFilter – 业务入参
21
+ class AntiFraudCryptoFilter < TencentCloud::Common::AbstractModel
22
+ # @param CryptoType: 约定用入参,默认不涉及默认BusinessSecurityData 与BusinessCrptoData 不传
23
+ # @type CryptoType: String
24
+ # @param CryptoContent: 约定用入参,默认不涉及
25
+ # @type CryptoContent: String
26
+
27
+ attr_accessor :CryptoType, :CryptoContent
28
+
29
+ def initialize(cryptotype=nil, cryptocontent=nil)
30
+ @CryptoType = cryptotype
31
+ @CryptoContent = cryptocontent
32
+ end
33
+
34
+ def deserialize(params)
35
+ @CryptoType = params['CryptoType']
36
+ @CryptoContent = params['CryptoContent']
37
+ end
38
+ end
39
+
40
+ # AntiFraudFilter – 业务入参
41
+ class AntiFraudFilter < TencentCloud::Common::AbstractModel
42
+ # @param CustomerUin: 业务方账号 ID
43
+ # @type CustomerUin: String
44
+ # @param CustomerAppid: 业务方APPID
45
+ # @type CustomerAppid: String
46
+ # @param IdNumber: 身份证号
47
+ # 注 1:下方 idCryptoType 为指定
48
+ # 加密方式
49
+ # 注 2:若 idNumber 加密则必传加
50
+ # 密方式
51
+ # @type IdNumber: String
52
+ # @param PhoneNumber: 手机号码(注:不需要带国家代码
53
+ # 例如:13430421011)
54
+ # 注 1:下方 phoneCryptoType 为
55
+ # 指定加密方式:
56
+ # 注 2:若 phoneNumber 加密则必
57
+ # 传加密方式
58
+ # @type PhoneNumber: String
59
+ # @param Scene: 业务场景 ID
60
+ # @type Scene: String
61
+ # @param CustomerSubUin: 默认不使用,业务方子
62
+ # 账号,若接口使用密钥对应是子账
63
+ # 号则必填
64
+ # @type CustomerSubUin: String
65
+ # @param Authorization: 已获取约定标识则传 1;
66
+ # 用于基于特定需求而传的标识字段
67
+ # 注:有约定则是必传,若未传则查
68
+ # 询接口失败
69
+ # @type Authorization: String
70
+ # @param Name: 姓名
71
+ # 注 :不支持加密
72
+ # @type Name: String
73
+ # @param BankCardNumber: 银行卡号
74
+ # @type BankCardNumber: String
75
+ # @param UserIp: 用户请求来源 IP
76
+ # @type UserIp: String
77
+ # @param Imei: 国际移动设备识别码
78
+ # @type Imei: String
79
+ # @param Idfa: ios 系统广告标示符
80
+ # @type Idfa: String
81
+ # @param EmailAddress: 用户邮箱地址
82
+ # @type EmailAddress: String
83
+ # @param Address: 用户住址
84
+ # @type Address: String
85
+ # @param Mac: MAC 地址
86
+ # @type Mac: String
87
+ # @param Imsi: 国际移动用户识别码
88
+ # @type Imsi: String
89
+ # @param AccountType: 关联的腾讯帐号 QQ:1;
90
+ # 开放帐号微信: 2;
91
+ # @type AccountType: String
92
+ # @param Uid: 可选的 QQ 或微信 openid
93
+ # @type Uid: String
94
+ # @param AppIdU: qq 或微信分配给网站或应用的
95
+ # appid,用来唯一标识网站或应用
96
+ # @type AppIdU: String
97
+ # @param WifiMac: WIFIMAC
98
+ # @type WifiMac: String
99
+ # @param WifiSSID: WIFI 服务集标识
100
+ # @type WifiSSID: String
101
+ # @param WifiBSSID: WIFI-BSSID
102
+ # @type WifiBSSID: String
103
+ # @param ExtensionId: 拓展字段类型 ID
104
+ # 注:默认不填写,需要时天御侧将
105
+ # 提供
106
+ # @type ExtensionId: String
107
+ # @param ExtensionIn: 拓展字段内容
108
+ # 注:默认不填,需要时天御侧将提
109
+ # 供
110
+ # @type ExtensionIn: String
111
+ # @param BusinessId: 业务 ID,默认不传
112
+ # @type BusinessId: String
113
+ # @param IdCryptoType: 身份证加密类型
114
+ # 0:不加密(默认值)
115
+ # 1:md5
116
+ # 2:sha256
117
+ # 3:SM3
118
+ # 注:若 idNumber 加密则必传加密
119
+ # 方式
120
+ # @type IdCryptoType: String
121
+ # @param PhoneCryptoType: 手机号加密类型
122
+ # 0:不加密(默认值)
123
+ # 1:md5,
124
+ # 2:sha256
125
+ # 3:SM3
126
+ # 注:若 phoneNumber 加密则必传
127
+ # 加密方式
128
+ # @type PhoneCryptoType: String
129
+ # @param NameCryptoType: 姓名加密类型:——注:已经不支持加
130
+ # 密,该字段存在是为了兼容可能历史客户
131
+ # 版本;
132
+ # 0:不加密(默认值)
133
+ # 1:md5
134
+ # @type NameCryptoType: String
135
+
136
+ attr_accessor :CustomerUin, :CustomerAppid, :IdNumber, :PhoneNumber, :Scene, :CustomerSubUin, :Authorization, :Name, :BankCardNumber, :UserIp, :Imei, :Idfa, :EmailAddress, :Address, :Mac, :Imsi, :AccountType, :Uid, :AppIdU, :WifiMac, :WifiSSID, :WifiBSSID, :ExtensionId, :ExtensionIn, :BusinessId, :IdCryptoType, :PhoneCryptoType, :NameCryptoType
137
+
138
+ def initialize(customeruin=nil, customerappid=nil, idnumber=nil, phonenumber=nil, scene=nil, customersubuin=nil, authorization=nil, name=nil, bankcardnumber=nil, userip=nil, imei=nil, idfa=nil, emailaddress=nil, address=nil, mac=nil, imsi=nil, accounttype=nil, uid=nil, appidu=nil, wifimac=nil, wifissid=nil, wifibssid=nil, extensionid=nil, extensionin=nil, businessid=nil, idcryptotype=nil, phonecryptotype=nil, namecryptotype=nil)
139
+ @CustomerUin = customeruin
140
+ @CustomerAppid = customerappid
141
+ @IdNumber = idnumber
142
+ @PhoneNumber = phonenumber
143
+ @Scene = scene
144
+ @CustomerSubUin = customersubuin
145
+ @Authorization = authorization
146
+ @Name = name
147
+ @BankCardNumber = bankcardnumber
148
+ @UserIp = userip
149
+ @Imei = imei
150
+ @Idfa = idfa
151
+ @EmailAddress = emailaddress
152
+ @Address = address
153
+ @Mac = mac
154
+ @Imsi = imsi
155
+ @AccountType = accounttype
156
+ @Uid = uid
157
+ @AppIdU = appidu
158
+ @WifiMac = wifimac
159
+ @WifiSSID = wifissid
160
+ @WifiBSSID = wifibssid
161
+ @ExtensionId = extensionid
162
+ @ExtensionIn = extensionin
163
+ @BusinessId = businessid
164
+ @IdCryptoType = idcryptotype
165
+ @PhoneCryptoType = phonecryptotype
166
+ @NameCryptoType = namecryptotype
167
+ end
168
+
169
+ def deserialize(params)
170
+ @CustomerUin = params['CustomerUin']
171
+ @CustomerAppid = params['CustomerAppid']
172
+ @IdNumber = params['IdNumber']
173
+ @PhoneNumber = params['PhoneNumber']
174
+ @Scene = params['Scene']
175
+ @CustomerSubUin = params['CustomerSubUin']
176
+ @Authorization = params['Authorization']
177
+ @Name = params['Name']
178
+ @BankCardNumber = params['BankCardNumber']
179
+ @UserIp = params['UserIp']
180
+ @Imei = params['Imei']
181
+ @Idfa = params['Idfa']
182
+ @EmailAddress = params['EmailAddress']
183
+ @Address = params['Address']
184
+ @Mac = params['Mac']
185
+ @Imsi = params['Imsi']
186
+ @AccountType = params['AccountType']
187
+ @Uid = params['Uid']
188
+ @AppIdU = params['AppIdU']
189
+ @WifiMac = params['WifiMac']
190
+ @WifiSSID = params['WifiSSID']
191
+ @WifiBSSID = params['WifiBSSID']
192
+ @ExtensionId = params['ExtensionId']
193
+ @ExtensionIn = params['ExtensionIn']
194
+ @BusinessId = params['BusinessId']
195
+ @IdCryptoType = params['IdCryptoType']
196
+ @PhoneCryptoType = params['PhoneCryptoType']
197
+ @NameCryptoType = params['NameCryptoType']
198
+ end
199
+ end
200
+
201
+ # 反欺诈查询结果
202
+ class AntiFraudRecord < TencentCloud::Common::AbstractModel
203
+ # @param Code: 公共错误码
204
+ # 注意:此字段可能返回 null,表示取不到有效值。
205
+ # @type Code: String
206
+ # @param CodeDesc: 业务侧错误码。
207
+ # 注意:此字段可能返回 null,表示取不到有效值。
208
+ # @type CodeDesc: String
209
+ # @param Message: 业务侧错误信息。
210
+ # 注意:此字段可能返回 null,表示取不到有效值。
211
+ # @type Message: String
212
+ # @param Found: 表示该条记录能否查到:1 为能查到;-1 为查不到,此时 RiskScore 返回-1;
213
+ # 注意:此字段可能返回 null,表示取不到有效值。
214
+ # @type Found: String
215
+ # @param IdFound: 表示该条记录中的身份 ID 能否查到
216
+ # 1 为能查到
217
+ # -1 为查不到
218
+ # 注意:此字段可能返回 null,表示取不到有效值。
219
+ # @type IdFound: String
220
+ # @param RiskScore: 当可查到时,返回 0~100 区间,值越高 欺诈可
221
+ # 能性越大。
222
+ # 当查不到时(即 found=-1),返回-1
223
+ # 注意:此字段可能返回 null,表示取不到有效值。
224
+ # @type RiskScore: String
225
+ # @param RiskInfo: 扩展字段,对风险类型的说明。扩展字段并非必
226
+ # 然出现。
227
+ # 注意:此字段可能返回 null,表示取不到有效值。
228
+ # @type RiskInfo: Array
229
+ # @param OtherModelScores: 默认出现,提供模型版本号说明及多模型返回需
230
+ # 要时用到;
231
+ # 注意:此字段可能返回 null,表示取不到有效值。
232
+ # @type OtherModelScores: Array
233
+ # @param PostTime: 表示请求时间,标准 sunix 时间戳,非必然出现
234
+ # 注意:此字段可能返回 null,表示取不到有效值。
235
+ # @type PostTime: String
236
+ # @param ExtensionOut: 拓展字段,非必然出现,和 ExtensionIn 对应;
237
+ # 注:非必然出现,需要返回时天御侧将说明;
238
+ # 注意:此字段可能返回 null,表示取不到有效值。
239
+ # @type ExtensionOut: String
240
+
241
+ attr_accessor :Code, :CodeDesc, :Message, :Found, :IdFound, :RiskScore, :RiskInfo, :OtherModelScores, :PostTime, :ExtensionOut
242
+
243
+ def initialize(code=nil, codedesc=nil, message=nil, found=nil, idfound=nil, riskscore=nil, riskinfo=nil, othermodelscores=nil, posttime=nil, extensionout=nil)
244
+ @Code = code
245
+ @CodeDesc = codedesc
246
+ @Message = message
247
+ @Found = found
248
+ @IdFound = idfound
249
+ @RiskScore = riskscore
250
+ @RiskInfo = riskinfo
251
+ @OtherModelScores = othermodelscores
252
+ @PostTime = posttime
253
+ @ExtensionOut = extensionout
254
+ end
255
+
256
+ def deserialize(params)
257
+ @Code = params['Code']
258
+ @CodeDesc = params['CodeDesc']
259
+ @Message = params['Message']
260
+ @Found = params['Found']
261
+ @IdFound = params['IdFound']
262
+ @RiskScore = params['RiskScore']
263
+ unless params['RiskInfo'].nil?
264
+ @RiskInfo = []
265
+ params['RiskInfo'].each do |i|
266
+ simplekindriskdetail_tmp = SimpleKindRiskDetail.new
267
+ simplekindriskdetail_tmp.deserialize(i)
268
+ @RiskInfo << simplekindriskdetail_tmp
269
+ end
270
+ end
271
+ unless params['OtherModelScores'].nil?
272
+ @OtherModelScores = []
273
+ params['OtherModelScores'].each do |i|
274
+ othermodelscoresdetail_tmp = OtherModelScoresDetail.new
275
+ othermodelscoresdetail_tmp.deserialize(i)
276
+ @OtherModelScores << othermodelscoresdetail_tmp
277
+ end
278
+ end
279
+ @PostTime = params['PostTime']
280
+ @ExtensionOut = params['ExtensionOut']
281
+ end
282
+ end
283
+
20
284
  # DescribeAntiFraud请求参数结构体
21
285
  class DescribeAntiFraudRequest < TencentCloud::Common::AbstractModel
22
286
  # @param BusinessSecurityData: 原始业务入参(二选一)
@@ -271,6 +535,83 @@ module TencentCloud
271
535
  end
272
536
  end
273
537
 
538
+ # GetAntiFraud请求参数结构体
539
+ class GetAntiFraudRequest < TencentCloud::Common::AbstractModel
540
+ # @param BusinessSecurityData: 默认不传,约定用原始业务
541
+ # 入参(二选一BusinessSecurityData 或
542
+ # BusinessCryptoData)。
543
+ # @type BusinessSecurityData: :class:`Tencentcloud::Af.v20200226.models.AntiFraudFilter`
544
+ # @param BusinessCryptoData: 默认不传,约定用密文业务
545
+ # 入参(二选一
546
+ # BusinessSecurityData 或
547
+ # BusinessCryptoData)。
548
+ # @type BusinessCryptoData: :class:`Tencentcloud::Af.v20200226.models.AntiFraudCryptoFilter`
549
+
550
+ attr_accessor :BusinessSecurityData, :BusinessCryptoData
551
+
552
+ def initialize(businesssecuritydata=nil, businesscryptodata=nil)
553
+ @BusinessSecurityData = businesssecuritydata
554
+ @BusinessCryptoData = businesscryptodata
555
+ end
556
+
557
+ def deserialize(params)
558
+ unless params['BusinessSecurityData'].nil?
559
+ @BusinessSecurityData = AntiFraudFilter.new
560
+ @BusinessSecurityData.deserialize(params['BusinessSecurityData'])
561
+ end
562
+ unless params['BusinessCryptoData'].nil?
563
+ @BusinessCryptoData = AntiFraudCryptoFilter.new
564
+ @BusinessCryptoData.deserialize(params['BusinessCryptoData'])
565
+ end
566
+ end
567
+ end
568
+
569
+ # GetAntiFraud返回参数结构体
570
+ class GetAntiFraudResponse < TencentCloud::Common::AbstractModel
571
+ # @param Data: 反欺诈评分接口结果
572
+ # @type Data: :class:`Tencentcloud::Af.v20200226.models.AntiFraudRecord`
573
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
574
+ # @type RequestId: String
575
+
576
+ attr_accessor :Data, :RequestId
577
+
578
+ def initialize(data=nil, requestid=nil)
579
+ @Data = data
580
+ @RequestId = requestid
581
+ end
582
+
583
+ def deserialize(params)
584
+ unless params['Data'].nil?
585
+ @Data = AntiFraudRecord.new
586
+ @Data.deserialize(params['Data'])
587
+ end
588
+ @RequestId = params['RequestId']
589
+ end
590
+ end
591
+
592
+ # 扩展字段,对多模型返回结果的说明,被如下接口引用:GetAntiFraud。
593
+ class OtherModelScoresDetail < TencentCloud::Common::AbstractModel
594
+ # @param ModelId: 模型版本号;默认顺序为 0、1、2、3、…其中:0=主模型,跟 RiskScore 保持一致;
595
+ # 注意:此字段可能返回 null,表示取不到有效值。
596
+ # @type ModelId: String
597
+ # @param ModelScore: 模型版本对应的评分结果;Found=1 时:模型版本对应的评分结果,0~100 分
598
+ # 区间;Found=-1(未查到)时:全部模型结果返回-1
599
+ # 注意:此字段可能返回 null,表示取不到有效值。
600
+ # @type ModelScore: String
601
+
602
+ attr_accessor :ModelId, :ModelScore
603
+
604
+ def initialize(modelid=nil, modelscore=nil)
605
+ @ModelId = modelid
606
+ @ModelScore = modelscore
607
+ end
608
+
609
+ def deserialize(params)
610
+ @ModelId = params['ModelId']
611
+ @ModelScore = params['ModelScore']
612
+ end
613
+ end
614
+
274
615
  # QueryAntiFraud请求参数结构体
275
616
  class QueryAntiFraudRequest < TencentCloud::Common::AbstractModel
276
617
  # @param PhoneNumber: 电话号码(五选二)
@@ -467,6 +808,28 @@ module TencentCloud
467
808
  end
468
809
  end
469
810
 
811
+ # 扩展字段,对风险类型的说明
812
+ class SimpleKindRiskDetail < TencentCloud::Common::AbstractModel
813
+ # @param RiskCode: 风险码
814
+ # 注意:此字段可能返回 null,表示取不到有效值。
815
+ # @type RiskCode: String
816
+ # @param RiskCodeValue: 风险码详情
817
+ # 注意:此字段可能返回 null,表示取不到有效值。
818
+ # @type RiskCodeValue: String
819
+
820
+ attr_accessor :RiskCode, :RiskCodeValue
821
+
822
+ def initialize(riskcode=nil, riskcodevalue=nil)
823
+ @RiskCode = riskcode
824
+ @RiskCodeValue = riskcodevalue
825
+ end
826
+
827
+ def deserialize(params)
828
+ @RiskCode = params['RiskCode']
829
+ @RiskCodeValue = params['RiskCodeValue']
830
+ end
831
+ end
832
+
470
833
  end
471
834
  end
472
835
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-af
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.204
4
+ version: 1.0.205
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-17 00:00:00.000000000 Z
11
+ date: 2021-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common