tencentcloud-sdk-ocr 3.0.846 → 3.0.848

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20181119/models.rb +232 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c05020032ee1da5db23f12f360bbddefb222cb1b
4
- data.tar.gz: e9dfcc1db6161e2d2276669915ea6b0c160e7580
3
+ metadata.gz: ffb2286e505c1b756b2836691db7ef9edf039ee4
4
+ data.tar.gz: 983850d4bfa6efc80f67fd1f7927133e02b17a35
5
5
  SHA512:
6
- metadata.gz: 240d99f50d38d59fe4fbe0322ac4e7eb8968291bfa89955f64ef3f8213a6f3d0080b5992c8c9383aafac949a46de71d617894b3a64a88be720490fc1132c9d83
7
- data.tar.gz: 506352e9889178b0961de2ed8e8eebdfe291a4f2ffbc97c6d0fe28d3975d720f650f456e6c9c0a88b101208bac5af0af70a04af59bdea24d86f58dd6119105c0
6
+ metadata.gz: 240d0801b47fa50e411c2601d670cb12e88855401b1cf2d48e24d86718a56cca771184117d6ed81471832900f15ef34685701bdbc523cf71ae43c7f4be724273
7
+ data.tar.gz: f9428930d06b45d9494cd55da357e6d51e72dc71c906d00d97c98d7344f82f82f98a88a9b83fbe3a4c1275541bc010484de7397542ddaa3b7187cc16f666c625
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.846
1
+ 3.0.848
@@ -2837,6 +2837,226 @@ module TencentCloud
2837
2837
  end
2838
2838
  end
2839
2839
 
