tencentcloud-sdk-afc 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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-afc.rb +11 -0
- data/lib/v20200226/client.rb +62 -0
- data/lib/v20200226/models.rb +198 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1c5ef320d1b59c163f75b4adef1d2fa3004430e5
|
4
|
+
data.tar.gz: 9833e4189c1c5ed28124c50b95d8f734eda24128
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8e8c0cf7742491bf897a3e4cceb1fb873bf4d3a5ae7cc52aa6bade48a2c1237646bb9a0a1a59b24f4c747742c1f6e5003b5fb416c5a834109c280af564e71766
|
7
|
+
data.tar.gz: fccd630ff5f37d65429002bd9f619a7aaf87ff6faa45063b0819408f1bb4f64da68dfafb9064996c70415874dc225e04342cf5c5a3a570d1a5c5991e01d6060f
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,62 @@
|
|
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 Afc
|
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 = 'afc.tencentcloudapi.com'
|
27
|
+
sdk_version = 'AFC_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 天御反欺诈服务,主要应用于银行、证券、保险、P2P等金融行业客户,通过腾讯的大数据风控能力,
|
33
|
+
# 可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
|
34
|
+
# 的损失。
|
35
|
+
|
36
|
+
# @param request: Request instance for QueryAntiFraudVip.
|
37
|
+
# @type request: :class:`Tencentcloud::afc::V20200226::QueryAntiFraudVipRequest`
|
38
|
+
# @rtype: :class:`Tencentcloud::afc::V20200226::QueryAntiFraudVipResponse`
|
39
|
+
def QueryAntiFraudVip(request)
|
40
|
+
body = send_request('QueryAntiFraudVip', request.serialize)
|
41
|
+
response = JSON.parse(body)
|
42
|
+
if response['Response'].key?('Error') == false
|
43
|
+
model = QueryAntiFraudVipResponse.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
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,198 @@
|
|
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 Afc
|
19
|
+
module V20200226
|
20
|
+
# QueryAntiFraudVip请求参数结构体
|
21
|
+
class QueryAntiFraudVipRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param PhoneNumber: 电话号码(五选二)
|
23
|
+
# @type PhoneNumber: String
|
24
|
+
# @param IdNumber: Id号(五选二)
|
25
|
+
# @type IdNumber: String
|
26
|
+
# @param BankCardNumber: 银行卡号(五选二)
|
27
|
+
# @type BankCardNumber: String
|
28
|
+
# @param UserIp: 用户请求来源 IP(五选二)
|
29
|
+
# @type UserIp: String
|
30
|
+
# @param Imei: 国际移动设备识别码(五选二)
|
31
|
+
# @type Imei: String
|
32
|
+
# @param Idfa: ios 系统广告标示符(五选二)
|
33
|
+
# @type Idfa: String
|
34
|
+
# @param Scene: 业务场景 ID,需要找技术对接
|
35
|
+
# @type Scene: String
|
36
|
+
# @param Name: 姓名
|
37
|
+
# @type Name: String
|
38
|
+
# @param EmailAddress: 用户邮箱地址
|
39
|
+
# @type EmailAddress: String
|
40
|
+
# @param Address: 用户住址
|
41
|
+
# @type Address: String
|
42
|
+
# @param AccountType: 关联的腾讯帐号 QQ:1;
|
43
|
+
# 开放帐号微信: 2;
|
44
|
+
# @type AccountType: String
|
45
|
+
# @param Uid: 可选的 QQ 或微信 openid
|
46
|
+
# @type Uid: String
|
47
|
+
# @param AppIdU: qq 或微信分配给网站或应用的 appid,用来
|
48
|
+
# 唯一标识网站或应用
|
49
|
+
# @type AppIdU: String
|
50
|
+
# @param WifiMac: WIFI MAC
|
51
|
+
# @type WifiMac: String
|
52
|
+
# @param WifiSSID: WIFI 服务集标识
|
53
|
+
# @type WifiSSID: String
|
54
|
+
# @param WifiBSSID: WIFI-BSSID
|
55
|
+
# @type WifiBSSID: String
|
56
|
+
# @param BusinessId: 业务 ID,在多个业务中使用此服务,通过此
|
57
|
+
# ID 区分统计数据
|
58
|
+
# @type BusinessId: String
|
59
|
+
# @param IdCryptoType: Id加密类型
|
60
|
+
# 0:不加密(默认值)
|
61
|
+
# 1:md5
|
62
|
+
# 2:sha256
|
63
|
+
# 3:SM3
|
64
|
+
# @type IdCryptoType: String
|
65
|
+
# @param PhoneCryptoType: 手机号加密类型
|
66
|
+
# 0:不加密(默认值)
|
67
|
+
# 1:md5, 2:sha256
|
68
|
+
# 3:SM3
|
69
|
+
# @type PhoneCryptoType: String
|
70
|
+
# @param Mac: MAC 地址
|
71
|
+
# @type Mac: String
|
72
|
+
# @param Imsi: 国际移动用户识别码
|
73
|
+
# @type Imsi: String
|
74
|
+
# @param NameCryptoType: 姓名加密类型
|
75
|
+
# 0:不加密(默认值)
|
76
|
+
# 1:md5
|
77
|
+
# 2:sha256
|
78
|
+
# 3:SM3
|
79
|
+
# @type NameCryptoType: String
|
80
|
+
|
81
|
+
attr_accessor :PhoneNumber, :IdNumber, :BankCardNumber, :UserIp, :Imei, :Idfa, :Scene, :Name, :EmailAddress, :Address, :AccountType, :Uid, :AppIdU, :WifiMac, :WifiSSID, :WifiBSSID, :BusinessId, :IdCryptoType, :PhoneCryptoType, :Mac, :Imsi, :NameCryptoType
|
82
|
+
|
83
|
+
def initialize(phonenumber=nil, idnumber=nil, bankcardnumber=nil, userip=nil, imei=nil, idfa=nil, scene=nil, name=nil, emailaddress=nil, address=nil, accounttype=nil, uid=nil, appidu=nil, wifimac=nil, wifissid=nil, wifibssid=nil, businessid=nil, idcryptotype=nil, phonecryptotype=nil, mac=nil, imsi=nil, namecryptotype=nil)
|
84
|
+
@PhoneNumber = phonenumber
|
85
|
+
@IdNumber = idnumber
|
86
|
+
@BankCardNumber = bankcardnumber
|
87
|
+
@UserIp = userip
|
88
|
+
@Imei = imei
|
89
|
+
@Idfa = idfa
|
90
|
+
@Scene = scene
|
91
|
+
@Name = name
|
92
|
+
@EmailAddress = emailaddress
|
93
|
+
@Address = address
|
94
|
+
@AccountType = accounttype
|
95
|
+
@Uid = uid
|
96
|
+
@AppIdU = appidu
|
97
|
+
@WifiMac = wifimac
|
98
|
+
@WifiSSID = wifissid
|
99
|
+
@WifiBSSID = wifibssid
|
100
|
+
@BusinessId = businessid
|
101
|
+
@IdCryptoType = idcryptotype
|
102
|
+
@PhoneCryptoType = phonecryptotype
|
103
|
+
@Mac = mac
|
104
|
+
@Imsi = imsi
|
105
|
+
@NameCryptoType = namecryptotype
|
106
|
+
end
|
107
|
+
|
108
|
+
def deserialize(params)
|
109
|
+
@PhoneNumber = params['PhoneNumber']
|
110
|
+
@IdNumber = params['IdNumber']
|
111
|
+
@BankCardNumber = params['BankCardNumber']
|
112
|
+
@UserIp = params['UserIp']
|
113
|
+
@Imei = params['Imei']
|
114
|
+
@Idfa = params['Idfa']
|
115
|
+
@Scene = params['Scene']
|
116
|
+
@Name = params['Name']
|
117
|
+
@EmailAddress = params['EmailAddress']
|
118
|
+
@Address = params['Address']
|
119
|
+
@AccountType = params['AccountType']
|
120
|
+
@Uid = params['Uid']
|
121
|
+
@AppIdU = params['AppIdU']
|
122
|
+
@WifiMac = params['WifiMac']
|
123
|
+
@WifiSSID = params['WifiSSID']
|
124
|
+
@WifiBSSID = params['WifiBSSID']
|
125
|
+
@BusinessId = params['BusinessId']
|
126
|
+
@IdCryptoType = params['IdCryptoType']
|
127
|
+
@PhoneCryptoType = params['PhoneCryptoType']
|
128
|
+
@Mac = params['Mac']
|
129
|
+
@Imsi = params['Imsi']
|
130
|
+
@NameCryptoType = params['NameCryptoType']
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
# QueryAntiFraudVip返回参数结构体
|
135
|
+
class QueryAntiFraudVipResponse < TencentCloud::Common::AbstractModel
|
136
|
+
# @param Found: 表示该条记录能否查到:1为能查到,-1为查不到
|
137
|
+
# @type Found: Integer
|
138
|
+
# @param IdFound: 表示该条Id能否查到:1为能查到,-1为查不到
|
139
|
+
# @type IdFound: Integer
|
140
|
+
# @param RiskScore: 0~100;值越高 欺诈可能性越大
|
141
|
+
# @type RiskScore: Integer
|
142
|
+
# @param RiskInfo: 扩展字段,对风险类型的说明
|
143
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
144
|
+
# @type RiskInfo: Array
|
145
|
+
# @param CodeDesc: 业务侧错误码。成功时返回Success,错误时返回具体业务错误原因。
|
146
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
147
|
+
# @type CodeDesc: String
|
148
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
149
|
+
# @type RequestId: String
|
150
|
+
|
151
|
+
attr_accessor :Found, :IdFound, :RiskScore, :RiskInfo, :CodeDesc, :RequestId
|
152
|
+
|
153
|
+
def initialize(found=nil, idfound=nil, riskscore=nil, riskinfo=nil, codedesc=nil, requestid=nil)
|
154
|
+
@Found = found
|
155
|
+
@IdFound = idfound
|
156
|
+
@RiskScore = riskscore
|
157
|
+
@RiskInfo = riskinfo
|
158
|
+
@CodeDesc = codedesc
|
159
|
+
@RequestId = requestid
|
160
|
+
end
|
161
|
+
|
162
|
+
def deserialize(params)
|
163
|
+
@Found = params['Found']
|
164
|
+
@IdFound = params['IdFound']
|
165
|
+
@RiskScore = params['RiskScore']
|
166
|
+
unless params['RiskInfo'].nil?
|
167
|
+
@RiskInfo = []
|
168
|
+
params['RiskInfo'].each do |i|
|
169
|
+
riskdetail_tmp = RiskDetail.new
|
170
|
+
riskdetail_tmp.deserialize(i)
|
171
|
+
@RiskInfo << riskdetail_tmp
|
172
|
+
end
|
173
|
+
end
|
174
|
+
@CodeDesc = params['CodeDesc']
|
175
|
+
@RequestId = params['RequestId']
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# 扩展字段,对风险类型的说明
|
180
|
+
class RiskDetail < TencentCloud::Common::AbstractModel
|
181
|
+
# @param RiskCode: 风险码
|
182
|
+
# @type RiskCode: Integer
|
183
|
+
|
184
|
+
attr_accessor :RiskCode
|
185
|
+
|
186
|
+
def initialize(riskcode=nil)
|
187
|
+
@RiskCode = riskcode
|
188
|
+
end
|
189
|
+
|
190
|
+
def deserialize(params)
|
191
|
+
@RiskCode = params['RiskCode']
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
end
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-afc
|
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
|
+
AFC.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-afc.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-afc
|
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 - AFC
|
66
|
+
test_files: []
|