Passenger class abstract
Passenger
Properties:
- dateOfBirth - The passenger's date of birth. * Format
yyyy-MM-dd* minLength: 10 * maxLength: 10 * additionalData key:airline.passenger[N].date_of_birth - firstName - The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * additionalData key:
airline.passenger[N].first_name - lastName - The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * additionalData key:
airline.passenger[N].last_name - phoneNumber - The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * additionalData key:
airline.passenger[N].phone_number - travellerType - The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * additionalData key:
airline.passenger[N].traveller_type
- Annotations
-
- @BuiltValue.new()
Constructors
- Passenger([void updates(PassengerBuilder b)])
-
factory
Properties
- dateOfBirth → Date?
-
The passenger's date of birth. * Format
yyyy-MM-dd* minLength: 10 * maxLength: 10 * additionalData key:airline.passenger[N].date_of_birthno setter - firstName → String?
-
The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * additionalData key:
airline.passenger[N].first_nameno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- lastName → String?
-
The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * additionalData key:
airline.passenger[N].last_nameno setter - phoneNumber → String?
-
The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * additionalData key:
airline.passenger[N].phone_numberno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- travellerType → String?
-
The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * additionalData key:
airline.passenger[N].traveller_typeno setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(PassengerBuilder)) → Passenger -
Rebuilds the instance.
inherited
-
toBuilder(
) → PassengerBuilder -
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<
Passenger> -
no setter