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

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/test_helpers/issuing/authorization_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.



165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 165

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.



153
154
155
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 153

def arrival_airport_code
  @arrival_airport_code
end

#carrierObject

The airline carrier code.



155
156
157
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 155

def carrier
  @carrier
end

#departure_airport_codeObject

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



157
158
159
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 157

def departure_airport_code
  @departure_airport_code
end

#flight_numberObject

The flight number.



159
160
161
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 159

def flight_number
  @flight_number
end

#service_classObject

The flight’s service class.



161
162
163
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 161

def service_class
  @service_class
end

#stopover_allowedObject

Whether a stopover is allowed on this flight.



163
164
165
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 163

def stopover_allowed
  @stopover_allowed
end