tencentcloud-sdk-ocr 3.0.715 → 3.0.717

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: b6ab6c557048a7c2c74314e3c29b3e09434d1eb9
4
- data.tar.gz: 1ff92eb5fadfb24649715d47b3df1815415c355d
3
+ metadata.gz: 4592194d7b179d401475eab8daf9ae6036f17e50
4
+ data.tar.gz: ab023b575b3f579f1bfe820f1b0a9789f21543e4
5
5
  SHA512:
6
- metadata.gz: 0223ebdf639c45089fb30c83fa67f4638db8af7a106dc7668858d4d2d6ceff8df7c9e3272277d9cce925a8f74bce93abdfe3ac8a312de40a6b1edf1b033f236d
7
- data.tar.gz: 91df1ae516667d87d97c27ec80538254a7f2fc61ee2f4af3751ebc053006be7b00c25bcd9347aec20108a7dc6723efffd6b33bcc3e249999b3843e72631ba540
6
+ metadata.gz: de47198ee69cc72c52ad0871a55d375a55e9909c76045727243e91e84c2e8b1f4f55130d33829f3fec0e1df29c47913fbb7be4c891e07e4832890357010d1a22
7
+ data.tar.gz: dbdd86d67266f3baee22bdadae8da90b9bfcaee7755800dfbace833eef0dbff10e97578b4e5040e4b429a25eda91eed35bae9edfbb7d547261452b69a5872bfe
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.715
1
+ 3.0.717
@@ -1457,7 +1457,7 @@ module TencentCloud
1457
1457
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1458
1458
  end
1459
1459
 
1460
- # 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
1460
+ # 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
1461
1461
 
1462
1462
  # 默认接口请求频率限制:5次/秒。
1463
1463
 
@@ -1517,6 +1517,16 @@ module TencentCloud
1517
1517
  # <td> 电子发票(普通发票) </td>
1518
1518
  # <td> 16 </td>
1519
1519
  # </tr>
1520
+ # <tr>
1521
+ # <td> ElectronicFlightTicketFull</td>
1522
+ # <td> 电子发票(机票行程单),该子类目前仅支持ofd发票</td>
1523
+ # <td> 16 </td>
1524
+ # </tr>
1525
+ # <tr>
1526
+ # <td> ElectronicTrainTicketFull</td>
1527
+ # <td> 电子发票(铁路电子客票),该子类目前仅支持ofd发票</td>
1528
+ # <td> 16 </td>
1529
+ # </tr>
1520
1530
  # <tr>
1521
1531
  # <td> MotorVehicleSaleInvoice </td>
1522
1532
  # <td> 机动车销售统一发票 </td>
@@ -1757,6 +1757,209 @@ module TencentCloud
1757
1757
  end
1758
1758
  end
1759
1759
 
