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
- #Date ⇒ Object
- #Issuer ⇒ Object
- #Number ⇒ Object
- #PretaxAmount ⇒ Object
- #Remark ⇒ Object
- #Seller ⇒ Object
- #SellerTaxID ⇒ Object
- #ServiceTypeLabel ⇒ Object
- #SubTax ⇒ Object
- #SubTotal ⇒ Object
- #Tax ⇒ Object
- #Title ⇒ Object
- #Total ⇒ Object
- #TotalCn ⇒ 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) ⇒ 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) ⇒ VatElectronicInfo
Returns a new instance of VatElectronicInfo.
13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 |
# File 'lib/v20181119/models.rb', line 13054 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) @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 end |
Instance Attribute Details
#Buyer ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def Buyer @Buyer end |
#BuyerTaxID ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def BuyerTaxID @BuyerTaxID end |
#Date ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def Date @Date end |
#Issuer ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def Issuer @Issuer end |
#Number ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def Number @Number end |
#PretaxAmount ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def PretaxAmount @PretaxAmount end |
#Remark ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def Remark @Remark end |
#Seller ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def Seller @Seller end |
#SellerTaxID ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def SellerTaxID @SellerTaxID end |
#ServiceTypeLabel ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def ServiceTypeLabel @ServiceTypeLabel end |
#SubTax ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def SubTax @SubTax end |
#SubTotal ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def SubTotal @SubTotal end |
#Tax ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def Tax @Tax end |
#Title ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def Title @Title end |
#Total ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def Total @Total end |
#TotalCn ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def TotalCn @TotalCn end |
#VatElectronicItems ⇒ Object
13052 13053 13054 |
# File 'lib/v20181119/models.rb', line 13052 def VatElectronicItems @VatElectronicItems end |
Instance Method Details
#deserialize(params) ⇒ Object
13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 |
# File 'lib/v20181119/models.rb', line 13074 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'] end |