tencentcloud-sdk-ocr 3.0.1070 → 3.0.1072

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b221811f0af16c8d3ef981a806b44c77efbce66f
4
- data.tar.gz: 9e908c1d8971c9167b520d575ede1692af6c7b37
3
+ metadata.gz: 918f2c861941ce5c7947c353e863420c7ae19f53
4
+ data.tar.gz: 9f5198e1f7ba240debbf29928bdd38cb6e16df78
5
5
  SHA512:
6
- metadata.gz: 34970cd8393db3e572678600f345dfc2604e0b24082a56294562eb07a1b12c719f025ae0884e769474eac82aeb47ac6cb1a9dfc1301e89da6bcddc599e62833a
7
- data.tar.gz: 6d56c0b5dcf4790908610b99747dfe7fd163a90d27792d321136908088abbfed55a065d15b20074afe2e1961305cadfe471889fd1c9727cd885c60b30fc24eb3
6
+ metadata.gz: e690c6002a43d57122aa109f914623b87285800588547b2c2641b3210c80e216bf1a55d4fde4248e4a581e40d96027ea86a1cfec437bffbfb3835071d8086cd1
7
+ data.tar.gz: 16adb3d5bfda6f9a814bd6788fa76363cc5d350510312ff8e951387a23767d04b811b60e23ec18f71b5ae2fe3d998b3ebc83c321bfa7160707462a4b4878671a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1070
1
+ 3.0.1072
@@ -1846,6 +1846,31 @@ module TencentCloud
1846
1846
  # <td> 20 </td>
1847
1847
  # </tr>
1848
1848
  # <tr>
1849
+ # <td> OnlineTaxiItinerary </td>
1850
+ # <td> 网约车行程单 </td>
1851
+ # <td> 21 </td>
1852
+ # </tr>
1853
+ # <tr>
1854
+ # <td> CustomsDeclaration </td>
1855
+ # <td> 海关进/出口货物报关单 </td>
1856
+ # <td> 22 </td>
1857
+ # </tr>
1858
+ # <tr>
1859
+ # <td> OverseasInvoice </td>
1860
+ # <td> 海外发票 </td>
1861
+ # <td> 23 </td>
1862
+ # </tr>
1863
+ # <tr>
1864
+ # <td> ShoppingReceipt </td>
1865
+ # <td> 购物小票 </td>
1866
+ # <td> 24 </td>
1867
+ # </tr>
1868
+ # <tr>
1869
+ # <td> SaleInventory </td>
1870
+ # <td> 销货清单 </td>
1871
+ # <td> 25 </td>
1872
+ # </tr>
1873
+ # <tr>
1849
1874
  # <td> OtherInvoice </td>
1850
1875
  # <td> 其他发票 </td>
1851
1876
  # <td> -1 </td>
@@ -1543,6 +1543,33 @@ module TencentCloud
1543
1543
  end
1544
1544
  end
1545
1545
 
1546
+ # 海关进/出口货物报关单
1547
+ class CustomsDeclaration < TencentCloud::Common::AbstractModel
1548
+ # @param Title: 发票名称
1549
+ # @type Title: String
1550
+ # @param Content: 识别出的字段名称(关键字)
1551
+ # @type Content: Array
1552
+
1553
+ attr_accessor :Title, :Content
1554
+
1555
+ def initialize(title=nil, content=nil)
1556
+ @Title = title
1557
+ @Content = content
1558
+ end
1559
+
1560
+ def deserialize(params)
1561
+ @Title = params['Title']
1562
+ unless params['Content'].nil?
1563
+ @Content = []
1564
+ params['Content'].each do |i|
1565
+ otherinvoiceitem_tmp = OtherInvoiceItem.new
1566
+ otherinvoiceitem_tmp.deserialize(i)
1567
+ @Content << otherinvoiceitem_tmp
1568
+ end
1569
+ end
1570
+ end
1571
+ end
1572
+
1546
1573
  # 海关缴款书
