tencentcloud-sdk-ocr 3.0.620 → 3.0.622

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: 7076cd5eeaa19b4a9c5de945ddc150598c273a1b
4
- data.tar.gz: 85b78c3f1ed0650eaa7aead60012fb6c84210406
3
+ metadata.gz: 0a5ced542bbc5a65de3de89b8e00a9451e7a1b2c
4
+ data.tar.gz: c073adb2f6a9b35a4a2e078bfaabe2d4b537b82e
5
5
  SHA512:
6
- metadata.gz: 7c7fb18036f1f253196cc97ba591d801541090aa76b322258ff8978540c56e081f4fd4fa9bf90161139961fe0a203b87103256e2c4d83cbbb7ac68d66280b668
7
- data.tar.gz: e4b61e5bad0c037d101771e391f6b2fb85d51e830e2c477177c72f6cf7e8daaac81b640587ce99f6059767c1400f05817462c2bb1f1a01bd67bc8ef1d6abdb1a
6
+ metadata.gz: e7f37d94e154dbac728d2f7c5815148d652d9ae9d6f4bbaef663bb5a5bfe93c177b2b37cad8017979bd915d8a51f3ded72567582ddc702b578af7153146915a1
7
+ data.tar.gz: 115480c0ba0555244a5a99c3ee4d5d482a438816552c7393c968d041f0d7ebf1bbde41960d1c20e91c9b72a2a919ec802065bb563caaabe2db924295dfccc939
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.620
1
+ 3.0.622
@@ -868,7 +868,7 @@ module TencentCloud
868
868
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
869
869
  end
870
870
 
871
- # 支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超连接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
871
+ # 支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
872
872
 
873
873
  # @param request: Request instance for GetTaskState.
874
874
  # @type request: :class:`Tencentcloud::ocr::V20181119::GetTaskStateRequest`
@@ -1529,6 +1529,11 @@ module TencentCloud
1529
1529
  # <td> 3 </td>
1530
1530
  # </tr>
1531
1531
  # <tr>
1532
+ # <td> VatSalesList</td>
1533
+ # <td> 增值税销货清单</td>
1534
+ # <td> 3 </td>
1535
+ # </tr>
1536
+ # <tr>
1532
1537
  # <td> VatElectronicSpecialInvoiceFull</td>
1533
1538
  # <td> 电子发票(专用发票)</td>
1534
1539
  # <td> 16 </td>
@@ -2286,7 +2291,7 @@ module TencentCloud
2286
2291
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2287
2292
  end
2288
2293
 
2289
- # 本接口支持增值税专用发票、增值税普通发票、增值税电子专票、增值税电子普票、电子发票(普通发票)、电子发票(增值税专用发票)德全字段的内容检测和识别,包括发票代码、发票号码、打印发票代码、打印发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段,点击[立即试用](https://cloud.tencent.com/product/ocr)。
2294
+ # 本接口支持增值税专用发票、增值税普通发票、增值税电子专票、增值税电子普票、电子发票(普通发票)、电子发票(增值税专用发票)全字段的内容检测和识别,包括发票代码、发票号码、打印发票代码、打印发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段,点击[立即试用](https://cloud.tencent.com/product/ocr)。
2290
2295
 
2291
2296
  # 默认接口请求频率限制:10次/秒。
2292
2297
 
@@ -2934,14 +2934,17 @@ module TencentCloud
2934
2934
  # API 3.0 Explorer 设置方式参考:
2935
2935
  # Config = {"CropIdCard":true,"CropPortrait":true}
2936
2936
  # @type Config: String
2937
+ # @param EnableRecognitionRectify: 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
2938
+ # @type EnableRecognitionRectify: Boolean
2937
2939
 
2938
- attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config
2940
+ attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify
2939
2941
 
2940
- def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil)
2942
+ def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil)
2941
2943
  @ImageBase64 = imagebase64
2942
2944
  @ImageUrl = imageurl
2943
2945
  @CardSide = cardside
2944
2946
  @Config = config
2947
+ @EnableRecognitionRectify = enablerecognitionrectify
2945
2948
  end
2946
2949
 
2947
2950
  def deserialize(params)
@@ -2949,6 +2952,7 @@ module TencentCloud
2949
2952
  @ImageUrl = params['ImageUrl']
2950
2953
  @CardSide = params['CardSide']
2951
2954
  @Config = params['Config']
2955
+ @EnableRecognitionRectify = params['EnableRecognitionRectify']
2952
2956
  end
2953
2957
  end
2954
2958
 
@@ -4877,14 +4881,17 @@ module TencentCloud
4877
4881
  # @type OtherInvoiceListItems: Array
4878
4882
  # @param OtherInvoiceTableItems: 表格
4879
4883
  # @type OtherInvoiceTableItems: Array
