Class DeliveryContact
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.DeliveryContact
-
public class DeliveryContact extends Object
DeliveryContact
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESSstatic StringJSON_PROPERTY_COMPANYstatic StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_FULL_PHONE_NUMBERstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PHONE_NUMBERstatic StringJSON_PROPERTY_WEB_ADDRESS
-
Constructor Summary
Constructors Constructor Description DeliveryContact()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeliveryContactaddress(DeliveryAddress address)addressDeliveryContactcompany(String company)The company name of the contact.DeliveryContactemail(String email)The email address of the contact.booleanequals(Object o)Return true if this DeliveryContact object is equal to o.static DeliveryContactfromJson(String jsonString)Create an instance of DeliveryContact given an JSON stringDeliveryContactfullPhoneNumber(String fullPhoneNumber)The full phone number of the contact provided as a single string.DeliveryAddressgetAddress()addressStringgetCompany()The company name of the contact.StringgetEmail()The email address of the contact.StringgetFullPhoneNumber()The full phone number of the contact provided as a single string.NamegetName()namePhoneNumbergetPhoneNumber()phoneNumberStringgetWebAddress()The URL of the contact's website.inthashCode()DeliveryContactname(Name name)nameDeliveryContactphoneNumber(PhoneNumber phoneNumber)phoneNumbervoidsetAddress(DeliveryAddress address)addressvoidsetCompany(String company)The company name of the contact.voidsetEmail(String email)The email address of the contact.voidsetFullPhoneNumber(String fullPhoneNumber)The full phone number of the contact provided as a single string.voidsetName(Name name)namevoidsetPhoneNumber(PhoneNumber phoneNumber)phoneNumbervoidsetWebAddress(String webAddress)The URL of the contact's website.StringtoJson()Convert an instance of DeliveryContact to an JSON stringStringtoString()DeliveryContactwebAddress(String webAddress)The URL of the contact's website.
-
-
-
Field Detail
-
JSON_PROPERTY_ADDRESS
public static final String JSON_PROPERTY_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPANY
public static final String JSON_PROPERTY_COMPANY
- 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_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
-
address
public DeliveryContact address(DeliveryAddress address)
address- Parameters:
address-- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getAddress
public DeliveryAddress getAddress()
address- Returns:
- address
-
setAddress
public void setAddress(DeliveryAddress address)
address- Parameters:
address-
-
company
public DeliveryContact company(String company)
The company name of the contact.- Parameters:
company-- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getCompany
public String getCompany()
The company name of the contact.- Returns:
- company
-
setCompany
public void setCompany(String company)
The company name of the contact.- Parameters:
company-
-
email
public DeliveryContact email(String email)
The email address of the contact.- Parameters:
email-- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getEmail
public String getEmail()
The email address of the contact.- Returns:
-
setEmail
public void setEmail(String email)
The email address of the contact.- Parameters:
email-
-
fullPhoneNumber
public DeliveryContact fullPhoneNumber(String fullPhoneNumber)
The full 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-- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getFullPhoneNumber
public String getFullPhoneNumber()
The full 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 full 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-
-
name
public DeliveryContact name(Name name)
name- Parameters:
name-- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getName
public Name getName()
name- Returns:
- name
-
setName
public void setName(Name name)
name- Parameters:
name-
-
phoneNumber
public DeliveryContact phoneNumber(PhoneNumber phoneNumber)
phoneNumber- Parameters:
phoneNumber-- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getPhoneNumber
public PhoneNumber getPhoneNumber()
phoneNumber- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(PhoneNumber phoneNumber)
phoneNumber- Parameters:
phoneNumber-
-
webAddress
public DeliveryContact webAddress(String webAddress)
The URL of the contact's website.- Parameters:
webAddress-- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getWebAddress
public String getWebAddress()
The URL of the contact's website.- Returns:
- webAddress
-
setWebAddress
public void setWebAddress(String webAddress)
The URL of the contact's website.- Parameters:
webAddress-
-
equals
public boolean equals(Object o)
Return true if this DeliveryContact object is equal to o.
-
fromJson
public static DeliveryContact fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DeliveryContact given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DeliveryContact
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DeliveryContact
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DeliveryContact to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-