1547
1574
  class CustomsPaymentReceipt < TencentCloud::Common::AbstractModel
1548
1575
  # @param Title: 发票名称
@@ -5156,10 +5183,12 @@ module TencentCloud
5156
5183
  # @type SubTypeDescription: String
5157
5184
  # @param ItemPolygon: 该发票中所有字段坐标信息。包括字段英文名称、字段值所在位置四点坐标、字段所属行号,具体内容请点击左侧链接。
5158
5185
  # @type ItemPolygon: Array
5186
+ # @param QRCode: 二维码数据。
5187
+ # @type QRCode: String
5159
5188
 
5160
- attr_accessor :Code, :Type, :Polygon, :Angle, :SingleInvoiceInfos, :Page, :SubType, :TypeDescription, :CutImage, :SubTypeDescription, :ItemPolygon
5189
+ attr_accessor :Code, :Type, :Polygon, :Angle, :SingleInvoiceInfos, :Page, :SubType, :TypeDescription, :CutImage, :SubTypeDescription, :ItemPolygon, :QRCode
5161
5190
 
5162
- def initialize(code=nil, type=nil, polygon=nil, angle=nil, singleinvoiceinfos=nil, page=nil, subtype=nil, typedescription=nil, cutimage=nil, subtypedescription=nil, itempolygon=nil)
5191
+ def initialize(code=nil, type=nil, polygon=nil, angle=nil, singleinvoiceinfos=nil, page=nil, subtype=nil, typedescription=nil, cutimage=nil, subtypedescription=nil, itempolygon=nil, qrcode=nil)
5163
5192
  @Code = code
5164
5193
  @Type = type
5165
5194
  @Polygon = polygon
@@ -5171,6 +5200,7 @@ module TencentCloud
5171
5200
  @CutImage = cutimage
5172
5201
  @SubTypeDescription = subtypedescription
5173
5202
  @ItemPolygon = itempolygon
5203
+ @QRCode = qrcode
5174
5204
  end
5175
5205
 
5176
5206
  def deserialize(params)
@@ -5198,6 +5228,7 @@ module TencentCloud
5198
5228
  @ItemPolygon << itempolygoninfo_tmp
5199
5229
  end
5200
5230
  end
5231
+ @QRCode = params['QRCode']
5201
5232
  end
5202
5233
  end
5203
5234
 
@@ -6681,6 +6712,33 @@ module TencentCloud
6681
6712
  end
6682
6713
  end
6683
6714
 
6715
+ # 网约车行程单
6716
+ class OnlineTaxiItinerary < TencentCloud::Common::AbstractModel
6717
+ # @param Title: 发票名称
6718
+ # @type Title: String
6719
+ # @param Content: 识别出的字段名称(关键字)
6720
+ # @type Content: Array
6721
+
6722
+ attr_accessor :Title, :Content
6723
+
6724
+ def initialize(title=nil, content=nil)
6725
+ @Title = title
6726
+ @Content = content
6727
+ end
6728
+
6729
+ def deserialize(params)
6730
+ @Title = params['Title']
6731
+ unless params['Content'].nil?
6732
+ @Content = []
6733
+ params['Content'].each do |i|
6734
+ otherinvoiceitem_tmp = OtherInvoiceItem.new
6735
+ otherinvoiceitem_tmp.deserialize(i)
6736
+ @Content << otherinvoiceitem_tmp
6737
+ end
6738
+ end
6739
+ end
6740
+ end
6741
+
6684
6742
  # 网约车行程单识别结果
6685
6743
  class OnlineTaxiItineraryInfo < TencentCloud::Common::AbstractModel
6686
6744
  # @param Name: 识别出的字段名称(关键字),支持以下字段:
@@ -6854,6 +6912,33 @@ module TencentCloud
6854
6912
  end
6855
6913
  end
6856
6914
 
