Class DrivingLicence


  • public final class DrivingLicence
    extends Object
    • Method Detail

      • getIdNumber

        public String getIdNumber()
        Driving licence ID number
        Returns:
        Driving licence ID number
      • getStateCode

        public String getStateCode()
        Two letter code of issuing state (state-issued driving licenses only)
        Returns:
        Two letter code of issuing state (state-issued driving licenses only)
      • getAddressLine1

        public String getAddressLine1()
        Line 1 of the address
        Returns:
        Line 1 of the address
      • getAddressLine2

        public String getAddressLine2()
        Line 2 of the address
        Returns:
        Line 2 of the address
      • getCity

        public String getCity()
        The city of the owner's address
        Returns:
        The city of the owner's address
      • getDateOfBirth

        public java.time.LocalDate getDateOfBirth()
        Date of birth in yyyy-mm-dd format
        Returns:
        Date of birth in yyyy-mm-dd format
      • getDocumentCategory

        public String getDocumentCategory()
        Document category. One of {"driver license", "driver permit", "id card"}
        Returns:
        Document category. One of {"driver license", "driver permit", "id card"}
      • getExpirationDate

        public java.time.LocalDate getExpirationDate()
        Expiration date of the driving licence in yyyy-mm-dd format
        Returns:
        Expiration date of the driving licence in yyyy-mm-dd format
      • getEyeColorCode

        public String getEyeColorCode()
        Eye color code. One of {"BLK", "BLU", "BRO", "DIC", "GRY", "GRN", "HAZ", "MAR", "PNK"}
        Returns:
        Eye color code. One of {"BLK", "BLU", "BRO", "DIC", "GRY", "GRN", "HAZ", "MAR", "PNK"}
      • getFirstName

        public String getFirstName()
        The owner’s first name
        Returns:
        The owner’s first name
      • getGender

        public String getGender()
        Gender. Valid values are Male and Female.
        Returns:
        Gender. Valid values are Male and Female.
      • getHeightMeasureFeet

        public int getHeightMeasureFeet()
        Height, feet
        Returns:
        Height, feet
      • getHeightMeasureInches

        public int getHeightMeasureInches()
        Height, inches
        Returns:
        Height, inches
      • getIssueDate

        public java.time.LocalDate getIssueDate()
        Issue date in yyyy-mm-dd format
        Returns:
        Issue date in yyyy-mm-dd format
      • getLastName

        public String getLastName()
        The owner’s surname
        Returns:
        The owner’s surname
      • getMiddleName

        public String getMiddleName()
        The owner’s middle name
        Returns:
        The owner’s middle name
      • getNameSuffix

        public String getNameSuffix()
        The owner’s name suffix
        Returns:
        The owner’s name suffix
      • getPostalCode

        public String getPostalCode()
        The postcode or ZIP of the owner’s address
        Returns:
        The postcode or ZIP of the owner’s address
      • getState

        public String getState()
        The state of the owner's address. US states must use the USPS abbreviation, e.g. AK, CA, or TX.
        Returns:
        The state of the owner's address. US states must use the USPS abbreviation, e.g. AK, CA, or TX.
      • getWeightMeasure

        public int getWeightMeasure()
        Weight in pounds
        Returns:
        Weight in pounds
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object