Class: TencentCloud::Ocr::V20181119::ElectronicAirTransport
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::ElectronicAirTransport
- Defined in:
- lib/v20181119/models.rb
Overview
全电发票(航空运输电子客票行程单)
Instance Attribute Summary collapse
-
#Amount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#BuyerName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#BuyerTaxCode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#CheckCode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Code ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Date ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DeductionMark ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DevelopmentFund ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DomesticInternationalMark ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ElectronicAirTransportDetails ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ElectronicNumber ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Fare ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#FuelSurcharge ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Number ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PassengerName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PassengerNo ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#StateCode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Tax ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TaxAmount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(code = nil, number = nil, date = nil, amount = nil, checkcode = nil, total = nil, deductionmark = nil, statecode = nil, buyertaxcode = nil, buyername = nil, tax = nil, domesticinternationalmark = nil, passengername = nil, passengerno = nil, electronicnumber = nil, electronicairtransportdetails = nil, fare = nil, fuelsurcharge = nil, taxamount = nil, developmentfund = nil) ⇒ ElectronicAirTransport
constructor
A new instance of ElectronicAirTransport.
Constructor Details
#initialize(code = nil, number = nil, date = nil, amount = nil, checkcode = nil, total = nil, deductionmark = nil, statecode = nil, buyertaxcode = nil, buyername = nil, tax = nil, domesticinternationalmark = nil, passengername = nil, passengerno = nil, electronicnumber = nil, electronicairtransportdetails = nil, fare = nil, fuelsurcharge = nil, taxamount = nil, developmentfund = nil) ⇒ ElectronicAirTransport
Returns a new instance of ElectronicAirTransport.
2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 |
# File 'lib/v20181119/models.rb', line 2183 def initialize(code=nil, number=nil, date=nil, amount=nil, checkcode=nil, total=nil, deductionmark=nil, statecode=nil, buyertaxcode=nil, buyername=nil, tax=nil, domesticinternationalmark=nil, passengername=nil, passengerno=nil, electronicnumber=nil, electronicairtransportdetails=nil, fare=nil, fuelsurcharge=nil, taxamount=nil, developmentfund=nil) @Code = code @Number = number @Date = date @Amount = amount @CheckCode = checkcode @Total = total @DeductionMark = deductionmark @StateCode = statecode @BuyerTaxCode = buyertaxcode @BuyerName = buyername @Tax = tax @DomesticInternationalMark = domesticinternationalmark @PassengerName = passengername @PassengerNo = passengerno @ElectronicNumber = electronicnumber @ElectronicAirTransportDetails = electronicairtransportdetails @Fare = fare @FuelSurcharge = fuelsurcharge @TaxAmount = taxamount @DevelopmentFund = developmentfund end |
Instance Attribute Details
#Amount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def Amount @Amount end |
#BuyerName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def BuyerName @BuyerName end |
#BuyerTaxCode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def BuyerTaxCode @BuyerTaxCode end |
#CheckCode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def CheckCode @CheckCode end |
#Code ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def Code @Code end |
#Date ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def Date @Date end |
#DeductionMark ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def DeductionMark @DeductionMark end |
#DevelopmentFund ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def DevelopmentFund @DevelopmentFund end |
#DomesticInternationalMark ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def DomesticInternationalMark @DomesticInternationalMark end |
#ElectronicAirTransportDetails ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def ElectronicAirTransportDetails @ElectronicAirTransportDetails end |
#ElectronicNumber ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def ElectronicNumber @ElectronicNumber end |
#Fare ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def Fare @Fare end |
#FuelSurcharge ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def FuelSurcharge @FuelSurcharge end |
#Number ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def Number @Number end |
#PassengerName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def PassengerName @PassengerName end |
#PassengerNo ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def PassengerNo @PassengerNo end |
#StateCode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def StateCode @StateCode end |
#Tax ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def Tax @Tax end |
#TaxAmount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def TaxAmount @TaxAmount end |
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2181 2182 2183 |
# File 'lib/v20181119/models.rb', line 2181 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 |
# File 'lib/v20181119/models.rb', line 2206 def deserialize(params) @Code = params['Code'] @Number = params['Number'] @Date = params['Date'] @Amount = params['Amount'] @CheckCode = params['CheckCode'] @Total = params['Total'] @DeductionMark = params['DeductionMark'] @StateCode = params['StateCode'] @BuyerTaxCode = params['BuyerTaxCode'] @BuyerName = params['BuyerName'] @Tax = params['Tax'] @DomesticInternationalMark = params['DomesticInternationalMark'] @PassengerName = params['PassengerName'] @PassengerNo = params['PassengerNo'] @ElectronicNumber = params['ElectronicNumber'] unless params['ElectronicAirTransportDetails'].nil? @ElectronicAirTransportDetails = [] params['ElectronicAirTransportDetails'].each do |i| electronicairtransportdetail_tmp = ElectronicAirTransportDetail.new electronicairtransportdetail_tmp.deserialize(i) @ElectronicAirTransportDetails << electronicairtransportdetail_tmp end end @Fare = params['Fare'] @FuelSurcharge = params['FuelSurcharge'] @TaxAmount = params['TaxAmount'] @DevelopmentFund = params['DevelopmentFund'] end |