Package com.onfido.models
Class Consent.Request
- java.lang.Object
-
- com.onfido.models.Consent.Request
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetGranted()Flag to identify if the consent was granted.StringgetName()The name of the consentConsent.Requestgranted(Boolean granted)Flag to identify if the consent was granted.Consent.Requestname(String name)The name of the consentStringtoJson()StringtoString()
-
-
-
Method Detail
-
toJson
public String toJson()
-
name
public Consent.Request name(String name)
The name of the consent- Parameters:
name- The name of the consent- Returns:
- The Consent request object.
-
granted
public Consent.Request granted(Boolean granted)
Flag to identify if the consent was granted. If false the check creation will fail with a validation error.- Parameters:
granted- Flag to identify if the consent was granted. If false the check creation will fail with a validation error.- Returns:
- The Consent request object.
-
getName
public String getName()
The name of the consent- Returns:
- The name of the consent
-
getGranted
public Boolean getGranted()
Flag to identify if the consent was granted. If false the check creation will fail with a validation error.- Returns:
- Flag to identify if the consent was granted. If false the check creation will fail with a validation error.
-
-