tencentcloud-sdk-faceid 3.0.448 → 3.0.449
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180301/client.rb +0 -243
- data/lib/v20180301/models.rb +2 -855
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 531da4c10d7c87d093511983e740acafa99f14a7
|
4
|
+
data.tar.gz: 1bef8a9112c279ab973d912e847f604809ad2f2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dcd8c7740433b80bcfaf2a6dbb0b2a18b3dd0597d6dddd89b110267d8b5d409f9e9fb1e3b8f6c8fc1f3d136af8fcd7b876c7909fa1961091442137460598a7d
|
7
|
+
data.tar.gz: 4105ed83c11fb235e79c7d561fc9caa873d2faeac4fe17463f9e90d1604dace563c132e326f88b6804b053e6de097da7715e023948603ae0830dbc1ff1f0ecf1
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.449
|
data/lib/v20180301/client.rb
CHANGED
@@ -29,78 +29,6 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
# 每次调用活体服务前,需要先调用本接口获取Token,需要保存此Token用来发起核验流程,并且在核验完成后获取结果信息。
|
33
|
-
|
34
|
-
# @param request: Request instance for ApplyLivenessToken.
|
35
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::ApplyLivenessTokenRequest`
|
36
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::ApplyLivenessTokenResponse`
|
37
|
-
def ApplyLivenessToken(request)
|
38
|
-
body = send_request('ApplyLivenessToken', request.serialize)
|
39
|
-
response = JSON.parse(body)
|
40
|
-
if response['Response'].key?('Error') == false
|
41
|
-
model = ApplyLivenessTokenResponse.new
|
42
|
-
model.deserialize(response['Response'])
|
43
|
-
model
|
44
|
-
else
|
45
|
-
code = response['Response']['Error']['Code']
|
46
|
-
message = response['Response']['Error']['Message']
|
47
|
-
reqid = response['Response']['RequestId']
|
48
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
-
end
|
50
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
-
raise e
|
52
|
-
rescue StandardError => e
|
53
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
-
end
|
55
|
-
|
56
|
-
# 每次调用Web核验服务前,需要先调用本接口获取Token,需要保存此Token用来发起核验流程,并且在核验完成后获取结果信息。
|
57
|
-
|
58
|
-
# @param request: Request instance for ApplySdkVerificationToken.
|
59
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::ApplySdkVerificationTokenRequest`
|
60
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::ApplySdkVerificationTokenResponse`
|
61
|
-
def ApplySdkVerificationToken(request)
|
62
|
-
body = send_request('ApplySdkVerificationToken', request.serialize)
|
63
|
-
response = JSON.parse(body)
|
64
|
-
if response['Response'].key?('Error') == false
|
65
|
-
model = ApplySdkVerificationTokenResponse.new
|
66
|
-
model.deserialize(response['Response'])
|
67
|
-
model
|
68
|
-
else
|
69
|
-
code = response['Response']['Error']['Code']
|
70
|
-
message = response['Response']['Error']['Message']
|
71
|
-
reqid = response['Response']['RequestId']
|
72
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
-
end
|
74
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
-
raise e
|
76
|
-
rescue StandardError => e
|
77
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
-
end
|
79
|
-
|
80
|
-
# 每次调用Web核验服务前,需要先调用本接口获取BizToken,需要保存此BizToken用来发起核验流程,并且在核验完成后获取结果信息。
|
81
|
-
|
82
|
-
# @param request: Request instance for ApplyWebVerificationToken.
|
83
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::ApplyWebVerificationTokenRequest`
|
84
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::ApplyWebVerificationTokenResponse`
|
85
|
-
def ApplyWebVerificationToken(request)
|
86
|
-
body = send_request('ApplyWebVerificationToken', request.serialize)
|
87
|
-
response = JSON.parse(body)
|
88
|
-
if response['Response'].key?('Error') == false
|
89
|
-
model = ApplyWebVerificationTokenResponse.new
|
90
|
-
model.deserialize(response['Response'])
|
91
|
-
model
|
92
|
-
else
|
93
|
-
code = response['Response']['Error']['Code']
|
94
|
-
message = response['Response']['Error']['Message']
|
95
|
-
reqid = response['Response']['RequestId']
|
96
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
-
end
|
98
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
-
raise e
|
100
|
-
rescue StandardError => e
|
101
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
-
end
|
103
|
-
|
104
32
|
# 本接口用于校验姓名和银行卡号的真实性和一致性。
|
105
33
|
|
106
34
|
# @param request: Request instance for BankCard2EVerification.
|
@@ -293,31 +221,6 @@ module TencentCloud
|
|
293
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
222
|
end
|
295
223
|
|
296
|
-
# 生成一个临时的UploadUrl用于上传资源文件,客户需要使用HTTP PUT方法上传,上传完成后将ResourceUrl传给TargetAction对应接口完成资源传递(具体字段由使用场景确定)。
|
297
|
-
# 数据存储于Region参数对应地域的腾讯云COS Bucket,存储有效期2小时。
|
298
|
-
|
299
|
-
# @param request: Request instance for CreateUploadUrl.
|
300
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::CreateUploadUrlRequest`
|
301
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::CreateUploadUrlResponse`
|
302
|
-
def CreateUploadUrl(request)
|
303
|
-
body = send_request('CreateUploadUrl', request.serialize)
|
304
|
-
response = JSON.parse(body)
|
305
|
-
if response['Response'].key?('Error') == false
|
306
|
-
model = CreateUploadUrlResponse.new
|
307
|
-
model.deserialize(response['Response'])
|
308
|
-
model
|
309
|
-
else
|
310
|
-
code = response['Response']['Error']['Code']
|
311
|
-
message = response['Response']['Error']['Message']
|
312
|
-
reqid = response['Response']['RequestId']
|
313
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
314
|
-
end
|
315
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
316
|
-
raise e
|
317
|
-
rescue StandardError => e
|
318
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
319
|
-
end
|
320
|
-
|
321
224
|
# 每次调用人脸核身SaaS化服务前,需先调用本接口获取BizToken,用来串联核身流程,在验证完成后,用于获取验证结果信息。
|
322
225
|
|
323
226
|
# @param request: Request instance for DetectAuth.
|
@@ -342,31 +245,6 @@ module TencentCloud
|
|
342
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
343
246
|
end
|
344
247
|
|
345
|
-
# 使用活体比对(光线)SDK生成的数据包检测活体,并和传入的图片进行比对。
|
346
|
-
# 图片和SDK生成的数据内容必须存储在腾讯云COS,COS Bucket所在的Region需要和本接口请求的Region保持一致,推荐使用生成上传链接接口来完成资源传递。
|
347
|
-
|
348
|
-
# @param request: Request instance for DetectReflectLivenessAndCompare.
|
349
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::DetectReflectLivenessAndCompareRequest`
|
350
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::DetectReflectLivenessAndCompareResponse`
|
351
|
-
def DetectReflectLivenessAndCompare(request)
|
352
|
-
body = send_request('DetectReflectLivenessAndCompare', request.serialize)
|
353
|
-
response = JSON.parse(body)
|
354
|
-
if response['Response'].key?('Error') == false
|
355
|
-
model = DetectReflectLivenessAndCompareResponse.new
|
356
|
-
model.deserialize(response['Response'])
|
357
|
-
model
|
358
|
-
else
|
359
|
-
code = response['Response']['Error']['Code']
|
360
|
-
message = response['Response']['Error']['Message']
|
361
|
-
reqid = response['Response']['RequestId']
|
362
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
363
|
-
end
|
364
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
365
|
-
raise e
|
366
|
-
rescue StandardError => e
|
367
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
368
|
-
end
|
369
|
-
|
370
248
|
# 本接口用于校验手机号、姓名和身份证号的真实性和一致性,入参支持明文、MD5和SHA256加密传输。
|
371
249
|
|
372
250
|
# @param request: Request instance for EncryptedPhoneVerification.
|
@@ -391,31 +269,6 @@ module TencentCloud
|
|
391
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
392
270
|
end
|
393
271
|
|
394
|
-
# 根据活体比对(光线)SDK采集的机器信息生成适合的光线序列,将光线序列传入SDK后开启核身。
|
395
|
-
# SDK生成的数据内容必须存储在腾讯云COS,COS Bucket所在的Region需要和本接口请求的Region保持一致,推荐使用生成上传链接接口来完成资源传递。
|
396
|
-
|
397
|
-
# @param request: Request instance for GenerateReflectSequence.
|
398
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::GenerateReflectSequenceRequest`
|
399
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::GenerateReflectSequenceResponse`
|
400
|
-
def GenerateReflectSequence(request)
|
401
|
-
body = send_request('GenerateReflectSequence', request.serialize)
|
402
|
-
response = JSON.parse(body)
|
403
|
-
if response['Response'].key?('Error') == false
|
404
|
-
model = GenerateReflectSequenceResponse.new
|
405
|
-
model.deserialize(response['Response'])
|
406
|
-
model
|
407
|
-
else
|
408
|
-
code = response['Response']['Error']['Code']
|
409
|
-
message = response['Response']['Error']['Message']
|
410
|
-
reqid = response['Response']['RequestId']
|
411
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
412
|
-
end
|
413
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
414
|
-
raise e
|
415
|
-
rescue StandardError => e
|
416
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
417
|
-
end
|
418
|
-
|
419
272
|
# 使用动作活体检测模式前,需调用本接口获取动作顺序。
|
420
273
|
|
421
274
|
# @param request: Request instance for GetActionSequence.
|
@@ -608,30 +461,6 @@ module TencentCloud
|
|
608
461
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
609
462
|
end
|
610
463
|
|
611
|
-
# 完成活体检测流程后,用核验令牌(SdkToken)调用本接口查询对应核验结果信息。Token申请后2小时内有效,可多次调用。
|
612
|
-
|
613
|
-
# @param request: Request instance for GetLivenessResult.
|
614
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::GetLivenessResultRequest`
|
615
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::GetLivenessResultResponse`
|
616
|
-
def GetLivenessResult(request)
|
617
|
-
body = send_request('GetLivenessResult', request.serialize)
|
618
|
-
response = JSON.parse(body)
|
619
|
-
if response['Response'].key?('Error') == false
|
620
|
-
model = GetLivenessResultResponse.new
|
621
|
-
model.deserialize(response['Response'])
|
622
|
-
model
|
623
|
-
else
|
624
|
-
code = response['Response']['Error']['Code']
|
625
|
-
message = response['Response']['Error']['Message']
|
626
|
-
reqid = response['Response']['RequestId']
|
627
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
628
|
-
end
|
629
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
630
|
-
raise e
|
631
|
-
rescue StandardError => e
|
632
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
633
|
-
end
|
634
|
-
|
635
464
|
# 获取微信实名认证结果
|
636
465
|
|
637
466
|
# @param request: Request instance for GetRealNameAuthResult.
|
@@ -680,30 +509,6 @@ module TencentCloud
|
|
680
509
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
681
510
|
end
|
682
511
|
|
683
|
-
# 完成Sdk核验流程后,用核验令牌(Token)调用本接口查询对应核验结果信息。Token申请后三天内有效,可多次调用。
|
684
|
-
|
685
|
-
# @param request: Request instance for GetSdkVerificationResult.
|
686
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::GetSdkVerificationResultRequest`
|
687
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::GetSdkVerificationResultResponse`
|
688
|
-
def GetSdkVerificationResult(request)
|
689
|
-
body = send_request('GetSdkVerificationResult', request.serialize)
|
690
|
-
response = JSON.parse(body)
|
691
|
-
if response['Response'].key?('Error') == false
|
692
|
-
model = GetSdkVerificationResultResponse.new
|
693
|
-
model.deserialize(response['Response'])
|
694
|
-
model
|
695
|
-
else
|
696
|
-
code = response['Response']['Error']['Code']
|
697
|
-
message = response['Response']['Error']['Message']
|
698
|
-
reqid = response['Response']['RequestId']
|
699
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
700
|
-
end
|
701
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
702
|
-
raise e
|
703
|
-
rescue StandardError => e
|
704
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
705
|
-
end
|
706
|
-
|
707
512
|
# 查询微信渠道服务(微信小程序、微信原生H5、微信普通H5)的账单明细及计费状态。
|
708
513
|
|
709
514
|
# @param request: Request instance for GetWeChatBillDetails.
|
@@ -728,30 +533,6 @@ module TencentCloud
|
|
728
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
729
534
|
end
|
730
535
|
|
731
|
-
# 完成Web核验流程后,用核验令牌(BizToken)调用本接口查询对应核验结果信息。BizToken申请后三天内(3\*24\*3,600秒)有效,可多次调用。
|
732
|
-
|
733
|
-
# @param request: Request instance for GetWebVerificationResult.
|
734
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::GetWebVerificationResultRequest`
|
735
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::GetWebVerificationResultResponse`
|
736
|
-
def GetWebVerificationResult(request)
|
737
|
-
body = send_request('GetWebVerificationResult', request.serialize)
|
738
|
-
response = JSON.parse(body)
|
739
|
-
if response['Response'].key?('Error') == false
|
740
|
-
model = GetWebVerificationResultResponse.new
|
741
|
-
model.deserialize(response['Response'])
|
742
|
-
model
|
743
|
-
else
|
744
|
-
code = response['Response']['Error']['Code']
|
745
|
-
message = response['Response']['Error']['Message']
|
746
|
-
reqid = response['Response']['RequestId']
|
747
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
748
|
-
end
|
749
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
750
|
-
raise e
|
751
|
-
rescue StandardError => e
|
752
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
753
|
-
end
|
754
|
-
|
755
536
|
# 本接口用于校验姓名和身份证号的真实性和一致性,您可以通过输入姓名和身份证号或传入身份证人像面照片提供所需验证信息。
|
756
537
|
|
757
538
|
# @param request: Request instance for IdCardOCRVerification.
|
@@ -1088,30 +869,6 @@ module TencentCloud
|
|
1088
869
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1089
870
|
end
|
1090
871
|
|
1091
|
-
# 传入视频和照片地址,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
|
1092
|
-
|
1093
|
-
# @param request: Request instance for VideoLivenessCompare.
|
1094
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::VideoLivenessCompareRequest`
|
1095
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::VideoLivenessCompareResponse`
|
1096
|
-
def VideoLivenessCompare(request)
|
1097
|
-
body = send_request('VideoLivenessCompare', request.serialize)
|
1098
|
-
response = JSON.parse(body)
|
1099
|
-
if response['Response'].key?('Error') == false
|
1100
|
-
model = VideoLivenessCompareResponse.new
|
1101
|
-
model.deserialize(response['Response'])
|
1102
|
-
model
|
1103
|
-
else
|
1104
|
-
code = response['Response']['Error']['Code']
|
1105
|
-
message = response['Response']['Error']['Message']
|
1106
|
-
reqid = response['Response']['RequestId']
|
1107
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1108
|
-
end
|
1109
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1110
|
-
raise e
|
1111
|
-
rescue StandardError => e
|
1112
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1113
|
-
end
|
1114
|
-
|
1115
872
|
|
1116
873
|
end
|
1117
874
|
end
|
data/lib/v20180301/models.rb
CHANGED
@@ -17,149 +17,6 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Faceid
|
19
19
|
module V20180301
|
20
|
-
# ApplyLivenessToken请求参数结构体
|
21
|
-
class ApplyLivenessTokenRequest < TencentCloud::Common::AbstractModel
|
22
|
-
# @param SecureLevel: 枚举值,取值范围:1、2、3、4
|
23
|
-
# 各个含义如下
|
24
|
-
# 1-静默
|
25
|
-
# 2-眨眼
|
26
|
-
# 3-光线
|
27
|
-
# 4-眨眼+光线 (默认)
|
28
|
-
# @type SecureLevel: String
|
29
|
-
|
30
|
-
attr_accessor :SecureLevel
|
31
|
-
|
32
|
-
def initialize(securelevel=nil)
|
33
|
-
@SecureLevel = securelevel
|
34
|
-
end
|
35
|
-
|
36
|
-
def deserialize(params)
|
37
|
-
@SecureLevel = params['SecureLevel']
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
# ApplyLivenessToken返回参数结构体
|
42
|
-
class ApplyLivenessTokenResponse < TencentCloud::Common::AbstractModel
|
43
|
-
# @param SdkToken: 标识一次SDK核验流程的令牌,有效时间为10分钟。流程结束后可用该令牌获取核验结果信息。
|
44
|
-
# @type SdkToken: String
|
45
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
46
|
-
# @type RequestId: String
|
47
|
-
|
48
|
-
attr_accessor :SdkToken, :RequestId
|
49
|
-
|
50
|
-
def initialize(sdktoken=nil, requestid=nil)
|
51
|
-
@SdkToken = sdktoken
|
52
|
-
@RequestId = requestid
|
53
|
-
end
|
54
|
-
|
55
|
-
def deserialize(params)
|
56
|
-
@SdkToken = params['SdkToken']
|
57
|
-
@RequestId = params['RequestId']
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
# ApplySdkVerificationToken请求参数结构体
|
62
|
-
class ApplySdkVerificationTokenRequest < TencentCloud::Common::AbstractModel
|
63
|
-
# @param NeedVerifyIdCard: 是否需要身份证鉴伪,如果不需要,则仅做证件OCR。当前仅IdCardType为HK支持鉴伪。
|
64
|
-
# @type NeedVerifyIdCard: Boolean
|
65
|
-
# @param IdCardType: 卡证类型,当前仅支持HK(香港身份证),ML(马来西亚身份证),PhilippinesVoteID(菲律宾选民卡),PhilippinesDrivingLicense(菲律宾驾驶证)。默认为HK。
|
66
|
-
# @type IdCardType: String
|
67
|
-
# @param DisableChangeOcrResult: 是否允许用户修改ocr结果,默认false,允许。
|
68
|
-
# @type DisableChangeOcrResult: Boolean
|
69
|
-
# @param DisableCheckOcrWarnings: 是否关闭OCR告警,默认false,不关闭。如果为false开启OCR告警,我们会根据Ocr的告警信息进行拦截,当NeedVerifyIdCard为true时该字段将为true。
|
70
|
-
# @type DisableCheckOcrWarnings: Boolean
|
71
|
-
# @param Extra: 透传字段,在获取验证结果时返回,最长1024位。
|
72
|
-
# @type Extra: String
|
73
|
-
|
74
|
-
attr_accessor :NeedVerifyIdCard, :IdCardType, :DisableChangeOcrResult, :DisableCheckOcrWarnings, :Extra
|
75
|
-
|
76
|
-
def initialize(needverifyidcard=nil, idcardtype=nil, disablechangeocrresult=nil, disablecheckocrwarnings=nil, extra=nil)
|
77
|
-
@NeedVerifyIdCard = needverifyidcard
|
78
|
-
@IdCardType = idcardtype
|
79
|
-
@DisableChangeOcrResult = disablechangeocrresult
|
80
|
-
@DisableCheckOcrWarnings = disablecheckocrwarnings
|
81
|
-
@Extra = extra
|
82
|
-
end
|
83
|
-
|
84
|
-
def deserialize(params)
|
85
|
-
@NeedVerifyIdCard = params['NeedVerifyIdCard']
|
86
|
-
@IdCardType = params['IdCardType']
|
87
|
-
@DisableChangeOcrResult = params['DisableChangeOcrResult']
|
88
|
-
@DisableCheckOcrWarnings = params['DisableCheckOcrWarnings']
|
89
|
-
@Extra = params['Extra']
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
# ApplySdkVerificationToken返回参数结构体
|
94
|
-
class ApplySdkVerificationTokenResponse < TencentCloud::Common::AbstractModel
|
95
|
-
# @param SdkToken: 标识一次SDK核验流程的令牌,有效时间为7,200秒。流程结束后可用该令牌获取核验结果信息。
|
96
|
-
# @type SdkToken: String
|
97
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
98
|
-
# @type RequestId: String
|
99
|
-
|
100
|
-
attr_accessor :SdkToken, :RequestId
|
101
|
-
|
102
|
-
def initialize(sdktoken=nil, requestid=nil)
|
103
|
-
@SdkToken = sdktoken
|
104
|
-
@RequestId = requestid
|
105
|
-
end
|
106
|
-
|
107
|
-
def deserialize(params)
|
108
|
-
@SdkToken = params['SdkToken']
|
109
|
-
@RequestId = params['RequestId']
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
# ApplyWebVerificationToken请求参数结构体
|
114
|
-
class ApplyWebVerificationTokenRequest < TencentCloud::Common::AbstractModel
|
115
|
-
# @param RedirectUrl: 核验结束后重定向的Web回跳地址。
|
116
|
-
# @type RedirectUrl: String
|
117
|
-
# @param CompareImageUrl: 人脸比对照片的腾讯云对象存储地址,可以使用以下两种方式:
|
118
|
-
# 1. 调用CreateUploadUrl接口生成,确保成功上传照片后再调用此接口。
|
119
|
-
# 2. 使用已有的腾讯云对象存储地址,如果是私有读写桶,请使用预签名URL授予下载权限,对象存储地域需要和入参Region保持一致。
|
120
|
-
# @type CompareImageUrl: String
|
121
|
-
# @param CompareImageMd5: 人脸比对照片(CompareImageUrl)内容的MD5散列值。
|
122
|
-
# @type CompareImageMd5: String
|
123
|
-
|
124
|
-
attr_accessor :RedirectUrl, :CompareImageUrl, :CompareImageMd5
|
125
|
-
|
126
|
-
def initialize(redirecturl=nil, compareimageurl=nil, compareimagemd5=nil)
|
127
|
-
@RedirectUrl = redirecturl
|
128
|
-
@CompareImageUrl = compareimageurl
|
129
|
-
@CompareImageMd5 = compareimagemd5
|
130
|
-
end
|
131
|
-
|
132
|
-
def deserialize(params)
|
133
|
-
@RedirectUrl = params['RedirectUrl']
|
134
|
-
@CompareImageUrl = params['CompareImageUrl']
|
135
|
-
@CompareImageMd5 = params['CompareImageMd5']
|
136
|
-
end
|
137
|
-
end
|
138
|
-
|
139
|
-
# ApplyWebVerificationToken返回参数结构体
|
140
|
-
class ApplyWebVerificationTokenResponse < TencentCloud::Common::AbstractModel
|
141
|
-
# @param VerificationUrl: 用户浏览器需要打开此地址开始核验流程。
|
142
|
-
# @type VerificationUrl: String
|
143
|
-
# @param BizToken: 标识一次Web核验流程的令牌,有效时间为7,200秒。流程结束后可用该令牌获取核验结果信息。
|
144
|
-
# @type BizToken: String
|
145
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
146
|
-
# @type RequestId: String
|
147
|
-
|
148
|
-
attr_accessor :VerificationUrl, :BizToken, :RequestId
|
149
|
-
|
150
|
-
def initialize(verificationurl=nil, biztoken=nil, requestid=nil)
|
151
|
-
@VerificationUrl = verificationurl
|
152
|
-
@BizToken = biztoken
|
153
|
-
@RequestId = requestid
|
154
|
-
end
|
155
|
-
|
156
|
-
def deserialize(params)
|
157
|
-
@VerificationUrl = params['VerificationUrl']
|
158
|
-
@BizToken = params['BizToken']
|
159
|
-
@RequestId = params['RequestId']
|
160
|
-
end
|
161
|
-
end
|
162
|
-
|
163
20
|
# BankCard2EVerification请求参数结构体
|
164
21
|
class BankCard2EVerificationRequest < TencentCloud::Common::AbstractModel
|
165
22
|
# @param Name: 姓名
|
@@ -395,92 +252,6 @@ module TencentCloud
|
|
395
252
|
end
|
396
253
|
end
|
397
254
|
|
398
|
-
# 核身过程中,鉴伪或OCR单次结果。
|
399
|
-
class CardVerifyResult < TencentCloud::Common::AbstractModel
|
400
|
-
# @param IsPass: 鉴伪或OCR是否成功
|
401
|
-
# @type IsPass: Boolean
|
402
|
-
# @param CardVideo: 身份证鉴伪视频,仅开启证件视频鉴伪功能时返回,url链接有效期10分钟。
|
403
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
404
|
-
# @type CardVideo: :class:`Tencentcloud::Faceid.v20180301.models.FileInfo`
|
405
|
-
# @param CardImage: 证件照图片,url链接有效期10分钟。
|
406
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
407
|
-
# @type CardImage: :class:`Tencentcloud::Faceid.v20180301.models.FileInfo`
|
408
|
-
# @param CardInfoOcrJson: 证件照的文字识别结果,如果鉴伪失败或者ocr失败则该参数为空。url链接有效期10分钟。格式为json文本信息。
|
409
|
-
# IdCardType为HK时:
|
410
|
-
# - CnName string 中文姓名
|
411
|
-
# - EnName string 英文姓名
|
412
|
-
# - TelexCode string 中文姓名对应电码
|
413
|
-
# - Sex string 性别 :“男M”或“女F”
|
414
|
-
# - Birthday string 出生日期
|
415
|
-
# - Permanent int 永久性居民身份证。0:非永久; 1:永久; -1:未知。
|
416
|
-
# - IdNum string 身份证号码
|
417
|
-
# - Symbol string 证件符号,出生日期下的符号,例如"***AZ"
|
418
|
-
# - FirstIssueDate string 首次签发日期
|
419
|
-
# - CurrentIssueDate string 最近领用日期
|
420
|
-
|
421
|
-
# IdCardType为ML时:
|
422
|
-
# - Sex string 男:LELAKI 女:PEREMPUAN
|
423
|
-
# - Birthday string 生日
|
424
|
-
# - ID string 证号
|
425
|
-
# - Name string 名字
|
426
|
-
# - Address string 地址
|
427
|
-
# - Type string 证件类型
|
428
|
-
|
429
|
-
# IdCardType为PhilippinesVoteID时:
|
430
|
-
# - Birthday string 生日
|
431
|
-
# - Address string 地址
|
432
|
-
# - LastName string 姓氏
|
433
|
-
# - FirstName string 姓名
|
434
|
-
# - VIN string VIN号
|
435
|
-
# - CivilStatus string 婚姻状况
|
436
|
-
# - Citizenship string 国籍
|
437
|
-
# - PrecinctNo string 地区
|
438
|
-
|
439
|
-
# IdCardType为PhilippinesDrivingLicense时:
|
440
|
-
# - Sex string 性别
|
441
|
-
# - Birthday string 生日
|
442
|
-
# - Name string 姓名
|
443
|
-
# - Address string 地址
|
444
|
-
# - LastName string 姓氏
|
445
|
-
# - FirstName string 首姓名
|
446
|
-
# - MiddleName string 中间姓名
|
447
|
-
# - Nationality string 国籍
|
448
|
-
# - LicenseNo string 证号
|
449
|
-
# - ExpiresDate string 有效期
|
450
|
-
# - AgencyCode string 机构代码
|
451
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
452
|
-
# @type CardInfoOcrJson: :class:`Tencentcloud::Faceid.v20180301.models.FileInfo`
|
453
|
-
# @param RequestId: 单次流程请求标示。
|
454
|
-
# @type RequestId: String
|
455
|
-
|
456
|
-
attr_accessor :IsPass, :CardVideo, :CardImage, :CardInfoOcrJson, :RequestId
|
457
|
-
|
458
|
-
def initialize(ispass=nil, cardvideo=nil, cardimage=nil, cardinfoocrjson=nil, requestid=nil)
|
459
|
-
@IsPass = ispass
|
460
|
-
@CardVideo = cardvideo
|
461
|
-
@CardImage = cardimage
|
462
|
-
@CardInfoOcrJson = cardinfoocrjson
|
463
|
-
@RequestId = requestid
|
464
|
-
end
|
465
|
-
|
466
|
-
def deserialize(params)
|
467
|
-
@IsPass = params['IsPass']
|
468
|
-
unless params['CardVideo'].nil?
|
469
|
-
@CardVideo = FileInfo.new
|
470
|
-
@CardVideo.deserialize(params['CardVideo'])
|
471
|
-
end
|
472
|
-
unless params['CardImage'].nil?
|
473
|
-
@CardImage = FileInfo.new
|
474
|
-
@CardImage.deserialize(params['CardImage'])
|
475
|
-
end
|
476
|
-
unless params['CardInfoOcrJson'].nil?
|
477
|
-
@CardInfoOcrJson = FileInfo.new
|
478
|
-
@CardInfoOcrJson.deserialize(params['CardInfoOcrJson'])
|
479
|
-
end
|
480
|
-
@RequestId = params['RequestId']
|
481
|
-
end
|
482
|
-
end
|
483
|
-
|
484
255
|
# 计费详情
|
485
256
|
class ChargeDetail < TencentCloud::Common::AbstractModel
|
486
257
|
# @param ReqTime: 一比一时间时间戳,13位。
|
@@ -886,157 +657,6 @@ module TencentCloud
|
|
886
657
|
end
|
887
658
|
end
|
888
659
|
|
889
|
-
# 单次比对结果描述
|
890
|
-
class CompareResult < TencentCloud::Common::AbstractModel
|
891
|
-
# @param ErrorCode: 最终比对结果
|
892
|
-
# @type ErrorCode: String
|
893
|
-
# @param ErrorMsg: 最终比对结果描述
|
894
|
-
# @type ErrorMsg: String
|
895
|
-
# @param LiveData: 本次活体SDK生成的活体算法数据包
|
896
|
-
# @type LiveData: :class:`Tencentcloud::Faceid.v20180301.models.FileInfo`
|
897
|
-
# @param LiveVideo: 本次用户活体验证过程的视频,url链接有效期10分钟。
|
898
|
-
# @type LiveVideo: :class:`Tencentcloud::Faceid.v20180301.models.FileInfo`
|
899
|
-
# @param LiveErrorCode: 活体认证结果码
|
900
|
-
# @type LiveErrorCode: String
|
901
|
-
# @param LiveErrorMsg: 活体认证结果描述
|
902
|
-
# @type LiveErrorMsg: String
|
903
|
-
# @param BestFrame: 本次活体的最佳人像截图,url链接有效期10分钟。
|
904
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
905
|
-
# @type BestFrame: :class:`Tencentcloud::Faceid.v20180301.models.FileInfo`
|
906
|
-
# @param ProfileImage: 证件照头像截图,url链接有效期10分钟。
|
907
|
-
# @type ProfileImage: :class:`Tencentcloud::Faceid.v20180301.models.FileInfo`
|
908
|
-
# @param CompareErrorCode: 人脸比对结果码
|
909
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
910
|
-
# @type CompareErrorCode: String
|
911
|
-
# @param CompareErrorMsg: 人脸比对结果描述
|
912
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
913
|
-
# @type CompareErrorMsg: String
|
914
|
-
# @param Sim: 相似度
|
915
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
916
|
-
# @type Sim: Float
|
917
|
-
# @param IsNeedCharge: 该字段废弃
|
918
|
-
# @type IsNeedCharge: Boolean
|
919
|
-
# @param CardInfoInputJson: 用户编辑后的证件照信息,如果DisableChangeOcrResult为true禁用编辑无该值。url链接有效期10分钟。格式为json文本信息。
|
920
|
-
# IdCardType为HK时:
|
921
|
-
# - CnName string 中文姓名
|
922
|
-
# - EnName string 英文姓名
|
923
|
-
# - TelexCode string 中文姓名对应电码
|
924
|
-
# - Sex string 性别 :“男M”或“女F”
|
925
|
-
# - Birthday string 出生日期
|
926
|
-
# - Permanent int 永久性居民身份证。0:非永久; 1:永久; -1:未知。
|
927
|
-
# - IdNum string 身份证号码
|
928
|
-
# - Symbol string 证件符号,出生日期下的符号,例如"***AZ"
|
929
|
-
# - FirstIssueDate string 首次签发日期
|
930
|
-
# - CurrentIssueDate string 最近领用日期
|
931
|
-
|
932
|
-
# IdCardType为ML时:
|
933
|
-
# - Sex string 男:LELAKI 女:PEREMPUAN
|
934
|
-
# - Birthday string
|
935
|
-
# - ID string
|
936
|
-
# - Name string
|
937
|
-
# - Address string
|
938
|
-
# - Type string 证件类型
|
939
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
940
|
-
# @type CardInfoInputJson: :class:`Tencentcloud::Faceid.v20180301.models.FileInfo`
|
941
|
-
# @param RequestId: 本次认证的请求标识。
|
942
|
-
# @type RequestId: String
|
943
|
-
|
944
|
-
attr_accessor :ErrorCode, :ErrorMsg, :LiveData, :LiveVideo, :LiveErrorCode, :LiveErrorMsg, :BestFrame, :ProfileImage, :CompareErrorCode, :CompareErrorMsg, :Sim, :IsNeedCharge, :CardInfoInputJson, :RequestId
|
945
|
-
|
946
|
-
def initialize(errorcode=nil, errormsg=nil, livedata=nil, livevideo=nil, liveerrorcode=nil, liveerrormsg=nil, bestframe=nil, profileimage=nil, compareerrorcode=nil, compareerrormsg=nil, sim=nil, isneedcharge=nil, cardinfoinputjson=nil, requestid=nil)
|
947
|
-
@ErrorCode = errorcode
|
948
|
-
@ErrorMsg = errormsg
|
949
|
-
@LiveData = livedata
|
950
|
-
@LiveVideo = livevideo
|
951
|
-
@LiveErrorCode = liveerrorcode
|
952
|
-
@LiveErrorMsg = liveerrormsg
|
953
|
-
@BestFrame = bestframe
|
954
|
-
@ProfileImage = profileimage
|
955
|
-
@CompareErrorCode = compareerrorcode
|
956
|
-
@CompareErrorMsg = compareerrormsg
|
957
|
-
@Sim = sim
|
958
|
-
@IsNeedCharge = isneedcharge
|
959
|
-
@CardInfoInputJson = cardinfoinputjson
|
960
|
-
@RequestId = requestid
|
961
|
-
end
|
962
|
-
|
963
|
-
def deserialize(params)
|
964
|
-
@ErrorCode = params['ErrorCode']
|
965
|
-
@ErrorMsg = params['ErrorMsg']
|
966
|
-
unless params['LiveData'].nil?
|
967
|
-
@LiveData = FileInfo.new
|
968
|
-
@LiveData.deserialize(params['LiveData'])
|
969
|
-
end
|
970
|
-
unless params['LiveVideo'].nil?
|
971
|
-
@LiveVideo = FileInfo.new
|
972
|
-
@LiveVideo.deserialize(params['LiveVideo'])
|
973
|
-
end
|
974
|
-
@LiveErrorCode = params['LiveErrorCode']
|
975
|
-
@LiveErrorMsg = params['LiveErrorMsg']
|
976
|
-
unless params['BestFrame'].nil?
|
977
|
-
@BestFrame = FileInfo.new
|
978
|
-
@BestFrame.deserialize(params['BestFrame'])
|
979
|
-
end
|
980
|
-
unless params['ProfileImage'].nil?
|
981
|
-
@ProfileImage = FileInfo.new
|
982
|
-
@ProfileImage.deserialize(params['ProfileImage'])
|
983
|
-
end
|
984
|
-
@CompareErrorCode = params['CompareErrorCode']
|
985
|
-
@CompareErrorMsg = params['CompareErrorMsg']
|
986
|
-
@Sim = params['Sim']
|
987
|
-
@IsNeedCharge = params['IsNeedCharge']
|
988
|
-
unless params['CardInfoInputJson'].nil?
|
989
|
-
@CardInfoInputJson = FileInfo.new
|
990
|
-
@CardInfoInputJson.deserialize(params['CardInfoInputJson'])
|
991
|
-
end
|
992
|
-
@RequestId = params['RequestId']
|
993
|
-
end
|
994
|
-
end
|
995
|
-
|
996
|
-
# CreateUploadUrl请求参数结构体
|
997
|
-
class CreateUploadUrlRequest < TencentCloud::Common::AbstractModel
|
998
|
-
# @param TargetAction: 用于的接口
|
999
|
-
# @type TargetAction: String
|
1000
|
-
|
1001
|
-
attr_accessor :TargetAction
|
1002
|
-
|
1003
|
-
def initialize(targetaction=nil)
|
1004
|
-
@TargetAction = targetaction
|
1005
|
-
end
|
1006
|
-
|
1007
|
-
def deserialize(params)
|
1008
|
-
@TargetAction = params['TargetAction']
|
1009
|
-
end
|
1010
|
-
end
|
1011
|
-
|
1012
|
-
# CreateUploadUrl返回参数结构体
|
1013
|
-
class CreateUploadUrlResponse < TencentCloud::Common::AbstractModel
|
1014
|
-
# @param UploadUrl: 用于上传内容的链接,使用HTTP PUT方法上传。
|
1015
|
-
# @type UploadUrl: String
|
1016
|
-
# @param ResourceUrl: 完成上传后将该链接用于后续需要传入资源URL的地方。
|
1017
|
-
# @type ResourceUrl: String
|
1018
|
-
# @param ExpiredTimestamp: 上传和下载链接过期时间点,10位unix时间戳。
|
1019
|
-
# @type ExpiredTimestamp: Integer
|
1020
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1021
|
-
# @type RequestId: String
|
1022
|
-
|
1023
|
-
attr_accessor :UploadUrl, :ResourceUrl, :ExpiredTimestamp, :RequestId
|
1024
|
-
|
1025
|
-
def initialize(uploadurl=nil, resourceurl=nil, expiredtimestamp=nil, requestid=nil)
|
1026
|
-
@UploadUrl = uploadurl
|
1027
|
-
@ResourceUrl = resourceurl
|
1028
|
-
@ExpiredTimestamp = expiredtimestamp
|
1029
|
-
@RequestId = requestid
|
1030
|
-
end
|
1031
|
-
|
1032
|
-
def deserialize(params)
|
1033
|
-
@UploadUrl = params['UploadUrl']
|
1034
|
-
@ResourceUrl = params['ResourceUrl']
|
1035
|
-
@ExpiredTimestamp = params['ExpiredTimestamp']
|
1036
|
-
@RequestId = params['RequestId']
|
1037
|
-
end
|
1038
|
-
end
|
1039
|
-
|
1040
660
|
# DetectAuth请求参数结构体
|
1041
661
|
class DetectAuthRequest < TencentCloud::Common::AbstractModel
|
1042
662
|
# @param RuleId: 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请添加[腾讯云人脸核身小助手](https://cloud.tencent.com/document/product/1007/56130)进行咨询。
|
@@ -1057,9 +677,9 @@ module TencentCloud
|
|
1057
677
|
# @type ImageBase64: String
|
1058
678
|
# @param Encryption: 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
1059
679
|
# @type Encryption: :class:`Tencentcloud::Faceid.v20180301.models.Encryption`
|
1060
|
-
# @param IntentionVerifyText:
|
680
|
+
# @param IntentionVerifyText: 意愿核身(朗读模式)使用的文案,若未使用意愿核身(朗读模式),则该字段无需传入。默认为空,最长可接受120的字符串长度。
|
1061
681
|
# @type IntentionVerifyText: String
|
1062
|
-
# @param IntentionQuestions:
|
682
|
+
# @param IntentionQuestions: 意愿核身(问答模式)使用的文案,包括:系统语音播报的文本、需要核验的标准文本。当前仅支持一个播报文本+回答文本。
|
1063
683
|
# @type IntentionQuestions: Array
|
1064
684
|
|
1065
685
|
attr_accessor :RuleId, :TerminalType, :IdCard, :Name, :RedirectUrl, :Extra, :ImageBase64, :Encryption, :IntentionVerifyText, :IntentionQuestions
|
@@ -1462,70 +1082,6 @@ module TencentCloud
|
|
1462
1082
|
end
|
1463
1083
|
end
|
1464
1084
|
|
1465
|
-
# DetectReflectLivenessAndCompare请求参数结构体
|
1466
|
-
class DetectReflectLivenessAndCompareRequest < TencentCloud::Common::AbstractModel
|
1467
|
-
# @param LiveDataUrl: SDK生成的活体检测数据包的资源地址。
|
1468
|
-
# @type LiveDataUrl: String
|
1469
|
-
# @param LiveDataMd5: SDK生成的活体检测数据包的资源内容MD5(32位,用于校验LiveData的一致性)。
|
1470
|
-
# @type LiveDataMd5: String
|
1471
|
-
# @param ImageUrl: 用于比对的目标图片的资源地址。
|
1472
|
-
# @type ImageUrl: String
|
1473
|
-
# @param ImageMd5: 用于比对的目标图片的资源MD5(32位,用于校验Image的一致性)。
|
1474
|
-
# @type ImageMd5: String
|
1475
|
-
|
1476
|
-
attr_accessor :LiveDataUrl, :LiveDataMd5, :ImageUrl, :ImageMd5
|
1477
|
-
|
1478
|
-
def initialize(livedataurl=nil, livedatamd5=nil, imageurl=nil, imagemd5=nil)
|
1479
|
-
@LiveDataUrl = livedataurl
|
1480
|
-
@LiveDataMd5 = livedatamd5
|
1481
|
-
@ImageUrl = imageurl
|
1482
|
-
@ImageMd5 = imagemd5
|
1483
|
-
end
|
1484
|
-
|
1485
|
-
def deserialize(params)
|
1486
|
-
@LiveDataUrl = params['LiveDataUrl']
|
1487
|
-
@LiveDataMd5 = params['LiveDataMd5']
|
1488
|
-
@ImageUrl = params['ImageUrl']
|
1489
|
-
@ImageMd5 = params['ImageMd5']
|
1490
|
-
end
|
1491
|
-
end
|
1492
|
-
|
1493
|
-
# DetectReflectLivenessAndCompare返回参数结构体
|
1494
|
-
class DetectReflectLivenessAndCompareResponse < TencentCloud::Common::AbstractModel
|
1495
|
-
# @param BestFrameUrl: 验证通过后的视频最佳截图资源临时地址,jpg格式,资源和链接有效期2小时,务必在有效期内下载。
|
1496
|
-
# @type BestFrameUrl: String
|
1497
|
-
# @param BestFrameMd5: 验证通过后的视频最佳截图资源MD5(32位,用于校验BestFrame的一致性)。
|
1498
|
-
# @type BestFrameMd5: String
|
1499
|
-
# @param Result: 业务错误码,成功情况返回Success,错误情况请参考下方错误码 列表中FailedOperation部分。
|
1500
|
-
# @type Result: String
|
1501
|
-
# @param Description: 业务结果描述。
|
1502
|
-
# @type Description: String
|
1503
|
-
# @param Sim: 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
|
1504
|
-
# @type Sim: Float
|
1505
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1506
|
-
# @type RequestId: String
|
1507
|
-
|
1508
|
-
attr_accessor :BestFrameUrl, :BestFrameMd5, :Result, :Description, :Sim, :RequestId
|
1509
|
-
|
1510
|
-
def initialize(bestframeurl=nil, bestframemd5=nil, result=nil, description=nil, sim=nil, requestid=nil)
|
1511
|
-
@BestFrameUrl = bestframeurl
|
1512
|
-
@BestFrameMd5 = bestframemd5
|
1513
|
-
@Result = result
|
1514
|
-
@Description = description
|
1515
|
-
@Sim = sim
|
1516
|
-
@RequestId = requestid
|
1517
|
-
end
|
1518
|
-
|
1519
|
-
def deserialize(params)
|
1520
|
-
@BestFrameUrl = params['BestFrameUrl']
|
1521
|
-
@BestFrameMd5 = params['BestFrameMd5']
|
1522
|
-
@Result = params['Result']
|
1523
|
-
@Description = params['Description']
|
1524
|
-
@Sim = params['Sim']
|
1525
|
-
@RequestId = params['RequestId']
|
1526
|
-
end
|
1527
|
-
end
|
1528
|
-
|
1529
1085
|
# Eid出参,包括商户方用户的标识和加密的用户姓名身份证信息。
|
1530
1086
|
class EidInfo < TencentCloud::Common::AbstractModel
|
1531
1087
|
# @param EidCode: 商户方 appeIDcode 的数字证书
|
@@ -1651,81 +1207,6 @@ module TencentCloud
|
|
1651
1207
|
end
|
1652
1208
|
end
|
1653
1209
|
|
1654
|
-
# 用于描述一个文件内容,包括一个下载链接和与文件内容对应的MD5和大小。
|
1655
|
-
class FileInfo < TencentCloud::Common::AbstractModel
|
1656
|
-
# @param Url: 用于下载文件的URL
|
1657
|
-
# @type Url: String
|
1658
|
-
# @param MD5: 文件的32位MD5
|
1659
|
-
# @type MD5: String
|
1660
|
-
# @param Size: 文件字节数
|
1661
|
-
# @type Size: Integer
|
1662
|
-
|
1663
|
-
attr_accessor :Url, :MD5, :Size
|
1664
|
-
|
1665
|
-
def initialize(url=nil, md5=nil, size=nil)
|
1666
|
-
@Url = url
|
1667
|
-
@MD5 = md5
|
1668
|
-
@Size = size
|
1669
|
-
end
|
1670
|
-
|
1671
|
-
def deserialize(params)
|
1672
|
-
@Url = params['Url']
|
1673
|
-
@MD5 = params['MD5']
|
1674
|
-
@Size = params['Size']
|
1675
|
-
end
|
1676
|
-
end
|
1677
|
-
|
1678
|
-
# GenerateReflectSequence请求参数结构体
|
1679
|
-
class GenerateReflectSequenceRequest < TencentCloud::Common::AbstractModel
|
1680
|
-
# @param DeviceDataUrl: SDK生成的打包数据的资源链接。
|
1681
|
-
# @type DeviceDataUrl: String
|
1682
|
-
# @param DeviceDataMd5: SDK生成的打包数据的MD5值。
|
1683
|
-
# @type DeviceDataMd5: String
|
1684
|
-
# @param SecurityLevel: 1-静默
|
1685
|
-
# 2-眨眼
|
1686
|
-
# 3-光线
|
1687
|
-
# 4-眨眼+光线 (默认)
|
1688
|
-
# @type SecurityLevel: String
|
1689
|
-
|
1690
|
-
attr_accessor :DeviceDataUrl, :DeviceDataMd5, :SecurityLevel
|
1691
|
-
|
1692
|
-
def initialize(devicedataurl=nil, devicedatamd5=nil, securitylevel=nil)
|
1693
|
-
@DeviceDataUrl = devicedataurl
|
1694
|
-
@DeviceDataMd5 = devicedatamd5
|
1695
|
-
@SecurityLevel = securitylevel
|
1696
|
-
end
|
1697
|
-
|
1698
|
-
def deserialize(params)
|
1699
|
-
@DeviceDataUrl = params['DeviceDataUrl']
|
1700
|
-
@DeviceDataMd5 = params['DeviceDataMd5']
|
1701
|
-
@SecurityLevel = params['SecurityLevel']
|
1702
|
-
end
|
1703
|
-
end
|
1704
|
-
|
1705
|
-
# GenerateReflectSequence返回参数结构体
|
1706
|
-
class GenerateReflectSequenceResponse < TencentCloud::Common::AbstractModel
|
1707
|
-
# @param ReflectSequenceUrl: 光线序列的资源链接,下载后透传给SDK即可开始核身。
|
1708
|
-
# @type ReflectSequenceUrl: String
|
1709
|
-
# @param ReflectSequenceMd5: 光线序列的资源MD5值,用于校验改序列是否被篡改。
|
1710
|
-
# @type ReflectSequenceMd5: String
|
1711
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1712
|
-
# @type RequestId: String
|
1713
|
-
|
1714
|
-
attr_accessor :ReflectSequenceUrl, :ReflectSequenceMd5, :RequestId
|
1715
|
-
|
1716
|
-
def initialize(reflectsequenceurl=nil, reflectsequencemd5=nil, requestid=nil)
|
1717
|
-
@ReflectSequenceUrl = reflectsequenceurl
|
1718
|
-
@ReflectSequenceMd5 = reflectsequencemd5
|
1719
|
-
@RequestId = requestid
|
1720
|
-
end
|
1721
|
-
|
1722
|
-
def deserialize(params)
|
1723
|
-
@ReflectSequenceUrl = params['ReflectSequenceUrl']
|
1724
|
-
@ReflectSequenceMd5 = params['ReflectSequenceMd5']
|
1725
|
-
@RequestId = params['RequestId']
|
1726
|
-
end
|
1727
|
-
end
|
1728
|
-
|
1729
1210
|
# GetActionSequence请求参数结构体
|
1730
1211
|
class GetActionSequenceRequest < TencentCloud::Common::AbstractModel
|
1731
1212
|
# @param ActionType: 默认不需要使用
|
@@ -2373,60 +1854,6 @@ module TencentCloud
|
|
2373
1854
|
end
|
2374
1855
|
end
|
2375
1856
|
|
2376
|
-
# GetLivenessResult请求参数结构体
|
2377
|
-
class GetLivenessResultRequest < TencentCloud::Common::AbstractModel
|
2378
|
-
# @param SdkToken: 标识一次Sdk核验流程的令牌。
|
2379
|
-
# @type SdkToken: String
|
2380
|
-
|
2381
|
-
attr_accessor :SdkToken
|
2382
|
-
|
2383
|
-
def initialize(sdktoken=nil)
|
2384
|
-
@SdkToken = sdktoken
|
2385
|
-
end
|
2386
|
-
|
2387
|
-
def deserialize(params)
|
2388
|
-
@SdkToken = params['SdkToken']
|
2389
|
-
end
|
2390
|
-
end
|
2391
|
-
|
2392
|
-
# GetLivenessResult返回参数结构体
|
2393
|
-
class GetLivenessResultResponse < TencentCloud::Common::AbstractModel
|
2394
|
-
# @param Result: 流程的最终结果
|
2395
|
-
# @type Result: String
|
2396
|
-
# @param Description: 流程的最终结果描述
|
2397
|
-
# @type Description: String
|
2398
|
-
# @param BestFrame: 人像截图
|
2399
|
-
# @type BestFrame: :class:`Tencentcloud::Faceid.v20180301.models.FileInfo`
|
2400
|
-
# @param Video: 检测过程视频
|
2401
|
-
# @type Video: :class:`Tencentcloud::Faceid.v20180301.models.FileInfo`
|
2402
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2403
|
-
# @type RequestId: String
|
2404
|
-
|
2405
|
-
attr_accessor :Result, :Description, :BestFrame, :Video, :RequestId
|
2406
|
-
|
2407
|
-
def initialize(result=nil, description=nil, bestframe=nil, video=nil, requestid=nil)
|
2408
|
-
@Result = result
|
2409
|
-
@Description = description
|
2410
|
-
@BestFrame = bestframe
|
2411
|
-
@Video = video
|
2412
|
-
@RequestId = requestid
|
2413
|
-
end
|
2414
|
-
|
2415
|
-
def deserialize(params)
|
2416
|
-
@Result = params['Result']
|
2417
|
-
@Description = params['Description']
|
2418
|
-
unless params['BestFrame'].nil?
|
2419
|
-
@BestFrame = FileInfo.new
|
2420
|
-
@BestFrame.deserialize(params['BestFrame'])
|
2421
|
-
end
|
2422
|
-
unless params['Video'].nil?
|
2423
|
-
@Video = FileInfo.new
|
2424
|
-
@Video.deserialize(params['Video'])
|
2425
|
-
end
|
2426
|
-
@RequestId = params['RequestId']
|
2427
|
-
end
|
2428
|
-
end
|
2429
|
-
|
2430
1857
|
# GetRealNameAuthResult请求参数结构体
|
2431
1858
|
class GetRealNameAuthResultRequest < TencentCloud::Common::AbstractModel
|
2432
1859
|
# @param AuthToken: 实名认证凭证
|
@@ -2519,76 +1946,6 @@ module TencentCloud
|
|
2519
1946
|
end
|
2520
1947
|
end
|
2521
1948
|
|
2522
|
-
# GetSdkVerificationResult请求参数结构体
|
2523
|
-
class GetSdkVerificationResultRequest < TencentCloud::Common::AbstractModel
|
2524
|
-
# @param SdkToken: 标识一次Sdk核验流程的令牌。
|
2525
|
-
# @type SdkToken: String
|
2526
|
-
|
2527
|
-
attr_accessor :SdkToken
|
2528
|
-
|
2529
|
-
def initialize(sdktoken=nil)
|
2530
|
-
@SdkToken = sdktoken
|
2531
|
-
end
|
2532
|
-
|
2533
|
-
def deserialize(params)
|
2534
|
-
@SdkToken = params['SdkToken']
|
2535
|
-
end
|
2536
|
-
end
|
2537
|
-
|
2538
|
-
# GetSdkVerificationResult返回参数结构体
|
2539
|
-
class GetSdkVerificationResultResponse < TencentCloud::Common::AbstractModel
|
2540
|
-
# @param Result: 整个核验结果
|
2541
|
-
# @type Result: String
|
2542
|
-
# @param Description: 结果描述
|
2543
|
-
# @type Description: String
|
2544
|
-
# @param ChargeCount: 计费次数
|
2545
|
-
# @type ChargeCount: Integer
|
2546
|
-
# @param CardVerifyResults: 多次证照识别的结果(有序),取最终一次结果为有效结果
|
2547
|
-
# @type CardVerifyResults: Array
|
2548
|
-
# @param CompareResults: 多次活体认证的结果信息(有序),取最终一次结果为有效结果
|
2549
|
-
# @type CompareResults: Array
|
2550
|
-
# @param Extra: 获取token时传入的
|
2551
|
-
# @type Extra: String
|
2552
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2553
|
-
# @type RequestId: String
|
2554
|
-
|
2555
|
-
attr_accessor :Result, :Description, :ChargeCount, :CardVerifyResults, :CompareResults, :Extra, :RequestId
|
2556
|
-
|
2557
|
-
def initialize(result=nil, description=nil, chargecount=nil, cardverifyresults=nil, compareresults=nil, extra=nil, requestid=nil)
|
2558
|
-
@Result = result
|
2559
|
-
@Description = description
|
2560
|
-
@ChargeCount = chargecount
|
2561
|
-
@CardVerifyResults = cardverifyresults
|
2562
|
-
@CompareResults = compareresults
|
2563
|
-
@Extra = extra
|
2564
|
-
@RequestId = requestid
|
2565
|
-
end
|
2566
|
-
|
2567
|
-
def deserialize(params)
|
2568
|
-
@Result = params['Result']
|
2569
|
-
@Description = params['Description']
|
2570
|
-
@ChargeCount = params['ChargeCount']
|
2571
|
-
unless params['CardVerifyResults'].nil?
|
2572
|
-
@CardVerifyResults = []
|
2573
|
-
params['CardVerifyResults'].each do |i|
|
2574
|
-
cardverifyresult_tmp = CardVerifyResult.new
|
2575
|
-
cardverifyresult_tmp.deserialize(i)
|
2576
|
-
@CardVerifyResults << cardverifyresult_tmp
|
2577
|
-
end
|
2578
|
-
end
|
2579
|
-
unless params['CompareResults'].nil?
|
2580
|
-
@CompareResults = []
|
2581
|
-
params['CompareResults'].each do |i|
|
2582
|
-
compareresult_tmp = CompareResult.new
|
2583
|
-
compareresult_tmp.deserialize(i)
|
2584
|
-
@CompareResults << compareresult_tmp
|
2585
|
-
end
|
2586
|
-
end
|
2587
|
-
@Extra = params['Extra']
|
2588
|
-
@RequestId = params['RequestId']
|
2589
|
-
end
|
2590
|
-
end
|
2591
|
-
|
2592
1949
|
# GetWeChatBillDetails请求参数结构体
|
2593
1950
|
class GetWeChatBillDetailsRequest < TencentCloud::Common::AbstractModel
|
2594
1951
|
# @param Date: 拉取的日期(YYYY-MM-DD)。最大可追溯到365天前。当天6点后才能拉取前一天的数据。
|
@@ -2648,80 +2005,6 @@ module TencentCloud
|
|
2648
2005
|
end
|
2649
2006
|
end
|
2650
2007
|
|
2651
|
-
# GetWebVerificationResult请求参数结构体
|
2652
|
-
class GetWebVerificationResultRequest < TencentCloud::Common::AbstractModel
|
2653
|
-
# @param BizToken: Web核验令牌,由ApplyWebVerificationToken接口生成。
|
2654
|
-
# @type BizToken: String
|
2655
|
-
|
2656
|
-
attr_accessor :BizToken
|
2657
|
-
|
2658
|
-
def initialize(biztoken=nil)
|
2659
|
-
@BizToken = biztoken
|
2660
|
-
end
|
2661
|
-
|
2662
|
-
def deserialize(params)
|
2663
|
-
@BizToken = params['BizToken']
|
2664
|
-
end
|
2665
|
-
end
|
2666
|
-
|
2667
|
-
# GetWebVerificationResult返回参数结构体
|
2668
|
-
class GetWebVerificationResultResponse < TencentCloud::Common::AbstractModel
|
2669
|
-
# @param ErrorCode: 本次核验最终结果。0为核验通过,是同一人。
|
2670
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2671
|
-
# @type ErrorCode: Integer
|
2672
|
-
# @param ErrorMsg: 本次核验最终结果描述。
|
2673
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2674
|
-
# @type ErrorMsg: String
|
2675
|
-
# @param VideoBestFrameUrl: 视频流中采集的最佳人脸照片临时地址,下载有效时间10分钟,如果需要存储请及时下载。
|
2676
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2677
|
-
# @type VideoBestFrameUrl: String
|
2678
|
-
# @param VideoBestFrameMd5: 视频流中采集的最佳人脸照片内容MD5散列值,可以使用此值校验文件内容是否一致。
|
2679
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2680
|
-
# @type VideoBestFrameMd5: String
|
2681
|
-
# @param VerificationDetailList: 本次核验流程的详细信息列表。
|
2682
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2683
|
-
# @type VerificationDetailList: Array
|
2684
|
-
# @param VideoUrl: 视频流中采集的视频临时地址,下载有效时间10分钟,如果需要存储请及时下载。
|
2685
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2686
|
-
# @type VideoUrl: String
|
2687
|
-
# @param VideoMd5: 视频流中采集的视频内容MD5散列值,可以使用此值校验文件内容是否一致。
|
2688
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2689
|
-
# @type VideoMd5: String
|
2690
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2691
|
-
# @type RequestId: String
|
2692
|
-
|
2693
|
-
attr_accessor :ErrorCode, :ErrorMsg, :VideoBestFrameUrl, :VideoBestFrameMd5, :VerificationDetailList, :VideoUrl, :VideoMd5, :RequestId
|
2694
|
-
|
2695
|
-
def initialize(errorcode=nil, errormsg=nil, videobestframeurl=nil, videobestframemd5=nil, verificationdetaillist=nil, videourl=nil, videomd5=nil, requestid=nil)
|
2696
|
-
@ErrorCode = errorcode
|
2697
|
-
@ErrorMsg = errormsg
|
2698
|
-
@VideoBestFrameUrl = videobestframeurl
|
2699
|
-
@VideoBestFrameMd5 = videobestframemd5
|
2700
|
-
@VerificationDetailList = verificationdetaillist
|
2701
|
-
@VideoUrl = videourl
|
2702
|
-
@VideoMd5 = videomd5
|
2703
|
-
@RequestId = requestid
|
2704
|
-
end
|
2705
|
-
|
2706
|
-
def deserialize(params)
|
2707
|
-
@ErrorCode = params['ErrorCode']
|
2708
|
-
@ErrorMsg = params['ErrorMsg']
|
2709
|
-
@VideoBestFrameUrl = params['VideoBestFrameUrl']
|
2710
|
-
@VideoBestFrameMd5 = params['VideoBestFrameMd5']
|
2711
|
-
unless params['VerificationDetailList'].nil?
|
2712
|
-
@VerificationDetailList = []
|
2713
|
-
params['VerificationDetailList'].each do |i|
|
2714
|
-
verificationdetail_tmp = VerificationDetail.new
|
2715
|
-
verificationdetail_tmp.deserialize(i)
|
2716
|
-
@VerificationDetailList << verificationdetail_tmp
|
2717
|
-
end
|
2718
|
-
end
|
2719
|
-
@VideoUrl = params['VideoUrl']
|
2720
|
-
@VideoMd5 = params['VideoMd5']
|
2721
|
-
@RequestId = params['RequestId']
|
2722
|
-
end
|
2723
|
-
end
|
2724
|
-
|
2725
2008
|
# IdCardOCRVerification请求参数结构体
|
2726
2009
|
class IdCardOCRVerificationRequest < TencentCloud::Common::AbstractModel
|
2727
2010
|
# @param IdCard: 身份证号
|
@@ -3946,142 +3229,6 @@ module TencentCloud
|
|
3946
3229
|
end
|
3947
3230
|
end
|
3948
3231
|
|
3949
|
-
# 核验流程详细信息
|
3950
|
-
class VerificationDetail < TencentCloud::Common::AbstractModel
|
3951
|
-
# @param ErrorCode: 本次核验最终结果。0为核验通过,是同一人。
|
3952
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3953
|
-
# @type ErrorCode: Integer
|
3954
|
-
# @param ErrorMsg: 本次核验最终结果描述。
|
3955
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3956
|
-
# @type ErrorMsg: String
|
3957
|
-
# @param LivenessErrorCode: 本次核验活体结果。0为成功
|
3958
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3959
|
-
# @type LivenessErrorCode: Integer
|
3960
|
-
# @param LivenessErrorMsg: 本次核验活体结果描述
|
3961
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3962
|
-
# @type LivenessErrorMsg: String
|
3963
|
-
# @param CompareErrorCode: 本次核验比对结果。0为视频流中采集的最佳人脸照片和上传的比对照片是同一人。
|
3964
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3965
|
-
# @type CompareErrorCode: Integer
|
3966
|
-
# @param CompareErrorMsg: 本次核验比对结果描述。
|
3967
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3968
|
-
# @type CompareErrorMsg: String
|
3969
|
-
# @param ReqTimestamp: 本次核验时间戳(毫秒)
|
3970
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3971
|
-
# @type ReqTimestamp: Integer
|
3972
|
-
# @param Similarity: 本次核验视频流中采集的最佳人脸照片和上传的比对照片的相似度, 范围[0.00, 100.00],默认大于等于70时判断为同一人。
|
3973
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3974
|
-
# @type Similarity: Float
|
3975
|
-
# @param Seq: 本次核验的唯一标识
|
3976
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3977
|
-
# @type Seq: String
|
3978
|
-
|
3979
|
-
attr_accessor :ErrorCode, :ErrorMsg, :LivenessErrorCode, :LivenessErrorMsg, :CompareErrorCode, :CompareErrorMsg, :ReqTimestamp, :Similarity, :Seq
|
3980
|
-
|
3981
|
-
def initialize(errorcode=nil, errormsg=nil, livenesserrorcode=nil, livenesserrormsg=nil, compareerrorcode=nil, compareerrormsg=nil, reqtimestamp=nil, similarity=nil, seq=nil)
|
3982
|
-
@ErrorCode = errorcode
|
3983
|
-
@ErrorMsg = errormsg
|
3984
|
-
@LivenessErrorCode = livenesserrorcode
|
3985
|
-
@LivenessErrorMsg = livenesserrormsg
|
3986
|
-
@CompareErrorCode = compareerrorcode
|
3987
|
-
@CompareErrorMsg = compareerrormsg
|
3988
|
-
@ReqTimestamp = reqtimestamp
|
3989
|
-
@Similarity = similarity
|
3990
|
-
@Seq = seq
|
3991
|
-
end
|
3992
|
-
|
3993
|
-
def deserialize(params)
|
3994
|
-
@ErrorCode = params['ErrorCode']
|
3995
|
-
@ErrorMsg = params['ErrorMsg']
|
3996
|
-
@LivenessErrorCode = params['LivenessErrorCode']
|
3997
|
-
@LivenessErrorMsg = params['LivenessErrorMsg']
|
3998
|
-
@CompareErrorCode = params['CompareErrorCode']
|
3999
|
-
@CompareErrorMsg = params['CompareErrorMsg']
|
4000
|
-
@ReqTimestamp = params['ReqTimestamp']
|
4001
|
-
@Similarity = params['Similarity']
|
4002
|
-
@Seq = params['Seq']
|
4003
|
-
end
|
4004
|
-
end
|
4005
|
-
|
4006
|
-
# VideoLivenessCompare请求参数结构体
|
4007
|
-
class VideoLivenessCompareRequest < TencentCloud::Common::AbstractModel
|
4008
|
-
# @param ImageUrl: 用于人脸比对照片的URL地址;图片下载后经Base64编码后的数据大小不超过3M,仅支持jpg、png格式。
|
4009
|
-
|
4010
|
-
# 图片仅支持腾讯云同region的Cos地址,可保障更高的下载速度和稳定性,可使用CreateUploadUrl生成或自行购买Cos。
|
4011
|
-
# @type ImageUrl: String
|
4012
|
-
# @param ImageMd5: 比对图片的32位Md5值。
|
4013
|
-
# @type ImageMd5: String
|
4014
|
-
# @param VideoUrl: 用于活体检测的视频Url 地址。视频下载后经Base64编码后不超过 8M,视频下载耗时不超过4S,支持mp4、avi、flv格式。
|
4015
|
-
|
4016
|
-
# 视频仅支持腾讯云同region的Cos地址,可保障更高的下载速度和稳定性,可使用CreateUploadUrl生成或自行购买Cos。
|
4017
|
-
# @type VideoUrl: String
|
4018
|
-
# @param VideoMd5: 视频的32位Md5值。
|
4019
|
-
# @type VideoMd5: String
|
4020
|
-
# @param LivenessType: 活体检测类型,取值:LIP/ACTION/SILENT。
|
4021
|
-
# LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
|
4022
|
-
# @type LivenessType: String
|
4023
|
-
# @param ValidateData: 数字模式传参:传数字验证码,需自定义四位数字验证码;
|
4024
|
-
# 动作模式传参:传动作顺序,需自定义动作顺序(2,1 or 1,2);
|
4025
|
-
# 静默模式传参:空。
|
4026
|
-
# @type ValidateData: String
|
4027
|
-
|
4028
|
-
attr_accessor :ImageUrl, :ImageMd5, :VideoUrl, :VideoMd5, :LivenessType, :ValidateData
|
4029
|
-
|
4030
|
-
def initialize(imageurl=nil, imagemd5=nil, videourl=nil, videomd5=nil, livenesstype=nil, validatedata=nil)
|
4031
|
-
@ImageUrl = imageurl
|
4032
|
-
@ImageMd5 = imagemd5
|
4033
|
-
@VideoUrl = videourl
|
4034
|
-
@VideoMd5 = videomd5
|
4035
|
-
@LivenessType = livenesstype
|
4036
|
-
@ValidateData = validatedata
|
4037
|
-
end
|
4038
|
-
|
4039
|
-
def deserialize(params)
|
4040
|
-
@ImageUrl = params['ImageUrl']
|
4041
|
-
@ImageMd5 = params['ImageMd5']
|
4042
|
-
@VideoUrl = params['VideoUrl']
|
4043
|
-
@VideoMd5 = params['VideoMd5']
|
4044
|
-
@LivenessType = params['LivenessType']
|
4045
|
-
@ValidateData = params['ValidateData']
|
4046
|
-
end
|
4047
|
-
end
|
4048
|
-
|
4049
|
-
# VideoLivenessCompare返回参数结构体
|
4050
|
-
class VideoLivenessCompareResponse < TencentCloud::Common::AbstractModel
|
4051
|
-
# @param Sim: 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
|
4052
|
-
# @type Sim: Float
|
4053
|
-
# @param Result: 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
|
4054
|
-
# @type Result: String
|
4055
|
-
# @param Description: 业务结果描述。
|
4056
|
-
# @type Description: String
|
4057
|
-
# @param BestFrame: 验证通过后的视频最佳截图照片。
|
4058
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4059
|
-
# @type BestFrame: :class:`Tencentcloud::Faceid.v20180301.models.FileInfo`
|
4060
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4061
|
-
# @type RequestId: String
|
4062
|
-
|
4063
|
-
attr_accessor :Sim, :Result, :Description, :BestFrame, :RequestId
|
4064
|
-
|
4065
|
-
def initialize(sim=nil, result=nil, description=nil, bestframe=nil, requestid=nil)
|
4066
|
-
@Sim = sim
|
4067
|
-
@Result = result
|
4068
|
-
@Description = description
|
4069
|
-
@BestFrame = bestframe
|
4070
|
-
@RequestId = requestid
|
4071
|
-
end
|
4072
|
-
|
4073
|
-
def deserialize(params)
|
4074
|
-
@Sim = params['Sim']
|
4075
|
-
@Result = params['Result']
|
4076
|
-
@Description = params['Description']
|
4077
|
-
unless params['BestFrame'].nil?
|
4078
|
-
@BestFrame = FileInfo.new
|
4079
|
-
@BestFrame.deserialize(params['BestFrame'])
|
4080
|
-
end
|
4081
|
-
@RequestId = params['RequestId']
|
4082
|
-
end
|
4083
|
-
end
|
4084
|
-
|
4085
3232
|
# 账单详情
|
4086
3233
|
class WeChatBillDetail < TencentCloud::Common::AbstractModel
|
4087
3234
|
# @param BizToken: token
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-faceid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.449
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|