6915
+ # 海外发票
6916
+ class OverseasInvoice < TencentCloud::Common::AbstractModel
6917
+ # @param Title: 发票名称
6918
+ # @type Title: String
6919
+ # @param Content: 识别出的字段名称(关键字)
6920
+ # @type Content: Array
6921
+
6922
+ attr_accessor :Title, :Content
6923
+
6924
+ def initialize(title=nil, content=nil)
6925
+ @Title = title
6926
+ @Content = content
6927
+ end
6928
+
6929
+ def deserialize(params)
6930
+ @Title = params['Title']
6931
+ unless params['Content'].nil?
6932
+ @Content = []
6933
+ params['Content'].each do |i|
6934
+ otherinvoiceitem_tmp = OtherInvoiceItem.new
6935
+ otherinvoiceitem_tmp.deserialize(i)
6936
+ @Content << otherinvoiceitem_tmp
6937
+ end
6938
+ end
6939
+ end
6940
+ end
6941
+
6857
6942
  # 通行费发票信息
6858
6943
  class PassInvoiceInfo < TencentCloud::Common::AbstractModel
6859
6944
  # @param NumberPlate: 通行费车牌号
@@ -8591,6 +8676,11 @@ module TencentCloud
8591
8676
  # 18:完税凭证
8592
8677
  # 19:海关缴款书
8593
8678
  # 20:银行回单
8679
+ # 21:网约车行程单
8680
+ # 22:海关进/出口货物报关单
8681
+ # 23:海外发票
8682
+ # 24:购物小票
8683
+ # 25:销货清单
8594
8684
  # -1:其他发票
8595
8685
  # @type Types: Array
8596
8686
  # @param EnableOther: 是否开启其他票识别,默认值为true,开启后可支持其他发票的智能识别。
@@ -8605,10 +8695,12 @@ module TencentCloud
8605
8695
  # @type EnableCutImage: Boolean
8606
8696
  # @param EnableItemPolygon: 是否打开字段坐标返回。默认为false。
8607
8697
  # @type EnableItemPolygon: Boolean
8698
+ # @param EnableQRCode: 是否开启二维码识别。
8699
+ # @type EnableQRCode: Boolean
8608
8700
 
8609
- attr_accessor :ImageBase64, :ImageUrl, :Types, :EnableOther, :EnablePdf, :PdfPageNumber, :EnableMultiplePage, :EnableCutImage, :EnableItemPolygon
8701
+ attr_accessor :ImageBase64, :ImageUrl, :Types, :EnableOther, :EnablePdf, :PdfPageNumber, :EnableMultiplePage, :EnableCutImage, :EnableItemPolygon, :EnableQRCode
8610
8702
 
8611
- def initialize(imagebase64=nil, imageurl=nil, types=nil, enableother=nil, enablepdf=nil, pdfpagenumber=nil, enablemultiplepage=nil, enablecutimage=nil, enableitempolygon=nil)
8703
+ def initialize(imagebase64=nil, imageurl=nil, types=nil, enableother=nil, enablepdf=nil, pdfpagenumber=nil, enablemultiplepage=nil, enablecutimage=nil, enableitempolygon=nil, enableqrcode=nil)
8612
8704
  @ImageBase64 = imagebase64
8613
8705
  @ImageUrl = imageurl
8614
8706
  @Types = types
@@ -8618,6 +8710,7 @@ module TencentCloud
8618
8710
  @EnableMultiplePage = enablemultiplepage
8619
8711
  @EnableCutImage = enablecutimage
8620
8712
  @EnableItemPolygon = enableitempolygon
8713
+ @EnableQRCode = enableqrcode
8621
8714
  end
8622
8715
 
8623
8716
  def deserialize(params)
@@ -8630,6 +8723,7 @@ module TencentCloud
8630
8723
  @EnableMultiplePage = params['EnableMultiplePage']
8631
8724
  @EnableCutImage = params['EnableCutImage']
8632
8725
  @EnableItemPolygon = params['EnableItemPolygon']
