Class: Google::Apis::QpxExpressV1::PricingInfo
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::PricingInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/qpx_express_v1/classes.rb,
generated/google/apis/qpx_express_v1/representations.rb,
generated/google/apis/qpx_express_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#base_fare_total ⇒ String
The total fare in the base fare currency (the currency of the country of origin).
-
#fare ⇒ Array<Google::Apis::QpxExpressV1::FareInfo>
The fare used to price one or more segments.
-
#fare_calculation ⇒ String
The horizontal fare calculation.
-
#kind ⇒ String
Identifies this as a pricing object, representing the price of one or more travel segments.
-
#latest_ticketing_time ⇒ String
The latest ticketing time for this pricing assuming the reservation occurs at ticketing time and there is no change in fares/rules.
-
#passengers ⇒ Google::Apis::QpxExpressV1::PassengerCounts
The number and type of passengers.
-
#ptc ⇒ String
The passenger type code for this pricing.
-
#refundable ⇒ Boolean
(also: #refundable?)
Whether the fares on this pricing are refundable.
-
#sale_fare_total ⇒ String
The total fare in the sale or equivalent currency.
-
#sale_tax_total ⇒ String
The taxes in the sale or equivalent currency.
-
#sale_total ⇒ String
Total per-passenger price (fare and tax) in the sale or equivalent currency.
-
#segment_pricing ⇒ Array<Google::Apis::QpxExpressV1::SegmentPricing>
The per-segment price and baggage information.
-
#tax ⇒ Array<Google::Apis::QpxExpressV1::TaxInfo>
The taxes used to calculate the tax total per ticket.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PricingInfo
constructor
A new instance of PricingInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PricingInfo
Returns a new instance of PricingInfo
675 676 677 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 675 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_fare_total ⇒ String
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
604 605 606 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 604 def base_fare_total @base_fare_total end |
#fare ⇒ Array<Google::Apis::QpxExpressV1::FareInfo>
The fare used to price one or more segments.
Corresponds to the JSON property fare
609 610 611 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 609 def fare @fare end |
#fare_calculation ⇒ String
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
615 616 617 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 615 def fare_calculation @fare_calculation end |
#kind ⇒ 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
621 622 623 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 621 def kind @kind end |
#latest_ticketing_time ⇒ 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
628 629 630 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 628 def latest_ticketing_time @latest_ticketing_time end |
#passengers ⇒ Google::Apis::QpxExpressV1::PassengerCounts
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
635 636 637 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 635 def passengers @passengers end |
#ptc ⇒ String
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
642 643 644 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 642 def ptc @ptc end |
#refundable ⇒ Boolean Also known as: refundable?
Whether the fares on this pricing are refundable.
Corresponds to the JSON property refundable
647 648 649 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 647 def refundable @refundable end |
#sale_fare_total ⇒ String
The total fare in the sale or equivalent currency.
Corresponds to the JSON property saleFareTotal
653 654 655 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 653 def sale_fare_total @sale_fare_total end |
#sale_tax_total ⇒ String
The taxes in the sale or equivalent currency.
Corresponds to the JSON property saleTaxTotal
658 659 660 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 658 def sale_tax_total @sale_tax_total end |
#sale_total ⇒ String
Total per-passenger price (fare and tax) in the sale or equivalent currency.
Corresponds to the JSON property saleTotal
663 664 665 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 663 def sale_total @sale_total end |
#segment_pricing ⇒ Array<Google::Apis::QpxExpressV1::SegmentPricing>
The per-segment price and baggage information.
Corresponds to the JSON property segmentPricing
668 669 670 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 668 def segment_pricing @segment_pricing end |
#tax ⇒ Array<Google::Apis::QpxExpressV1::TaxInfo>
The taxes used to calculate the tax total per ticket.
Corresponds to the JSON property tax
673 674 675 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 673 def tax @tax end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 |
# 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 |