Class: Google::Apis::WalletobjectsV1::ReservationInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReservationInfo

Returns a new instance of ReservationInfo.



6667
6668
6669
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6667

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#confirmation_codeString

Confirmation code needed to check into this flight. This is the number that the passenger would enter into a kiosk at the airport to look up the flight and print a boarding pass. Corresponds to the JSON property confirmationCode

Returns:

  • (String)


6649
6650
6651
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6649

def confirmation_code
  @confirmation_code
end

#eticket_numberString

E-ticket number. Corresponds to the JSON property eticketNumber

Returns:

  • (String)


6654
6655
6656
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6654

def eticket_number
  @eticket_number
end

#frequent_flyer_infoGoogle::Apis::WalletobjectsV1::FrequentFlyerInfo

Frequent flyer membership information. Corresponds to the JSON property frequentFlyerInfo



6659
6660
6661
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6659

def frequent_flyer_info
  @frequent_flyer_info
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#reservationInfo". Corresponds to the JSON property kind

Returns:

  • (String)


6665
6666
6667
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6665

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6672
6673
6674
6675
6676
6677
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6672

def update!(**args)
  @confirmation_code = args[:confirmation_code] if args.key?(:confirmation_code)
  @eticket_number = args[:eticket_number] if args.key?(:eticket_number)
  @frequent_flyer_info = args[:frequent_flyer_info] if args.key?(:frequent_flyer_info)
  @kind = args[:kind] if args.key?(:kind)
end