Leg class abstract
Leg
Properties:
- carrierCode - The IATA 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].carrier_code - classOfTravel - A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].class_of_travel - dateOfTravel - Date and time of travel in format
yyyy-MM-ddTHH:mm. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters * additionalData key:airline.leg[N].date_of_travel - departureAirportCode - The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].depart_airport - departureTax - The amount of departure tax charged, in minor units. * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. * additionalData key:
airline.leg[N].depart_tax - destinationAirportCode - The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].destination_code - fareBasisCode - The fare basis code, alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].fare_base_code - flightNumber - The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].flight_number - stopOverCode - A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * additionalData key:
airline.leg[N].stop_over_code
- Annotations
-
- @BuiltValue.new()
Constructors
- Leg([void updates(LegBuilder b)])
-
factory
Properties
- carrierCode → String?
-
The IATA 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].carrier_codeno setter - classOfTravel → String?
-
A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].class_of_travelno setter - dateOfTravel → DateTime?
-
Date and time of travel in format
yyyy-MM-ddTHH:mm. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters * additionalData key:airline.leg[N].date_of_travelno setter - departureAirportCode → String?
-
The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].depart_airportno setter - departureTax → int?
-
The amount of departure tax charged, in minor units. * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. * additionalData key:
airline.leg[N].depart_taxno setter - destinationAirportCode → String?
-
The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].destination_codeno setter - fareBasisCode → String?
-
The fare basis code, alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].fare_base_codeno setter - flightNumber → String?
-
The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. * additionalData key:
airline.leg[N].flight_numberno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stopOverCode → String?
-
A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * additionalData key:
airline.leg[N].stop_over_codeno setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(LegBuilder)) → Leg -
Rebuilds the instance.
inherited
-
toBuilder(
) → LegBuilder -
Converts the instance to a builder
B.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
Leg> -
no setter