class Google::Apis::QpxExpressV1::PricingInfo
The price of one or more travel segments. The currency used to purchase tickets is usually determined by the sale/ticketing city or the sale/ticketing country, unless none are specified, in which case it defaults to that of the journey origin country.
Attributes
The total fare in the base fare currency (the currency of the country of origin). This element is only present when the sales currency and the currency of the country of commencement are different. Corresponds to the JSON property `baseFareTotal` @return [String]
The fare used to price one or more segments. Corresponds to the JSON property `fare` @return [Array<Google::Apis::QpxExpressV1::FareInfo>]
The horizontal fare calculation. This is a field on a ticket that displays all of the relevant items that go into the calculation of the fare. Corresponds to the JSON property `fareCalculation` @return [String]
Identifies this as a pricing object, representing the price of one or more travel segments. Value: the fixed string qpxexpress#pricingInfo. Corresponds to the JSON property `kind` @return [String]
The latest ticketing time for this pricing assuming the reservation occurs at ticketing time and there is no change in fares/rules. The time is local to the point of sale (POS). Corresponds to the JSON property `latestTicketingTime` @return [String]
The number and type of passengers. Unfortunately the definition of an infant, child, adult, and senior citizen varies across carriers and reservation systems. Corresponds to the JSON property `passengers` @return [Google::Apis::QpxExpressV1::PassengerCounts]
The passenger type code for this pricing. An alphanumeric code used by a carrier to restrict fares to certain categories of passenger. For instance, a fare might be valid only for senior citizens. Corresponds to the JSON property `ptc` @return [String]
Whether the fares on this pricing are refundable. Corresponds to the JSON property `refundable` @return [Boolean]
Whether the fares on this pricing are refundable. Corresponds to the JSON property `refundable` @return [Boolean]
The total fare in the sale or equivalent currency. Corresponds to the JSON property `saleFareTotal` @return [String]
The taxes in the sale or equivalent currency. Corresponds to the JSON property `saleTaxTotal` @return [String]
Total per-passenger price (fare and tax) in the sale or equivalent currency. Corresponds to the JSON property `saleTotal` @return [String]
The per-segment price and baggage information. Corresponds to the JSON property `segmentPricing` @return [Array<Google::Apis::QpxExpressV1::SegmentPricing>]
The taxes used to calculate the tax total per ticket. Corresponds to the JSON property `tax` @return [Array<Google::Apis::QpxExpressV1::TaxInfo>]
Public Class Methods
# File generated/google/apis/qpx_express_v1/classes.rb, line 675 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/qpx_express_v1/classes.rb, line 680 def update!(**args) @base_fare_total = args[:base_fare_total] if args.key?(:base_fare_total) @fare = args[:fare] if args.key?(:fare) @fare_calculation = args[:fare_calculation] if args.key?(:fare_calculation) @kind = args[:kind] if args.key?(:kind) @latest_ticketing_time = args[:latest_ticketing_time] if args.key?(:latest_ticketing_time) @passengers = args[:passengers] if args.key?(:passengers) @ptc = args[:ptc] if args.key?(:ptc) @refundable = args[:refundable] if args.key?(:refundable) @sale_fare_total = args[:sale_fare_total] if args.key?(:sale_fare_total) @sale_tax_total = args[:sale_tax_total] if args.key?(:sale_tax_total) @sale_total = args[:sale_total] if args.key?(:sale_total) @segment_pricing = args[:segment_pricing] if args.key?(:segment_pricing) @tax = args[:tax] if args.key?(:tax) end