Class: Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Flight
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Flight
- Defined in:
- lib/stripe/resources/issuing/authorization.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.
769 770 771 772 773 774 775 776 777 778 779 780 781 |
# File 'lib/stripe/resources/issuing/authorization.rb', line 769 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.
759 760 761 |
# File 'lib/stripe/resources/issuing/authorization.rb', line 759 def departure_at @departure_at end |
#passenger_name ⇒ Object
The name of the passenger.
761 762 763 |
# File 'lib/stripe/resources/issuing/authorization.rb', line 761 def passenger_name @passenger_name end |
#refundable ⇒ Object
Whether the ticket is refundable.
763 764 765 |
# File 'lib/stripe/resources/issuing/authorization.rb', line 763 def refundable @refundable end |
#segments ⇒ Object
The legs of the trip.
765 766 767 |
# File 'lib/stripe/resources/issuing/authorization.rb', line 765 def segments @segments end |
#travel_agency ⇒ Object
The travel agency that issued the ticket.
767 768 769 |
# File 'lib/stripe/resources/issuing/authorization.rb', line 767 def travel_agency @travel_agency end |