Package com.onfido.models
Class DrivingLicence
- java.lang.Object
-
- com.onfido.models.DrivingLicence
-
public final class DrivingLicence extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDrivingLicence.Request
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAddressLine1()Line 1 of the addressStringgetAddressLine2()Line 2 of the addressStringgetCity()The city of the owner's addressjava.time.LocalDategetDateOfBirth()Date of birth in yyyy-mm-dd formatStringgetDocumentCategory()Document category.java.time.LocalDategetExpirationDate()Expiration date of the driving licence in yyyy-mm-dd formatStringgetEyeColorCode()Eye color code.StringgetFirstName()The owner’s first nameStringgetGender()Gender.intgetHeightMeasureFeet()Height, feetintgetHeightMeasureInches()Height, inchesStringgetIdNumber()Driving licence ID numberjava.time.LocalDategetIssueDate()Issue date in yyyy-mm-dd formatStringgetLastName()The owner’s surnameStringgetMiddleName()The owner’s middle nameStringgetNameSuffix()The owner’s name suffixStringgetPostalCode()The postcode or ZIP of the owner’s addressStringgetState()The state of the owner's address.StringgetStateCode()Two letter code of issuing state (state-issued driving licenses only)intgetWeightMeasure()Weight in poundsinthashCode()static DrivingLicence.Requestrequest()StringtoString()
-
-
-
Method Detail
-
request
public static DrivingLicence.Request request()
-
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
-
-