Package com.adyen.model.balanceplatform
Class Authentication
- java.lang.Object
-
- com.adyen.model.balanceplatform.Authentication
-
public class Authentication extends Object
Authentication
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthentication.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_PASSWORDstatic StringSERIALIZED_NAME_PHONE
-
Constructor Summary
Constructors Constructor Description Authentication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Authenticationemail(String email)booleanequals(Object o)static AuthenticationfromJson(String jsonString)Create an instance of Authentication given an JSON stringStringgetEmail()The email address where the one-time password (OTP) is sent.StringgetPassword()The password used for 3D Secure password-based authentication.PhonegetPhone()Get phoneinthashCode()Authenticationpassword(String password)Authenticationphone(Phone phone)voidsetEmail(String email)voidsetPassword(String password)voidsetPhone(Phone phone)StringtoJson()Convert an instance of Authentication to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_EMAIL
public static final String SERIALIZED_NAME_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PASSWORD
public static final String SERIALIZED_NAME_PASSWORD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PHONE
public static final String SERIALIZED_NAME_PHONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
email
public Authentication email(String email)
-
getEmail
public String getEmail()
The email address where the one-time password (OTP) is sent.- Returns:
-
setEmail
public void setEmail(String email)
-
password
public Authentication password(String password)
-
getPassword
public String getPassword()
The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó**- Returns:
- password
-
setPassword
public void setPassword(String password)
-
phone
public Authentication phone(Phone phone)
-
getPhone
public Phone getPhone()
Get phone- Returns:
- phone
-
setPhone
public void setPhone(Phone phone)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Authentication
-
fromJson
public static Authentication fromJson(String jsonString) throws IOException
Create an instance of Authentication given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Authentication
- Throws:
IOException- if the JSON string is invalid with respect to Authentication
-
toJson
public String toJson()
Convert an instance of Authentication to an JSON string- Returns:
- JSON string
-
-