Class: Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams::PurchaseDetails::Flight

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/test_helpers/issuing/transaction_create_force_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

Returns a new instance of Flight.



252
253
254
255
256
257
258
259
260
261
262
263
264
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 252

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.



242
243
244
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 242

def departure_at
  @departure_at
end

#passenger_nameObject

The name of the passenger.



244
245
246
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 244

def passenger_name
  @passenger_name
end

#refundableObject

Whether the ticket is refundable.



246
247
248
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 246

def refundable
  @refundable
end

#segmentsObject

The legs of the trip.



248
249
250
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 248

def segments
  @segments
end

#travel_agencyObject

The travel agency that issued the ticket.



250
251
252
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 250

def travel_agency
  @travel_agency
end