4884
+ # @param Date: 发票日期
4885
+ # @type Date: String
4880
4886
 
4881
- attr_accessor :Title, :Total, :OtherInvoiceListItems, :OtherInvoiceTableItems
4887
+ attr_accessor :Title, :Total, :OtherInvoiceListItems, :OtherInvoiceTableItems, :Date
4882
4888
 
4883
- def initialize(title=nil, total=nil, otherinvoicelistitems=nil, otherinvoicetableitems=nil)
4889
+ def initialize(title=nil, total=nil, otherinvoicelistitems=nil, otherinvoicetableitems=nil, date=nil)
4884
4890
  @Title = title
4885
4891
  @Total = total
4886
4892
  @OtherInvoiceListItems = otherinvoicelistitems
4887
4893
  @OtherInvoiceTableItems = otherinvoicetableitems
4894
+ @Date = date
4888
4895
  end
4889
4896
 
4890
4897
  def deserialize(params)
@@ -4906,6 +4913,7 @@ module TencentCloud
4906
4913
  @OtherInvoiceTableItems << otherinvoicelist_tmp
4907
4914
  end
4908
4915
  end
4916
+ @Date = params['Date']
4909
4917
  end
4910
4918
  end
4911
4919
 
@@ -7767,10 +7775,13 @@ module TencentCloud
7767
7775
  # @param MedicalHospitalizedInvoice: 医疗住院收费票据(电子)
7768
7776
  # 注意:此字段可能返回 null,表示取不到有效值。
7769
7777
  # @type MedicalHospitalizedInvoice: :class:`Tencentcloud::Ocr.v20181119.models.MedicalInvoice`
7778
+ # @param VatSalesList: 增值税销货清单
7779
+ # 注意:此字段可能返回 null,表示取不到有效值。
7780
+ # @type VatSalesList: :class:`Tencentcloud::Ocr.v20181119.models.VatInvoiceInfo`
7770
7781
 
7771
- attr_accessor :VatSpecialInvoice, :VatCommonInvoice, :VatElectronicCommonInvoice, :VatElectronicSpecialInvoice, :VatElectronicInvoiceBlockchain, :VatElectronicInvoiceToll, :VatElectronicSpecialInvoiceFull, :VatElectronicInvoiceFull, :MachinePrintedInvoice, :BusInvoice, :ShippingInvoice, :TollInvoice, :OtherInvoice, :MotorVehicleSaleInvoice, :UsedCarPurchaseInvoice, :VatInvoiceRoll, :TaxiTicket, :QuotaInvoice, :AirTransport, :NonTaxIncomeGeneralBill, :NonTaxIncomeElectronicBill, :TrainTicket, :MedicalOutpatientInvoice, :MedicalHospitalizedInvoice
7782
+ attr_accessor :VatSpecialInvoice, :VatCommonInvoice, :VatElectronicCommonInvoice, :VatElectronicSpecialInvoice, :VatElectronicInvoiceBlockchain, :VatElectronicInvoiceToll, :VatElectronicSpecialInvoiceFull, :VatElectronicInvoiceFull, :MachinePrintedInvoice, :BusInvoice, :ShippingInvoice, :TollInvoice, :OtherInvoice, :MotorVehicleSaleInvoice, :UsedCarPurchaseInvoice, :VatInvoiceRoll, :TaxiTicket, :QuotaInvoice, :AirTransport, :NonTaxIncomeGeneralBill, :NonTaxIncomeElectronicBill, :TrainTicket, :MedicalOutpatientInvoice, :MedicalHospitalizedInvoice, :VatSalesList
7772
7783
 
7773
- def initialize(vatspecialinvoice=nil, vatcommoninvoice=nil, vatelectroniccommoninvoice=nil, vatelectronicspecialinvoice=nil, vatelectronicinvoiceblockchain=nil, vatelectronicinvoicetoll=nil, vatelectronicspecialinvoicefull=nil, vatelectronicinvoicefull=nil, machineprintedinvoice=nil, businvoice=nil, shippinginvoice=nil, tollinvoice=nil, otherinvoice=nil, motorvehiclesaleinvoice=nil, usedcarpurchaseinvoice=nil, vatinvoiceroll=nil, taxiticket=nil, quotainvoice=nil, airtransport=nil, nontaxincomegeneralbill=nil, nontaxincomeelectronicbill=nil, trainticket=nil, medicaloutpatientinvoice=nil, medicalhospitalizedinvoice=nil)
7784
+ def initialize(vatspecialinvoice=nil, vatcommoninvoice=nil, vatelectroniccommoninvoice=nil, vatelectronicspecialinvoice=nil, vatelectronicinvoiceblockchain=nil, vatelectronicinvoicetoll=nil, vatelectronicspecialinvoicefull=nil, vatelectronicinvoicefull=nil, machineprintedinvoice=nil, businvoice=nil, shippinginvoice=nil, tollinvoice=nil, otherinvoice=nil, motorvehiclesaleinvoice=nil, usedcarpurchaseinvoice=nil, vatinvoiceroll=nil, taxiticket=nil, quotainvoice=nil, airtransport=nil, nontaxincomegeneralbill=nil, nontaxincomeelectronicbill=nil, trainticket=nil, medicaloutpatientinvoice=nil, medicalhospitalizedinvoice=nil, vatsaleslist=nil)
7774
7785
  @VatSpecialInvoice = vatspecialinvoice
