Class: TencentCloud::Ocr::V20181119::VatElectronicInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::VatElectronicInfo
- Defined in:
- lib/v20181119/models.rb
Overview
电子发票返回值
Instance Attribute Summary collapse
- #Buyer ⇒ Object
- #BuyerTaxID ⇒ Object
- #CompanySealMark ⇒ Object
- #Date ⇒ Object
- #Issuer ⇒ Object
- #Number ⇒ Object
- #PretaxAmount ⇒ Object
- #PretaxAmountMark ⇒ Object
- #Remark ⇒ Object
- #Seller ⇒ Object
- #SellerTaxID ⇒ Object
- #ServiceTypeLabel ⇒ Object
- #SubTax ⇒ Object
- #SubTotal ⇒ Object
- #Tax ⇒ Object
- #TaxMark ⇒ Object
- #Title ⇒ Object
- #Total ⇒ Object
- #TotalCn ⇒ Object
- #TotalCnMark ⇒ Object
- #TotalMark ⇒ Object
- #VatElectronicItems ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(title = nil, number = nil, date = nil, pretaxamount = nil, tax = nil, total = nil, totalcn = nil, seller = nil, sellertaxid = nil, buyer = nil, buyertaxid = nil, issuer = nil, remark = nil, subtotal = nil, subtax = nil, vatelectronicitems = nil, servicetypelabel = nil, totalcnmark = nil, totalmark = nil, pretaxamountmark = nil, taxmark = nil, companysealmark = nil) ⇒ VatElectronicInfo
constructor
A new instance of VatElectronicInfo.
Constructor Details
#initialize(title = nil, number = nil, date = nil, pretaxamount = nil, tax = nil, total = nil, totalcn = nil, seller = nil, sellertaxid = nil, buyer = nil, buyertaxid = nil, issuer = nil, remark = nil, subtotal = nil, subtax = nil, vatelectronicitems = nil, servicetypelabel = nil, totalcnmark = nil, totalmark = nil, pretaxamountmark = nil, taxmark = nil, companysealmark = nil) ⇒ VatElectronicInfo
Returns a new instance of VatElectronicInfo.
13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 |
# File 'lib/v20181119/models.rb', line 13287 def initialize(title=nil, number=nil, date=nil, pretaxamount=nil, tax=nil, total=nil, totalcn=nil, seller=nil, sellertaxid=nil, buyer=nil, buyertaxid=nil, issuer=nil, remark=nil, subtotal=nil, subtax=nil, vatelectronicitems=nil, servicetypelabel=nil, totalcnmark=nil, totalmark=nil, pretaxamountmark=nil, taxmark=nil, companysealmark=nil) @Title = title @Number = number @Date = date @PretaxAmount = pretaxamount @Tax = tax @Total = total @TotalCn = totalcn @Seller = seller @SellerTaxID = sellertaxid @Buyer = buyer @BuyerTaxID = buyertaxid @Issuer = issuer @Remark = remark @SubTotal = subtotal @SubTax = subtax @VatElectronicItems = vatelectronicitems @ServiceTypeLabel = servicetypelabel @TotalCnMark = totalcnmark @TotalMark = totalmark @PretaxAmountMark = pretaxamountmark @TaxMark = taxmark @CompanySealMark = companysealmark end |
Instance Attribute Details
#Buyer ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def Buyer @Buyer end |
#BuyerTaxID ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def BuyerTaxID @BuyerTaxID end |
#CompanySealMark ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def CompanySealMark @CompanySealMark end |
#Date ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def Date @Date end |
#Issuer ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def Issuer @Issuer end |
#Number ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def Number @Number end |
#PretaxAmount ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def PretaxAmount @PretaxAmount end |
#PretaxAmountMark ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def PretaxAmountMark @PretaxAmountMark end |
#Remark ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def Remark @Remark end |
#Seller ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def Seller @Seller end |
#SellerTaxID ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def SellerTaxID @SellerTaxID end |
#ServiceTypeLabel ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def ServiceTypeLabel @ServiceTypeLabel end |
#SubTax ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def SubTax @SubTax end |
#SubTotal ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def SubTotal @SubTotal end |
#Tax ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def Tax @Tax end |
#TaxMark ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def TaxMark @TaxMark end |
#Title ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def Title @Title end |
#Total ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def Total @Total end |
#TotalCn ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def TotalCn @TotalCn end |
#TotalCnMark ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def TotalCnMark @TotalCnMark end |
#TotalMark ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def TotalMark @TotalMark end |
#VatElectronicItems ⇒ Object
13285 13286 13287 |
# File 'lib/v20181119/models.rb', line 13285 def VatElectronicItems @VatElectronicItems end |
Instance Method Details
#deserialize(params) ⇒ Object
13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 |
# File 'lib/v20181119/models.rb', line 13312 def deserialize(params) @Title = params['Title'] @Number = params['Number'] @Date = params['Date'] @PretaxAmount = params['PretaxAmount'] @Tax = params['Tax'] @Total = params['Total'] @TotalCn = params['TotalCn'] @Seller = params['Seller'] @SellerTaxID = params['SellerTaxID'] @Buyer = params['Buyer'] @BuyerTaxID = params['BuyerTaxID'] @Issuer = params['Issuer'] @Remark = params['Remark'] @SubTotal = params['SubTotal'] @SubTax = params['SubTax'] unless params['VatElectronicItems'].nil? @VatElectronicItems = [] params['VatElectronicItems'].each do |i| vatelectroniciteminfo_tmp = VatElectronicItemInfo.new vatelectroniciteminfo_tmp.deserialize(i) @VatElectronicItems << vatelectroniciteminfo_tmp end end @ServiceTypeLabel = params['ServiceTypeLabel'] @TotalCnMark = params['TotalCnMark'] @TotalMark = params['TotalMark'] @PretaxAmountMark = params['PretaxAmountMark'] @TaxMark = params['TaxMark'] @CompanySealMark = params['CompanySealMark'] end |