Class: Google::Apis::QpxExpressV1::PricingInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_totalString

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

Returns:

  • (String)


604
605
606
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 604

def base_fare_total
  @base_fare_total
end

#fareArray<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_calculationString

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

Returns:

  • (String)


615
616
617
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 615

def fare_calculation
  @fare_calculation
end

#kindString

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

Returns:

  • (String)


621
622
623
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 621

def kind
  @kind
end

#latest_ticketing_timeString

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

Returns:

  • (String)


628
629
630
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 628

def latest_ticketing_time
  @latest_ticketing_time
end

#passengersGoogle::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

#ptcString

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

Returns:

  • (String)


642
643
644
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 642

def ptc
  @ptc
end

#refundableBoolean Also known as: refundable?

Whether the fares on this pricing are refundable. Corresponds to the JSON property refundable

Returns:

  • (Boolean)


647
648
649
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 647

def refundable
  @refundable
end

#sale_fare_totalString

The total fare in the sale or equivalent currency. Corresponds to the JSON property saleFareTotal

Returns:

  • (String)


653
654
655
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 653

def sale_fare_total
  @sale_fare_total
end

#sale_tax_totalString

The taxes in the sale or equivalent currency. Corresponds to the JSON property saleTaxTotal

Returns:

  • (String)


658
659
660
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 658

def sale_tax_total
  @sale_tax_total
end

#sale_totalString

Total per-passenger price (fare and tax) in the sale or equivalent currency. Corresponds to the JSON property saleTotal

Returns:

  • (String)


663
664
665
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 663

def sale_total
  @sale_total
end

#segment_pricingArray<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

#taxArray<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