Class PhoneNumber
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.PhoneNumber
-
public class PhoneNumber extends Object
PhoneNumber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhoneNumber.PhoneTypeEnumThe type of the phone number.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_PHONE_COUNTRY_CODEstatic StringJSON_PROPERTY_PHONE_NUMBERstatic StringJSON_PROPERTY_PHONE_TYPE
-
Constructor Summary
Constructors Constructor Description PhoneNumber()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this PhoneNumber object is equal to o.static PhoneNumberfromJson(String jsonString)Create an instance of PhoneNumber given an JSON stringStringgetPhoneCountryCode()The two-character ISO-3166-1 alpha-2 country code of the phone number.StringgetPhoneNumber()The phone number.PhoneNumber.PhoneTypeEnumgetPhoneType()The type of the phone number.inthashCode()PhoneNumberphoneCountryCode(String phoneCountryCode)PhoneNumberphoneNumber(String phoneNumber)PhoneNumberphoneType(PhoneNumber.PhoneTypeEnum phoneType)voidsetPhoneCountryCode(String phoneCountryCode)The two-character ISO-3166-1 alpha-2 country code of the phone number.voidsetPhoneNumber(String phoneNumber)The phone number.voidsetPhoneType(PhoneNumber.PhoneTypeEnum phoneType)The type of the phone number.StringtoJson()Convert an instance of PhoneNumber to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PHONE_COUNTRY_CODE
public static final String JSON_PROPERTY_PHONE_COUNTRY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PHONE_NUMBER
public static final String JSON_PROPERTY_PHONE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PHONE_TYPE
public static final String JSON_PROPERTY_PHONE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
phoneCountryCode
public PhoneNumber phoneCountryCode(String phoneCountryCode)
-
getPhoneCountryCode
public String getPhoneCountryCode()
The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**.- Returns:
- phoneCountryCode
-
setPhoneCountryCode
public void setPhoneCountryCode(String phoneCountryCode)
The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**.- Parameters:
phoneCountryCode-
-
phoneNumber
public PhoneNumber phoneNumber(String phoneNumber)
-
getPhoneNumber
public String getPhoneNumber()
The phone number. The inclusion of the phone number country code is not necessary.- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(String phoneNumber)
The phone number. The inclusion of the phone number country code is not necessary.- Parameters:
phoneNumber-
-
phoneType
public PhoneNumber phoneType(PhoneNumber.PhoneTypeEnum phoneType)
-
getPhoneType
public PhoneNumber.PhoneTypeEnum getPhoneType()
The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**.- Returns:
- phoneType
-
setPhoneType
public void setPhoneType(PhoneNumber.PhoneTypeEnum phoneType)
The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**.- Parameters:
phoneType-
-
equals
public boolean equals(Object o)
Return true if this PhoneNumber object is equal to o.
-
fromJson
public static PhoneNumber fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PhoneNumber given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PhoneNumber
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PhoneNumber
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PhoneNumber to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-