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

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

Defined Under Namespace

Classes: Segment

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#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.



144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 144

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.



134
135
136
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 134

def departure_at
  @departure_at
end

#passenger_nameObject

The name of the passenger.



136
137
138
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 136

def passenger_name
  @passenger_name
end

#refundableObject

Whether the ticket is refundable.



138
139
140
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 138

def refundable
  @refundable
end

#segmentsObject

The legs of the trip.



140
141
142
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 140

def segments
  @segments
end

#travel_agencyObject

The travel agency that issued the ticket.



142
143
144
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 142

def travel_agency
  @travel_agency
end