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
- #InvoicePageIndex ⇒ 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, invoicepageindex = 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, invoicepageindex = nil) ⇒ VatElectronicInfo
Returns a new instance of VatElectronicInfo.
13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 |
# File 'lib/v20181119/models.rb', line 13455 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, invoicepageindex=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 @InvoicePageIndex = invoicepageindex end |
Instance Attribute Details
#Buyer ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def Buyer @Buyer end |
#BuyerTaxID ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def BuyerTaxID @BuyerTaxID end |
#CompanySealMark ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def CompanySealMark @CompanySealMark end |
#Date ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def Date @Date end |
#InvoicePageIndex ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def InvoicePageIndex @InvoicePageIndex end |
#Issuer ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def Issuer @Issuer end |
#Number ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def Number @Number end |
#PretaxAmount ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def PretaxAmount @PretaxAmount end |
#PretaxAmountMark ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def PretaxAmountMark @PretaxAmountMark end |
#Remark ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def Remark @Remark end |
#Seller ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def Seller @Seller end |
#SellerTaxID ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def SellerTaxID @SellerTaxID end |
#ServiceTypeLabel ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def ServiceTypeLabel @ServiceTypeLabel end |
#SubTax ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def SubTax @SubTax end |
#SubTotal ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def SubTotal @SubTotal end |
#Tax ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def Tax @Tax end |
#TaxMark ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def TaxMark @TaxMark end |
#Title ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def Title @Title end |
#Total ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def Total @Total end |
#TotalCn ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def TotalCn @TotalCn end |
#TotalCnMark ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def TotalCnMark @TotalCnMark end |
#TotalMark ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def TotalMark @TotalMark end |
#VatElectronicItems ⇒ Object
13453 13454 13455 |
# File 'lib/v20181119/models.rb', line 13453 def VatElectronicItems @VatElectronicItems end |
Instance Method Details
#deserialize(params) ⇒ Object
13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 |
# File 'lib/v20181119/models.rb', line 13481 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'] @InvoicePageIndex = params['InvoicePageIndex'] end |