class

Stripe::FlightSegmentSpecs

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constants

MAX_LENGTH_FOR_ARRIVAL_AIRPORT_CODE = 3
MAX_LENGTH_FOR_CARRIER = 5000
MAX_LENGTH_FOR_DEPARTURE_AIRPORT_CODE = 3
MAX_LENGTH_FOR_FLIGHT_NUMBER = 5000
MAX_LENGTH_FOR_SERVICE_CLASS = 5000

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, arrival_airport_code : String | Nil = nil, carrier : String | Nil = nil, departure_airport_code : String | Nil = nil, flight_number : String | Nil = nil, service_class : String | Nil = nil, stopover_allowed : Bool | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

arrival_airport_code

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

Source
arrival_airport_code=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] arrival_airport_code Object to be assigned

Source
carrier

The airline carrier code.

Source
carrier=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] carrier Object to be assigned

Source
departure_airport_code

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

Source
departure_airport_code=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] departure_airport_code Object to be assigned

Source
flight_number

The flight number.

Source
flight_number=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] flight_number Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
service_class

The flight's service class.

Source
service_class=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] service_class Object to be assigned

Source
stopover_allowed

Whether a stopover is allowed on this flight.

Source
stopover_allowed=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] stopover_allowed Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source