2840
+ # 财务票据查验返回结果
2841
+ class FinancialBill < TencentCloud::Common::AbstractModel
2842
+ # @param Code: 票据代码
2843
+ # 注意:此字段可能返回 null,表示取不到有效值。
2844
+ # @type Code: String
2845
+ # @param Number: 票据号码
2846
+ # 注意:此字段可能返回 null,表示取不到有效值。
2847
+ # @type Number: String
2848
+ # @param BuyerTaxID: 缴款人纳税识别号
2849
+ # 注意:此字段可能返回 null,表示取不到有效值。
2850
+ # @type BuyerTaxID: String
2851
+ # @param CheckCode: 校验码
2852
+ # 注意:此字段可能返回 null,表示取不到有效值。
2853
+ # @type CheckCode: String
2854
+ # @param Buyer: 缴款人
2855
+ # 注意:此字段可能返回 null,表示取不到有效值。
2856
+ # @type Buyer: String
2857
+ # @param Date: 开票日期
2858
+ # 注意:此字段可能返回 null,表示取不到有效值。
2859
+ # @type Date: String
2860
+ # @param SellerCompany: 收款单位
2861
+ # 注意:此字段可能返回 null,表示取不到有效值。
2862
+ # @type SellerCompany: String
2863
+ # @param Reviewer: 复核人
2864
+ # 注意:此字段可能返回 null,表示取不到有效值。
2865
+ # @type Reviewer: String
2866
+ # @param Seller: 收款人
2867
+ # 注意:此字段可能返回 null,表示取不到有效值。
2868
+ # @type Seller: String
2869
+ # @param Title: 票据名称
2870
+ # 注意:此字段可能返回 null,表示取不到有效值。
2871
+ # @type Title: String
2872
+ # @param Total: 金额合计
2873
+ # 注意:此字段可能返回 null,表示取不到有效值。
2874
+ # @type Total: String
2875
+ # @param TotalCn: 金额合计中文大写
2876
+ # 注意:此字段可能返回 null,表示取不到有效值。
2877
+ # @type TotalCn: String
2878
+ # @param RushRedStateCode: 冲红
2879
+ # 注意:此字段可能返回 null,表示取不到有效值。
2880
+ # @type RushRedStateCode: String
2881
+ # @param RushRedDate: 冲红日期
2882
+ # 注意:此字段可能返回 null,表示取不到有效值。
2883
+ # @type RushRedDate: String
2884
+ # @param RushRedTime: 冲红时间
2885
+ # 注意:此字段可能返回 null,表示取不到有效值。
2886
+ # @type RushRedTime: String
2887
+ # @param RushRedReason: 冲红原因
2888
+ # 注意:此字段可能返回 null,表示取不到有效值。
2889
+ # @type RushRedReason: String
2890
+ # @param FinancialBillItems: 项目明细
2891
+ # 注意:此字段可能返回 null,表示取不到有效值。
2892
+ # @type FinancialBillItems: Array
2893
+ # @param FinancialBillItemDetails: 项目清单
2894
+ # 注意:此字段可能返回 null,表示取不到有效值。
2895
+ # @type FinancialBillItemDetails: Array
2896
+
2897
+ attr_accessor :Code, :Number, :BuyerTaxID, :CheckCode, :Buyer, :Date, :SellerCompany, :Reviewer, :Seller, :Title, :Total, :TotalCn, :RushRedStateCode, :RushRedDate, :RushRedTime, :RushRedReason, :FinancialBillItems, :FinancialBillItemDetails
2898
+
2899
+ def initialize(code=nil, number=nil, buyertaxid=nil, checkcode=nil, buyer=nil, date=nil, sellercompany=nil, reviewer=nil, seller=nil, title=nil, total=nil, totalcn=nil, rushredstatecode=nil, rushreddate=nil, rushredtime=nil, rushredreason=nil, financialbillitems=nil, financialbillitemdetails=nil)
2900
+ @Code = code
2901
+ @Number = number
2902
+ @BuyerTaxID = buyertaxid
2903
+ @CheckCode = checkcode
2904
+ @Buyer = buyer
2905
+ @Date = date
2906
+ @SellerCompany = sellercompany
2907
+ @Reviewer = reviewer
2908
+ @Seller = seller
2909
+ @Title = title
2910
+ @Total = total
2911
+ @TotalCn = totalcn
2912
+ @RushRedStateCode = rushredstatecode
2913
+ @RushRedDate = rushreddate
2914
+ @RushRedTime = rushredtime
2915
+ @RushRedReason = rushredreason
2916
+ @FinancialBillItems = financialbillitems
2917
+ @FinancialBillItemDetails = financialbillitemdetails
2918
+ end
2919
+
2920
+ def deserialize(params)
2921
+ @Code = params['Code']
2922
+ @Number = params['Number']
2923
+ @BuyerTaxID = params['BuyerTaxID']
2924
+ @CheckCode = params['CheckCode']
2925
+ @Buyer = params['Buyer']
2926
+ @Date = params['Date']
2927
+ @SellerCompany = params['SellerCompany']
2928
+ @Reviewer = params['Reviewer']
2929
+ @Seller = params['Seller']
2930
+ @Title = params['Title']
2931
+ @Total = params['Total']
2932
+ @TotalCn = params['TotalCn']
2933
+ @RushRedStateCode = params['RushRedStateCode']
2934
+ @RushRedDate = params['RushRedDate']
2935
+ @RushRedTime = params['RushRedTime']
2936
+ @RushRedReason = params['RushRedReason']
2937
+ unless params['FinancialBillItems'].nil?
2938
+ @FinancialBillItems = []
2939
+ params['FinancialBillItems'].each do |i|
2940
+ financialbillitem_tmp = FinancialBillItem.new
2941
+ financialbillitem_tmp.deserialize(i)
2942
+ @FinancialBillItems << financialbillitem_tmp
2943
+ end
2944
+ end
2945
+ unless params['FinancialBillItemDetails'].nil?
2946
+ @FinancialBillItemDetails = []
2947
+ params['FinancialBillItemDetails'].each do |i|
2948
+ financialbillitemdetails_tmp = FinancialBillItemDetails.new
2949
+ financialbillitemdetails_tmp.deserialize(i)
2950
+ @FinancialBillItemDetails << financialbillitemdetails_tmp
2951
+ end
2952
+ end
2953
+ end
2954
+ end
2955
+
2956
+ # 财务票据查验返回结果-项目明细
2957
+ class FinancialBillItem < TencentCloud::Common::AbstractModel
2958
+ # @param ItemID: 项目编号
2959
+ # 注意:此字段可能返回 null,表示取不到有效值。
2960
+ # @type ItemID: String
2961
+ # @param Name: 项目名称
2962
+ # 注意:此字段可能返回 null,表示取不到有效值。
2963
+ # @type Name: String
2964
+ # @param Unit: 单位
2965
+ # 注意:此字段可能返回 null,表示取不到有效值。
2966
+ # @type Unit: String
2967
+ # @param Quantity: 数量
2968
+ # 注意:此字段可能返回 null,表示取不到有效值。
2969
+ # @type Quantity: String
2970
+ # @param Standard: 规格标准
2971
+ # 注意:此字段可能返回 null,表示取不到有效值。
2972
+ # @type Standard: String
2973
+ # @param Total: 金额
2974
+ # 注意:此字段可能返回 null,表示取不到有效值。
2975
+ # @type Total: String
2976
+ # @param SerialNumber: 项目序号
2977
+ # 注意:此字段可能返回 null,表示取不到有效值。
2978
+ # @type SerialNumber: String
2979
+ # @param Remark: 备注
2980
+ # 注意:此字段可能返回 null,表示取不到有效值。
2981
+ # @type Remark: String
2982
+
2983
+ attr_accessor :ItemID, :Name, :Unit, :Quantity, :Standard, :Total, :SerialNumber, :Remark
2984
+
2985
+ def initialize(itemid=nil, name=nil, unit=nil, quantity=nil, standard=nil, total=nil, serialnumber=nil, remark=nil)
2986
+ @ItemID = itemid
2987
+ @Name = name
2988
+ @Unit = unit
2989
+ @Quantity = quantity
2990
+ @Standard = standard
2991
+ @Total = total
2992
+ @SerialNumber = serialnumber
2993
+ @Remark = remark
2994
+ end
2995
+
2996
+ def deserialize(params)
2997
+ @ItemID = params['ItemID']
2998
+ @Name = params['Name']
2999
+ @Unit = params['Unit']
3000
+ @Quantity = params['Quantity']
3001
+ @Standard = params['Standard']
3002
+ @Total = params['Total']
3003
+ @SerialNumber = params['SerialNumber']
3004
+ @Remark = params['Remark']
3005
+ end
3006
+ end
3007
+
3008
+ # 财务票据查验返回结果-项目清单
3009
+ class FinancialBillItemDetails < TencentCloud::Common::AbstractModel
3010
+ # @param ItemID: 项目编号
3011
+ # 注意:此字段可能返回 null,表示取不到有效值。
3012
+ # @type ItemID: String
3013
+ # @param Name: 项目名称
3014
+ # 注意:此字段可能返回 null,表示取不到有效值。
3015
+ # @type Name: String
3016
+ # @param Unit: 单位
3017
+ # 注意:此字段可能返回 null,表示取不到有效值。
3018
+ # @type Unit: String
3019
+ # @param Quantity: 数量
3020
+ # 注意:此字段可能返回 null,表示取不到有效值。
3021
+ # @type Quantity: String
3022
+ # @param Standard: 规格标准
3023
+ # 注意:此字段可能返回 null,表示取不到有效值。
3024
+ # @type Standard: String
3025
+ # @param Total: 金额
3026
+ # 注意:此字段可能返回 null,表示取不到有效值。
3027
+ # @type Total: String
3028
+ # @param SerialNumber: 项目序号
3029
+ # 注意:此字段可能返回 null,表示取不到有效值。
3030
+ # @type SerialNumber: String
3031
+ # @param Remark: 备注
3032
+ # 注意:此字段可能返回 null,表示取不到有效值。
3033
+ # @type Remark: String
3034
+
3035
+ attr_accessor :ItemID, :Name, :Unit, :Quantity, :Standard, :Total, :SerialNumber, :Remark
3036
+
3037
+ def initialize(itemid=nil, name=nil, unit=nil, quantity=nil, standard=nil, total=nil, serialnumber=nil, remark=nil)
3038
+ @ItemID = itemid
3039
+ @Name = name
3040
+ @Unit = unit
3041
+ @Quantity = quantity
3042
+ @Standard = standard
3043
+ @Total = total
3044
+ @SerialNumber = serialnumber
3045
+ @Remark = remark
3046
+ end
3047
+
3048
+ def deserialize(params)
3049
+ @ItemID = params['ItemID']
3050
+ @Name = params['Name']
3051
+ @Unit = params['Unit']
3052
+ @Quantity = params['Quantity']
3053
+ @Standard = params['Standard']
3054
+ @Total = params['Total']
3055
+ @SerialNumber = params['SerialNumber']
3056
+ @Remark = params['Remark']
3057
+ end
3058
+ end
3059
+
2840
3060
  # 机票行程单识别结果
