Class DeliveryContact
- java.lang.Object
-
- com.adyen.model.relayedauthorizationwebhooks.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_NAMEstatic StringJSON_PROPERTY_PHONEstatic 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 stringDeliveryAddressgetAddress()Get addressStringgetCompany()The company name of the contact.StringgetEmail()The email address of the contact.NamegetName()Get namePhonegetPhone()Get phoneStringgetWebAddress()The URL of the contact's website.inthashCode()DeliveryContactname(Name name)nameDeliveryContactphone(Phone phone)phonevoidsetAddress(DeliveryAddress address)addressvoidsetCompany(String company)The company name of the contact.voidsetEmail(String email)The email address of the contact.voidsetName(Name name)namevoidsetPhone(Phone phone)phonevoidsetWebAddress(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_NAME
public static final String JSON_PROPERTY_NAME
- 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 DeliveryContact address(DeliveryAddress address)
address- Parameters:
address-- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getAddress
public DeliveryAddress getAddress()
Get 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- The company name of the contact.- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getCompany
public String getCompany()
The company name of the contact.- Returns:
- company The company name of the contact.
-
setCompany
public void setCompany(String company)
The company name of the contact.- Parameters:
company- The company name of the contact.
-
email
public DeliveryContact email(String email)
The email address of the contact.- Parameters:
email- The email address of the contact.- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getEmail
public String getEmail()
The email address of the contact.- Returns:
- email The email address of the contact.
-
setEmail
public void setEmail(String email)
The email address of the contact.- Parameters:
email- The email address of the contact.
-
name
public DeliveryContact name(Name name)
name- Parameters:
name-- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getName
public Name getName()
Get name- Returns:
- name
-
setName
public void setName(Name name)
name- Parameters:
name-
-
phone
public DeliveryContact phone(Phone phone)
phone- Parameters:
phone-- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getPhone
public Phone getPhone()
Get phone- Returns:
- phone
-
setPhone
public void setPhone(Phone phone)
phone- Parameters:
phone-
-
webAddress
public DeliveryContact webAddress(String webAddress)
The URL of the contact's website.- Parameters:
webAddress- The URL of the contact's website.- Returns:
- the current
DeliveryContactinstance, allowing for method chaining
-
getWebAddress
public String getWebAddress()
The URL of the contact's website.- Returns:
- webAddress The URL of the contact's website.
-
setWebAddress
public void setWebAddress(String webAddress)
The URL of the contact's website.- Parameters:
webAddress- The URL of the contact's website.
-
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
-
-