Class: Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams::PurchaseDetails::Flight::Segment

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #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.



225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 225

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.



213
214
215
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 213

def arrival_airport_code
  @arrival_airport_code
end

#carrierObject

The airline carrier code.



215
216
217
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 215

def carrier
  @carrier
end

#departure_airport_codeObject

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



217
218
219
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 217

def departure_airport_code
  @departure_airport_code
end

#flight_numberObject

The flight number.



219
220
221
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 219

def flight_number
  @flight_number
end

#service_classObject

The flight's service class.



221
222
223
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 221

def service_class
  @service_class
end

#stopover_allowedObject

Whether a stopover is allowed on this flight.



223
224
225
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 223

def stopover_allowed
  @stopover_allowed
end