tencentcloud-sdk-ocr 3.0.623 → 3.0.625

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef6704ce5050a9fad4c424650069245384a6fcd3
4
- data.tar.gz: 032942ce86ebe60a727c52b832bbe8e12a968ba4
3
+ metadata.gz: 11ea8cd45ecaf5bb6e80170b4ae5e756091dd710
4
+ data.tar.gz: a21a9eae31460991a834e7c98fa8fcfbfb629275
5
5
  SHA512:
6
- metadata.gz: 894d44f92f2529124a3ec08091d726e852f126b86e7faea49f50aeb29fa3c35fc5472661d39f4bfddb5d21d9dc1238f1d63980b292e8929317642f0821d3e666
7
- data.tar.gz: 81b2a7438995fd268c3ab48cd45e24768c76f794b6916705f2184327f71c523d34d572a00d7ec72b0ded24c74d18954d704fd19f17bc83a0cca7f2eed5bee707
6
+ metadata.gz: 72f2a81842064faf0e374faac7fa156ad52b0f38b2819c14833d8fc1ced837c867a4b1b1bca66a29daa893303e1a2aeb9c1dadf6a5cd37809ef50fa7974400f1
7
+ data.tar.gz: 25f33cb1e45fe380acbbc7f7af64f5ec614a2503de460d435e3a89ac1ce5b8e00f68e2f641cfe5b9df3b1f8e45f748760e950e5d4d4d47aa0534462a3e00fe99
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.623
1
+ 3.0.625
@@ -1404,34 +1404,6 @@ module TencentCloud
1404
1404
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1405
1405
  end
1406
1406
 
1407
- # 库源服务调整,该接口在2023年6月1日将正式下线。
1408
-
1409
- # 本接口支持条形码备案信息查询,返回条形码查询结果的相关信息,包括产品名称、产品英文名称、品牌名称、规格型号、宽度、高度、深度、关键字、产品描述、厂家名称、厂家地址、企业社会信用代码13个字段信息。
1410
-
1411
- # 产品优势:直联中国物品编码中心,查询结果更加准确、可靠。
1412
-
1413
- # @param request: Request instance for QueryBarCode.
1414
- # @type request: :class:`Tencentcloud::ocr::V20181119::QueryBarCodeRequest`
1415
- # @rtype: :class:`Tencentcloud::ocr::V20181119::QueryBarCodeResponse`
1416
- def QueryBarCode(request)
1417
- body = send_request('QueryBarCode', request.serialize)
1418
- response = JSON.parse(body)
1419
- if response['Response'].key?('Error') == false
1420
- model = QueryBarCodeResponse.new
1421
- model.deserialize(response['Response'])
1422
- model
1423
- else
1424
- code = response['Response']['Error']['Code']
1425
- message = response['Response']['Error']['Message']
1426
- reqid = response['Response']['RequestId']
1427
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1428
- end
1429
- rescue TencentCloud::Common::TencentCloudSDKException => e
1430
- raise e
1431
- rescue StandardError => e
1432
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1433
- end
1434
-
1435
1407
  # 本接口支持定额发票的发票号码、发票代码、金额(大小写)、发票消费类型、地区及是否有公司印章等关键字段的识别。
1436
1408
 
1437
1409
  # 默认接口请求频率限制:5次/秒。
@@ -2511,32 +2483,6 @@ module TencentCloud
2511
2483
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2512
2484
  end
2513
2485
 
