Class: Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Flight
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Flight
- Defined in:
- lib/stripe/services/test_helpers/issuing/authorization_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.
446 447 448 449 450 451 452 453 454 455 456 457 458 |
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 446 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.
436 437 438 |
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 436 def departure_at @departure_at end |
#passenger_name ⇒ Object
The name of the passenger.
438 439 440 |
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 438 def passenger_name @passenger_name end |
#refundable ⇒ Object
Whether the ticket is refundable.
440 441 442 |
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 440 def refundable @refundable end |
#segments ⇒ Object
The legs of the trip.
442 443 444 |
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 442 def segments @segments end |
#travel_agency ⇒ Object
The travel agency that issued the ticket.
444 445 446 |
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 444 def travel_agency @travel_agency end |