1760
+ # 电子发票(机票行程单)
1761
+ class ElectronicFlightTicketFull < TencentCloud::Common::AbstractModel
1762
+ # @param UserName: 旅客姓名
1763
+ # @type UserName: String
1764
+ # @param UserID: 有效身份证件号码
1765
+ # @type UserID: String
1766
+ # @param Endorsement: 签注
1767
+ # @type Endorsement: String
1768
+ # @param GPOrder: GP单号
1769
+ # @type GPOrder: String
1770
+ # @param Number: 发票号码
1771
+ # @type Number: String
1772
+ # @param Fare: 票价
1773
+ # @type Fare: String
1774
+ # @param FuelSurcharge: 燃油附加费
1775
+ # @type FuelSurcharge: String
1776
+ # @param TaxRate: 增值税税率
1777
+ # @type TaxRate: String
1778
+ # @param Tax: 增值税税额
1779
+ # @type Tax: String
1780
+ # @param DevelopmentFund: 民航发展基金
1781
+ # @type DevelopmentFund: String
1782
+ # @param OtherTax: 其他税费
1783
+ # @type OtherTax: String
1784
+ # @param Total: 合计
1785
+ # @type Total: String
1786
+ # @param ElectronicTicketNum: 电子客票号码
1787
+ # @type ElectronicTicketNum: String
1788
+ # @param VerificationCode: 验证码
1789
+ # @type VerificationCode: String
1790
+ # @param PromptInformation: 提示信息
1791
+ # @type PromptInformation: String
1792
+ # @param Insurance: 保险费
1793
+ # @type Insurance: String
1794
+ # @param Issuer: 填开单位
1795
+ # @type Issuer: String
1796
+ # @param Date: 填开时间
1797
+ # @type Date: String
1798
+ # @param DomesticInternationalTag: 国内国际标识
1799
+ # @type DomesticInternationalTag: String
1800
+ # @param Buyer: 购买方名称
1801
+ # @type Buyer: String
1802
+ # @param Seller: 销售方名称
1803
+ # @type Seller: String
1804
+ # @param BuyerTaxID: 统一社会信用代码
1805
+ # @type BuyerTaxID: String
1806
+ # @param FlightItems: 机票详细信息元组
1807
+ # @type FlightItems: Array
1808
+
1809
+ attr_accessor :UserName, :UserID, :Endorsement, :GPOrder, :Number, :Fare, :FuelSurcharge, :TaxRate, :Tax, :DevelopmentFund, :OtherTax, :Total, :ElectronicTicketNum, :VerificationCode, :PromptInformation, :Insurance, :Issuer, :Date, :DomesticInternationalTag, :Buyer, :Seller, :BuyerTaxID, :FlightItems
1810
+
1811
+ def initialize(username=nil, userid=nil, endorsement=nil, gporder=nil, number=nil, fare=nil, fuelsurcharge=nil, taxrate=nil, tax=nil, developmentfund=nil, othertax=nil, total=nil, electronicticketnum=nil, verificationcode=nil, promptinformation=nil, insurance=nil, issuer=nil, date=nil, domesticinternationaltag=nil, buyer=nil, seller=nil, buyertaxid=nil, flightitems=nil)
1812
+ @UserName = username
1813
+ @UserID = userid
1814
+ @Endorsement = endorsement
1815
+ @GPOrder = gporder
1816
+ @Number = number
1817
+ @Fare = fare
1818
+ @FuelSurcharge = fuelsurcharge
1819
+ @TaxRate = taxrate
1820
+ @Tax = tax
1821
+ @DevelopmentFund = developmentfund
1822
+ @OtherTax = othertax
1823
+ @Total = total
1824
+ @ElectronicTicketNum = electronicticketnum
1825
+ @VerificationCode = verificationcode
1826
+ @PromptInformation = promptinformation
1827
+ @Insurance = insurance
1828
+ @Issuer = issuer
1829
+ @Date = date
1830
+ @DomesticInternationalTag = domesticinternationaltag
1831
+ @Buyer = buyer
1832
+ @Seller = seller
1833
+ @BuyerTaxID = buyertaxid
1834
+ @FlightItems = flightitems
1835
+ end
1836
+
1837
+ def deserialize(params)
1838
+ @UserName = params['UserName']
1839
+ @UserID = params['UserID']
1840
+ @Endorsement = params['Endorsement']
1841
+ @GPOrder = params['GPOrder']
1842
+ @Number = params['Number']
1843
+ @Fare = params['Fare']
1844
+ @FuelSurcharge = params['FuelSurcharge']
1845
+ @TaxRate = params['TaxRate']
1846
+ @Tax = params['Tax']
1847
+ @DevelopmentFund = params['DevelopmentFund']
1848
+ @OtherTax = params['OtherTax']
1849
+ @Total = params['Total']
1850
+ @ElectronicTicketNum = params['ElectronicTicketNum']
1851
+ @VerificationCode = params['VerificationCode']
1852
+ @PromptInformation = params['PromptInformation']
1853
+ @Insurance = params['Insurance']
1854
+ @Issuer = params['Issuer']
1855
+ @Date = params['Date']
1856
+ @DomesticInternationalTag = params['DomesticInternationalTag']
1857
+ @Buyer = params['Buyer']
1858
+ @Seller = params['Seller']
1859
+ @BuyerTaxID = params['BuyerTaxID']
1860
+ unless params['FlightItems'].nil?
1861
+ @FlightItems = []
1862
+ params['FlightItems'].each do |i|
1863
+ flightiteminfo_tmp = FlightItemInfo.new
1864
+ flightiteminfo_tmp.deserialize(i)
1865
+ @FlightItems << flightiteminfo_tmp
1866
+ end
1867
+ end
1868
+ end
1869
+ end
1870
+
1871
+ # 电子发票(火车票)
1872
+ class ElectronicTrainTicketFull < TencentCloud::Common::AbstractModel
1873
+ # @param TypeOfVoucher: 电子发票类型
1874
+ # @type TypeOfVoucher: String
1875
+ # @param ElectronicTicketNum: 电子客票号
1876
+ # @type ElectronicTicketNum: String
1877
+ # @param Date: 开票日期
1878
+ # @type Date: String
1879
+ # @param StationGetOn: 始发站
1880
+ # @type StationGetOn: String
1881
+ # @param StationGetOff: 到达站
1882
+ # @type StationGetOff: String
1883
+ # @param TrainNumber: 火车号
1884
+ # @type TrainNumber: String
1885
+ # @param DateGetOn: 乘车日期
1886
+ # @type DateGetOn: String
1887
+ # @param TimeGetOn: 始发时间
1888
+ # @type TimeGetOn: String
1889
+ # @param Seat: 座位类型
1890
+ # @type Seat: String
1891
+ # @param SeatNumber: 座位号
1892
+ # @type SeatNumber: String
1893
+ # @param Fare: 票价
1894
+ # @type Fare: String
1895
+ # @param Number: 发票号码
1896
+ # @type Number: String
1897
+ # @param UserID: 身份证号
1898
+ # @type UserID: String
1899
+ # @param UserName: 乘车人姓名
1900
+ # @type UserName: String
1901
+ # @param Total: 金额
1902
+ # @type Total: String
1903
+ # @param TaxRate: 税率
1904
+ # @type TaxRate: String
1905
+ # @param Tax: 税额
1906
+ # @type Tax: String
1907
+ # @param Buyer: 购买方名称
1908
+ # @type Buyer: String
1909
+ # @param BuyerTaxID: 统一社会信用代码
1910
+ # @type BuyerTaxID: String
1911
+ # @param OriginalNumber: 原发票号码
1912
+ # @type OriginalNumber: String
1913
+
1914
+ attr_accessor :TypeOfVoucher, :ElectronicTicketNum, :Date, :StationGetOn, :StationGetOff, :TrainNumber, :DateGetOn, :TimeGetOn, :Seat, :SeatNumber, :Fare, :Number, :UserID, :UserName, :Total, :TaxRate, :Tax, :Buyer, :BuyerTaxID, :OriginalNumber
1915
+
1916
+ def initialize(typeofvoucher=nil, electronicticketnum=nil, date=nil, stationgeton=nil, stationgetoff=nil, trainnumber=nil, dategeton=nil, timegeton=nil, seat=nil, seatnumber=nil, fare=nil, number=nil, userid=nil, username=nil, total=nil, taxrate=nil, tax=nil, buyer=nil, buyertaxid=nil, originalnumber=nil)
1917
+ @TypeOfVoucher = typeofvoucher
1918
+ @ElectronicTicketNum = electronicticketnum
1919
+ @Date = date
1920
+ @StationGetOn = stationgeton
1921
+ @StationGetOff = stationgetoff
1922
+ @TrainNumber = trainnumber
1923
+ @DateGetOn = dategeton
1924
+ @TimeGetOn = timegeton
1925
+ @Seat = seat
1926
+ @SeatNumber = seatnumber
1927
+ @Fare = fare
1928
+ @Number = number
1929
+ @UserID = userid
1930
+ @UserName = username
1931
+ @Total = total
1932
+ @TaxRate = taxrate
1933
+ @Tax = tax
1934
+ @Buyer = buyer
1935
+ @BuyerTaxID = buyertaxid
1936
+ @OriginalNumber = originalnumber
1937
+ end
1938
+
1939
+ def deserialize(params)
1940
+ @TypeOfVoucher = params['TypeOfVoucher']
1941
+ @ElectronicTicketNum = params['ElectronicTicketNum']
1942
+ @Date = params['Date']
1943
+ @StationGetOn = params['StationGetOn']
1944
+ @StationGetOff = params['StationGetOff']
1945
+ @TrainNumber = params['TrainNumber']
1946
+ @DateGetOn = params['DateGetOn']
1947
+ @TimeGetOn = params['TimeGetOn']
1948
+ @Seat = params['Seat']
1949
+ @SeatNumber = params['SeatNumber']
1950
+ @Fare = params['Fare']
1951
+ @Number = params['Number']
1952
+ @UserID = params['UserID']
1953
+ @UserName = params['UserName']
1954
+ @Total = params['Total']
1955
+ @TaxRate = params['TaxRate']
1956
+ @Tax = params['Tax']
1957
+ @Buyer = params['Buyer']
1958
+ @BuyerTaxID = params['BuyerTaxID']
1959
+ @OriginalNumber = params['OriginalNumber']
1960
+ end
1961
+ end
1962
+
1760
1963
  # EnglishOCR请求参数结构体
