Class: TencentCloud::Ocr::V20181119::VatInvoiceRoll
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::VatInvoiceRoll
- Defined in:
- lib/v20181119/models.rb
Overview
增值税普通发票(卷票)
Instance Attribute Summary collapse
- #Buyer ⇒ Object
- #BuyerTaxID ⇒ Object
- #Category ⇒ Object
- #CheckCode ⇒ Object
- #City ⇒ Object
- #Code ⇒ Object
- #CompanySealContent ⇒ Object
- #CompanySealMark ⇒ Object
- #Date ⇒ Object
- #Kind ⇒ Object
- #Number ⇒ Object
- #NumberConfirm ⇒ Object
- #Province ⇒ Object
- #QRCodeMark ⇒ Object
- #Seller ⇒ Object
- #SellerTaxID ⇒ Object
- #ServiceName ⇒ Object
- #TaxSealContent ⇒ Object
- #Title ⇒ Object
- #Total ⇒ Object
- #TotalCn ⇒ Object
- #VatRollItems ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(title = nil, code = nil, number = nil, numberconfirm = nil, date = nil, checkcode = nil, seller = nil, sellertaxid = nil, buyer = nil, buyertaxid = nil, category = nil, total = nil, totalcn = nil, kind = nil, province = nil, city = nil, companysealmark = nil, qrcodemark = nil, servicename = nil, companysealcontent = nil, taxsealcontent = nil, vatrollitems = nil) ⇒ VatInvoiceRoll
constructor
A new instance of VatInvoiceRoll.
Constructor Details
#initialize(title = nil, code = nil, number = nil, numberconfirm = nil, date = nil, checkcode = nil, seller = nil, sellertaxid = nil, buyer = nil, buyertaxid = nil, category = nil, total = nil, totalcn = nil, kind = nil, province = nil, city = nil, companysealmark = nil, qrcodemark = nil, servicename = nil, companysealcontent = nil, taxsealcontent = nil, vatrollitems = nil) ⇒ VatInvoiceRoll
Returns a new instance of VatInvoiceRoll.
14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 |
# File 'lib/v20181119/models.rb', line 14302 def initialize(title=nil, code=nil, number=nil, numberconfirm=nil, date=nil, checkcode=nil, seller=nil, sellertaxid=nil, buyer=nil, buyertaxid=nil, category=nil, total=nil, totalcn=nil, kind=nil, province=nil, city=nil, companysealmark=nil, qrcodemark=nil, servicename=nil, companysealcontent=nil, taxsealcontent=nil, vatrollitems=nil) @Title = title @Code = code @Number = number @NumberConfirm = numberconfirm @Date = date @CheckCode = checkcode @Seller = seller @SellerTaxID = sellertaxid @Buyer = buyer @BuyerTaxID = buyertaxid @Category = category @Total = total @TotalCn = totalcn @Kind = kind @Province = province @City = city @CompanySealMark = companysealmark @QRCodeMark = qrcodemark @ServiceName = servicename @CompanySealContent = companysealcontent @TaxSealContent = taxsealcontent @VatRollItems = vatrollitems end |
Instance Attribute Details
#Buyer ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def Buyer @Buyer end |
#BuyerTaxID ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def BuyerTaxID @BuyerTaxID end |
#Category ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def Category @Category end |
#CheckCode ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def CheckCode @CheckCode end |
#City ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def City @City end |
#Code ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def Code @Code end |
#CompanySealContent ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def CompanySealContent @CompanySealContent end |
#CompanySealMark ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def CompanySealMark @CompanySealMark end |
#Date ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def Date @Date end |
#Kind ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def Kind @Kind end |
#Number ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def Number @Number end |
#NumberConfirm ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def NumberConfirm @NumberConfirm end |
#Province ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def Province @Province end |
#QRCodeMark ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def QRCodeMark @QRCodeMark end |
#Seller ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def Seller @Seller end |
#SellerTaxID ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def SellerTaxID @SellerTaxID end |
#ServiceName ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def ServiceName @ServiceName end |
#TaxSealContent ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def TaxSealContent @TaxSealContent end |
#Title ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def Title @Title end |
#Total ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def Total @Total end |
#TotalCn ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def TotalCn @TotalCn end |
#VatRollItems ⇒ Object
14300 14301 14302 |
# File 'lib/v20181119/models.rb', line 14300 def VatRollItems @VatRollItems end |
Instance Method Details
#deserialize(params) ⇒ Object
14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 |
# File 'lib/v20181119/models.rb', line 14327 def deserialize(params) @Title = params['Title'] @Code = params['Code'] @Number = params['Number'] @NumberConfirm = params['NumberConfirm'] @Date = params['Date'] @CheckCode = params['CheckCode'] @Seller = params['Seller'] @SellerTaxID = params['SellerTaxID'] @Buyer = params['Buyer'] @BuyerTaxID = params['BuyerTaxID'] @Category = params['Category'] @Total = params['Total'] @TotalCn = params['TotalCn'] @Kind = params['Kind'] @Province = params['Province'] @City = params['City'] @CompanySealMark = params['CompanySealMark'] @QRCodeMark = params['QRCodeMark'] @ServiceName = params['ServiceName'] @CompanySealContent = params['CompanySealContent'] @TaxSealContent = params['TaxSealContent'] unless params['VatRollItems'].nil? @VatRollItems = [] params['VatRollItems'].each do |i| vatrollitem_tmp = VatRollItem.new vatrollitem_tmp.deserialize(i) @VatRollItems << vatrollitem_tmp end end end |