Class: Stripe::Charge::CaptureParams::PaymentDetails::Flight::Segment

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/charge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, arrival_airport: nil, arrives_at: nil, carrier: nil, departs_at: nil, departure_airport: nil, flight_number: nil, service_class: nil) ⇒ Segment

Returns a new instance of Segment.



2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
# File 'lib/stripe/resources/charge.rb', line 2722

def initialize(
  amount: nil,
  arrival_airport: nil,
  arrives_at: nil,
  carrier: nil,
  departs_at: nil,
  departure_airport: nil,
  flight_number: nil,
  service_class: nil
)
  @amount = amount
  @arrival_airport = arrival_airport
  @arrives_at = arrives_at
  @carrier = carrier
  @departs_at = departs_at
  @departure_airport = departure_airport
  @flight_number = flight_number
  @service_class = service_class
end

Instance Attribute Details

#amountObject

The flight segment amount.



2706
2707
2708
# File 'lib/stripe/resources/charge.rb', line 2706

def amount
  @amount
end

#arrival_airportObject

The International Air Transport Association (IATA) airport code for the arrival airport.



2708
2709
2710
# File 'lib/stripe/resources/charge.rb', line 2708

def arrival_airport
  @arrival_airport
end

#arrives_atObject

The arrival time for the flight segment. Measured in seconds since the Unix epoch.



2710
2711
2712
# File 'lib/stripe/resources/charge.rb', line 2710

def arrives_at
  @arrives_at
end

#carrierObject

The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.



2712
2713
2714
# File 'lib/stripe/resources/charge.rb', line 2712

def carrier
  @carrier
end

#departs_atObject

The departure time for the flight segment. Measured in seconds since the Unix epoch.



2714
2715
2716
# File 'lib/stripe/resources/charge.rb', line 2714

def departs_at
  @departs_at
end

#departure_airportObject

The International Air Transport Association (IATA) airport code for the departure airport.



2716
2717
2718
# File 'lib/stripe/resources/charge.rb', line 2716

def departure_airport
  @departure_airport
end

#flight_numberObject

The flight number associated with the segment



2718
2719
2720
# File 'lib/stripe/resources/charge.rb', line 2718

def flight_number
  @flight_number
end

#service_classObject

The fare class for the segment.



2720
2721
2722
# File 'lib/stripe/resources/charge.rb', line 2720

def service_class
  @service_class
end