Passenger class abstract

Passenger

Properties:

  • dateOfBirth - The passenger's date of birth. * Format yyyy-MM-dd * minLength: 10 * maxLength: 10
  • firstName - The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII
  • lastName - The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII
  • 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
  • travellerType - The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters
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
no setter
firstName String?
The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII
no 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
no 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
no 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
no 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