Package com.adyen.model.balanceplatform
Class ContactDetails
- java.lang.Object
-
- com.adyen.model.balanceplatform.ContactDetails
-
public class ContactDetails extends Object
ContactDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContactDetails.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_PHONEstatic StringSERIALIZED_NAME_WEB_ADDRESS
-
Constructor Summary
Constructors Constructor Description ContactDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactDetailsaddress(Address address)ContactDetailsemail(String email)booleanequals(Object o)static ContactDetailsfromJson(String jsonString)Create an instance of ContactDetails given an JSON stringAddressgetAddress()Get addressStringgetEmail()The email address of the account holder.PhonegetPhone()Get phoneStringgetWebAddress()The URL of the account holder's website.inthashCode()ContactDetailsphone(Phone phone)voidsetAddress(Address address)voidsetEmail(String email)voidsetPhone(Phone phone)voidsetWebAddress(String webAddress)StringtoJson()Convert an instance of ContactDetails to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation)Validates the JSON Object and throws an exception if issues foundContactDetailswebAddress(String webAddress)
-
-
-
Field Detail
-
SERIALIZED_NAME_ADDRESS
public static final String SERIALIZED_NAME_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMAIL
public static final String SERIALIZED_NAME_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PHONE
public static final String SERIALIZED_NAME_PHONE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WEB_ADDRESS
public static final String SERIALIZED_NAME_WEB_ADDRESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public ContactDetails address(Address address)
-
getAddress
public Address getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(Address address)
-
email
public ContactDetails email(String email)
-
getEmail
public String getEmail()
The email address of the account holder.- Returns:
-
setEmail
public void setEmail(String email)
-
phone
public ContactDetails phone(Phone phone)
-
getPhone
public Phone getPhone()
Get phone- Returns:
- phone
-
setPhone
public void setPhone(Phone phone)
-
webAddress
public ContactDetails webAddress(String webAddress)
-
getWebAddress
public String getWebAddress()
The URL of the account holder's website.- Returns:
- webAddress
-
setWebAddress
public void setWebAddress(String webAddress)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException- Throws:
IOException
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON ObjectstrictValidation- reject (new) fields missing from the specifications- Throws:
IOException- if the JSON Object is invalid with respect to ContactDetails
-
fromJson
public static ContactDetails fromJson(String jsonString) throws IOException
Create an instance of ContactDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ContactDetails
- Throws:
IOException- if the JSON string is invalid with respect to ContactDetails
-
toJson
public String toJson()
Convert an instance of ContactDetails to an JSON string- Returns:
- JSON string
-
-