Class: Stripe::Issuing::TransactionCreateForceCaptureParams::PurchaseDetails::Flight
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Issuing::TransactionCreateForceCaptureParams::PurchaseDetails::Flight
- Defined in:
- lib/stripe/params/issuing/transaction_create_force_capture_params.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
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(departure_at: nil, passenger_name: nil, refundable: nil, segments: nil, travel_agency: nil) ⇒ Flight
Returns a new instance of Flight.
251 252 253 254 255 256 257 258 259 260 261 262 263 |
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 251 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.
241 242 243 |
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 241 def departure_at @departure_at end |
#passenger_name ⇒ Object
The name of the passenger.
243 244 245 |
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 243 def passenger_name @passenger_name end |
#refundable ⇒ Object
Whether the ticket is refundable.
245 246 247 |
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 245 def refundable @refundable end |
#segments ⇒ Object
The legs of the trip.
247 248 249 |
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 247 def segments @segments end |
#travel_agency ⇒ Object
The travel agency that issued the ticket.
249 250 251 |
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 249 def travel_agency @travel_agency end |