GoogleApi.WalletObjects.V1.Model.FlightCarrier (google_api_wallet_objects v0.12.0)

View Source

Attributes

  • airlineAllianceLogo (type: GoogleApi.WalletObjects.V1.Model.Image.t, default: nil) - A logo for the airline alliance, displayed below the QR code that the passenger scans to board.
  • airlineLogo (type: GoogleApi.WalletObjects.V1.Model.Image.t, default: nil) - A logo for the airline described by carrierIataCode and localizedAirlineName. This logo will be rendered at the top of the detailed card view.
  • airlineName (type: GoogleApi.WalletObjects.V1.Model.LocalizedString.t, default: nil) - A localized name of the airline specified by carrierIataCode. If unset, issuer_name or localized_issuer_name from FlightClass will be used for display purposes. eg: "Swiss Air" for "LX"
  • carrierIataCode (type: String.t, default: nil) - Two character IATA airline code of the marketing carrier (as opposed to operating carrier). Exactly one of this or carrierIcaoCode needs to be provided for carrier and operatingCarrier. eg: "LX" for Swiss Air
  • carrierIcaoCode (type: String.t, default: nil) - Three character ICAO airline code of the marketing carrier (as opposed to operating carrier). Exactly one of this or carrierIataCode needs to be provided for carrier and operatingCarrier. eg: "EZY" for Easy Jet
  • kind (type: String.t, default: nil) - Identifies what kind of resource this is. Value: the fixed string "walletobjects#flightCarrier".
  • wideAirlineLogo (type: GoogleApi.WalletObjects.V1.Model.Image.t, default: nil) - The wide logo of the airline. When provided, this will be used in place of the airline logo in the top left of the card view.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.WalletObjects.V1.Model.FlightCarrier{
  airlineAllianceLogo: GoogleApi.WalletObjects.V1.Model.Image.t() | nil,
  airlineLogo: GoogleApi.WalletObjects.V1.Model.Image.t() | nil,
  airlineName: GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
  carrierIataCode: String.t() | nil,
  carrierIcaoCode: String.t() | nil,
  kind: String.t() | nil,
  wideAirlineLogo: GoogleApi.WalletObjects.V1.Model.Image.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.