Class: Stripe::Issuing::Transaction::CreateUnlinkedRefundParams::PurchaseDetails::Flight::Segment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(arrival_airport_code: nil, carrier: nil, departure_airport_code: nil, flight_number: nil, service_class: nil, stopover_allowed: nil) ⇒ Segment

Returns a new instance of Segment.



871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
# File 'lib/stripe/resources/issuing/transaction.rb', line 871

def initialize(
  arrival_airport_code: nil,
  carrier: nil,
  departure_airport_code: nil,
  flight_number: nil,
  service_class: nil,
  stopover_allowed: nil
)
  @arrival_airport_code = arrival_airport_code
  @carrier = carrier
  @departure_airport_code = departure_airport_code
  @flight_number = flight_number
  @service_class = service_class
  @stopover_allowed = stopover_allowed
end

Instance Attribute Details

#arrival_airport_codeObject

The three-letter IATA airport code of the flight’s destination.



854
855
856
# File 'lib/stripe/resources/issuing/transaction.rb', line 854

def arrival_airport_code
  @arrival_airport_code
end

#carrierObject

The airline carrier code.



857
858
859
# File 'lib/stripe/resources/issuing/transaction.rb', line 857

def carrier
  @carrier
end

#departure_airport_codeObject

The three-letter IATA airport code that the flight departed from.



860
861
862
# File 'lib/stripe/resources/issuing/transaction.rb', line 860

def departure_airport_code
  @departure_airport_code
end

#flight_numberObject

The flight number.



863
864
865
# File 'lib/stripe/resources/issuing/transaction.rb', line 863

def flight_number
  @flight_number
end

#service_classObject

The flight’s service class.



866
867
868
# File 'lib/stripe/resources/issuing/transaction.rb', line 866

def service_class
  @service_class
end

#stopover_allowedObject

Whether a stopover is allowed on this flight.



869
870
871
# File 'lib/stripe/resources/issuing/transaction.rb', line 869

def stopover_allowed
  @stopover_allowed
end