Class VerificationError
- java.lang.Object
-
- com.adyen.model.managementwebhooks.VerificationError
-
public class VerificationError extends Object
VerificationError
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVerificationError.TypeEnumThe type of verification error.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CODEstatic StringJSON_PROPERTY_MESSAGEstatic StringJSON_PROPERTY_REMEDIATING_ACTIONSstatic StringJSON_PROPERTY_SUB_ERRORSstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description VerificationError()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VerificationErroraddRemediatingActionsItem(RemediatingAction remediatingActionsItem)VerificationErroraddSubErrorsItem(VerificationErrorRecursive subErrorsItem)VerificationErrorcode(String code)The verification error code.booleanequals(Object o)Return true if this VerificationError object is equal to o.static VerificationErrorfromJson(String jsonString)Create an instance of VerificationError given an JSON stringStringgetCode()The verification error code.StringgetMessage()The verification error message.List<RemediatingAction>getRemediatingActions()The actions that you can take to resolve the verification error.List<VerificationErrorRecursive>getSubErrors()More granular information about the verification error.VerificationError.TypeEnumgetType()The type of verification error.inthashCode()VerificationErrormessage(String message)The verification error message.VerificationErrorremediatingActions(List<RemediatingAction> remediatingActions)The actions that you can take to resolve the verification error.voidsetCode(String code)The verification error code.voidsetMessage(String message)The verification error message.voidsetRemediatingActions(List<RemediatingAction> remediatingActions)The actions that you can take to resolve the verification error.voidsetSubErrors(List<VerificationErrorRecursive> subErrors)More granular information about the verification error.voidsetType(VerificationError.TypeEnum type)The type of verification error.VerificationErrorsubErrors(List<VerificationErrorRecursive> subErrors)More granular information about the verification error.StringtoJson()Convert an instance of VerificationError to an JSON stringStringtoString()VerificationErrortype(VerificationError.TypeEnum type)The type of verification error.
-
-
-
Field Detail
-
JSON_PROPERTY_CODE
public static final String JSON_PROPERTY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MESSAGE
public static final String JSON_PROPERTY_MESSAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REMEDIATING_ACTIONS
public static final String JSON_PROPERTY_REMEDIATING_ACTIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_ERRORS
public static final String JSON_PROPERTY_SUB_ERRORS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
code
public VerificationError code(String code)
The verification error code.- Parameters:
code-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
getCode
public String getCode()
The verification error code.- Returns:
- code
-
setCode
public void setCode(String code)
The verification error code.- Parameters:
code-
-
message
public VerificationError message(String message)
The verification error message.- Parameters:
message-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
getMessage
public String getMessage()
The verification error message.- Returns:
- message
-
setMessage
public void setMessage(String message)
The verification error message.- Parameters:
message-
-
remediatingActions
public VerificationError remediatingActions(List<RemediatingAction> remediatingActions)
The actions that you can take to resolve the verification error.- Parameters:
remediatingActions-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
addRemediatingActionsItem
public VerificationError addRemediatingActionsItem(RemediatingAction remediatingActionsItem)
-
getRemediatingActions
public List<RemediatingAction> getRemediatingActions()
The actions that you can take to resolve the verification error.- Returns:
- remediatingActions
-
setRemediatingActions
public void setRemediatingActions(List<RemediatingAction> remediatingActions)
The actions that you can take to resolve the verification error.- Parameters:
remediatingActions-
-
subErrors
public VerificationError subErrors(List<VerificationErrorRecursive> subErrors)
More granular information about the verification error.- Parameters:
subErrors-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
addSubErrorsItem
public VerificationError addSubErrorsItem(VerificationErrorRecursive subErrorsItem)
-
getSubErrors
public List<VerificationErrorRecursive> getSubErrors()
More granular information about the verification error.- Returns:
- subErrors
-
setSubErrors
public void setSubErrors(List<VerificationErrorRecursive> subErrors)
More granular information about the verification error.- Parameters:
subErrors-
-
type
public VerificationError type(VerificationError.TypeEnum type)
The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**.- Parameters:
type-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
getType
public VerificationError.TypeEnum getType()
The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**.- Returns:
- type
-
setType
public void setType(VerificationError.TypeEnum type)
The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this VerificationError object is equal to o.
-
fromJson
public static VerificationError fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of VerificationError given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VerificationError
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to VerificationError
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of VerificationError to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-