Package com.adyen.model.transfers
Class InvalidField
- java.lang.Object
-
- com.adyen.model.transfers.InvalidField
-
public class InvalidField extends Object
InvalidField
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvalidField.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description InvalidField()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static InvalidFieldfromJson(String jsonString)Create an instance of InvalidField given an JSON stringStringgetMessage()Description of the validation error.StringgetName()The field that has an invalid value.StringgetValue()The invalid value.inthashCode()InvalidFieldmessage(String message)InvalidFieldname(String name)voidsetMessage(String message)voidsetName(String name)voidsetValue(String value)StringtoJson()Convert an instance of InvalidField to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundInvalidFieldvalue(String value)
-
-
-
Field Detail
-
SERIALIZED_NAME_MESSAGE
public static final String SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
message
public InvalidField message(String message)
-
getMessage
public String getMessage()
Description of the validation error.- Returns:
- message
-
setMessage
public void setMessage(String message)
-
name
public InvalidField name(String name)
-
getName
public String getName()
The field that has an invalid value.- Returns:
- name
-
setName
public void setName(String name)
-
value
public InvalidField value(String value)
-
getValue
public String getValue()
The invalid value.- Returns:
- value
-
setValue
public void setValue(String value)
-
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 InvalidField
-
fromJson
public static InvalidField fromJson(String jsonString) throws IOException
Create an instance of InvalidField given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InvalidField
- Throws:
IOException- if the JSON string is invalid with respect to InvalidField
-
toJson
public String toJson()
Convert an instance of InvalidField to an JSON string- Returns:
- JSON string
-
-