2514
- # 库源服务调整,该接口在2023年6月1日将正式下线。
2515
-
2516
- # 此接口基于企业四要素授权“姓名、证件号码、企业标识、企业全称”,验证企业信息是否一致。
2517
-
2518
- # @param request: Request instance for VerifyEnterpriseFourFactors.
2519
- # @type request: :class:`Tencentcloud::ocr::V20181119::VerifyEnterpriseFourFactorsRequest`
2520
- # @rtype: :class:`Tencentcloud::ocr::V20181119::VerifyEnterpriseFourFactorsResponse`
2521
- def VerifyEnterpriseFourFactors(request)
2522
- body = send_request('VerifyEnterpriseFourFactors', request.serialize)
2523
- response = JSON.parse(body)
2524
- if response['Response'].key?('Error') == false
2525
- model = VerifyEnterpriseFourFactorsResponse.new
2526
- model.deserialize(response['Response'])
2527
- model
2528
- else
2529
- code = response['Response']['Error']['Code']
2530
- message = response['Response']['Error']['Message']
2531
- reqid = response['Response']['RequestId']
2532
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2533
- end
2534
- rescue TencentCloud::Common::TencentCloudSDKException => e
2535
- raise e
2536
- rescue StandardError => e
2537
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2538
- end
2539
-
2540
2486
  # 本接口支持OFD格式的增值税电子普通发票和增值税电子专用发票的识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
2541
2487
 
2542
2488
  # @param request: Request instance for VerifyOfdVatInvoiceOCR.
@@ -1253,26 +1253,6 @@ module TencentCloud
1253
1253
  end
1254
1254
  end
1255
1255
 
1256
- # 企业四要素核验结果
1257
- class Detail < TencentCloud::Common::AbstractModel
1258
- # @param Result: 企业四要素核验结果状态码
1259
- # @type Result: Integer
1260
- # @param Desc: 企业四要素核验结果描述
1261
- # @type Desc: String
1262
-
1263
- attr_accessor :Result, :Desc
1264
-
1265
- def initialize(result=nil, desc=nil)
1266
- @Result = result
1267
- @Desc = desc
1268
- end
1269
-
1270
- def deserialize(params)
1271
- @Result = params['Result']
1272
- @Desc = params['Desc']
1273
- end
1274
- end
1275
-
1276
1256
  # 单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。
1277
1257
  class DetectedWordCoordPoint < TencentCloud::Common::AbstractModel
1278
1258
  # @param WordCoordinate: 单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。
@@ -5211,97 +5191,6 @@ module TencentCloud
5211
5191
  end
5212
5192
  end
5213
5193
 
