Class: Stripe::PaymentIntentService::ConfirmParams::PaymentDetails::Flight::Segment

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_intent_service.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.



8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
# File 'lib/stripe/services/payment_intent_service.rb', line 8222

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.



8206
8207
8208
# File 'lib/stripe/services/payment_intent_service.rb', line 8206

def amount
  @amount
end

#arrival_airportObject

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



8208
8209
8210
# File 'lib/stripe/services/payment_intent_service.rb', line 8208

def arrival_airport
  @arrival_airport
end

#arrives_atObject

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



8210
8211
8212
# File 'lib/stripe/services/payment_intent_service.rb', line 8210

def arrives_at
  @arrives_at
end

#carrierObject

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



8212
8213
8214
# File 'lib/stripe/services/payment_intent_service.rb', line 8212

def carrier
  @carrier
end

#departs_atObject

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



8214
8215
8216
# File 'lib/stripe/services/payment_intent_service.rb', line 8214

def departs_at
  @departs_at
end

#departure_airportObject

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



8216
8217
8218
# File 'lib/stripe/services/payment_intent_service.rb', line 8216

def departure_airport
  @departure_airport
end

#flight_numberObject

The flight number associated with the segment



8218
8219
8220
# File 'lib/stripe/services/payment_intent_service.rb', line 8218

def flight_number
  @flight_number
end

#service_classObject

The fare class for the segment.



8220
8221
8222
# File 'lib/stripe/services/payment_intent_service.rb', line 8220

def service_class
  @service_class
end