Class: Stripe::TestHelpers::Issuing::TransactionService::CreateForceCaptureParams::PurchaseDetails::Flight
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::TransactionService::CreateForceCaptureParams::PurchaseDetails::Flight
- Defined in:
- lib/stripe/services/test_helpers/issuing/transaction_service.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
Constructor Details
#initialize(departure_at: nil, passenger_name: nil, refundable: nil, segments: nil, travel_agency: nil) ⇒ Flight
Returns a new instance of Flight.
228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 228 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.
214 215 216 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 214 def departure_at @departure_at end |
#passenger_name ⇒ Object
The name of the passenger.
217 218 219 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 217 def passenger_name @passenger_name end |
#refundable ⇒ Object
Whether the ticket is refundable.
220 221 222 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 220 def refundable @refundable end |
#segments ⇒ Object
The legs of the trip.
223 224 225 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 223 def segments @segments end |
#travel_agency ⇒ Object
The travel agency that issued the ticket.
226 227 228 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 226 def travel_agency @travel_agency end |