tencentcloud-sdk-ocr 3.0.1001 → 3.0.1003
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/models.rb +105 -7
- 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: 03f406fa728aa407a0e5cf1e378a92ba52eaf115
|
4
|
+
data.tar.gz: 899e41f83bd4f592cb5ecc83b92479e9ec7455f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a7250f17445c18c5c1a08b3dca63d28412fdf18eafb1b82540ce92b49510bb39cf5317caadf6c283fa67b4543071ae1a9ab38e1fa9f7505578a7675b8b84127
|
7
|
+
data.tar.gz: cccbe6ba53b17c12c0ee3bc3d09814abb7fd8aaff216d3fc86dbae8eb03ab1849408ef4213992f5abd2e3c8663e02d24208a6ffa555f549425c34a260612032f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1003
|
data/lib/v20181119/models.rb
CHANGED
@@ -272,7 +272,7 @@ module TencentCloud
|
|
272
272
|
# @type DomesticInternationalTag: String
|
273
273
|
# @param DateStart: 客票生效日期
|
274
274
|
# @type DateStart: String
|
275
|
-
# @param DateEnd:
|
275
|
+
# @param DateEnd: 有效截止日期
|
276
276
|
# @type DateEnd: String
|
277
277
|
# @param Endorsement: 签注
|
278
278
|
# @type Endorsement: String
|
@@ -1549,6 +1549,33 @@ module TencentCloud
|
|
1549
1549
|
end
|
1550
1550
|
end
|
1551
1551
|
|
1552
|
+
# 海关缴款书
|
1553
|
+
class CustomsPaymentReceipt < TencentCloud::Common::AbstractModel
|
1554
|
+
# @param Title: 发票名称
|
1555
|
+
# @type Title: String
|
1556
|
+
# @param Content: 识别出的字段名称(关键字),支持以下字段: 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。 示例值:纳税人识别号
|
1557
|
+
# @type Content: Array
|
1558
|
+
|
1559
|
+
attr_accessor :Title, :Content
|
1560
|
+
|
1561
|
+
def initialize(title=nil, content=nil)
|
1562
|
+
@Title = title
|
1563
|
+
@Content = content
|
1564
|
+
end
|
1565
|
+
|
1566
|
+
def deserialize(params)
|
1567
|
+
@Title = params['Title']
|
1568
|
+
unless params['Content'].nil?
|
1569
|
+
@Content = []
|
1570
|
+
params['Content'].each do |i|
|
1571
|
+
otherinvoiceitem_tmp = OtherInvoiceItem.new
|
1572
|
+
otherinvoiceitem_tmp.deserialize(i)
|
1573
|
+
@Content << otherinvoiceitem_tmp
|
1574
|
+
end
|
1575
|
+
end
|
1576
|
+
end
|
1577
|
+
end
|
1578
|
+
|
1552
1579
|
# 机票详细信息元组
|
1553
1580
|
class DetailInformationOfAirTicketTupleList < TencentCloud::Common::AbstractModel
|
1554
1581
|
# @param DepartureStation: 出发站(自)
|
@@ -3458,10 +3485,14 @@ module TencentCloud
|
|
3458
3485
|
# @type FareBasis: String
|
3459
3486
|
# @param Allow: 免费行李额
|
3460
3487
|
# @type Allow: String
|
3488
|
+
# @param DateStart: 客票生效日期
|
3489
|
+
# @type DateStart: String
|
3490
|
+
# @param DateEnd: 有效截止日期
|
3491
|
+
# @type DateEnd: String
|
3461
3492
|
|
3462
|
-
attr_accessor :TerminalGetOn, :TerminalGetOff, :Carrier, :FlightNumber, :Seat, :DateGetOn, :TimeGetOn, :FareBasis, :Allow
|
3493
|
+
attr_accessor :TerminalGetOn, :TerminalGetOff, :Carrier, :FlightNumber, :Seat, :DateGetOn, :TimeGetOn, :FareBasis, :Allow, :DateStart, :DateEnd
|
3463
3494
|
|
3464
|
-
def initialize(terminalgeton=nil, terminalgetoff=nil, carrier=nil, flightnumber=nil, seat=nil, dategeton=nil, timegeton=nil, farebasis=nil, allow=nil)
|
3495
|
+
def initialize(terminalgeton=nil, terminalgetoff=nil, carrier=nil, flightnumber=nil, seat=nil, dategeton=nil, timegeton=nil, farebasis=nil, allow=nil, datestart=nil, dateend=nil)
|
3465
3496
|
@TerminalGetOn = terminalgeton
|
3466
3497
|
@TerminalGetOff = terminalgetoff
|
3467
3498
|
@Carrier = carrier
|
@@ -3471,6 +3502,8 @@ module TencentCloud
|
|
3471
3502
|
@TimeGetOn = timegeton
|
3472
3503
|
@FareBasis = farebasis
|
3473
3504
|
@Allow = allow
|
3505
|
+
@DateStart = datestart
|
3506
|
+
@DateEnd = dateend
|
3474
3507
|
end
|
3475
3508
|
|
3476
3509
|
def deserialize(params)
|
@@ -3483,6 +3516,8 @@ module TencentCloud
|
|
3483
3516
|
@TimeGetOn = params['TimeGetOn']
|
3484
3517
|
@FareBasis = params['FareBasis']
|
3485
3518
|
@Allow = params['Allow']
|
3519
|
+
@DateStart = params['DateStart']
|
3520
|
+
@DateEnd = params['DateEnd']
|
3486
3521
|
end
|
3487
3522
|
end
|
3488
3523
|
|
@@ -5260,6 +5295,8 @@ module TencentCloud
|
|
5260
5295
|
# 15:非税发票
|
5261
5296
|
# 16:全电发票
|
5262
5297
|
# 17:医疗发票
|
5298
|
+
# 18:完税凭证
|
5299
|
+
# 19:海关缴款书
|
5263
5300
|
# @type Type: Integer
|
5264
5301
|
# @param Polygon: 该发票在原图片中的四点坐标。
|
5265
5302
|
# @type Polygon: :class:`Tencentcloud::Ocr.v20181119.models.Polygon`
|
@@ -10638,10 +10675,16 @@ module TencentCloud
|
|
10638
10675
|
# @param ElectronicFlightTicketFull: 电子发票(机票行程单)
|
10639
10676
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10640
10677
|
# @type ElectronicFlightTicketFull: :class:`Tencentcloud::Ocr.v20181119.models.ElectronicFlightTicketFull`
|
10678
|
+
# @param TaxPayment: 完税凭证
|
10679
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10680
|
+
# @type TaxPayment: :class:`Tencentcloud::Ocr.v20181119.models.TaxPayment`
|
10681
|
+
# @param CustomsPaymentReceipt: 海关缴款
|
10682
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10683
|
+
# @type CustomsPaymentReceipt: :class:`Tencentcloud::Ocr.v20181119.models.CustomsPaymentReceipt`
|
10641
10684
|
|
10642
|
-
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
|
10685
|
+
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
|
10643
10686
|
|
10644
|
-
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)
|
10687
|
+
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)
|
10645
10688
|
@VatSpecialInvoice = vatspecialinvoice
|
10646
10689
|
@VatCommonInvoice = vatcommoninvoice
|
10647
10690
|
@VatElectronicCommonInvoice = vatelectroniccommoninvoice
|
@@ -10669,6 +10712,8 @@ module TencentCloud
|
|
10669
10712
|
@VatSalesList = vatsaleslist
|
10670
10713
|
@ElectronicTrainTicketFull = electronictrainticketfull
|
10671
10714
|
@ElectronicFlightTicketFull = electronicflightticketfull
|
10715
|
+
@TaxPayment = taxpayment
|
10716
|
+
@CustomsPaymentReceipt = customspaymentreceipt
|
10672
10717
|
end
|
10673
10718
|
|
10674
10719
|
def deserialize(params)
|
@@ -10780,6 +10825,14 @@ module TencentCloud
|
|
10780
10825
|
@ElectronicFlightTicketFull = ElectronicFlightTicketFull.new
|
10781
10826
|
@ElectronicFlightTicketFull.deserialize(params['ElectronicFlightTicketFull'])
|
10782
10827
|
end
|
10828
|
+
unless params['TaxPayment'].nil?
|
10829
|
+
@TaxPayment = TaxPayment.new
|
10830
|
+
@TaxPayment.deserialize(params['TaxPayment'])
|
10831
|
+
end
|
10832
|
+
unless params['CustomsPaymentReceipt'].nil?
|
10833
|
+
@CustomsPaymentReceipt = CustomsPaymentReceipt.new
|
10834
|
+
@CustomsPaymentReceipt.deserialize(params['CustomsPaymentReceipt'])
|
10835
|
+
end
|
10783
10836
|
end
|
10784
10837
|
end
|
10785
10838
|
|
@@ -11421,6 +11474,35 @@ module TencentCloud
|
|
11421
11474
|
end
|
11422
11475
|
end
|
11423
11476
|
|
11477
|
+
# 完税凭证
|
11478
|
+
class TaxPayment < TencentCloud::Common::AbstractModel
|
11479
|
+
# @param Title: 发票名称
|
11480
|
+
# @type Title: String
|
11481
|
+
# @param Content: 识别出的字段名称(关键字),支持以下字段:
|
11482
|
+
# 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
|
11483
|
+
# 示例值:纳税人识别号
|
11484
|
+
# @type Content: Array
|
11485
|
+
|
11486
|
+
attr_accessor :Title, :Content
|
11487
|
+
|
11488
|
+
def initialize(title=nil, content=nil)
|
11489
|
+
@Title = title
|
11490
|
+
@Content = content
|
11491
|
+
end
|
11492
|
+
|
11493
|
+
def deserialize(params)
|
11494
|
+
@Title = params['Title']
|
11495
|
+
unless params['Content'].nil?
|
11496
|
+
@Content = []
|
11497
|
+
params['Content'].each do |i|
|
11498
|
+
otherinvoiceitem_tmp = OtherInvoiceItem.new
|
11499
|
+
otherinvoiceitem_tmp.deserialize(i)
|
11500
|
+
@Content << otherinvoiceitem_tmp
|
11501
|
+
end
|
11502
|
+
end
|
11503
|
+
end
|
11504
|
+
end
|
11505
|
+
|
11424
11506
|
# TaxiInvoiceOCR请求参数结构体
|
11425
11507
|
class TaxiInvoiceOCRRequest < TencentCloud::Common::AbstractModel
|
11426
11508
|
# @param ImageBase64: 图片的 Base64 值。
|
@@ -13277,10 +13359,18 @@ module TencentCloud
|
|
13277
13359
|
# @type EstateNumber: String
|
13278
13360
|
# @param AreaUnit: 面积单位,仅不动产经营租赁服务发票返回
|
13279
13361
|
# @type AreaUnit: String
|
13362
|
+
# @param Traveler: 出行人,仅旅客运输服务发票返回
|
13363
|
+
# @type Traveler: String
|
13364
|
+
# @param TravelerID: 有效身份证件号,仅旅客运输服务发票返回
|
13365
|
+
# @type TravelerID: String
|
13366
|
+
# @param TravelDate: 出行日期,仅旅客运输服务发票返回
|
13367
|
+
# @type TravelDate: String
|
13368
|
+
# @param TravelLevel: 等级,仅旅客运输服务发票返回
|
13369
|
+
# @type TravelLevel: String
|
13280
13370
|
|
13281
|
-
attr_accessor :Name, :Quantity, :Specification, :Price, :Total, :TaxRate, :Tax, :Unit, :VehicleType, :VehicleBrand, :DeparturePlace, :ArrivalPlace, :TransportItemsName, :PlaceOfBuildingService, :BuildingName, :EstateNumber, :AreaUnit
|
13371
|
+
attr_accessor :Name, :Quantity, :Specification, :Price, :Total, :TaxRate, :Tax, :Unit, :VehicleType, :VehicleBrand, :DeparturePlace, :ArrivalPlace, :TransportItemsName, :PlaceOfBuildingService, :BuildingName, :EstateNumber, :AreaUnit, :Traveler, :TravelerID, :TravelDate, :TravelLevel
|
13282
13372
|
|
13283
|
-
def initialize(name=nil, quantity=nil, specification=nil, price=nil, total=nil, taxrate=nil, tax=nil, unit=nil, vehicletype=nil, vehiclebrand=nil, departureplace=nil, arrivalplace=nil, transportitemsname=nil, placeofbuildingservice=nil, buildingname=nil, estatenumber=nil, areaunit=nil)
|
13373
|
+
def initialize(name=nil, quantity=nil, specification=nil, price=nil, total=nil, taxrate=nil, tax=nil, unit=nil, vehicletype=nil, vehiclebrand=nil, departureplace=nil, arrivalplace=nil, transportitemsname=nil, placeofbuildingservice=nil, buildingname=nil, estatenumber=nil, areaunit=nil, traveler=nil, travelerid=nil, traveldate=nil, travellevel=nil)
|
13284
13374
|
@Name = name
|
13285
13375
|
@Quantity = quantity
|
13286
13376
|
@Specification = specification
|
@@ -13298,6 +13388,10 @@ module TencentCloud
|
|
13298
13388
|
@BuildingName = buildingname
|
13299
13389
|
@EstateNumber = estatenumber
|
13300
13390
|
@AreaUnit = areaunit
|
13391
|
+
@Traveler = traveler
|
13392
|
+
@TravelerID = travelerid
|
13393
|
+
@TravelDate = traveldate
|
13394
|
+
@TravelLevel = travellevel
|
13301
13395
|
end
|
13302
13396
|
|
13303
13397
|
def deserialize(params)
|
@@ -13318,6 +13412,10 @@ module TencentCloud
|
|
13318
13412
|
@BuildingName = params['BuildingName']
|
13319
13413
|
@EstateNumber = params['EstateNumber']
|
13320
13414
|
@AreaUnit = params['AreaUnit']
|
13415
|
+
@Traveler = params['Traveler']
|
13416
|
+
@TravelerID = params['TravelerID']
|
13417
|
+
@TravelDate = params['TravelDate']
|
13418
|
+
@TravelLevel = params['TravelLevel']
|
13321
13419
|
end
|
13322
13420
|
end
|
13323
13421
|
|
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.1003
|
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-02-
|
11
|
+
date: 2025-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|