tencentcloud-sdk-faceid 1.0.236 → 1.0.237
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 +24 -0
- data/lib/v20180301/models.rb +142 -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: 1f708cecca477070f39e09ce961629c597f5d993
|
4
|
+
data.tar.gz: d44ef2d89b0626e4fca3d4c08b0d95527389f07c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 212297c52535de9ad6d48dc53dc6232fdf0802bfdd46e5b5791c5fc959ce2d47787baf1ce08c65da1a25e731b0877b2c7890a05958e481b583005db73622d527
|
7
|
+
data.tar.gz: 3877c0d9efd6eb24677d210cea182b9916a94e2c2b525b051af9fd2e00c0f9b73bbf0d0286596a8569457edac139e4aa3a0d47238768239c371e078c199bd52d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.237
|
data/lib/v20180301/client.rb
CHANGED
@@ -534,6 +534,30 @@ module TencentCloud
|
|
534
534
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
535
535
|
end
|
536
536
|
|
537
|
+
# 查询微信渠道服务(微信小程序、微信原生H5、微信普通H5)的账单明细及计费状态。
|
538
|
+
|
539
|
+
# @param request: Request instance for GetWeChatBillDetails.
|
540
|
+
# @type request: :class:`Tencentcloud::faceid::V20180301::GetWeChatBillDetailsRequest`
|
541
|
+
# @rtype: :class:`Tencentcloud::faceid::V20180301::GetWeChatBillDetailsResponse`
|
542
|
+
def GetWeChatBillDetails(request)
|
543
|
+
body = send_request('GetWeChatBillDetails', request.serialize)
|
544
|
+
response = JSON.parse(body)
|
545
|
+
if response['Response'].key?('Error') == false
|
546
|
+
model = GetWeChatBillDetailsResponse.new
|
547
|
+
model.deserialize(response['Response'])
|
548
|
+
model
|
549
|
+
else
|
550
|
+
code = response['Response']['Error']['Code']
|
551
|
+
message = response['Response']['Error']['Message']
|
552
|
+
reqid = response['Response']['RequestId']
|
553
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
554
|
+
end
|
555
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
556
|
+
raise e
|
557
|
+
rescue StandardError => e
|
558
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
559
|
+
end
|
560
|
+
|
537
561
|
# 本接口用于校验姓名和身份证号的真实性和一致性,您可以通过输入姓名和身份证号或传入身份证人像面照片提供所需验证信息。
|
538
562
|
|
539
563
|
# @param request: Request instance for IdCardOCRVerification.
|
data/lib/v20180301/models.rb
CHANGED
@@ -252,6 +252,54 @@ module TencentCloud
|
|
252
252
|
end
|
253
253
|
end
|
254
254
|
|
255
|
+
# 计费详情
|
256
|
+
class ChargeDetail < TencentCloud::Common::AbstractModel
|
257
|
+
# @param ReqTime: 一比一时间时间戳,13位。
|
258
|
+
# @type ReqTime: String
|
259
|
+
# @param Seq: 一比一请求的唯一标记。
|
260
|
+
# @type Seq: String
|
261
|
+
# @param Idcard: 一比一时使用的、脱敏后的身份证号。
|
262
|
+
# @type Idcard: String
|
263
|
+
# @param Name: 一比一时使用的、脱敏后的姓名。
|
264
|
+
# @type Name: String
|
265
|
+
# @param Sim: 一比一的相似度。0-100,保留2位小数。
|
266
|
+
# @type Sim: String
|
267
|
+
# @param IsNeedCharge: 本次详情是否收费。
|
268
|
+
# @type IsNeedCharge: Boolean
|
269
|
+
# @param ChargeType: 收费类型,比对、核身、混合部署。
|
270
|
+
# @type ChargeType: String
|
271
|
+
# @param ErrorCode: 本次活体一比一最终结果。
|
272
|
+
# @type ErrorCode: String
|
273
|
+
# @param ErrorMessage: 本次活体一比一最终结果描述。
|
274
|
+
# @type ErrorMessage: String
|
275
|
+
|
276
|
+
attr_accessor :ReqTime, :Seq, :Idcard, :Name, :Sim, :IsNeedCharge, :ChargeType, :ErrorCode, :ErrorMessage
|
277
|
+
|
278
|
+
def initialize(reqtime=nil, seq=nil, idcard=nil, name=nil, sim=nil, isneedcharge=nil, chargetype=nil, errorcode=nil, errormessage=nil)
|
279
|
+
@ReqTime = reqtime
|
280
|
+
@Seq = seq
|
281
|
+
@Idcard = idcard
|
282
|
+
@Name = name
|
283
|
+
@Sim = sim
|
284
|
+
@IsNeedCharge = isneedcharge
|
285
|
+
@ChargeType = chargetype
|
286
|
+
@ErrorCode = errorcode
|
287
|
+
@ErrorMessage = errormessage
|
288
|
+
end
|
289
|
+
|
290
|
+
def deserialize(params)
|
291
|
+
@ReqTime = params['ReqTime']
|
292
|
+
@Seq = params['Seq']
|
293
|
+
@Idcard = params['Idcard']
|
294
|
+
@Name = params['Name']
|
295
|
+
@Sim = params['Sim']
|
296
|
+
@IsNeedCharge = params['IsNeedCharge']
|
297
|
+
@ChargeType = params['ChargeType']
|
298
|
+
@ErrorCode = params['ErrorCode']
|
299
|
+
@ErrorMessage = params['ErrorMessage']
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
255
303
|
# CheckBankCardInformation请求参数结构体
|
256
304
|
class CheckBankCardInformationRequest < TencentCloud::Common::AbstractModel
|
257
305
|
# @param BankCard: 银行卡号。
|
@@ -1846,6 +1894,65 @@ module TencentCloud
|
|
1846
1894
|
end
|
1847
1895
|
end
|
1848
1896
|
|
1897
|
+
# GetWeChatBillDetails请求参数结构体
|
1898
|
+
class GetWeChatBillDetailsRequest < TencentCloud::Common::AbstractModel
|
1899
|
+
# @param Date: 拉取的日期(YYYY-MM-DD)。最大可追溯到365天前。当天6点后才能拉取前一天的数据。
|
1900
|
+
# @type Date: String
|
1901
|
+
# @param Cursor: 游标。用于分页,取第一页时传0,取后续页面时,传入本接口响应中返回的NextCursor字段的值。
|
1902
|
+
# @type Cursor: Integer
|
1903
|
+
# @param RuleId: 需要拉取账单详情业务对应的RuleId。不传会返回所有RuleId数据。默认为空字符串。
|
1904
|
+
# @type RuleId: String
|
1905
|
+
|
1906
|
+
attr_accessor :Date, :Cursor, :RuleId
|
1907
|
+
|
1908
|
+
def initialize(date=nil, cursor=nil, ruleid=nil)
|
1909
|
+
@Date = date
|
1910
|
+
@Cursor = cursor
|
1911
|
+
@RuleId = ruleid
|
1912
|
+
end
|
1913
|
+
|
1914
|
+
def deserialize(params)
|
1915
|
+
@Date = params['Date']
|
1916
|
+
@Cursor = params['Cursor']
|
1917
|
+
@RuleId = params['RuleId']
|
1918
|
+
end
|
1919
|
+
end
|
1920
|
+
|
1921
|
+
# GetWeChatBillDetails返回参数结构体
|
1922
|
+
class GetWeChatBillDetailsResponse < TencentCloud::Common::AbstractModel
|
1923
|
+
# @param HasNextPage: 是否还有下一页。该字段为true时,需要将NextCursor的值作为入参Cursor继续调用本接口。
|
1924
|
+
# @type HasNextPage: Boolean
|
1925
|
+
# @param NextCursor: 下一页的游标。用于分页。
|
1926
|
+
# @type NextCursor: Integer
|
1927
|
+
# @param WeChatBillDetails: 数据
|
1928
|
+
# @type WeChatBillDetails: Array
|
1929
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1930
|
+
# @type RequestId: String
|
1931
|
+
|
1932
|
+
attr_accessor :HasNextPage, :NextCursor, :WeChatBillDetails, :RequestId
|
1933
|
+
|
1934
|
+
def initialize(hasnextpage=nil, nextcursor=nil, wechatbilldetails=nil, requestid=nil)
|
1935
|
+
@HasNextPage = hasnextpage
|
1936
|
+
@NextCursor = nextcursor
|
1937
|
+
@WeChatBillDetails = wechatbilldetails
|
1938
|
+
@RequestId = requestid
|
1939
|
+
end
|
1940
|
+
|
1941
|
+
def deserialize(params)
|
1942
|
+
@HasNextPage = params['HasNextPage']
|
1943
|
+
@NextCursor = params['NextCursor']
|
1944
|
+
unless params['WeChatBillDetails'].nil?
|
1945
|
+
@WeChatBillDetails = []
|
1946
|
+
params['WeChatBillDetails'].each do |i|
|
1947
|
+
wechatbilldetail_tmp = WeChatBillDetail.new
|
1948
|
+
wechatbilldetail_tmp.deserialize(i)
|
1949
|
+
@WeChatBillDetails << wechatbilldetail_tmp
|
1950
|
+
end
|
1951
|
+
end
|
1952
|
+
@RequestId = params['RequestId']
|
1953
|
+
end
|
1954
|
+
end
|
1955
|
+
|
1849
1956
|
# IdCardOCRVerification请求参数结构体
|
1850
1957
|
class IdCardOCRVerificationRequest < TencentCloud::Common::AbstractModel
|
1851
1958
|
# @param IdCard: 身份证号
|
@@ -2655,6 +2762,41 @@ module TencentCloud
|
|
2655
2762
|
end
|
2656
2763
|
end
|
2657
2764
|
|
2765
|
+
# 账单详情
|
2766
|
+
class WeChatBillDetail < TencentCloud::Common::AbstractModel
|
2767
|
+
# @param BizToken: token
|
2768
|
+
# @type BizToken: String
|
2769
|
+
# @param ChargeCount: 本token收费次数
|
2770
|
+
# @type ChargeCount: Integer
|
2771
|
+
# @param ChargeDetails: 本token计费详情
|
2772
|
+
# @type ChargeDetails: Array
|
2773
|
+
# @param RuleId: 业务RuleId
|
2774
|
+
# @type RuleId: String
|
2775
|
+
|
2776
|
+
attr_accessor :BizToken, :ChargeCount, :ChargeDetails, :RuleId
|
2777
|
+
|
2778
|
+
def initialize(biztoken=nil, chargecount=nil, chargedetails=nil, ruleid=nil)
|
2779
|
+
@BizToken = biztoken
|
2780
|
+
@ChargeCount = chargecount
|
2781
|
+
@ChargeDetails = chargedetails
|
2782
|
+
@RuleId = ruleid
|
2783
|
+
end
|
2784
|
+
|
2785
|
+
def deserialize(params)
|
2786
|
+
@BizToken = params['BizToken']
|
2787
|
+
@ChargeCount = params['ChargeCount']
|
2788
|
+
unless params['ChargeDetails'].nil?
|
2789
|
+
@ChargeDetails = []
|
2790
|
+
params['ChargeDetails'].each do |i|
|
2791
|
+
chargedetail_tmp = ChargeDetail.new
|
2792
|
+
chargedetail_tmp.deserialize(i)
|
2793
|
+
@ChargeDetails << chargedetail_tmp
|
2794
|
+
end
|
2795
|
+
end
|
2796
|
+
@RuleId = params['RuleId']
|
2797
|
+
end
|
2798
|
+
end
|
2799
|
+
|
2658
2800
|
end
|
2659
2801
|
end
|
2660
2802
|
end
|
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.237
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|