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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(arrival_airport_code: nil, carrier: nil, departure_airport_code: nil, flight_number: nil, service_class: nil, stopover_allowed: nil) ⇒ Segment

Returns a new instance of Segment.



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 116

def initialize(
  arrival_airport_code: nil,
  carrier: nil,
  departure_airport_code: nil,
  flight_number: nil,
  service_class: nil,
  stopover_allowed: nil
)
  @arrival_airport_code = arrival_airport_code
  @carrier = carrier
  @departure_airport_code = departure_airport_code
  @flight_number = flight_number
  @service_class = service_class
  @stopover_allowed = stopover_allowed
end

Instance Attribute Details

#arrival_airport_codeObject

The three-letter IATA airport code of the flight’s destination.



104
105
106
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 104

def arrival_airport_code
  @arrival_airport_code
end

#carrierObject

The airline carrier code.



106
107
108
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 106

def carrier
  @carrier
end

#departure_airport_codeObject

The three-letter IATA airport code that the flight departed from.



108
109
110
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 108

def departure_airport_code
  @departure_airport_code
end

#flight_numberObject

The flight number.



110
111
112
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 110

def flight_number
  @flight_number
end

#service_classObject

The flight’s service class.



112
113
114
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 112

def service_class
  @service_class
end

#stopover_allowedObject

Whether a stopover is allowed on this flight.



114
115
116
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 114

def stopover_allowed
  @stopover_allowed
end