tencentcloud-sdk-ocr 1.0.309 → 1.0.312
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/v20181119/client.rb +25 -1
- data/lib/v20181119/models.rb +124 -15
- 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: ad51740adc78f0fbbd40646a7f85c0c4d926a31e
|
4
|
+
data.tar.gz: a3aaa8e309b3e4b704bf8e093ac967dc55ff4d7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d90849e00365bf5b8e37e2cb6de041a656fcb20d0a3dc71eb6ff569d9be94d893b8fa04e9f10fe0b1fe6982d70335ba82946759d4b6e06b9b729960262c1eae0
|
7
|
+
data.tar.gz: 0fb658b2c368157751f20c999aa879827dfbf5c902bf3d2b0687a25fc2dbb4da640034d961ef378584dfaf07a048107575d2ae4436435290103c1f5e36152ef7
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.312
|
data/lib/v20181119/client.rb
CHANGED
@@ -1342,7 +1342,7 @@ module TencentCloud
|
|
1342
1342
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1343
1343
|
end
|
1344
1344
|
|
1345
|
-
#
|
1345
|
+
# 本接口支持北京、上海、广东、江苏、吉林、黑龙江省市健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,七个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
|
1346
1346
|
|
1347
1347
|
# @param request: Request instance for RecognizeHealthCodeOCR.
|
1348
1348
|
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeHealthCodeOCRRequest`
|
@@ -1779,6 +1779,30 @@ module TencentCloud
|
|
1779
1779
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1780
1780
|
end
|
1781
1781
|
|
1782
|
+
# 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
1783
|
+
|
1784
|
+
# @param request: Request instance for VatInvoiceVerifyNew.
|
1785
|
+
# @type request: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyNewRequest`
|
1786
|
+
# @rtype: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyNewResponse`
|
1787
|
+
def VatInvoiceVerifyNew(request)
|
1788
|
+
body = send_request('VatInvoiceVerifyNew', request.serialize)
|
1789
|
+
response = JSON.parse(body)
|
1790
|
+
if response['Response'].key?('Error') == false
|
1791
|
+
model = VatInvoiceVerifyNewResponse.new
|
1792
|
+
model.deserialize(response['Response'])
|
1793
|
+
model
|
1794
|
+
else
|
1795
|
+
code = response['Response']['Error']['Code']
|
1796
|
+
message = response['Response']['Error']['Message']
|
1797
|
+
reqid = response['Response']['RequestId']
|
1798
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1799
|
+
end
|
1800
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1801
|
+
raise e
|
1802
|
+
rescue StandardError => e
|
1803
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1804
|
+
end
|
1805
|
+
|
1782
1806
|
# 本接口支持对增值税发票(卷票)的发票代码、发票号码、日期、校验码、合计金额(小写)等关键字段的识别。
|
1783
1807
|
|
1784
1808
|
# @param request: Request instance for VatRollInvoiceOCR.
|
data/lib/v20181119/models.rb
CHANGED
@@ -3447,6 +3447,38 @@ module TencentCloud
|
|
3447
3447
|
end
|
3448
3448
|
end
|
3449
3449
|
|
3450
|
+
# 通行费发票信息
|
3451
|
+
class PassInvoiceInfo < TencentCloud::Common::AbstractModel
|
3452
|
+
# @param NumberPlate: 通行费车牌号
|
3453
|
+
# @type NumberPlate: String
|
3454
|
+
# @param Type: 通行费类型
|
3455
|
+
# @type Type: String
|
3456
|
+
# @param PassDateBegin: 通行日期起
|
3457
|
+
# @type PassDateBegin: String
|
3458
|
+
# @param PassDateEnd: 通行日期止
|
3459
|
+
# @type PassDateEnd: String
|
3460
|
+
# @param TaxClassifyCode: 税收分类编码
|
3461
|
+
# @type TaxClassifyCode: String
|
3462
|
+
|
3463
|
+
attr_accessor :NumberPlate, :Type, :PassDateBegin, :PassDateEnd, :TaxClassifyCode
|
3464
|
+
|
3465
|
+
def initialize(numberplate=nil, type=nil, passdatebegin=nil, passdateend=nil, taxclassifycode=nil)
|
3466
|
+
@NumberPlate = numberplate
|
3467
|
+
@Type = type
|
3468
|
+
@PassDateBegin = passdatebegin
|
3469
|
+
@PassDateEnd = passdateend
|
3470
|
+
@TaxClassifyCode = taxclassifycode
|
3471
|
+
end
|
3472
|
+
|
3473
|
+
def deserialize(params)
|
3474
|
+
@NumberPlate = params['NumberPlate']
|
3475
|
+
@Type = params['Type']
|
3476
|
+
@PassDateBegin = params['PassDateBegin']
|
3477
|
+
@PassDateEnd = params['PassDateEnd']
|
3478
|
+
@TaxClassifyCode = params['TaxClassifyCode']
|
3479
|
+
end
|
3480
|
+
end
|
3481
|
+
|
3450
3482
|
# PassportOCR请求参数结构体
|
3451
3483
|
class PassportOCRRequest < TencentCloud::Common::AbstractModel
|
3452
3484
|
# @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
@@ -4272,14 +4304,6 @@ module TencentCloud
|
|
4272
4304
|
# @type ImageUrl: String
|
4273
4305
|
# @param Type: 需要识别的健康码类型列表,为空或不填表示默认为自动识别。
|
4274
4306
|
# 0:自动识别
|
4275
|
-
|
4276
|
-
# 1:粤康码
|
4277
|
-
|
4278
|
-
# 2:随申码
|
4279
|
-
|
4280
|
-
# 3:健康宝
|
4281
|
-
|
4282
|
-
# 4.穗康码
|
4283
4307
|
# @type Type: Integer
|
4284
4308
|
|
4285
4309
|
attr_accessor :ImageBase64, :ImageUrl, :Type
|
@@ -4299,19 +4323,19 @@ module TencentCloud
|
|
4299
4323
|
|
4300
4324
|
# RecognizeHealthCodeOCR返回参数结构体
|
4301
4325
|
class RecognizeHealthCodeOCRResponse < TencentCloud::Common::AbstractModel
|
4302
|
-
# @param Name:
|
4326
|
+
# @param Name: 持码人姓名,如:王*(允许返回空值)
|
4303
4327
|
# @type Name: String
|
4304
|
-
# @param IDNumber: 持码人身份证号,如:11**************01
|
4328
|
+
# @param IDNumber: 持码人身份证号,如:11**************01(允许返回空值)
|
4305
4329
|
# @type IDNumber: String
|
4306
|
-
# @param Time:
|
4330
|
+
# @param Time: 健康码更新时间(允许返回空值)
|
4307
4331
|
# @type Time: String
|
4308
|
-
# @param Color:
|
4332
|
+
# @param Color: 健康码颜色:绿色、黄色、红色(允许返回空值)
|
4309
4333
|
# @type Color: String
|
4310
|
-
# @param TestingInterval:
|
4334
|
+
# @param TestingInterval: 核酸检测间隔时长(允许返回空值)
|
4311
4335
|
# @type TestingInterval: String
|
4312
|
-
# @param TestingResult:
|
4336
|
+
# @param TestingResult: 核酸检测结果:阴性、阳性、暂无核酸检测记录(允许返回空值)
|
4313
4337
|
# @type TestingResult: String
|
4314
|
-
# @param TestingTime:
|
4338
|
+
# @param TestingTime: 核酸检测时间(允许返回空值)
|
4315
4339
|
# @type TestingTime: String
|
4316
4340
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4317
4341
|
# @type RequestId: String
|
@@ -6716,6 +6740,91 @@ module TencentCloud
|
|
6716
6740
|
end
|
6717
6741
|
end
|
6718
6742
|
|
6743
|
+
# VatInvoiceVerifyNew请求参数结构体
|
6744
|
+
class VatInvoiceVerifyNewRequest < TencentCloud::Common::AbstractModel
|
6745
|
+
# @param InvoiceNo: 发票号码,8位、20位(全电票)
|
6746
|
+
# @type InvoiceNo: String
|
6747
|
+
# @param InvoiceDate: 开票日期(不支持当天发票查询,支持五年以内开具的发票),格式:“YYYY-MM-DD”,如:2019-12-20。
|
6748
|
+
# @type InvoiceDate: String
|
6749
|
+
# @param InvoiceCode: 发票代码(10或12 位),全电发票为空。查验未成功超过5次后当日无法再查。
|
6750
|
+
# @type InvoiceCode: String
|
6751
|
+
# @param InvoiceKind: 票种类型 01:增值税专用发票, 02:货运运输业增值税专用发 票, 03:机动车销售统一发票, 04:增值税普通发票, 08:增值税电子专用发票(含全电), 10:增值税电子普通发票(含全电), 11:增值税普通发票(卷式), 14:增值税电子(通行费)发 票, 15:二手车销售统一发票, 32:深圳区块链发票(云南区块链因业务调整现已下线)。
|
6752
|
+
# @type InvoiceKind: String
|
6753
|
+
# @param CheckCode: 校验码后 6 位,增值税普通发票、增值税电子普通发票、增值税普通发票(卷式)、增值税电子普通发票(通行费)时必填;
|
6754
|
+
# 区块链为 5 位
|
6755
|
+
# @type CheckCode: String
|
6756
|
+
# @param Amount: 不含税金额,增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链发票时必填; 全电发票为价税合计(含税金额)
|
6757
|
+
# @type Amount: String
|
6758
|
+
|
6759
|
+
attr_accessor :InvoiceNo, :InvoiceDate, :InvoiceCode, :InvoiceKind, :CheckCode, :Amount
|
6760
|
+
|
6761
|
+
def initialize(invoiceno=nil, invoicedate=nil, invoicecode=nil, invoicekind=nil, checkcode=nil, amount=nil)
|
6762
|
+
@InvoiceNo = invoiceno
|
6763
|
+
@InvoiceDate = invoicedate
|
6764
|
+
@InvoiceCode = invoicecode
|
6765
|
+
@InvoiceKind = invoicekind
|
6766
|
+
@CheckCode = checkcode
|
6767
|
+
@Amount = amount
|
6768
|
+
end
|
6769
|
+
|
6770
|
+
def deserialize(params)
|
6771
|
+
@InvoiceNo = params['InvoiceNo']
|
6772
|
+
@InvoiceDate = params['InvoiceDate']
|
6773
|
+
@InvoiceCode = params['InvoiceCode']
|
6774
|
+
@InvoiceKind = params['InvoiceKind']
|
6775
|
+
@CheckCode = params['CheckCode']
|
6776
|
+
@Amount = params['Amount']
|
6777
|
+
end
|
6778
|
+
end
|
6779
|
+
|
6780
|
+
# VatInvoiceVerifyNew返回参数结构体
|
6781
|
+
class VatInvoiceVerifyNewResponse < TencentCloud::Common::AbstractModel
|
6782
|
+
# @param Invoice: 增值税发票信息,详情请点击左侧链接。
|
6783
|
+
# @type Invoice: :class:`Tencentcloud::Ocr.v20181119.models.VatInvoice`
|
6784
|
+
# @param VehicleInvoiceInfo: 机动车销售统一发票信息
|
6785
|
+
# @type VehicleInvoiceInfo: :class:`Tencentcloud::Ocr.v20181119.models.VehicleInvoiceInfo`
|
6786
|
+
# @param UsedVehicleInvoiceInfo: 二手车销售统一发票信息
|
6787
|
+
# @type UsedVehicleInvoiceInfo: :class:`Tencentcloud::Ocr.v20181119.models.UsedVehicleInvoiceInfo`
|
6788
|
+
# @param PassInvoiceInfoList: 通行费发票信息
|
6789
|
+
# @type PassInvoiceInfoList: Array
|
6790
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6791
|
+
# @type RequestId: String
|
6792
|
+
|
6793
|
+
attr_accessor :Invoice, :VehicleInvoiceInfo, :UsedVehicleInvoiceInfo, :PassInvoiceInfoList, :RequestId
|
6794
|
+
|
6795
|
+
def initialize(invoice=nil, vehicleinvoiceinfo=nil, usedvehicleinvoiceinfo=nil, passinvoiceinfolist=nil, requestid=nil)
|
6796
|
+
@Invoice = invoice
|
6797
|
+
@VehicleInvoiceInfo = vehicleinvoiceinfo
|
6798
|
+
@UsedVehicleInvoiceInfo = usedvehicleinvoiceinfo
|
6799
|
+
@PassInvoiceInfoList = passinvoiceinfolist
|
6800
|
+
@RequestId = requestid
|
6801
|
+
end
|
6802
|
+
|
6803
|
+
def deserialize(params)
|
6804
|
+
unless params['Invoice'].nil?
|
6805
|
+
@Invoice = VatInvoice.new
|
6806
|
+
@Invoice.deserialize(params['Invoice'])
|
6807
|
+
end
|
6808
|
+
unless params['VehicleInvoiceInfo'].nil?
|
6809
|
+
@VehicleInvoiceInfo = VehicleInvoiceInfo.new
|
6810
|
+
@VehicleInvoiceInfo.deserialize(params['VehicleInvoiceInfo'])
|
6811
|
+
end
|
6812
|
+
unless params['UsedVehicleInvoiceInfo'].nil?
|
6813
|
+
@UsedVehicleInvoiceInfo = UsedVehicleInvoiceInfo.new
|
6814
|
+
@UsedVehicleInvoiceInfo.deserialize(params['UsedVehicleInvoiceInfo'])
|
6815
|
+
end
|
6816
|
+
unless params['PassInvoiceInfoList'].nil?
|
6817
|
+
@PassInvoiceInfoList = []
|
6818
|
+
params['PassInvoiceInfoList'].each do |i|
|
6819
|
+
passinvoiceinfo_tmp = PassInvoiceInfo.new
|
6820
|
+
passinvoiceinfo_tmp.deserialize(i)
|
6821
|
+
@PassInvoiceInfoList << passinvoiceinfo_tmp
|
6822
|
+
end
|
6823
|
+
end
|
6824
|
+
@RequestId = params['RequestId']
|
6825
|
+
end
|
6826
|
+
end
|
6827
|
+
|
6719
6828
|
# VatInvoiceVerify请求参数结构体
|
6720
6829
|
class VatInvoiceVerifyRequest < TencentCloud::Common::AbstractModel
|
6721
6830
|
# @param InvoiceCode: 发票代码, 一张发票一天只能查询5次。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ocr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.312
|
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-05-
|
11
|
+
date: 2022-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|