class Google::Apis::QpxExpressV1::FareInfo
Complete information about a fare used in the solution to a low-fare search query. In the airline industry a fare is a price an airline charges for one- way travel between two points. A fare typically contains a carrier code, two city codes, a price, and a fare basis. (A fare basis is a one-to-eight character alphanumeric code used to identify a fare.)
Attributes
Corresponds to the JSON property `basisCode` @return [String]
The carrier of the aircraft or other vehicle commuting between two points. Corresponds to the JSON property `carrier` @return [String]
The city code of the city the trip ends at. Corresponds to the JSON property `destination` @return [String]
A unique identifier of the fare. Corresponds to the JSON property `id` @return [String]
Identifies this as a fare object. Value: the fixed string qpxexpress#fareInfo. Corresponds to the JSON property `kind` @return [String]
The city code of the city the trip begins at. Corresponds to the JSON property `origin` @return [String]
Whether this is a private fare, for example one offered only to select customers rather than the general public. Corresponds to the JSON property `private` @return [Boolean]
Whether this is a private fare, for example one offered only to select customers rather than the general public. Corresponds to the JSON property `private` @return [Boolean]
Public Class Methods
# File generated/google/apis/qpx_express_v1/classes.rb, line 312 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/qpx_express_v1/classes.rb, line 317 def update!(**args) @basis_code = args[:basis_code] if args.key?(:basis_code) @carrier = args[:carrier] if args.key?(:carrier) @destination = args[:destination] if args.key?(:destination) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @origin = args[:origin] if args.key?(:origin) @private = args[:private] if args.key?(:private) end