Class PhoneNumber
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.PhoneNumber
-
public class PhoneNumber extends Object
PhoneNumber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhoneNumber.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NUMBERstatic StringSERIALIZED_NAME_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)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)voidsetType(String type)StringtoJson()Convert an instance of PhoneNumber to an JSON stringStringtoString()PhoneNumbertype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_NUMBER
public static final String SERIALIZED_NAME_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_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)
-
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)
-
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 PhoneNumber
-
fromJson
public static PhoneNumber fromJson(String jsonString) throws IOException
Create an instance of PhoneNumber given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PhoneNumber
- Throws:
IOException- if the JSON string is invalid with respect to PhoneNumber
-
toJson
public String toJson()
Convert an instance of PhoneNumber to an JSON string- Returns:
- JSON string
-
-