Class Contact
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.Contact
-
public class Contact extends Object
Contact
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESSstatic StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_FULL_PHONE_NUMBERstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PERSONAL_DATAstatic StringJSON_PROPERTY_PHONE_NUMBERstatic StringJSON_PROPERTY_WEB_ADDRESS
-
Constructor Summary
Constructors Constructor Description Contact()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Contactaddress(Address address)Contactemail(String email)booleanequals(Object o)Return true if this Contact object is equal to o.static ContactfromJson(String jsonString)Create an instance of Contact given an JSON stringContactfullPhoneNumber(String fullPhoneNumber)AddressgetAddress()Get addressStringgetEmail()The e-mail address of the contact.StringgetFullPhoneNumber()The phone number of the contact provided as a single string.NamegetName()Get namePersonalDatagetPersonalData()Get personalDataPhoneNumbergetPhoneNumber()Get phoneNumberStringgetWebAddress()The URL of the website of the contact.inthashCode()Contactname(Name name)ContactpersonalData(PersonalData personalData)ContactphoneNumber(PhoneNumber phoneNumber)voidsetAddress(Address address)addressvoidsetEmail(String email)The e-mail address of the contact.voidsetFullPhoneNumber(String fullPhoneNumber)The phone number of the contact provided as a single string.voidsetName(Name name)namevoidsetPersonalData(PersonalData personalData)personalDatavoidsetPhoneNumber(PhoneNumber phoneNumber)phoneNumbervoidsetWebAddress(String webAddress)The URL of the website of the contact.StringtoJson()Convert an instance of Contact to an JSON stringStringtoString()ContactwebAddress(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_FULL_PHONE_NUMBER
public static final String JSON_PROPERTY_FULL_PHONE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PERSONAL_DATA
public static final String JSON_PROPERTY_PERSONAL_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PHONE_NUMBER
public static final String JSON_PROPERTY_PHONE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WEB_ADDRESS
public static final String JSON_PROPERTY_WEB_ADDRESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAddress
public Address getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(Address address)
address- Parameters:
address-
-
getEmail
public String getEmail()
The e-mail address of the contact.- Returns:
-
setEmail
public void setEmail(String email)
The e-mail address of the contact.- Parameters:
email-
-
getFullPhoneNumber
public String getFullPhoneNumber()
The phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"- Returns:
- fullPhoneNumber
-
setFullPhoneNumber
public void setFullPhoneNumber(String fullPhoneNumber)
The phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"- Parameters:
fullPhoneNumber-
-
getName
public Name getName()
Get name- Returns:
- name
-
setName
public void setName(Name name)
name- Parameters:
name-
-
personalData
public Contact personalData(PersonalData personalData)
-
getPersonalData
public PersonalData getPersonalData()
Get personalData- Returns:
- personalData
-
setPersonalData
public void setPersonalData(PersonalData personalData)
personalData- Parameters:
personalData-
-
phoneNumber
public Contact phoneNumber(PhoneNumber phoneNumber)
-
getPhoneNumber
public PhoneNumber getPhoneNumber()
Get phoneNumber- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(PhoneNumber phoneNumber)
phoneNumber- Parameters:
phoneNumber-
-
getWebAddress
public String getWebAddress()
The URL of the website of the contact.- Returns:
- webAddress
-
setWebAddress
public void setWebAddress(String webAddress)
The URL of the website of the contact.- Parameters:
webAddress-
-
equals
public boolean equals(Object o)
Return true if this Contact object is equal to o.
-
fromJson
public static Contact fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Contact given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Contact
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Contact
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Contact to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-