Package com.adyen.model.checkout
Class CommonField
- java.lang.Object
-
- com.adyen.model.checkout.CommonField
-
public class CommonField extends Object
CommonField
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommonField.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description CommonField()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CommonFieldfromJson(String jsonString)Create an instance of CommonField given an JSON stringStringgetName()Name of the field.StringgetVersion()Version of the field.inthashCode()CommonFieldname(String name)voidsetName(String name)voidsetVersion(String version)StringtoJson()Convert an instance of CommonField to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundCommonFieldversion(String version)
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION
public static final String SERIALIZED_NAME_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public CommonField name(String name)
-
getName
public String getName()
Name of the field. For example, Name of External Platform.- Returns:
- name
-
setName
public void setName(String name)
-
version
public CommonField version(String version)
-
getVersion
public String getVersion()
Version of the field. For example, Version of External Platform.- Returns:
- version
-
setVersion
public void setVersion(String version)
-
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 CommonField
-
fromJson
public static CommonField fromJson(String jsonString) throws IOException
Create an instance of CommonField given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CommonField
- Throws:
IOException- if the JSON string is invalid with respect to CommonField
-
toJson
public String toJson()
Convert an instance of CommonField to an JSON string- Returns:
- JSON string
-
-