Class: Stripe::Issuing::AuthorizationCaptureParams::PurchaseDetails::Flight

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/issuing/authorization_capture_params.rb

Defined Under Namespace

Classes: Segment

Instance Attribute Summary collapse

Instance Method Summary collapse

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



191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 191

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_atObject

The time that the flight departed.



181
182
183
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 181

def departure_at
  @departure_at
end

#passenger_nameObject

The name of the passenger.



183
184
185
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 183

def passenger_name
  @passenger_name
end

#refundableObject

Whether the ticket is refundable.



185
186
187
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 185

def refundable
  @refundable
end

#segmentsObject

The legs of the trip.



187
188
189
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 187

def segments
  @segments
end

#travel_agencyObject

The travel agency that issued the ticket.



189
190
191
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 189

def travel_agency
  @travel_agency
end