Package com.adyen.model.balanceplatform
Class DeliveryContact
- java.lang.Object
-
- com.adyen.model.balanceplatform.DeliveryContact
-
public class DeliveryContact extends Object
DeliveryContact
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeliveryContact.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_FULL_PHONE_NUMBERstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PHONE_NUMBERstatic StringSERIALIZED_NAME_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)DeliveryContactemail(String email)booleanequals(Object o)static DeliveryContactfromJson(String jsonString)Create an instance of DeliveryContact given an JSON stringDeliveryContactfullPhoneNumber(String fullPhoneNumber)DeliveryAddressgetAddress()Get addressStringgetEmail()The email address of the contact.StringgetFullPhoneNumber()The full phone number of the contact provided as a single string.NamegetName()Get namePhoneNumbergetPhoneNumber()Get phoneNumberStringgetWebAddress()The URL of the contact's website.inthashCode()DeliveryContactname(Name name)DeliveryContactphoneNumber(PhoneNumber phoneNumber)voidsetAddress(DeliveryAddress address)voidsetEmail(String email)voidsetFullPhoneNumber(String fullPhoneNumber)voidsetName(Name name)voidsetPhoneNumber(PhoneNumber phoneNumber)voidsetWebAddress(String webAddress)StringtoJson()Convert an instance of DeliveryContact to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundDeliveryContactwebAddress(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_FULL_PHONE_NUMBER
public static final String SERIALIZED_NAME_FULL_PHONE_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PHONE_NUMBER
public static final String SERIALIZED_NAME_PHONE_NUMBER
- 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 DeliveryContact address(DeliveryAddress address)
-
getAddress
public DeliveryAddress getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(DeliveryAddress address)
-
email
public DeliveryContact email(String email)
-
getEmail
public String getEmail()
The email address of the contact.- Returns:
-
setEmail
public void setEmail(String email)
-
fullPhoneNumber
public DeliveryContact fullPhoneNumber(String fullPhoneNumber)
-
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)
-
name
public DeliveryContact name(Name name)
-
getName
public Name getName()
Get name- Returns:
- name
-
setName
public void setName(Name name)
-
phoneNumber
public DeliveryContact phoneNumber(PhoneNumber phoneNumber)
-
getPhoneNumber
public PhoneNumber getPhoneNumber()
Get phoneNumber- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(PhoneNumber phoneNumber)
-
webAddress
public DeliveryContact webAddress(String webAddress)
-
getWebAddress
public String getWebAddress()
The URL of the contact's website.- Returns:
- webAddress
-
setWebAddress
public void setWebAddress(String webAddress)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to DeliveryContact
-
fromJson
public static DeliveryContact fromJson(String jsonString) throws IOException
Create an instance of DeliveryContact given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DeliveryContact
- Throws:
IOException- if the JSON string is invalid with respect to DeliveryContact
-
toJson
public String toJson()
Convert an instance of DeliveryContact to an JSON string- Returns:
- JSON string
-
-