Class: TencentCloud::Ocr::V20181119::AirTransport
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::AirTransport
- Defined in:
- lib/v20181119/models.rb
Overview
机票行程单
Instance Attribute Summary collapse
- #AgentCode ⇒ Object
- #AgentCodeFirst ⇒ Object
- #AgentCodeSecond ⇒ Object
- #AirDevelopmentFund ⇒ Object
- #CheckCode ⇒ Object
- #Date ⇒ Object
- #DateEnd ⇒ Object
- #DateStart ⇒ Object
- #DomesticInternationalTag ⇒ Object
- #Endorsement ⇒ Object
- #Fare ⇒ Object
- #FlightItems ⇒ Object
- #FuelSurcharge ⇒ Object
- #Insurance ⇒ Object
- #Issuer ⇒ Object
- #Kind ⇒ Object
- #Number ⇒ Object
- #QRCodeMark ⇒ Object
- #SerialNumber ⇒ Object
- #Tax ⇒ Object
- #Title ⇒ Object
- #Total ⇒ Object
- #UserID ⇒ Object
- #UserName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(title = nil, number = nil, checkcode = nil, serialnumber = nil, date = nil, agentcode = nil, agentcodefirst = nil, agentcodesecond = nil, username = nil, userid = nil, issuer = nil, fare = nil, tax = nil, fuelsurcharge = nil, airdevelopmentfund = nil, insurance = nil, total = nil, kind = nil, domesticinternationaltag = nil, datestart = nil, dateend = nil, endorsement = nil, qrcodemark = nil, flightitems = nil) ⇒ AirTransport
constructor
A new instance of AirTransport.
Constructor Details
#initialize(title = nil, number = nil, checkcode = nil, serialnumber = nil, date = nil, agentcode = nil, agentcodefirst = nil, agentcodesecond = nil, username = nil, userid = nil, issuer = nil, fare = nil, tax = nil, fuelsurcharge = nil, airdevelopmentfund = nil, insurance = nil, total = nil, kind = nil, domesticinternationaltag = nil, datestart = nil, dateend = nil, endorsement = nil, qrcodemark = nil, flightitems = nil) ⇒ AirTransport
Returns a new instance of AirTransport.
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 |
# File 'lib/v20181119/models.rb', line 286 def initialize(title=nil, number=nil, checkcode=nil, serialnumber=nil, date=nil, agentcode=nil, agentcodefirst=nil, agentcodesecond=nil, username=nil, userid=nil, issuer=nil, fare=nil, tax=nil, fuelsurcharge=nil, airdevelopmentfund=nil, insurance=nil, total=nil, kind=nil, domesticinternationaltag=nil, datestart=nil, dateend=nil, endorsement=nil, qrcodemark=nil, flightitems=nil) @Title = title @Number = number @CheckCode = checkcode @SerialNumber = serialnumber @Date = date @AgentCode = agentcode @AgentCodeFirst = agentcodefirst @AgentCodeSecond = agentcodesecond @UserName = username @UserID = userid @Issuer = issuer @Fare = fare @Tax = tax @FuelSurcharge = fuelsurcharge @AirDevelopmentFund = airdevelopmentfund @Insurance = insurance @Total = total @Kind = kind @DomesticInternationalTag = domesticinternationaltag @DateStart = datestart @DateEnd = dateend @Endorsement = endorsement @QRCodeMark = qrcodemark @FlightItems = flightitems end |
Instance Attribute Details
#AgentCode ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def AgentCode @AgentCode end |
#AgentCodeFirst ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def AgentCodeFirst @AgentCodeFirst end |
#AgentCodeSecond ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def AgentCodeSecond @AgentCodeSecond end |
#AirDevelopmentFund ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def AirDevelopmentFund @AirDevelopmentFund end |
#CheckCode ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def CheckCode @CheckCode end |
#Date ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def Date @Date end |
#DateEnd ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def DateEnd @DateEnd end |
#DateStart ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def DateStart @DateStart end |
#DomesticInternationalTag ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def DomesticInternationalTag @DomesticInternationalTag end |
#Endorsement ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def Endorsement @Endorsement end |
#Fare ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def Fare @Fare end |
#FlightItems ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def FlightItems @FlightItems end |
#FuelSurcharge ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def FuelSurcharge @FuelSurcharge end |
#Insurance ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def Insurance @Insurance end |
#Issuer ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def Issuer @Issuer end |
#Kind ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def Kind @Kind end |
#Number ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def Number @Number end |
#QRCodeMark ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def QRCodeMark @QRCodeMark end |
#SerialNumber ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def SerialNumber @SerialNumber end |
#Tax ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def Tax @Tax end |
#Title ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def Title @Title end |
#Total ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def Total @Total end |
#UserID ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def UserID @UserID end |
#UserName ⇒ Object
284 285 286 |
# File 'lib/v20181119/models.rb', line 284 def UserName @UserName end |
Instance Method Details
#deserialize(params) ⇒ Object
313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/v20181119/models.rb', line 313 def deserialize(params) @Title = params['Title'] @Number = params['Number'] @CheckCode = params['CheckCode'] @SerialNumber = params['SerialNumber'] @Date = params['Date'] @AgentCode = params['AgentCode'] @AgentCodeFirst = params['AgentCodeFirst'] @AgentCodeSecond = params['AgentCodeSecond'] @UserName = params['UserName'] @UserID = params['UserID'] @Issuer = params['Issuer'] @Fare = params['Fare'] @Tax = params['Tax'] @FuelSurcharge = params['FuelSurcharge'] @AirDevelopmentFund = params['AirDevelopmentFund'] @Insurance = params['Insurance'] @Total = params['Total'] @Kind = params['Kind'] @DomesticInternationalTag = params['DomesticInternationalTag'] @DateStart = params['DateStart'] @DateEnd = params['DateEnd'] @Endorsement = params['Endorsement'] @QRCodeMark = params['QRCodeMark'] unless params['FlightItems'].nil? @FlightItems = [] params['FlightItems'].each do |i| flightitem_tmp = FlightItem.new flightitem_tmp.deserialize(i) @FlightItems << flightitem_tmp end end end |