5214
- # 商品码信息
5215
- class ProductDataRecord < TencentCloud::Common::AbstractModel
5216
- # @param ProductName: 产品名称
5217
- # @type ProductName: String
5218
- # @param EnName: 产品名称(英文)
5219
- # @type EnName: String
5220
- # @param BrandName: 品牌名称
5221
- # @type BrandName: String
5222
- # @param Type: 规格型号
5223
- # @type Type: String
5224
- # @param Width: 宽度,单位毫米
5225
- # @type Width: String
5226
- # @param Height: 高度,单位毫米
5227
- # @type Height: String
5228
- # @param Depth: 深度,单位毫米
5229
- # @type Depth: String
5230
- # @param KeyWord: 关键字
5231
- # @type KeyWord: String
5232
- # @param Description: 简短描述
5233
- # @type Description: String
5234
- # @param ImageLink: 图片链接
5235
- # @type ImageLink: Array
5236
- # @param ManufacturerName: 厂家名称
5237
- # @type ManufacturerName: String
5238
- # @param ManufacturerAddress: 厂家地址
5239
- # @type ManufacturerAddress: String
5240
- # @param FirmCode: 企业社会信用代码
5241
- # @type FirmCode: String
5242
- # @param CheckResult: 表示数据查询状态
5243
- # checkResult 状态说明
5244
- # 1 经查,该商品条码已在中国物品编码中心注册
5245
- # 2 经查,该厂商识别代码已在中国物品编码中心注册,但编码信息未按规定通报。
5246
- # 3 经查,该厂商识别代码已于xxxxx注销,请关注产品生产日期。
5247
- # 4 经查,该企业以及条码未经条码中心注册,属于违法使用
5248
- # -1 经查,该商品条码被冒用
5249
- # -2 经查,该厂商识别代码已在中国物品编码中心注册,但该产品已经下市
5250
- # S001 未找到该厂商识别代码的注册信息。
5251
- # S002 该厂商识别代码已经在GS1注册,但编码信息未通报
5252
- # S003 该商品条码已在GS1通报
5253
- # S004 该商品条码已注销
5254
- # S005 数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。
5255
- # E001 完整性失败:此GTIN的长度无效。
5256
- # E002 完整性失败:校验位不正确。
5257
- # E003 完整性失败:字符串包含字母数字字符。
5258
- # E004 数字不正确。GS1前缀(3位国家/地区代码)不存在。
5259
- # E005 数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。
5260
- # E006 数字不正确。尚未分配该GS1公司前缀。
5261
- # E008 经查,该企业厂商识别代码以及条码尚未通报
5262
- # @type CheckResult: String
5263
- # @param CategoryCode: UNSPSC分类码
5264
- # @type CategoryCode: String
5265
-
5266
- attr_accessor :ProductName, :EnName, :BrandName, :Type, :Width, :Height, :Depth, :KeyWord, :Description, :ImageLink, :ManufacturerName, :ManufacturerAddress, :FirmCode, :CheckResult, :CategoryCode
5267
-
5268
- def initialize(productname=nil, enname=nil, brandname=nil, type=nil, width=nil, height=nil, depth=nil, keyword=nil, description=nil, imagelink=nil, manufacturername=nil, manufactureraddress=nil, firmcode=nil, checkresult=nil, categorycode=nil)
5269
- @ProductName = productname
5270
- @EnName = enname
5271
- @BrandName = brandname
5272
- @Type = type
5273
- @Width = width
5274
- @Height = height
5275
- @Depth = depth
5276
- @KeyWord = keyword
5277
- @Description = description
5278
- @ImageLink = imagelink
5279
- @ManufacturerName = manufacturername
5280
- @ManufacturerAddress = manufactureraddress
5281
- @FirmCode = firmcode
5282
- @CheckResult = checkresult
5283
- @CategoryCode = categorycode
5284
- end
5285
-
5286
- def deserialize(params)
5287
- @ProductName = params['ProductName']
5288
- @EnName = params['EnName']
5289
- @BrandName = params['BrandName']
5290
- @Type = params['Type']
5291
- @Width = params['Width']
5292
- @Height = params['Height']
5293
- @Depth = params['Depth']
5294
- @KeyWord = params['KeyWord']
5295
- @Description = params['Description']
5296
- @ImageLink = params['ImageLink']
5297
- @ManufacturerName = params['ManufacturerName']
5298
- @ManufacturerAddress = params['ManufacturerAddress']
5299
- @FirmCode = params['FirmCode']
5300
- @CheckResult = params['CheckResult']
5301
- @CategoryCode = params['CategoryCode']
5302
- end
5303
- end
5304
-
5305
5194
  # PropOwnerCertOCR请求参数结构体
5306
5195
  class PropOwnerCertOCRRequest < TencentCloud::Common::AbstractModel
5307
5196
  # @param ImageBase64: 图片的 Base64 值。
@@ -5512,53 +5401,6 @@ module TencentCloud
5512
5401
  end
5513
5402
  end
5514
5403
 
5515
- # QueryBarCode请求参数结构体
5516
- class QueryBarCodeRequest < TencentCloud::Common::AbstractModel
5517
- # @param BarCode: 条形码
5518
- # @type BarCode: String
5519
-
5520
- attr_accessor :BarCode
5521
-
5522
- def initialize(barcode=nil)
5523
- @BarCode = barcode
5524
- end
5525
-
5526
- def deserialize(params)
5527
- @BarCode = params['BarCode']
5528
- end
5529
- end
5530
-
5531
- # QueryBarCode返回参数结构体
5532
- class QueryBarCodeResponse < TencentCloud::Common::AbstractModel
5533
- # @param BarCode: 条码
5534
- # @type BarCode: String
5535
- # @param ProductDataRecords: 条码信息数组
5536
- # @type ProductDataRecords: Array
5537
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5538
- # @type RequestId: String
5539
-
5540
- attr_accessor :BarCode, :ProductDataRecords, :RequestId
5541
-
5542
- def initialize(barcode=nil, productdatarecords=nil, requestid=nil)
5543
- @BarCode = barcode
5544
- @ProductDataRecords = productdatarecords
5545
- @RequestId = requestid
5546
- end
5547
-
5548
- def deserialize(params)
5549
- @BarCode = params['BarCode']
5550
- unless params['ProductDataRecords'].nil?
5551
- @ProductDataRecords = []
5552
- params['ProductDataRecords'].each do |i|
5553
- productdatarecord_tmp = ProductDataRecord.new
5554
- productdatarecord_tmp.deserialize(i)
5555
- @ProductDataRecords << productdatarecord_tmp
5556
- end
5557
- end
5558
- @RequestId = params['RequestId']
5559
- end
5560
- end
5561
-
5562
5404
  # 数学试题识别结构化对象
