Class: Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams::PurchaseDetails::Flight::Segment
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams::PurchaseDetails::Flight::Segment
- Defined in:
- lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb
Instance Attribute Summary collapse
-
#arrival_airport_code ⇒ Object
The three-letter IATA airport code of the flight’s destination.
-
#carrier ⇒ Object
The airline carrier code.
-
#departure_airport_code ⇒ Object
The three-letter IATA airport code that the flight departed from.
-
#flight_number ⇒ Object
The flight number.
-
#service_class ⇒ Object
The flight’s service class.
-
#stopover_allowed ⇒ Object
Whether a stopover is allowed on this flight.
Instance Method Summary collapse
-
#initialize(arrival_airport_code: nil, carrier: nil, departure_airport_code: nil, flight_number: nil, service_class: nil, stopover_allowed: nil) ⇒ Segment
constructor
A new instance of Segment.
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.
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 208 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_code ⇒ Object
The three-letter IATA airport code of the flight’s destination.
196 197 198 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 196 def arrival_airport_code @arrival_airport_code end |
#carrier ⇒ Object
The airline carrier code.
198 199 200 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 198 def carrier @carrier end |
#departure_airport_code ⇒ Object
The three-letter IATA airport code that the flight departed from.
200 201 202 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 200 def departure_airport_code @departure_airport_code end |
#flight_number ⇒ Object
The flight number.
202 203 204 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 202 def flight_number @flight_number end |
#service_class ⇒ Object
The flight’s service class.
204 205 206 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 204 def service_class @service_class end |
#stopover_allowed ⇒ Object
Whether a stopover is allowed on this flight.
206 207 208 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 206 def stopover_allowed @stopover_allowed end |