tencentcloud-sdk-faceid 1.0.246 → 1.0.247
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180301/client.rb +72 -0
- data/lib/v20180301/models.rb +210 -0
- 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: 16f244a01c88a3856bcca5fb78c4953ee4829d3f
|
4
|
+
data.tar.gz: 764b6b64e83161758d1d082d46f72bf03c43f56c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af7237b2dd8634e15552db7bd1b6559d8e5e2bec46f33c2f9d69d8f3fd9735c536248df2642cf4cf5f7461d23f738cf9b8640ee1af8b46af219424488855d9e1
|
7
|
+
data.tar.gz: 30729ffc55594d1e3128d96d19fa8cd4f5497434291fd7980d5db42bdeccf367ea876daf0ba4e90a70a7b97b36bb95eea8499c736fc5e0e42bff64fc9097cf4a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.247
|
data/lib/v20180301/client.rb
CHANGED
@@ -798,6 +798,78 @@ module TencentCloud
|
|
798
798
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
799
799
|
end
|
800
800
|
|
801
|
+
# 本接口用于校验中国移动手机号、姓名和身份证号的真实性和一致性。中国移动支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
|
802
|
+
|
803
|
+
# @param request: Request instance for PhoneVerificationCMCC.
|
804
|
+
# @type request: :class:`Tencentcloud::faceid::V20180301::PhoneVerificationCMCCRequest`
|
805
|
+
# @rtype: :class:`Tencentcloud::faceid::V20180301::PhoneVerificationCMCCResponse`
|
806
|
+
def PhoneVerificationCMCC(request)
|
807
|
+
body = send_request('PhoneVerificationCMCC', request.serialize)
|
808
|
+
response = JSON.parse(body)
|
809
|
+
if response['Response'].key?('Error') == false
|
810
|
+
model = PhoneVerificationCMCCResponse.new
|
811
|
+
model.deserialize(response['Response'])
|
812
|
+
model
|
813
|
+
else
|
814
|
+
code = response['Response']['Error']['Code']
|
815
|
+
message = response['Response']['Error']['Message']
|
816
|
+
reqid = response['Response']['RequestId']
|
817
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
818
|
+
end
|
819
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
820
|
+
raise e
|
821
|
+
rescue StandardError => e
|
822
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
823
|
+
end
|
824
|
+
|
825
|
+
# 本接口用于校验中国电信手机号、姓名和身份证号的真实性和一致性。中国电信支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
|
826
|
+
|
827
|
+
# @param request: Request instance for PhoneVerificationCTCC.
|
828
|
+
# @type request: :class:`Tencentcloud::faceid::V20180301::PhoneVerificationCTCCRequest`
|
829
|
+
# @rtype: :class:`Tencentcloud::faceid::V20180301::PhoneVerificationCTCCResponse`
|
830
|
+
def PhoneVerificationCTCC(request)
|
831
|
+
body = send_request('PhoneVerificationCTCC', request.serialize)
|
832
|
+
response = JSON.parse(body)
|
833
|
+
if response['Response'].key?('Error') == false
|
834
|
+
model = PhoneVerificationCTCCResponse.new
|
835
|
+
model.deserialize(response['Response'])
|
836
|
+
model
|
837
|
+
else
|
838
|
+
code = response['Response']['Error']['Code']
|
839
|
+
message = response['Response']['Error']['Message']
|
840
|
+
reqid = response['Response']['RequestId']
|
841
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
842
|
+
end
|
843
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
844
|
+
raise e
|
845
|
+
rescue StandardError => e
|
846
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
847
|
+
end
|
848
|
+
|
849
|
+
# 本接口用于校验中国联通手机号、姓名和身份证号的真实性和一致性。中国联通支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
|
850
|
+
|
851
|
+
# @param request: Request instance for PhoneVerificationCUCC.
|
852
|
+
# @type request: :class:`Tencentcloud::faceid::V20180301::PhoneVerificationCUCCRequest`
|
853
|
+
# @rtype: :class:`Tencentcloud::faceid::V20180301::PhoneVerificationCUCCResponse`
|
854
|
+
def PhoneVerificationCUCC(request)
|
855
|
+
body = send_request('PhoneVerificationCUCC', request.serialize)
|
856
|
+
response = JSON.parse(body)
|
857
|
+
if response['Response'].key?('Error') == false
|
858
|
+
model = PhoneVerificationCUCCResponse.new
|
859
|
+
model.deserialize(response['Response'])
|
860
|
+
model
|
861
|
+
else
|
862
|
+
code = response['Response']['Error']['Code']
|
863
|
+
message = response['Response']['Error']['Message']
|
864
|
+
reqid = response['Response']['RequestId']
|
865
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
866
|
+
end
|
867
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
868
|
+
raise e
|
869
|
+
rescue StandardError => e
|
870
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
871
|
+
end
|
872
|
+
|
801
873
|
|
802
874
|
end
|
803
875
|
end
|
data/lib/v20180301/models.rb
CHANGED
@@ -2686,6 +2686,216 @@ module TencentCloud
|
|
2686
2686
|
end
|
2687
2687
|
end
|
2688
2688
|
|
2689
|
+
# PhoneVerificationCMCC请求参数结构体
|
2690
|
+
class PhoneVerificationCMCCRequest < TencentCloud::Common::AbstractModel
|
2691
|
+
# @param IdCard: 身份证号
|
2692
|
+
# @type IdCard: String
|
2693
|
+
# @param Name: 姓名
|
2694
|
+
# @type Name: String
|
2695
|
+
# @param Phone: 手机号
|
2696
|
+
# @type Phone: String
|
2697
|
+
# @param Encryption: 敏感数据加密信息。对传入信息(姓名、身份证号、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
2698
|
+
# @type Encryption: :class:`Tencentcloud::Faceid.v20180301.models.Encryption`
|
2699
|
+
|
2700
|
+
attr_accessor :IdCard, :Name, :Phone, :Encryption
|
2701
|
+
|
2702
|
+
def initialize(idcard=nil, name=nil, phone=nil, encryption=nil)
|
2703
|
+
@IdCard = idcard
|
2704
|
+
@Name = name
|
2705
|
+
@Phone = phone
|
2706
|
+
@Encryption = encryption
|
2707
|
+
end
|
2708
|
+
|
2709
|
+
def deserialize(params)
|
2710
|
+
@IdCard = params['IdCard']
|
2711
|
+
@Name = params['Name']
|
2712
|
+
@Phone = params['Phone']
|
2713
|
+
unless params['Encryption'].nil?
|
2714
|
+
@Encryption = Encryption.new
|
2715
|
+
@Encryption.deserialize(params['Encryption'])
|
2716
|
+
end
|
2717
|
+
end
|
2718
|
+
end
|
2719
|
+
|
2720
|
+
# PhoneVerificationCMCC返回参数结构体
|
2721
|
+
class PhoneVerificationCMCCResponse < TencentCloud::Common::AbstractModel
|
2722
|
+
# @param Result: 认证结果码,收费情况如下。
|
2723
|
+
# 收费结果码:
|
2724
|
+
# 0: 认证通过
|
2725
|
+
# -4: 信息不一致(手机号已实名,但姓名和身份证号与实名信息不一致)
|
2726
|
+
# 不收费结果码:
|
2727
|
+
# -6: 手机号码不合法
|
2728
|
+
# -7: 身份证号码有误
|
2729
|
+
# -8: 姓名校验不通过
|
2730
|
+
# -9: 没有记录
|
2731
|
+
# -10: 认证未通过
|
2732
|
+
# -11: 验证中心服务繁忙
|
2733
|
+
# @type Result: String
|
2734
|
+
# @param Isp: 运营商名称。
|
2735
|
+
# 取值范围为["移动","联通","电信",""]
|
2736
|
+
# @type Isp: String
|
2737
|
+
# @param Description: 业务结果描述。
|
2738
|
+
# @type Description: String
|
2739
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2740
|
+
# @type RequestId: String
|
2741
|
+
|
2742
|
+
attr_accessor :Result, :Isp, :Description, :RequestId
|
2743
|
+
|
2744
|
+
def initialize(result=nil, isp=nil, description=nil, requestid=nil)
|
2745
|
+
@Result = result
|
2746
|
+
@Isp = isp
|
2747
|
+
@Description = description
|
2748
|
+
@RequestId = requestid
|
2749
|
+
end
|
2750
|
+
|
2751
|
+
def deserialize(params)
|
2752
|
+
@Result = params['Result']
|
2753
|
+
@Isp = params['Isp']
|
2754
|
+
@Description = params['Description']
|
2755
|
+
@RequestId = params['RequestId']
|
2756
|
+
end
|
2757
|
+
end
|
2758
|
+
|
2759
|
+
# PhoneVerificationCTCC请求参数结构体
|
2760
|
+
class PhoneVerificationCTCCRequest < TencentCloud::Common::AbstractModel
|
2761
|
+
# @param IdCard: 身份证号
|
2762
|
+
# @type IdCard: String
|
2763
|
+
# @param Name: 姓名
|
2764
|
+
# @type Name: String
|
2765
|
+
# @param Phone: 手机号
|
2766
|
+
# @type Phone: String
|
2767
|
+
# @param Encryption: 敏感数据加密信息。对传入信息(姓名、身份证号、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
2768
|
+
# @type Encryption: :class:`Tencentcloud::Faceid.v20180301.models.Encryption`
|
2769
|
+
|
2770
|
+
attr_accessor :IdCard, :Name, :Phone, :Encryption
|
2771
|
+
|
2772
|
+
def initialize(idcard=nil, name=nil, phone=nil, encryption=nil)
|
2773
|
+
@IdCard = idcard
|
2774
|
+
@Name = name
|
2775
|
+
@Phone = phone
|
2776
|
+
@Encryption = encryption
|
2777
|
+
end
|
2778
|
+
|
2779
|
+
def deserialize(params)
|
2780
|
+
@IdCard = params['IdCard']
|
2781
|
+
@Name = params['Name']
|
2782
|
+
@Phone = params['Phone']
|
2783
|
+
unless params['Encryption'].nil?
|
2784
|
+
@Encryption = Encryption.new
|
2785
|
+
@Encryption.deserialize(params['Encryption'])
|
2786
|
+
end
|
2787
|
+
end
|
2788
|
+
end
|
2789
|
+
|
2790
|
+
# PhoneVerificationCTCC返回参数结构体
|
2791
|
+
class PhoneVerificationCTCCResponse < TencentCloud::Common::AbstractModel
|
2792
|
+
# @param Result: 认证结果码,收费情况如下。
|
2793
|
+
# 收费结果码:
|
2794
|
+
# 0: 认证通过
|
2795
|
+
# -4: 信息不一致(手机号已实名,但姓名和身份证号与实名信息不一致)
|
2796
|
+
# 不收费结果码:
|
2797
|
+
# -6: 手机号码不合法
|
2798
|
+
# -7: 身份证号码有误
|
2799
|
+
# -8: 姓名校验不通过
|
2800
|
+
# -9: 没有记录
|
2801
|
+
# -10: 认证未通过
|
2802
|
+
# -11: 验证中心服务繁忙
|
2803
|
+
# @type Result: String
|
2804
|
+
# @param Isp: 运营商名称。
|
2805
|
+
# 取值范围为["移动","联通","电信",""]
|
2806
|
+
# @type Isp: String
|
2807
|
+
# @param Description: 业务结果描述。
|
2808
|
+
# @type Description: String
|
2809
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2810
|
+
# @type RequestId: String
|
2811
|
+
|
2812
|
+
attr_accessor :Result, :Isp, :Description, :RequestId
|
2813
|
+
|
2814
|
+
def initialize(result=nil, isp=nil, description=nil, requestid=nil)
|
2815
|
+
@Result = result
|
2816
|
+
@Isp = isp
|
2817
|
+
@Description = description
|
2818
|
+
@RequestId = requestid
|
2819
|
+
end
|
2820
|
+
|
2821
|
+
def deserialize(params)
|
2822
|
+
@Result = params['Result']
|
2823
|
+
@Isp = params['Isp']
|
2824
|
+
@Description = params['Description']
|
2825
|
+
@RequestId = params['RequestId']
|
2826
|
+
end
|
2827
|
+
end
|
2828
|
+
|
2829
|
+
# PhoneVerificationCUCC请求参数结构体
|
2830
|
+
class PhoneVerificationCUCCRequest < TencentCloud::Common::AbstractModel
|
2831
|
+
# @param IdCard: 身份证号
|
2832
|
+
# @type IdCard: String
|
2833
|
+
# @param Name: 姓名
|
2834
|
+
# @type Name: String
|
2835
|
+
# @param Phone: 手机号
|
2836
|
+
# @type Phone: String
|
2837
|
+
# @param Encryption: 敏感数据加密信息。对传入信息(姓名、身份证号、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
2838
|
+
# @type Encryption: :class:`Tencentcloud::Faceid.v20180301.models.Encryption`
|
2839
|
+
|
2840
|
+
attr_accessor :IdCard, :Name, :Phone, :Encryption
|
2841
|
+
|
2842
|
+
def initialize(idcard=nil, name=nil, phone=nil, encryption=nil)
|
2843
|
+
@IdCard = idcard
|
2844
|
+
@Name = name
|
2845
|
+
@Phone = phone
|
2846
|
+
@Encryption = encryption
|
2847
|
+
end
|
2848
|
+
|
2849
|
+
def deserialize(params)
|
2850
|
+
@IdCard = params['IdCard']
|
2851
|
+
@Name = params['Name']
|
2852
|
+
@Phone = params['Phone']
|
2853
|
+
unless params['Encryption'].nil?
|
2854
|
+
@Encryption = Encryption.new
|
2855
|
+
@Encryption.deserialize(params['Encryption'])
|
2856
|
+
end
|
2857
|
+
end
|
2858
|
+
end
|
2859
|
+
|
2860
|
+
# PhoneVerificationCUCC返回参数结构体
|
2861
|
+
class PhoneVerificationCUCCResponse < TencentCloud::Common::AbstractModel
|
2862
|
+
# @param Result: 认证结果码,收费情况如下。
|
2863
|
+
# 收费结果码:
|
2864
|
+
# 0: 认证通过
|
2865
|
+
# -4: 信息不一致(手机号已实名,但姓名和身份证号与实名信息不一致)
|
2866
|
+
# 不收费结果码:
|
2867
|
+
# -6: 手机号码不合法
|
2868
|
+
# -7: 身份证号码有误
|
2869
|
+
# -8: 姓名校验不通过
|
2870
|
+
# -9: 没有记录
|
2871
|
+
# -10: 认证未通过
|
2872
|
+
# -11: 验证中心服务繁忙
|
2873
|
+
# @type Result: String
|
2874
|
+
# @param Isp: 运营商名称。
|
2875
|
+
# 取值范围为["移动","联通","电信",""]
|
2876
|
+
# @type Isp: String
|
2877
|
+
# @param Description: 业务结果描述。
|
2878
|
+
# @type Description: String
|
2879
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2880
|
+
# @type RequestId: String
|
2881
|
+
|
2882
|
+
attr_accessor :Result, :Isp, :Description, :RequestId
|
2883
|
+
|
2884
|
+
def initialize(result=nil, isp=nil, description=nil, requestid=nil)
|
2885
|
+
@Result = result
|
2886
|
+
@Isp = isp
|
2887
|
+
@Description = description
|
2888
|
+
@RequestId = requestid
|
2889
|
+
end
|
2890
|
+
|
2891
|
+
def deserialize(params)
|
2892
|
+
@Result = params['Result']
|
2893
|
+
@Isp = params['Isp']
|
2894
|
+
@Description = params['Description']
|
2895
|
+
@RequestId = params['RequestId']
|
2896
|
+
end
|
2897
|
+
end
|
2898
|
+
|
2689
2899
|
# PhoneVerification请求参数结构体
|
2690
2900
|
class PhoneVerificationRequest < TencentCloud::Common::AbstractModel
|
2691
2901
|
# @param IdCard: 身份证号
|
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: 1.0.
|
4
|
+
version: 1.0.247
|
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-01-
|
11
|
+
date: 2022-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|