Class SupportingEntityCapability
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.SupportingEntityCapability
-
public class SupportingEntityCapability extends Object
SupportingEntityCapability
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSupportingEntityCapability.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ALLOWEDstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_PROBLEMSstatic StringSERIALIZED_NAME_REQUESTEDstatic StringSERIALIZED_NAME_VERIFICATION_STATUS
-
Constructor Summary
Constructors Constructor Description SupportingEntityCapability()SupportingEntityCapability(Boolean allowed, String id, List<CapabilityProblem> problems, Boolean requested, String verificationStatus)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static SupportingEntityCapabilityfromJson(String jsonString)Create an instance of SupportingEntityCapability given an JSON stringBooleangetAllowed()Indicates whether the supporting entity capability is allowed.StringgetId()Supporting entity referenceList<CapabilityProblem>getProblems()Contains verification errors and the actions that you can take to resolve them.BooleangetRequested()Indicates whether the supporting entity capability is requested.StringgetVerificationStatus()The status of the verification checks for the supporting entity capability.inthashCode()StringtoJson()Convert an instance of SupportingEntityCapability to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ALLOWED
public static final String SERIALIZED_NAME_ALLOWED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROBLEMS
public static final String SERIALIZED_NAME_PROBLEMS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUESTED
public static final String SERIALIZED_NAME_REQUESTED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERIFICATION_STATUS
public static final String SERIALIZED_NAME_VERIFICATION_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAllowed
public Boolean getAllowed()
Indicates whether the supporting entity capability is allowed. If a supporting entity is allowed but its parent legal entity is not, it means there are other supporting entities that failed validation. **The allowed supporting entity can still be used**- Returns:
- allowed
-
getId
public String getId()
Supporting entity reference- Returns:
- id
-
getProblems
public List<CapabilityProblem> getProblems()
Contains verification errors and the actions that you can take to resolve them.- Returns:
- problems
-
getRequested
public Boolean getRequested()
Indicates whether the supporting entity capability is requested.- Returns:
- requested
-
getVerificationStatus
public String getVerificationStatus()
The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability.- Returns:
- verificationStatus
-
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 SupportingEntityCapability
-
fromJson
public static SupportingEntityCapability fromJson(String jsonString) throws IOException
Create an instance of SupportingEntityCapability given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SupportingEntityCapability
- Throws:
IOException- if the JSON string is invalid with respect to SupportingEntityCapability
-
toJson
public String toJson()
Convert an instance of SupportingEntityCapability to an JSON string- Returns:
- JSON string
-
-