7775
7786
  @VatCommonInvoice = vatcommoninvoice
7776
7787
  @VatElectronicCommonInvoice = vatelectroniccommoninvoice
@@ -7795,6 +7806,7 @@ module TencentCloud
7795
7806
  @TrainTicket = trainticket
7796
7807
  @MedicalOutpatientInvoice = medicaloutpatientinvoice
7797
7808
  @MedicalHospitalizedInvoice = medicalhospitalizedinvoice
7809
+ @VatSalesList = vatsaleslist
7798
7810
  end
7799
7811
 
7800
7812
  def deserialize(params)
@@ -7894,6 +7906,10 @@ module TencentCloud
7894
7906
  @MedicalHospitalizedInvoice = MedicalInvoice.new
7895
7907
  @MedicalHospitalizedInvoice.deserialize(params['MedicalHospitalizedInvoice'])
7896
7908
  end
7909
+ unless params['VatSalesList'].nil?
7910
+ @VatSalesList = VatInvoiceInfo.new
7911
+ @VatSalesList.deserialize(params['VatSalesList'])
7912
+ end
7897
7913
  end
7898
7914
  end
7899
7915
 
@@ -10345,10 +10361,18 @@ module TencentCloud
10345
10361
  # @type ElectronicFullNumber: String
10346
10362
  # @param FormName: 发票联名
10347
10363
  # @type FormName: String
10364
+ # @param BlockChainMark: 是否有区块链标记(0:没有,1:有)
10365
+ # @type BlockChainMark: Integer
10366
+ # @param AcquisitionMark: 是否有收购标记(0:没有,1:有)
10367
+ # @type AcquisitionMark: Integer
10368
+ # @param SubTotal: 小计金额
10369
+ # @type SubTotal: String
10370
+ # @param SubTax: 小计税额
10371
+ # @type SubTax: String
10348
10372
 
10349
- attr_accessor :CheckCode, :FormType, :TravelTax, :BuyerAddrTel, :BuyerBankAccount, :CompanySealContent, :TaxSealContent, :ServiceName, :City, :QRCodeMark, :AgentMark, :TransitMark, :OilMark, :Title, :Kind, :Code, :Number, :NumberConfirm, :Date, :Total, :TotalCn, :PretaxAmount, :Tax, :MachineCode, :Ciphertext, :Remark, :Seller, :SellerTaxID, :SellerAddrTel, :SellerBankAccount, :Buyer, :BuyerTaxID, :CompanySealMark, :Issuer, :Reviewer, :Province, :VatInvoiceItemInfos, :CodeConfirm, :Receiptor, :ElectronicFullMark, :ElectronicFullNumber, :FormName
10373
+ attr_accessor :CheckCode, :FormType, :TravelTax, :BuyerAddrTel, :BuyerBankAccount, :CompanySealContent, :TaxSealContent, :ServiceName, :City, :QRCodeMark, :AgentMark, :TransitMark, :OilMark, :Title, :Kind, :Code, :Number, :NumberConfirm, :Date, :Total, :TotalCn, :PretaxAmount, :Tax, :MachineCode, :Ciphertext, :Remark, :Seller, :SellerTaxID, :SellerAddrTel, :SellerBankAccount, :Buyer, :BuyerTaxID, :CompanySealMark, :Issuer, :Reviewer, :Province, :VatInvoiceItemInfos, :CodeConfirm, :Receiptor, :ElectronicFullMark, :ElectronicFullNumber, :FormName, :BlockChainMark, :AcquisitionMark, :SubTotal, :SubTax
10350
10374
 
