tencentcloud-sdk-ocr 3.0.1028 → 3.0.1029
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 +5 -82
- data/lib/v20181119/models.rb +13 -204
- 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: cfaf27c339069fd0aa100b351edac1269fcf76e3
|
4
|
+
data.tar.gz: c0e72bbdd93e7e47586bf3808d850c7a3c8c2bd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19b079034caddfb011676e2dc6968b4da356a9dbeb80836d68c18fc1fed0334c26fbc17cb8dc2e29f141c89c1c2b9a0280e58e65185e207d21d6193c4a61203a
|
7
|
+
data.tar.gz: 1971b849ca92befc9321b6096d2a286370b1986786cf76da1f1a39cbfca20a4e30283d08d1a1b9bd21e84166af03f98790a16a23665d9056c3d35201a4115e4f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1029
|
data/lib/v20181119/client.rb
CHANGED
@@ -290,34 +290,6 @@ module TencentCloud
|
|
290
290
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
291
291
|
end
|
292
292
|
|
293
|
-
# 智慧表单产品已下线,需要下线相关API
|
294
|
-
|
295
|
-
# 本接口可创建智能表单录入任务,支持多个识别图片和PDF的URL上传,返回含有识别内容的操作页面URL。
|
296
|
-
|
297
|
-
# 智能表单录入产品提供高准确率的表单识别技术和人工核对工具,支持自定义字段,将识别结果自动填入到自定义条目中,并提供人工操作工具,完成整个表单识别过程。适用性强,可对票据、合同、货单等文件的识别,适用于金融、货代、保险、档案等领域。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
|
298
|
-
|
299
|
-
# @param request: Request instance for CreateAIFormTask.
|
300
|
-
# @type request: :class:`Tencentcloud::ocr::V20181119::CreateAIFormTaskRequest`
|
301
|
-
# @rtype: :class:`Tencentcloud::ocr::V20181119::CreateAIFormTaskResponse`
|
302
|
-
def CreateAIFormTask(request)
|
303
|
-
body = send_request('CreateAIFormTask', request.serialize)
|
304
|
-
response = JSON.parse(body)
|
305
|
-
if response['Response'].key?('Error') == false
|
306
|
-
model = CreateAIFormTaskResponse.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
293
|
# 本接口支持驾驶证主页和副页所有字段的自动定位与识别,重点字段的识别准确度达到99%以上。
|
322
294
|
|
323
295
|
# 驾驶证主页:包括证号、姓名、性别、国籍、住址、出生日期、初次领证日期、准驾车型、有效期限、发证单位
|
@@ -944,32 +916,6 @@ module TencentCloud
|
|
944
916
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
945
917
|
end
|
946
918
|
|
947
|
-
# 智慧表单产品已下线,需要下线相关API
|
948
|
-
|
949
|
-
# 支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
|
950
|
-
|
951
|
-
# @param request: Request instance for GetTaskState.
|
952
|
-
# @type request: :class:`Tencentcloud::ocr::V20181119::GetTaskStateRequest`
|
953
|
-
# @rtype: :class:`Tencentcloud::ocr::V20181119::GetTaskStateResponse`
|
954
|
-
def GetTaskState(request)
|
955
|
-
body = send_request('GetTaskState', request.serialize)
|
956
|
-
response = JSON.parse(body)
|
957
|
-
if response['Response'].key?('Error') == false
|
958
|
-
model = GetTaskStateResponse.new
|
959
|
-
model.deserialize(response['Response'])
|
960
|
-
model
|
961
|
-
else
|
962
|
-
code = response['Response']['Error']['Code']
|
963
|
-
message = response['Response']['Error']['Message']
|
964
|
-
reqid = response['Response']['RequestId']
|
965
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
966
|
-
end
|
967
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
968
|
-
raise e
|
969
|
-
rescue StandardError => e
|
970
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
971
|
-
end
|
972
|
-
|
973
919
|
# 本接口支持中国香港身份证人像面中关键字段的识别,包括中文姓名、英文姓名、姓名电码、出生日期、性别、证件符号、首次签发日期、最近领用日期、身份证号、是否是永久性居民身份证;具备人像照片裁剪等扩展功能。
|
974
920
|
|
975
921
|
# 默认接口请求频率限制:5次/秒。
|
@@ -1895,6 +1841,11 @@ module TencentCloud
|
|
1895
1841
|
# <td> 19 </td>
|
1896
1842
|
# </tr>
|
1897
1843
|
# <tr>
|
1844
|
+
# <td> BankSlip </td>
|
1845
|
+
# <td> 银行回单 </td>
|
1846
|
+
# <td> 20 </td>
|
1847
|
+
# </tr>
|
1848
|
+
# <tr>
|
1898
1849
|
# <td> OtherInvoice </td>
|
1899
1850
|
# <td> 其他发票 </td>
|
1900
1851
|
# <td> -1 </td>
|
@@ -2572,34 +2523,6 @@ module TencentCloud
|
|
2572
2523
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2573
2524
|
end
|
2574
2525
|
|
2575
|
-
# 已上线VatInvoiceVerifyNew,VatInvoiceVerify需要下线,产品在官网已发通告
|
2576
|
-
|
2577
|
-
# 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
2578
|
-
|
2579
|
-
# 默认接口请求频率限制:20次/秒。
|
2580
|
-
|
2581
|
-
# @param request: Request instance for VatInvoiceVerify.
|
2582
|
-
# @type request: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyRequest`
|
2583
|
-
# @rtype: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyResponse`
|
2584
|
-
def VatInvoiceVerify(request)
|
2585
|
-
body = send_request('VatInvoiceVerify', request.serialize)
|
2586
|
-
response = JSON.parse(body)
|
2587
|
-
if response['Response'].key?('Error') == false
|
2588
|
-
model = VatInvoiceVerifyResponse.new
|
2589
|
-
model.deserialize(response['Response'])
|
2590
|
-
model
|
2591
|
-
else
|
2592
|
-
code = response['Response']['Error']['Code']
|
2593
|
-
message = response['Response']['Error']['Message']
|
2594
|
-
reqid = response['Response']['RequestId']
|
2595
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2596
|
-
end
|
2597
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2598
|
-
raise e
|
2599
|
-
rescue StandardError => e
|
2600
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2601
|
-
end
|
2602
|
-
|
2603
2526
|
# 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票、通用机打电子发票(广东和浙江)。
|
2604
2527
|
|
2605
2528
|
# 默认接口请求频率限制:20次/秒。
|
data/lib/v20181119/models.rb
CHANGED
@@ -1523,67 +1523,6 @@ module TencentCloud
|
|
1523
1523
|
end
|
1524
1524
|
end
|
1525
1525
|
|
1526
|
-
# CreateAIFormTask请求参数结构体
|
1527
|
-
class CreateAIFormTaskRequest < TencentCloud::Common::AbstractModel
|
1528
|
-
# @param FileList: 多个文件的URL列表
|
1529
|
-
# @type FileList: Array
|
1530
|
-
# @param FirstNotes: 备注信息1
|
1531
|
-
# @type FirstNotes: String
|
1532
|
-
# @param SecondNotes: 备注信息2
|
1533
|
-
# @type SecondNotes: String
|
1534
|
-
# @param FileType: 文件类型
|
1535
|
-
# @type FileType: Integer
|
1536
|
-
|
1537
|
-
attr_accessor :FileList, :FirstNotes, :SecondNotes, :FileType
|
1538
|
-
|
1539
|
-
def initialize(filelist=nil, firstnotes=nil, secondnotes=nil, filetype=nil)
|
1540
|
-
@FileList = filelist
|
1541
|
-
@FirstNotes = firstnotes
|
1542
|
-
@SecondNotes = secondnotes
|
1543
|
-
@FileType = filetype
|
1544
|
-
end
|
1545
|
-
|
1546
|
-
def deserialize(params)
|
1547
|
-
unless params['FileList'].nil?
|
1548
|
-
@FileList = []
|
1549
|
-
params['FileList'].each do |i|
|
1550
|
-
smartformfileurl_tmp = SmartFormFileUrl.new
|
1551
|
-
smartformfileurl_tmp.deserialize(i)
|
1552
|
-
@FileList << smartformfileurl_tmp
|
1553
|
-
end
|
1554
|
-
end
|
1555
|
-
@FirstNotes = params['FirstNotes']
|
1556
|
-
@SecondNotes = params['SecondNotes']
|
1557
|
-
@FileType = params['FileType']
|
1558
|
-
end
|
1559
|
-
end
|
1560
|
-
|
1561
|
-
# CreateAIFormTask返回参数结构体
|
1562
|
-
class CreateAIFormTaskResponse < TencentCloud::Common::AbstractModel
|
1563
|
-
# @param TaskId: 本次识别任务的唯一身份ID
|
1564
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1565
|
-
# @type TaskId: String
|
1566
|
-
# @param OperateUrl: 本次识别任务的操作URL,有效期自生成之时起共24小时
|
1567
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1568
|
-
# @type OperateUrl: String
|
1569
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1570
|
-
# @type RequestId: String
|
1571
|
-
|
1572
|
-
attr_accessor :TaskId, :OperateUrl, :RequestId
|
1573
|
-
|
1574
|
-
def initialize(taskid=nil, operateurl=nil, requestid=nil)
|
1575
|
-
@TaskId = taskid
|
1576
|
-
@OperateUrl = operateurl
|
1577
|
-
@RequestId = requestid
|
1578
|
-
end
|
1579
|
-
|
1580
|
-
def deserialize(params)
|
1581
|
-
@TaskId = params['TaskId']
|
1582
|
-
@OperateUrl = params['OperateUrl']
|
1583
|
-
@RequestId = params['RequestId']
|
1584
|
-
end
|
1585
|
-
end
|
1586
|
-
|
1587
1526
|
# 海关缴款书
|
1588
1527
|
class CustomsPaymentReceipt < TencentCloud::Common::AbstractModel
|
1589
1528
|
# @param Title: 发票名称
|
@@ -4217,47 +4156,6 @@ module TencentCloud
|
|
4217
4156
|
end
|
4218
4157
|
end
|
4219
4158
|
|
4220
|
-
# GetTaskState请求参数结构体
|
4221
|
-
class GetTaskStateRequest < TencentCloud::Common::AbstractModel
|
4222
|
-
# @param TaskId: 智慧表单任务唯一身份ID
|
4223
|
-
# @type TaskId: String
|
4224
|
-
|
4225
|
-
attr_accessor :TaskId
|
4226
|
-
|
4227
|
-
def initialize(taskid=nil)
|
4228
|
-
@TaskId = taskid
|
4229
|
-
end
|
4230
|
-
|
4231
|
-
def deserialize(params)
|
4232
|
-
@TaskId = params['TaskId']
|
4233
|
-
end
|
4234
|
-
end
|
4235
|
-
|
4236
|
-
# GetTaskState返回参数结构体
|
4237
|
-
class GetTaskStateResponse < TencentCloud::Common::AbstractModel
|
4238
|
-
# @param TaskState: 1:任务识别完成,还未提交
|
4239
|
-
# 2:任务已手动关闭
|
4240
|
-
# 3:任务已提交
|
4241
|
-
# 4:任务识别中
|
4242
|
-
# 5:超时:任务超过了可操作的24H时限
|
4243
|
-
# 6:任务识别失败
|
4244
|
-
# @type TaskState: Integer
|
4245
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4246
|
-
# @type RequestId: String
|
4247
|
-
|
4248
|
-
attr_accessor :TaskState, :RequestId
|
4249
|
-
|
4250
|
-
def initialize(taskstate=nil, requestid=nil)
|
4251
|
-
@TaskState = taskstate
|
4252
|
-
@RequestId = requestid
|
4253
|
-
end
|
4254
|
-
|
4255
|
-
def deserialize(params)
|
4256
|
-
@TaskState = params['TaskState']
|
4257
|
-
@RequestId = params['RequestId']
|
4258
|
-
end
|
4259
|
-
end
|
4260
|
-
|
4261
4159
|
# 组在图中的序号
|
4262
4160
|
class GroupInfo < TencentCloud::Common::AbstractModel
|
4263
4161
|
# @param Groups: 每一行的元素
|
@@ -5339,6 +5237,7 @@ module TencentCloud
|
|
5339
5237
|
# 17:医疗发票
|
5340
5238
|
# 18:完税凭证
|
5341
5239
|
# 19:海关缴款书
|
5240
|
+
# 20:银行回单
|
5342
5241
|
# @type Type: Integer
|
5343
5242
|
# @param Polygon: 该发票在原图片中的四点坐标。
|
5344
5243
|
# @type Polygon: :class:`Tencentcloud::Ocr.v20181119.models.Polygon`
|
@@ -5761,12 +5660,11 @@ module TencentCloud
|
|
5761
5660
|
|
5762
5661
|
# MLIDPassportOCR请求参数结构体
|
5763
5662
|
class MLIDPassportOCRRequest < TencentCloud::Common::AbstractModel
|
5764
|
-
# @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
5663
|
+
# @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。
|
5765
5664
|
# @type ImageBase64: String
|
5766
5665
|
# @param RetImage: 是否返回图片,默认false
|
5767
5666
|
# @type RetImage: Boolean
|
5768
|
-
# @param ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3
|
5769
|
-
# 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
5667
|
+
# @param ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
5770
5668
|
# @type ImageUrl: String
|
5771
5669
|
|
5772
5670
|
attr_accessor :ImageBase64, :RetImage, :ImageUrl
|
@@ -8793,6 +8691,7 @@ module TencentCloud
|
|
8793
8691
|
# 17:医疗发票
|
8794
8692
|
# 18:完税凭证
|
8795
8693
|
# 19:海关缴款书
|
8694
|
+
# 20:银行回单
|
8796
8695
|
# -1:其他发票
|
8797
8696
|
# @type Types: Array
|
8798
8697
|
# @param EnableOther: 是否开启其他票识别,默认值为true,开启后可支持其他发票的智能识别。
|
@@ -10879,26 +10778,6 @@ module TencentCloud
|
|
10879
10778
|
end
|
10880
10779
|
end
|
10881
10780
|
|
10882
|
-
# 智慧表单上传文件信息
|
10883
|
-
class SmartFormFileUrl < TencentCloud::Common::AbstractModel
|
10884
|
-
# @param FileUrl: 文件url地址
|
10885
|
-
# @type FileUrl: String
|
10886
|
-
# @param FileOrderNumber: 文件的顺序,顺序从1开始
|
10887
|
-
# @type FileOrderNumber: Integer
|
10888
|
-
|
10889
|
-
attr_accessor :FileUrl, :FileOrderNumber
|
10890
|
-
|
10891
|
-
def initialize(fileurl=nil, fileordernumber=nil)
|
10892
|
-
@FileUrl = fileurl
|
10893
|
-
@FileOrderNumber = fileordernumber
|
10894
|
-
end
|
10895
|
-
|
10896
|
-
def deserialize(params)
|
10897
|
-
@FileUrl = params['FileUrl']
|
10898
|
-
@FileOrderNumber = params['FileOrderNumber']
|
10899
|
-
end
|
10900
|
-
end
|
10901
|
-
|
10902
10781
|
# SmartStructuralOCR请求参数结构体
|
10903
10782
|
class SmartStructuralOCRRequest < TencentCloud::Common::AbstractModel
|
10904
10783
|
# @param ImageUrl: 图片的 Url 地址。
|
@@ -11103,13 +10982,18 @@ module TencentCloud
|
|
11103
10982
|
# WordRecognize -- 手写英文作文模版
|
11104
10983
|
# Statement -- 对账单识别模板
|
11105
10984
|
# BookingConfirmation -- 配舱通知书识别模板
|
10985
|
+
# AirWayBill -- 航空运单识别模板
|
10986
|
+
# DispatchWeightNote -- 磅单发货单识别模板
|
10987
|
+
# ReceiptWeightNote -- 磅单收货单识别模板
|
11106
10988
|
# @type ConfigId: String
|
11107
10989
|
# @param EnableCoord: 是否开启全文字段坐标值的识别
|
11108
10990
|
# @type EnableCoord: Boolean
|
10991
|
+
# @param OutputParentKey: 是否开启父子key识别,默认是
|
10992
|
+
# @type OutputParentKey: Boolean
|
11109
10993
|
|
11110
|
-
attr_accessor :ImageUrl, :ImageBase64, :PdfPageNumber, :ItemNames, :ReturnFullText, :ConfigId, :EnableCoord
|
10994
|
+
attr_accessor :ImageUrl, :ImageBase64, :PdfPageNumber, :ItemNames, :ReturnFullText, :ConfigId, :EnableCoord, :OutputParentKey
|
11111
10995
|
|
11112
|
-
def initialize(imageurl=nil, imagebase64=nil, pdfpagenumber=nil, itemnames=nil, returnfulltext=nil, configid=nil, enablecoord=nil)
|
10996
|
+
def initialize(imageurl=nil, imagebase64=nil, pdfpagenumber=nil, itemnames=nil, returnfulltext=nil, configid=nil, enablecoord=nil, outputparentkey=nil)
|
11113
10997
|
@ImageUrl = imageurl
|
11114
10998
|
@ImageBase64 = imagebase64
|
11115
10999
|
@PdfPageNumber = pdfpagenumber
|
@@ -11117,6 +11001,7 @@ module TencentCloud
|
|
11117
11001
|
@ReturnFullText = returnfulltext
|
11118
11002
|
@ConfigId = configid
|
11119
11003
|
@EnableCoord = enablecoord
|
11004
|
+
@OutputParentKey = outputparentkey
|
11120
11005
|
end
|
11121
11006
|
|
11122
11007
|
def deserialize(params)
|
@@ -11127,6 +11012,7 @@ module TencentCloud
|
|
11127
11012
|
@ReturnFullText = params['ReturnFullText']
|
11128
11013
|
@ConfigId = params['ConfigId']
|
11129
11014
|
@EnableCoord = params['EnableCoord']
|
11015
|
+
@OutputParentKey = params['OutputParentKey']
|
11130
11016
|
end
|
11131
11017
|
end
|
11132
11018
|
|
@@ -14368,83 +14254,6 @@ module TencentCloud
|
|
14368
14254
|
end
|
14369
14255
|
end
|
14370
14256
|
|
14371
|
-
# VatInvoiceVerify请求参数结构体
|
14372
|
-
class VatInvoiceVerifyRequest < TencentCloud::Common::AbstractModel
|
14373
|
-
# @param InvoiceCode: 发票代码, 一张发票一天只能查询5次。
|
14374
|
-
# @type InvoiceCode: String
|
14375
|
-
# @param InvoiceNo: 发票号码(8位)
|
14376
|
-
# @type InvoiceNo: String
|
14377
|
-
# @param InvoiceDate: 开票日期(不支持当天发票查询,支持五年以内开具的发票),格式:“YYYY-MM-DD”,如:2019-12-20。
|
14378
|
-
# @type InvoiceDate: String
|
14379
|
-
# @param Additional: 根据票种传递对应值,如果报参数错误,请仔细检查每个票种对应的值
|
14380
|
-
|
14381
|
-
# 增值税专用发票:开具金额(不含税)
|
14382
|
-
|
14383
|
-
# 增值税普通发票、增值税电子普通发票(含通行费发票)、增值税普通发票(卷票):校验码后6位
|
14384
|
-
|
14385
|
-
# 区块链发票:不含税金额/校验码,例如:“285.01/856ab”
|
14386
|
-
|
14387
|
-
# 机动车销售统一发票:不含税价
|
14388
|
-
|
14389
|
-
# 货物运输业增值税专用发票:合计金额
|
14390
|
-
|
14391
|
-
# 二手车销售统一发票:车价合计
|
14392
|
-
# @type Additional: String
|
14393
|
-
|
14394
|
-
attr_accessor :InvoiceCode, :InvoiceNo, :InvoiceDate, :Additional
|
14395
|
-
|
14396
|
-
def initialize(invoicecode=nil, invoiceno=nil, invoicedate=nil, additional=nil)
|
14397
|
-
@InvoiceCode = invoicecode
|
14398
|
-
@InvoiceNo = invoiceno
|
14399
|
-
@InvoiceDate = invoicedate
|
14400
|
-
@Additional = additional
|
14401
|
-
end
|
14402
|
-
|
14403
|
-
def deserialize(params)
|
14404
|
-
@InvoiceCode = params['InvoiceCode']
|
14405
|
-
@InvoiceNo = params['InvoiceNo']
|
14406
|
-
@InvoiceDate = params['InvoiceDate']
|
14407
|
-
@Additional = params['Additional']
|
14408
|
-
end
|
14409
|
-
end
|
14410
|
-
|
14411
|
-
# VatInvoiceVerify返回参数结构体
|
14412
|
-
class VatInvoiceVerifyResponse < TencentCloud::Common::AbstractModel
|
14413
|
-
# @param Invoice: 增值税发票信息,详情请点击左侧链接。
|
14414
|
-
# @type Invoice: :class:`Tencentcloud::Ocr.v20181119.models.VatInvoice`
|
14415
|
-
# @param VehicleInvoiceInfo: 机动车销售统一发票信息
|
14416
|
-
# @type VehicleInvoiceInfo: :class:`Tencentcloud::Ocr.v20181119.models.VehicleInvoiceInfo`
|
14417
|
-
# @param UsedVehicleInvoiceInfo: 二手车销售统一发票信息
|
14418
|
-
# @type UsedVehicleInvoiceInfo: :class:`Tencentcloud::Ocr.v20181119.models.UsedVehicleInvoiceInfo`
|
14419
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
14420
|
-
# @type RequestId: String
|
14421
|
-
|
14422
|
-
attr_accessor :Invoice, :VehicleInvoiceInfo, :UsedVehicleInvoiceInfo, :RequestId
|
14423
|
-
|
14424
|
-
def initialize(invoice=nil, vehicleinvoiceinfo=nil, usedvehicleinvoiceinfo=nil, requestid=nil)
|
14425
|
-
@Invoice = invoice
|
14426
|
-
@VehicleInvoiceInfo = vehicleinvoiceinfo
|
14427
|
-
@UsedVehicleInvoiceInfo = usedvehicleinvoiceinfo
|
14428
|
-
@RequestId = requestid
|
14429
|
-
end
|
14430
|
-
|
14431
|
-
def deserialize(params)
|
14432
|
-
unless params['Invoice'].nil?
|
14433
|
-
@Invoice = VatInvoice.new
|
14434
|
-
@Invoice.deserialize(params['Invoice'])
|
14435
|
-
end
|
14436
|
-
unless params['VehicleInvoiceInfo'].nil?
|
14437
|
-
@VehicleInvoiceInfo = VehicleInvoiceInfo.new
|
14438
|
-
@VehicleInvoiceInfo.deserialize(params['VehicleInvoiceInfo'])
|
14439
|
-
end
|
14440
|
-
unless params['UsedVehicleInvoiceInfo'].nil?
|
14441
|
-
@UsedVehicleInvoiceInfo = UsedVehicleInvoiceInfo.new
|
14442
|
-
@UsedVehicleInvoiceInfo.deserialize(params['UsedVehicleInvoiceInfo'])
|
14443
|
-
end
|
14444
|
-
@RequestId = params['RequestId']
|
14445
|
-
end
|
14446
|
-
end
|
14447
|
-
|
14448
14257
|
# 增值税发票卷票信息
|
14449
14258
|
class VatRollInvoiceInfo < TencentCloud::Common::AbstractModel
|
14450
14259
|
# @param Name: 识别出的字段名称(关键字),支持以下字段:
|
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: 3.0.
|
4
|
+
version: 3.0.1029
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|