1761
1964
  class EnglishOCRRequest < TencentCloud::Common::AbstractModel
1762
1965
  # @param ImageBase64: 图片的 Base64 值。
@@ -2297,6 +2500,54 @@ module TencentCloud
2297
2500
  end
2298
2501
  end
2299
2502
 
2503
+ # 机票详细信息元组
2504
+ class FlightItemInfo < TencentCloud::Common::AbstractModel
2505
+ # @param TerminalGetOn: 出发站
2506
+ # @type TerminalGetOn: String
2507
+ # @param TerminalGetOff: 到达站
2508
+ # @type TerminalGetOff: String
2509
+ # @param Carrier: 承运人
2510
+ # @type Carrier: String
2511
+ # @param FlightNumber: 航班号
2512
+ # @type FlightNumber: String
2513
+ # @param Seat: 座位等级
2514
+ # @type Seat: String
2515
+ # @param DateGetOn: 乘机日期
2516
+ # @type DateGetOn: String
2517
+ # @param TimeGetOn: 乘机时间
2518
+ # @type TimeGetOn: String
2519
+ # @param FareBasis: 客票级别/客票类别
2520
+ # @type FareBasis: String
2521
+ # @param Allow: 免费行李额
2522
+ # @type Allow: String
2523
+
2524
+ attr_accessor :TerminalGetOn, :TerminalGetOff, :Carrier, :FlightNumber, :Seat, :DateGetOn, :TimeGetOn, :FareBasis, :Allow
2525
+
2526
+ def initialize(terminalgeton=nil, terminalgetoff=nil, carrier=nil, flightnumber=nil, seat=nil, dategeton=nil, timegeton=nil, farebasis=nil, allow=nil)
2527
+ @TerminalGetOn = terminalgeton
2528
+ @TerminalGetOff = terminalgetoff
2529
+ @Carrier = carrier
2530
+ @FlightNumber = flightnumber
2531
+ @Seat = seat
2532
+ @DateGetOn = dategeton
2533
+ @TimeGetOn = timegeton
2534
+ @FareBasis = farebasis
2535
+ @Allow = allow
2536
+ end
2537
+
2538
+ def deserialize(params)
2539
+ @TerminalGetOn = params['TerminalGetOn']
2540
+ @TerminalGetOff = params['TerminalGetOff']
2541
+ @Carrier = params['Carrier']
2542
+ @FlightNumber = params['FlightNumber']
2543
+ @Seat = params['Seat']
2544
+ @DateGetOn = params['DateGetOn']
2545
+ @TimeGetOn = params['TimeGetOn']
2546
+ @FareBasis = params['FareBasis']
2547
+ @Allow = params['Allow']
2548
+ end
2549
+ end
2550
+
2300
2551
  # FormulaOCR请求参数结构体