10351
- def initialize(checkcode=nil, formtype=nil, traveltax=nil, buyeraddrtel=nil, buyerbankaccount=nil, companysealcontent=nil, taxsealcontent=nil, servicename=nil, city=nil, qrcodemark=nil, agentmark=nil, transitmark=nil, oilmark=nil, title=nil, kind=nil, code=nil, number=nil, numberconfirm=nil, date=nil, total=nil, totalcn=nil, pretaxamount=nil, tax=nil, machinecode=nil, ciphertext=nil, remark=nil, seller=nil, sellertaxid=nil, selleraddrtel=nil, sellerbankaccount=nil, buyer=nil, buyertaxid=nil, companysealmark=nil, issuer=nil, reviewer=nil, province=nil, vatinvoiceiteminfos=nil, codeconfirm=nil, receiptor=nil, electronicfullmark=nil, electronicfullnumber=nil, formname=nil)
10375
+ def initialize(checkcode=nil, formtype=nil, traveltax=nil, buyeraddrtel=nil, buyerbankaccount=nil, companysealcontent=nil, taxsealcontent=nil, servicename=nil, city=nil, qrcodemark=nil, agentmark=nil, transitmark=nil, oilmark=nil, title=nil, kind=nil, code=nil, number=nil, numberconfirm=nil, date=nil, total=nil, totalcn=nil, pretaxamount=nil, tax=nil, machinecode=nil, ciphertext=nil, remark=nil, seller=nil, sellertaxid=nil, selleraddrtel=nil, sellerbankaccount=nil, buyer=nil, buyertaxid=nil, companysealmark=nil, issuer=nil, reviewer=nil, province=nil, vatinvoiceiteminfos=nil, codeconfirm=nil, receiptor=nil, electronicfullmark=nil, electronicfullnumber=nil, formname=nil, blockchainmark=nil, acquisitionmark=nil, subtotal=nil, subtax=nil)
10352
10376
  @CheckCode = checkcode
10353
10377
  @FormType = formtype
10354
10378
  @TravelTax = traveltax
@@ -10391,6 +10415,10 @@ module TencentCloud
10391
10415
  @ElectronicFullMark = electronicfullmark
10392
10416
  @ElectronicFullNumber = electronicfullnumber
10393
10417
  @FormName = formname
10418
+ @BlockChainMark = blockchainmark
10419
+ @AcquisitionMark = acquisitionmark
10420
+ @SubTotal = subtotal
10421
+ @SubTax = subtax
10394
10422
  end
10395
10423
 
10396
10424
  def deserialize(params)
@@ -10443,6 +10471,10 @@ module TencentCloud
10443
10471
  @ElectronicFullMark = params['ElectronicFullMark']
10444
10472
  @ElectronicFullNumber = params['ElectronicFullNumber']
10445
10473
  @FormName = params['FormName']
10474
+ @BlockChainMark = params['BlockChainMark']
10475
+ @AcquisitionMark = params['AcquisitionMark']
10476
+ @SubTotal = params['SubTotal']
10477
+ @SubTax = params['SubTax']
10446
10478
  end
10447
10479
  end
10448
10480
 
@@ -10552,10 +10584,12 @@ module TencentCloud
10552
10584
  # @type LicensePlate: String
10553
10585
  # @param VehicleType: 车辆类型
10554
10586
  # @type VehicleType: String
10587
+ # @param SerialNumber: 序号
10588
+ # @type SerialNumber: String
10555
10589
 
10556
- attr_accessor :Name, :Specification, :Unit, :Quantity, :Price, :Total, :TaxRate, :Tax, :DateStart, :DateEnd, :LicensePlate, :VehicleType
10590
+ attr_accessor :Name, :Specification, :Unit, :Quantity, :Price, :Total, :TaxRate, :Tax, :DateStart, :DateEnd, :LicensePlate, :VehicleType, :SerialNumber
10557
10591
 
10558
- def initialize(name=nil, specification=nil, unit=nil, quantity=nil, price=nil, total=nil, taxrate=nil, tax=nil, datestart=nil, dateend=nil, licenseplate=nil, vehicletype=nil)
10592
+ def initialize(name=nil, specification=nil, unit=nil, quantity=nil, price=nil, total=nil, taxrate=nil, tax=nil, datestart=nil, dateend=nil, licenseplate=nil, vehicletype=nil, serialnumber=nil)
10559
10593
  @Name = name
10560
10594
  @Specification = specification
10561
10595
  @Unit = unit
@@ -10568,6 +10602,7 @@ module TencentCloud
10568
10602
  @DateEnd = dateend
10569
10603
  @LicensePlate = licenseplate
10570
10604
  @VehicleType = vehicletype
10605
+ @SerialNumber = serialnumber
10571
10606
  end
10572
10607
 
10573
10608
  def deserialize(params)
@@ -10583,6 +10618,7 @@ module TencentCloud
10583
10618
  @DateEnd = params['DateEnd']
10584
10619
  @LicensePlate = params['LicensePlate']
10585
10620
  @VehicleType = params['VehicleType']
10621
+ @SerialNumber = params['SerialNumber']
10586
10622
  end
10587
10623
  end
10588
10624
 
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.620
4
+ version: 3.0.622
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-25 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common