8726
+ @EnableQRCode = params['EnableQRCode']
8633
8727
  end
8634
8728
  end
8635
8729
 
@@ -10039,6 +10133,33 @@ module TencentCloud
10039
10133
  end
10040
10134
  end
10041
10135
 
10136
+ # 销货清单
10137
+ class SaleInventory < TencentCloud::Common::AbstractModel
10138
+ # @param Title: 发票名称
10139
+ # @type Title: String
10140
+ # @param Content: 识别出的字段名称(关键字)
10141
+ # @type Content: Array
10142
+
10143
+ attr_accessor :Title, :Content
10144
+
10145
+ def initialize(title=nil, content=nil)
10146
+ @Title = title
10147
+ @Content = content
10148
+ end
10149
+
10150
+ def deserialize(params)
10151
+ @Title = params['Title']
10152
+ unless params['Content'].nil?
10153
+ @Content = []
10154
+ params['Content'].each do |i|
10155
+ otherinvoiceitem_tmp = OtherInvoiceItem.new
10156
+ otherinvoiceitem_tmp.deserialize(i)
10157
+ @Content << otherinvoiceitem_tmp
10158
+ end
10159
+ end
10160
+ end
10161
+ end
10162
+
10042
10163
  # 印章信息
10043
10164
  class SealInfo < TencentCloud::Common::AbstractModel
10044
10165
  # @param SealBody: 印章主体内容
@@ -10318,6 +10439,33 @@ module TencentCloud
10318
10439
  end
10319
10440
  end
10320
10441
 
10442
+ # 购物小票
10443
+ class ShoppingReceipt < TencentCloud::Common::AbstractModel
10444
+ # @param Title: 发票名称
10445
+ # @type Title: String
10446
+ # @param Content: 识别出的字段名称(关键字)
10447
+ # @type Content: Array
10448
+
10449
+ attr_accessor :Title, :Content
10450
+
10451
+ def initialize(title=nil, content=nil)
10452
+ @Title = title
10453
+ @Content = content
10454
+ end
10455
+
10456
+ def deserialize(params)
10457
+ @Title = params['Title']
10458
+ unless params['Content'].nil?
10459
+ @Content = []
10460
+ params['Content'].each do |i|
10461
+ otherinvoiceitem_tmp = OtherInvoiceItem.new
10462
+ otherinvoiceitem_tmp.deserialize(i)
10463
+ @Content << otherinvoiceitem_tmp
10464
+ end
10465
+ end
10466
+ end
10467
+ end
10468
+
10321
10469
  # 混贴票据中单张发票的内容
10322
10470
  class SingleInvoiceInfo < TencentCloud::Common::AbstractModel
10323
10471
  # @param Name: 识别出的字段名称
@@ -10434,10 +10582,25 @@ module TencentCloud
10434
10582
  # @param BankSlip: 银行回单
10435
10583
  # 注意:此字段可能返回 null,表示取不到有效值。
10436
10584
  # @type BankSlip: :class:`Tencentcloud::Ocr.v20181119.models.BankSlip`
10585
+ # @param OnlineTaxiItinerary: 网约车行程单
10586
+ # 注意:此字段可能返回 null,表示取不到有效值。
10587
+ # @type OnlineTaxiItinerary: :class:`Tencentcloud::Ocr.v20181119.models.OnlineTaxiItinerary`
10588
+ # @param CustomsDeclaration: 海关进/出口货物报关单
10589
+ # 注意:此字段可能返回 null,表示取不到有效值。
10590
+ # @type CustomsDeclaration: :class:`Tencentcloud::Ocr.v20181119.models.CustomsDeclaration`
10591
+ # @param OverseasInvoice: 海外发票
10592
+ # 注意:此字段可能返回 null,表示取不到有效值。
10593
+ # @type OverseasInvoice: :class:`Tencentcloud::Ocr.v20181119.models.OverseasInvoice`
10594
+ # @param ShoppingReceipt: 购物小票
10595
+ # 注意:此字段可能返回 null,表示取不到有效值。
10596
+ # @type ShoppingReceipt: :class:`Tencentcloud::Ocr.v20181119.models.ShoppingReceipt`
10597
+ # @param SaleInventory: 销货清单
10598
+ # 注意:此字段可能返回 null,表示取不到有效值。
10599
+ # @type SaleInventory: :class:`Tencentcloud::Ocr.v20181119.models.SaleInventory`
10437
10600
 
