Class: Stripe::TestHelpers::Issuing::AuthorizationCaptureParams::PurchaseDetails::Flight
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::AuthorizationCaptureParams::PurchaseDetails::Flight
- Defined in:
- lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb
Defined Under Namespace
Classes: Segment
Instance Attribute Summary collapse
-
#departure_at ⇒ Object
The time that the flight departed.
-
#passenger_name ⇒ Object
The name of the passenger.
-
#refundable ⇒ Object
Whether the ticket is refundable.
-
#segments ⇒ Object
The legs of the trip.
-
#travel_agency ⇒ Object
The travel agency that issued the ticket.
Instance Method Summary collapse
-
#initialize(departure_at: nil, passenger_name: nil, refundable: nil, segments: nil, travel_agency: nil) ⇒ Flight
constructor
A new instance of Flight.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(departure_at: nil, passenger_name: nil, refundable: nil, segments: nil, travel_agency: nil) ⇒ Flight
Returns a new instance of Flight.
192 193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 192 def initialize( departure_at: nil, passenger_name: nil, refundable: nil, segments: nil, travel_agency: nil ) @departure_at = departure_at @passenger_name = passenger_name @refundable = refundable @segments = segments @travel_agency = travel_agency end |
Instance Attribute Details
#departure_at ⇒ Object
The time that the flight departed.
182 183 184 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 182 def departure_at @departure_at end |
#passenger_name ⇒ Object
The name of the passenger.
184 185 186 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 184 def passenger_name @passenger_name end |
#refundable ⇒ Object
Whether the ticket is refundable.
186 187 188 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 186 def refundable @refundable end |
#segments ⇒ Object
The legs of the trip.
188 189 190 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 188 def segments @segments end |
#travel_agency ⇒ Object
The travel agency that issued the ticket.
190 191 192 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 190 def travel_agency @travel_agency end |