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

#to_h

Constructor Details

#initialize(airport: nil, city: nil, country: nil, departs_at: nil) ⇒ Departure

Returns a new instance of Departure.



1093
1094
1095
1096
1097
1098
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1093

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.



1085
1086
1087
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1085

def airport
  @airport
end

#cityObject

Departure city.



1087
1088
1089
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1087

def city
  @city
end

#countryObject

Departure country.



1089
1090
1091
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1089

def country
  @country
end

#departs_atObject

Departure date/time.



1091
1092
1093
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1091

def departs_at
  @departs_at
end