Class: Stripe::Issuing::Transaction::CreateUnlinkedRefundParams::PurchaseDetails::Flight
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Issuing::Transaction::CreateUnlinkedRefundParams::PurchaseDetails::Flight
- Defined in:
- lib/stripe/resources/issuing/transaction.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.
902 903 904 905 906 907 908 909 910 911 912 913 914 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 902 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.
888 889 890 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 888 def departure_at @departure_at end |
#passenger_name ⇒ Object
The name of the passenger.
891 892 893 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 891 def passenger_name @passenger_name end |
#refundable ⇒ Object
Whether the ticket is refundable.
894 895 896 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 894 def refundable @refundable end |
#segments ⇒ Object
The legs of the trip.
897 898 899 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 897 def segments @segments end |
#travel_agency ⇒ Object
The travel agency that issued the ticket.
900 901 902 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 900 def travel_agency @travel_agency end |