2301
2552
  class FormulaOCRRequest < TencentCloud::Common::AbstractModel
2302
2553
  # @param ImageBase64: 图片的 Base64 值。
@@ -8109,10 +8360,16 @@ module TencentCloud
8109
8360
  # @param VatSalesList: 增值税销货清单
8110
8361
  # 注意:此字段可能返回 null,表示取不到有效值。
8111
8362
  # @type VatSalesList: :class:`Tencentcloud::Ocr.v20181119.models.VatInvoiceInfo`
8363
+ # @param ElectronicTrainTicketFull: 电子发票(火车票)
8364
+ # 注意:此字段可能返回 null,表示取不到有效值。
8365
+ # @type ElectronicTrainTicketFull: :class:`Tencentcloud::Ocr.v20181119.models.ElectronicTrainTicketFull`
8366
+ # @param ElectronicFlightTicketFull: 电子发票(机票行程单)
8367
+ # 注意:此字段可能返回 null,表示取不到有效值。
8368
+ # @type ElectronicFlightTicketFull: :class:`Tencentcloud::Ocr.v20181119.models.ElectronicFlightTicketFull`
8112
8369
 
8113
- 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
8370
+ 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
8114
8371
 
8115
- 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)
8372
+ 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)
8116
8373
  @VatSpecialInvoice = vatspecialinvoice
8117
8374
  @VatCommonInvoice = vatcommoninvoice
8118
8375
  @VatElectronicCommonInvoice = vatelectroniccommoninvoice
@@ -8138,6 +8395,8 @@ module TencentCloud
8138
8395
  @MedicalOutpatientInvoice = medicaloutpatientinvoice
8139
8396
  @MedicalHospitalizedInvoice = medicalhospitalizedinvoice
8140
8397
  @VatSalesList = vatsaleslist
8398
+ @ElectronicTrainTicketFull = electronictrainticketfull
8399
+ @ElectronicFlightTicketFull = electronicflightticketfull
8141
8400
  end
8142
8401
 
8143
8402
  def deserialize(params)
@@ -8241,6 +8500,14 @@ module TencentCloud
8241
8500
  @VatSalesList = VatInvoiceInfo.new
8242
8501
  @VatSalesList.deserialize(params['VatSalesList'])
8243
8502
  end
8503
+ unless params['ElectronicTrainTicketFull'].nil?
8504
+ @ElectronicTrainTicketFull = ElectronicTrainTicketFull.new
8505
+ @ElectronicTrainTicketFull.deserialize(params['ElectronicTrainTicketFull'])
8506
+ end
8507
+ unless params['ElectronicFlightTicketFull'].nil?
8508
+ @ElectronicFlightTicketFull = ElectronicFlightTicketFull.new
8509
+ @ElectronicFlightTicketFull.deserialize(params['ElectronicFlightTicketFull'])
8510
+ end
8244
8511
  end
8245
8512
  end
8246
8513
 
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.715
4
+ version: 3.0.717
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-11-28 00:00:00.000000000 Z
11
+ date: 2023-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common