Package com.adyen.model.payment
Class Phone
- java.lang.Object
-
- com.adyen.model.payment.Phone
-
public class Phone extends Object
Phone
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhone.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CCstatic StringSERIALIZED_NAME_SUBSCRIBER
-
Constructor Summary
Constructors Constructor Description Phone()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Phonecc(String cc)booleanequals(Object o)static PhonefromJson(String jsonString)Create an instance of Phone given an JSON stringStringgetCc()Country code.StringgetSubscriber()Subscriber number.inthashCode()voidsetCc(String cc)voidsetSubscriber(String subscriber)Phonesubscriber(String subscriber)StringtoJson()Convert an instance of Phone to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CC
public static final String SERIALIZED_NAME_CC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBSCRIBER
public static final String SERIALIZED_NAME_SUBSCRIBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCc
public String getCc()
Country code. Length: 1–3 characters.- Returns:
- cc
-
setCc
public void setCc(String cc)
-
getSubscriber
public String getSubscriber()
Subscriber number. Maximum length: 15 characters.- Returns:
- subscriber
-
setSubscriber
public void setSubscriber(String subscriber)
-
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 Phone
-
fromJson
public static Phone fromJson(String jsonString) throws IOException
Create an instance of Phone given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Phone
- Throws:
IOException- if the JSON string is invalid with respect to Phone
-
toJson
public String toJson()
Convert an instance of Phone to an JSON string- Returns:
- JSON string
-
-