2841
3061
  class FlightInvoiceInfo < TencentCloud::Common::AbstractModel
2842
3062
  # @param Name: 识别出的字段名称(关键字),支持以下字段:
@@ -12597,12 +12817,12 @@ module TencentCloud
12597
12817
  # @type InvoiceDate: String
12598
12818
  # @param InvoiceCode: 发票代码(10或12 位),全电发票为空。查验未成功超过5次后当日无法再查。
12599
12819
  # @type InvoiceCode: String
12600
- # @param InvoiceKind: 票种类型 01:增值税专用发票, 02:货运运输业增值税专用发 票, 03:机动车销售统一发票, 04:增值税普通发票, 08:增值税电子专用发票(含全电), 10:增值税电子普通发票(含全电), 11:增值税普通发票(卷式), 14:增值税电子(通行费)发 票, 15:二手车销售统一发票, 32:深圳区块链发票(云南区块链因业务调整现已下线)。
12820
+ # @param InvoiceKind: 票种类型 01:增值税专用发票, 02:货运运输业增值税专用发 票, 03:机动车销售统一发票, 04:增值税普通发票, 08:增值税电子专用发票(含全电), 10:增值税电子普通发票(含全电), 11:增值税普通发票(卷式), 14:增值税电子(通行费)发 票, 15:二手车销售统一发票,16:财务发票, 32:深圳区块链发票(云南区块链因业务调整现已下线)。
12601
12821
  # @type InvoiceKind: String
