Class: TencentCloud::Ocr::V20181119::ElectronicFlightTicketFull
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::ElectronicFlightTicketFull
- Defined in:
- lib/v20181119/models.rb
Overview
电子发票(机票行程单)
Instance Attribute Summary collapse
- #Buyer ⇒ Object
- #BuyerTaxID ⇒ Object
- #Date ⇒ Object
- #DevelopmentFund ⇒ Object
- #DomesticInternationalTag ⇒ Object
- #ElectronicTicketNum ⇒ Object
- #Endorsement ⇒ Object
- #Fare ⇒ Object
- #FlightItems ⇒ Object
- #FuelSurcharge ⇒ Object
- #GPOrder ⇒ Object
- #Insurance ⇒ Object
- #Issuer ⇒ Object
- #Number ⇒ Object
- #OtherTax ⇒ Object
- #PromptInformation ⇒ Object
- #Seller ⇒ Object
- #Tax ⇒ Object
- #TaxRate ⇒ Object
- #Total ⇒ Object
- #UserID ⇒ Object
- #UserName ⇒ Object
- #VerificationCode ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(username = nil, userid = nil, endorsement = nil, gporder = nil, number = nil, fare = nil, fuelsurcharge = nil, taxrate = nil, tax = nil, developmentfund = nil, othertax = nil, total = nil, electronicticketnum = nil, verificationcode = nil, promptinformation = nil, insurance = nil, issuer = nil, date = nil, domesticinternationaltag = nil, buyer = nil, seller = nil, buyertaxid = nil, flightitems = nil) ⇒ ElectronicFlightTicketFull
constructor
A new instance of ElectronicFlightTicketFull.
Constructor Details
#initialize(username = nil, userid = nil, endorsement = nil, gporder = nil, number = nil, fare = nil, fuelsurcharge = nil, taxrate = nil, tax = nil, developmentfund = nil, othertax = nil, total = nil, electronicticketnum = nil, verificationcode = nil, promptinformation = nil, insurance = nil, issuer = nil, date = nil, domesticinternationaltag = nil, buyer = nil, seller = nil, buyertaxid = nil, flightitems = nil) ⇒ ElectronicFlightTicketFull
Returns a new instance of ElectronicFlightTicketFull.
2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 |
# File 'lib/v20181119/models.rb', line 2269 def initialize(username=nil, userid=nil, endorsement=nil, gporder=nil, number=nil, fare=nil, fuelsurcharge=nil, taxrate=nil, tax=nil, developmentfund=nil, othertax=nil, total=nil, electronicticketnum=nil, verificationcode=nil, promptinformation=nil, insurance=nil, issuer=nil, date=nil, domesticinternationaltag=nil, buyer=nil, seller=nil, buyertaxid=nil, flightitems=nil) @UserName = username @UserID = userid @Endorsement = endorsement @GPOrder = gporder @Number = number @Fare = fare @FuelSurcharge = fuelsurcharge @TaxRate = taxrate @Tax = tax @DevelopmentFund = developmentfund @OtherTax = othertax @Total = total @ElectronicTicketNum = electronicticketnum @VerificationCode = verificationcode @PromptInformation = promptinformation @Insurance = insurance @Issuer = issuer @Date = date @DomesticInternationalTag = domesticinternationaltag @Buyer = buyer @Seller = seller @BuyerTaxID = buyertaxid @FlightItems = flightitems end |
Instance Attribute Details
#Buyer ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def Buyer @Buyer end |
#BuyerTaxID ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def BuyerTaxID @BuyerTaxID end |
#Date ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def Date @Date end |
#DevelopmentFund ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def DevelopmentFund @DevelopmentFund end |
#DomesticInternationalTag ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def DomesticInternationalTag @DomesticInternationalTag end |
#ElectronicTicketNum ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def ElectronicTicketNum @ElectronicTicketNum end |
#Endorsement ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def Endorsement @Endorsement end |
#Fare ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def Fare @Fare end |
#FlightItems ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def FlightItems @FlightItems end |
#FuelSurcharge ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def FuelSurcharge @FuelSurcharge end |
#GPOrder ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def GPOrder @GPOrder end |
#Insurance ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def Insurance @Insurance end |
#Issuer ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def Issuer @Issuer end |
#Number ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def Number @Number end |
#OtherTax ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def OtherTax @OtherTax end |
#PromptInformation ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def PromptInformation @PromptInformation end |
#Seller ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def Seller @Seller end |
#Tax ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def Tax @Tax end |
#TaxRate ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def TaxRate @TaxRate end |
#Total ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def Total @Total end |
#UserID ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def UserID @UserID end |
#UserName ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def UserName @UserName end |
#VerificationCode ⇒ Object
2267 2268 2269 |
# File 'lib/v20181119/models.rb', line 2267 def VerificationCode @VerificationCode end |
Instance Method Details
#deserialize(params) ⇒ Object
2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 |
# File 'lib/v20181119/models.rb', line 2295 def deserialize(params) @UserName = params['UserName'] @UserID = params['UserID'] @Endorsement = params['Endorsement'] @GPOrder = params['GPOrder'] @Number = params['Number'] @Fare = params['Fare'] @FuelSurcharge = params['FuelSurcharge'] @TaxRate = params['TaxRate'] @Tax = params['Tax'] @DevelopmentFund = params['DevelopmentFund'] @OtherTax = params['OtherTax'] @Total = params['Total'] @ElectronicTicketNum = params['ElectronicTicketNum'] @VerificationCode = params['VerificationCode'] @PromptInformation = params['PromptInformation'] @Insurance = params['Insurance'] @Issuer = params['Issuer'] @Date = params['Date'] @DomesticInternationalTag = params['DomesticInternationalTag'] @Buyer = params['Buyer'] @Seller = params['Seller'] @BuyerTaxID = params['BuyerTaxID'] unless params['FlightItems'].nil? @FlightItems = [] params['FlightItems'].each do |i| flightiteminfo_tmp = FlightItemInfo.new flightiteminfo_tmp.deserialize(i) @FlightItems << flightiteminfo_tmp end end end |