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.
14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 |
# File 'lib/v20181119/models.rb', line 14118 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
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def Buyer @Buyer end |
#BuyerTaxID ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def BuyerTaxID @BuyerTaxID end |
#Category ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def Category @Category end |
#CheckCode ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def CheckCode @CheckCode end |
#City ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def City @City end |
#Code ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def Code @Code end |
#CompanySealContent ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def CompanySealContent @CompanySealContent end |
#CompanySealMark ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def CompanySealMark @CompanySealMark end |
#Date ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def Date @Date end |
#Kind ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def Kind @Kind end |
#Number ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def Number @Number end |
#NumberConfirm ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def NumberConfirm @NumberConfirm end |
#Province ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def Province @Province end |
#QRCodeMark ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def QRCodeMark @QRCodeMark end |
#Seller ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def Seller @Seller end |
#SellerTaxID ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def SellerTaxID @SellerTaxID end |
#ServiceName ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def ServiceName @ServiceName end |
#TaxSealContent ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def TaxSealContent @TaxSealContent end |
#Title ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def Title @Title end |
#Total ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def Total @Total end |
#TotalCn ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def TotalCn @TotalCn end |
#VatRollItems ⇒ Object
14116 14117 14118 |
# File 'lib/v20181119/models.rb', line 14116 def VatRollItems @VatRollItems end |
Instance Method Details
#deserialize(params) ⇒ Object
14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 |
# File 'lib/v20181119/models.rb', line 14143 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 |