Class PhoneNumber
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.PhoneNumber
-
public class PhoneNumber extends Object
PhoneNumber
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_NUMBERstatic StringJSON_PROPERTY_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 stringStringgetNumber()The full phone number, including the country code.StringgetType()The type of phone number.inthashCode()PhoneNumbernumber(String number)voidsetNumber(String number)The full phone number, including the country code.voidsetType(String type)The type of phone number.StringtoJson()Convert an instance of PhoneNumber to an JSON stringStringtoString()PhoneNumbertype(String 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
-
number
public PhoneNumber number(String number)
-
getNumber
public String getNumber()
The full phone number, including the country code. For example, **+3112345678**.- Returns:
- number
-
setNumber
public void setNumber(String number)
The full phone number, including the country code. For example, **+3112345678**.- Parameters:
number-
-
type
public PhoneNumber type(String type)
-
getType
public String getType()
The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.**- Returns:
- type
-
setType
public void setType(String type)
The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.**- Parameters:
type-
-
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
-
-