Class VerificationError
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.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 key-value pairs that specify the actions that the legal entity can do in your platform.VerificationErrorcode(String code)The general 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 key-value pairs that specify the actions that the legal entity can do in your platform.StringgetCode()The general error code.StringgetMessage()The general error message.List<RemediatingAction>getRemediatingActions()An object containing possible solutions to fix a verification error.List<VerificationErrorRecursive>getSubErrors()An array containing more granular information about the cause of the verification error.VerificationError.TypeEnumgetType()The type of error.inthashCode()VerificationErrormessage(String message)The general error message.VerificationErrorremediatingActions(List<RemediatingAction> remediatingActions)An object containing possible solutions to fix a verification error.voidsetCapabilities(List<VerificationError.CapabilitiesEnum> capabilities)Contains key-value pairs that specify the actions that the legal entity can do in your platform.voidsetCode(String code)The general error code.voidsetMessage(String message)The general error message.voidsetRemediatingActions(List<RemediatingAction> remediatingActions)An object containing possible solutions to fix a verification error.voidsetSubErrors(List<VerificationErrorRecursive> subErrors)An array containing more granular information about the cause of the verification error.voidsetType(VerificationError.TypeEnum type)The type of error.VerificationErrorsubErrors(List<VerificationErrorRecursive> subErrors)An array containing more granular information about the cause of 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 key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability.- Parameters:
capabilities-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
addCapabilitiesItem
public VerificationError addCapabilitiesItem(VerificationError.CapabilitiesEnum capabilitiesItem)
-
getCapabilities
public List<VerificationError.CapabilitiesEnum> getCapabilities()
Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability.- Returns:
- capabilities
-
setCapabilities
public void setCapabilities(List<VerificationError.CapabilitiesEnum> capabilities)
Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability.- Parameters:
capabilities-
-
code
public VerificationError code(String code)
The general error code.- Parameters:
code-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
getCode
public String getCode()
The general error code.- Returns:
- code
-
setCode
public void setCode(String code)
The general error code.- Parameters:
code-
-
message
public VerificationError message(String message)
The general error message.- Parameters:
message-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
getMessage
public String getMessage()
The general error message.- Returns:
- message
-
setMessage
public void setMessage(String message)
The general error message.- Parameters:
message-
-
remediatingActions
public VerificationError remediatingActions(List<RemediatingAction> remediatingActions)
An object containing possible solutions to fix a verification error.- Parameters:
remediatingActions-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
addRemediatingActionsItem
public VerificationError addRemediatingActionsItem(RemediatingAction remediatingActionsItem)
-
getRemediatingActions
public List<RemediatingAction> getRemediatingActions()
An object containing possible solutions to fix a verification error.- Returns:
- remediatingActions
-
setRemediatingActions
public void setRemediatingActions(List<RemediatingAction> remediatingActions)
An object containing possible solutions to fix a verification error.- Parameters:
remediatingActions-
-
subErrors
public VerificationError subErrors(List<VerificationErrorRecursive> subErrors)
An array containing more granular information about the cause of the verification error.- Parameters:
subErrors-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
addSubErrorsItem
public VerificationError addSubErrorsItem(VerificationErrorRecursive subErrorsItem)
-
getSubErrors
public List<VerificationErrorRecursive> getSubErrors()
An array containing more granular information about the cause of the verification error.- Returns:
- subErrors
-
setSubErrors
public void setSubErrors(List<VerificationErrorRecursive> subErrors)
An array containing more granular information about the cause of the verification error.- Parameters:
subErrors-
-
type
public VerificationError type(VerificationError.TypeEnum type)
The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview**- Parameters:
type-- Returns:
- the current
VerificationErrorinstance, allowing for method chaining
-
getType
public VerificationError.TypeEnum getType()
The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview**- Returns:
- type
-
setType
public void setType(VerificationError.TypeEnum type)
The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview**- 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
-
-