12602
- # @param CheckCode: 校验码后 6 位,增值税普通发票、增值税电子普通发票、增值税普通发票(卷式)、增值税电子普通发票(通行费)、全电纸质发票(增值税普通发票)时必填;
12822
+ # @param CheckCode: 校验码后 6 位,增值税普通发票、增值税电子普通发票、增值税普通发票(卷式)、增值税电子普通发票(通行费)、全电纸质发票(增值税普通发票)、财政票据时必填;
12603
12823
  # 区块链为 5 位
12604
12824
  # @type CheckCode: String
12605
- # @param Amount: 不含税金额,增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链发票时必填; 全电发票为价税合计(含税金额)
12825
+ # @param Amount: 不含税金额,增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链发票、财政发票时必填; 全电发票为价税合计(含税金额)
12606
12826
  # @type Amount: String
12607
12827
  # @param RegionCode: 地区编码,通用机打电子发票时必填。
12608
12828
  # 广东:4400,浙江:3300
@@ -12659,18 +12879,21 @@ module TencentCloud
12659
12879
  # @type ElectronicTrainTicket: :class:`Tencentcloud::Ocr.v20181119.models.ElectronicTrainTicket`
12660
12880
  # @param ElectronicAirTransport: 全电发票(航空运输电子客票行程单)详细字段信息。
12661
12881
  # @type ElectronicAirTransport: :class:`Tencentcloud::Ocr.v20181119.models.ElectronicAirTransport`
12882
+ # @param FinancialBill: 财政发票详细字段信息
12883
+ # @type FinancialBill: :class:`Tencentcloud::Ocr.v20181119.models.FinancialBill`
12662
12884
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
12663
12885
  # @type RequestId: String
12664
12886
 
12665
- attr_accessor :Invoice, :VehicleInvoiceInfo, :UsedVehicleInvoiceInfo, :PassInvoiceInfoList, :ElectronicTrainTicket, :ElectronicAirTransport, :RequestId
12887
+ attr_accessor :Invoice, :VehicleInvoiceInfo, :UsedVehicleInvoiceInfo, :PassInvoiceInfoList, :ElectronicTrainTicket, :ElectronicAirTransport, :FinancialBill, :RequestId
12666
12888
 
12667
- def initialize(invoice=nil, vehicleinvoiceinfo=nil, usedvehicleinvoiceinfo=nil, passinvoiceinfolist=nil, electronictrainticket=nil, electronicairtransport=nil, requestid=nil)
12889
+ def initialize(invoice=nil, vehicleinvoiceinfo=nil, usedvehicleinvoiceinfo=nil, passinvoiceinfolist=nil, electronictrainticket=nil, electronicairtransport=nil, financialbill=nil, requestid=nil)
12668
12890
  @Invoice = invoice
12669
12891
  @VehicleInvoiceInfo = vehicleinvoiceinfo
12670
12892
  @UsedVehicleInvoiceInfo = usedvehicleinvoiceinfo
12671
12893
  @PassInvoiceInfoList = passinvoiceinfolist
12672
12894
  @ElectronicTrainTicket = electronictrainticket
12673
12895
  @ElectronicAirTransport = electronicairtransport
12896
+ @FinancialBill = financialbill
12674
12897
  @RequestId = requestid
12675
12898
  end
12676
12899
 
@@ -12703,6 +12926,10 @@ module TencentCloud
12703
12926
  @ElectronicAirTransport = ElectronicAirTransport.new
12704
12927
  @ElectronicAirTransport.deserialize(params['ElectronicAirTransport'])
12705
12928
  end
12929
+ unless params['FinancialBill'].nil?
12930
+ @FinancialBill = FinancialBill.new
12931
+ @FinancialBill.deserialize(params['FinancialBill'])
12932
+ end
12706
12933
  @RequestId = params['RequestId']
12707
12934
  end
12708
12935
  end
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.846
4
+ version: 3.0.848
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-19 00:00:00.000000000 Z
11
+ date: 2024-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common