10438
- 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, :ElectronicTrainTicketFull, :ElectronicFlightTicketFull, :TaxPayment, :CustomsPaymentReceipt, :BankSlip
10601
+ 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, :ElectronicTrainTicketFull, :ElectronicFlightTicketFull, :TaxPayment, :CustomsPaymentReceipt, :BankSlip, :OnlineTaxiItinerary, :CustomsDeclaration, :OverseasInvoice, :ShoppingReceipt, :SaleInventory
10439
10602
 
10440
- 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, electronictrainticketfull=nil, electronicflightticketfull=nil, taxpayment=nil, customspaymentreceipt=nil, bankslip=nil)
10603
+ 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, electronictrainticketfull=nil, electronicflightticketfull=nil, taxpayment=nil, customspaymentreceipt=nil, bankslip=nil, onlinetaxiitinerary=nil, customsdeclaration=nil, overseasinvoice=nil, shoppingreceipt=nil, saleinventory=nil)
10441
10604
  @VatSpecialInvoice = vatspecialinvoice
10442
10605
  @VatCommonInvoice = vatcommoninvoice
10443
10606
  @VatElectronicCommonInvoice = vatelectroniccommoninvoice
@@ -10468,6 +10631,11 @@ module TencentCloud
10468
10631
  @TaxPayment = taxpayment
10469
10632
  @CustomsPaymentReceipt = customspaymentreceipt
10470
10633
  @BankSlip = bankslip
10634
+ @OnlineTaxiItinerary = onlinetaxiitinerary
10635
+ @CustomsDeclaration = customsdeclaration
10636
+ @OverseasInvoice = overseasinvoice
10637
+ @ShoppingReceipt = shoppingreceipt
10638
+ @SaleInventory = saleinventory
10471
10639
  end
10472
10640
 
10473
10641
  def deserialize(params)
@@ -10591,6 +10759,26 @@ module TencentCloud
10591
10759
  @BankSlip = BankSlip.new
10592
10760
  @BankSlip.deserialize(params['BankSlip'])
10593
10761
  end
10762
+ unless params['OnlineTaxiItinerary'].nil?
10763
+ @OnlineTaxiItinerary = OnlineTaxiItinerary.new
10764
+ @OnlineTaxiItinerary.deserialize(params['OnlineTaxiItinerary'])
10765
+ end
10766
+ unless params['CustomsDeclaration'].nil?
10767
+ @CustomsDeclaration = CustomsDeclaration.new
10768
+ @CustomsDeclaration.deserialize(params['CustomsDeclaration'])
10769
+ end
10770
+ unless params['OverseasInvoice'].nil?
10771
+ @OverseasInvoice = OverseasInvoice.new
10772
+ @OverseasInvoice.deserialize(params['OverseasInvoice'])
10773
+ end
10774
+ unless params['ShoppingReceipt'].nil?
10775
+ @ShoppingReceipt = ShoppingReceipt.new
10776
+ @ShoppingReceipt.deserialize(params['ShoppingReceipt'])
10777
+ end
10778
+ unless params['SaleInventory'].nil?
10779
+ @SaleInventory = SaleInventory.new
10780
+ @SaleInventory.deserialize(params['SaleInventory'])
10781
+ end
10594
10782
  end
10595
10783
  end
10596
10784
 
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.1070
4
+ version: 3.0.1072
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-05-28 00:00:00.000000000 Z
11
+ date: 2025-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common