Class ContactDetails
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.ContactDetails
-
public class ContactDetails extends Object
ContactDetails
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESSstatic StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_PHONEstatic StringJSON_PROPERTY_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)Return true if this ContactDetails object is equal to 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)addressvoidsetEmail(String email)The email address of the account holder.voidsetPhone(Phone phone)phonevoidsetWebAddress(String webAddress)The URL of the account holder's website.StringtoJson()Convert an instance of ContactDetails to an JSON stringStringtoString()ContactDetailswebAddress(String webAddress)
-
-
-
Field Detail
-
JSON_PROPERTY_ADDRESS
public static final String JSON_PROPERTY_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EMAIL
public static final String JSON_PROPERTY_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PHONE
public static final String JSON_PROPERTY_PHONE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WEB_ADDRESS
public static final String JSON_PROPERTY_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)
address- Parameters:
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)
The email address of the account holder.- Parameters:
email-
-
phone
public ContactDetails phone(Phone phone)
-
getPhone
public Phone getPhone()
Get phone- Returns:
- phone
-
setPhone
public void setPhone(Phone phone)
phone- Parameters:
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)
The URL of the account holder's website.- Parameters:
webAddress-
-
equals
public boolean equals(Object o)
Return true if this ContactDetails object is equal to o.
-
fromJson
public static ContactDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ContactDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ContactDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ContactDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ContactDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-