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.
200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 200 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.
190 191 192 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 190 def departure_at @departure_at end |
#passenger_name ⇒ Object
The name of the passenger.
192 193 194 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 192 def passenger_name @passenger_name end |
#refundable ⇒ Object
Whether the ticket is refundable.
194 195 196 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 194 def refundable @refundable end |
#segments ⇒ Object
The legs of the trip.
196 197 198 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 196 def segments @segments end |
#travel_agency ⇒ Object
The travel agency that issued the ticket.
198 199 200 |
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 198 def travel_agency @travel_agency end |