Package com.adyen.model.balanceplatform
Class VerificationError
- java.lang.Object
-
- com.adyen.model.balanceplatform.VerificationError
-
public class VerificationError extends Object
VerificationError
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVerificationError.CapabilitiesEnumGets or Sets capabilitiesstatic classVerificationError.TypeEnumThe type of error.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CAPABILITIESstatic 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 VerificationErroraddCapabilitiesItem(VerificationError.CapabilitiesEnum capabilitiesItem)VerificationErroraddRemediatingActionsItem(RemediatingAction remediatingActionsItem)VerificationErroraddSubErrorsItem(VerificationErrorRecursive subErrorsItem)VerificationErrorcapabilities(List<VerificationError.CapabilitiesEnum> capabilities)Contains the capabilities that the verification error applies to.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 stringList<VerificationError.CapabilitiesEnum>getCapabilities()Contains the capabilities that the verification error applies to.StringgetCode()The verification error code.StringgetMessage()A description of the error.List<RemediatingAction>getRemediatingActions()Contains the actions that you can take to resolve the verification error.List<VerificationErrorRecursive>getSubErrors()Contains more granular information about the verification error.VerificationError.TypeEnumgetType()The type of error.inthashCode()VerificationErrormessage(String message)A description of the error.VerificationErrorremediatingActions(List<RemediatingAction> remediatingActions)Contains the actions that you can take to resolve the verification error.voidsetCapabilities(List<VerificationError.CapabilitiesEnum> capabilities)Contains the capabilities that the verification error applies to.voidsetCode(String code)The verification error code.voidsetMessage(String message)A description of the error.voidsetRemediatingActions(List<RemediatingAction> remediatingActions)Contains the actions that you can take to resolve the verification error.voidsetSubErrors(List<VerificationErrorRecursive> subErrors)Contains more granular information about the verification error.voidsetType(VerificationError.TypeEnum type)The type of error.VerificationErrorsubErrors(List<VerificationErrorRecursive> subErrors)Contains more granular information about the verification error.StringtoJson()Convert an instance of VerificationError to an JSON stringStringtoString()VerificationErrortype(VerificationError.TypeEnum type)The type of error.
-
-
-
Field Detail
-
JSON_PROPERTY_CAPABILITIES
public static final String JSON_PROPERTY_CAPABILITIES
- See Also:
- Constant Field Values
-
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
-
capabilities
public VerificationError capabilities(List<VerificationError.CapabilitiesEnum> capabilities)
Contains the capabilities that the verification error applies to.- Parameters:
capabilities-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
addCapabilitiesItem
public VerificationError addCapabilitiesItem(VerificationError.CapabilitiesEnum capabilitiesItem)
-
getCapabilities
public List<VerificationError.CapabilitiesEnum> getCapabilities()
Contains the capabilities that the verification error applies to.- Returns:
- capabilities
-
setCapabilities
public void setCapabilities(List<VerificationError.CapabilitiesEnum> capabilities)
Contains the capabilities that the verification error applies to.- Parameters:
capabilities-
-
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)
A description of the error.- Parameters:
message-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
getMessage
public String getMessage()
A description of the error.- Returns:
- message
-
setMessage
public void setMessage(String message)
A description of the error.- Parameters:
message-
-
remediatingActions
public VerificationError remediatingActions(List<RemediatingAction> remediatingActions)
Contains 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()
Contains the actions that you can take to resolve the verification error.- Returns:
- remediatingActions
-
setRemediatingActions
public void setRemediatingActions(List<RemediatingAction> remediatingActions)
Contains the actions that you can take to resolve the verification error.- Parameters:
remediatingActions-
-
subErrors
public VerificationError subErrors(List<VerificationErrorRecursive> subErrors)
Contains 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()
Contains more granular information about the verification error.- Returns:
- subErrors
-
setSubErrors
public void setSubErrors(List<VerificationErrorRecursive> subErrors)
Contains more granular information about the verification error.- Parameters:
subErrors-
-
type
public VerificationError type(VerificationError.TypeEnum type)
The type of error. Possible values: **invalidInput**, **dataMissing**.- Parameters:
type-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
getType
public VerificationError.TypeEnum getType()
The type of error. Possible values: **invalidInput**, **dataMissing**.- Returns:
- type
-
setType
public void setType(VerificationError.TypeEnum type)
The type of error. Possible values: **invalidInput**, **dataMissing**.- 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
-
-