5563
5405
  class QuestionBlockObj < TencentCloud::Common::AbstractModel
5564
5406
  # @param QuestionArr: 数学试题识别结构化信息数组
@@ -11731,63 +11573,6 @@ module TencentCloud
11731
11573
  end
11732
11574
  end
11733
11575
 
11734
- # VerifyEnterpriseFourFactors请求参数结构体
11735
- class VerifyEnterpriseFourFactorsRequest < TencentCloud::Common::AbstractModel
11736
- # @param RealName: 姓名
11737
- # @type RealName: String
11738
- # @param IdCard: 证件号码(公司注册证件号)
11739
- # @type IdCard: String
11740
- # @param EnterpriseName: 企业全称
11741
- # @type EnterpriseName: String
11742
- # @param EnterpriseMark: 企业标识(注册号,统一社会信用代码)
11743
- # @type EnterpriseMark: String
11744
-
11745
- attr_accessor :RealName, :IdCard, :EnterpriseName, :EnterpriseMark
11746
-
11747
- def initialize(realname=nil, idcard=nil, enterprisename=nil, enterprisemark=nil)
11748
- @RealName = realname
11749
- @IdCard = idcard
11750
- @EnterpriseName = enterprisename
11751
- @EnterpriseMark = enterprisemark
11752
- end
11753
-
11754
- def deserialize(params)
11755
- @RealName = params['RealName']
11756
- @IdCard = params['IdCard']
11757
- @EnterpriseName = params['EnterpriseName']
11758
- @EnterpriseMark = params['EnterpriseMark']
11759
- end
11760
- end
11761
-
11762
- # VerifyEnterpriseFourFactors返回参数结构体
11763
- class VerifyEnterpriseFourFactorsResponse < TencentCloud::Common::AbstractModel
11764
- # @param State: 核验一致性(1:一致,2:不一致,3:查询无记录)
11765
- # @type State: Integer
11766
- # @param Detail: 核验结果明细,7:企业法人/负责人,6:企业股东,5:企
11767
- # 业管理人员,-21:企业名称与企业标识不符,-22:姓名不一致,-23:证件号码不一致,-24:企业名称不一致,-25:企业标识不一致
11768
- # 注意:此字段可能返回 null,表示取不到有效值。
11769
- # @type Detail: :class:`Tencentcloud::Ocr.v20181119.models.Detail`
11770
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11771
- # @type RequestId: String
11772
-
11773
- attr_accessor :State, :Detail, :RequestId
11774
-
11775
- def initialize(state=nil, detail=nil, requestid=nil)
11776
- @State = state
11777
- @Detail = detail
11778
- @RequestId = requestid
11779
- end
11780
-
11781
- def deserialize(params)
11782
- @State = params['State']
11783
- unless params['Detail'].nil?
11784
- @Detail = Detail.new
11785
- @Detail.deserialize(params['Detail'])
11786
- end
11787
- @RequestId = params['RequestId']
11788
- end
11789
- end
11790
-
11791
11576
  # VerifyOfdVatInvoiceOCR请求参数结构体
11792
11577
  class VerifyOfdVatInvoiceOCRRequest < TencentCloud::Common::AbstractModel
11793
11578
  # @param OfdFileUrl: OFD文件的 Url 地址。
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.623
4
+ version: 3.0.625
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-28 00:00:00.000000000 Z
11
+ date: 2023-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common