Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::FlightDatum::Segment::Departure

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

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(airport: nil, city: nil, country: nil, departs_at: nil) ⇒ Departure

Returns a new instance of Departure.



1233
1234
1235
1236
1237
1238
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1233

def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
  @airport = airport
  @city = city
  @country = country
  @departs_at = departs_at
end

Instance Attribute Details

#airportObject

Departure airport IATA code.



1225
1226
1227
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1225

def airport
  @airport
end

#cityObject

Departure city.



1227
1228
1229
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1227

def city
  @city
end

#countryObject

Departure country.



1229
1230
1231
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1229

def country
  @country
end

#departs_atObject

Departure date/time.



1231
1232
1233
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1231

def departs_at
  @departs_at
end