Class Phone
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.Phone
-
public class Phone extends Object
Phone
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhone.TypeEnumType of phone number.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_NUMBERstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description Phone()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this Phone object is equal to o.static PhonefromJson(String jsonString)Create an instance of Phone given an JSON stringStringgetNumber()The full phone number provided as a single string.Phone.TypeEnumgetType()Type of phone number.inthashCode()Phonenumber(String number)voidsetNumber(String number)The full phone number provided as a single string.voidsetType(Phone.TypeEnum type)Type of phone number.StringtoJson()Convert an instance of Phone to an JSON stringStringtoString()Phonetype(Phone.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_NUMBER
public static final String JSON_PROPERTY_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNumber
public String getNumber()
The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**.- Returns:
- number
-
setNumber
public void setNumber(String number)
The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**.- Parameters:
number-
-
type
public Phone type(Phone.TypeEnum type)
-
getType
public Phone.TypeEnum getType()
Type of phone number. Possible values: **Landline**, **Mobile**.- Returns:
- type
-
setType
public void setType(Phone.TypeEnum type)
Type of phone number. Possible values: **Landline**, **Mobile**.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this Phone object is equal to o.
-
fromJson
public static Phone fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Phone given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Phone
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Phone
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Phone to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-