Class SupportingEntityCapability
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.SupportingEntityCapability
-
public class SupportingEntityCapability extends Object
SupportingEntityCapability
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALLOWEDstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_REQUESTEDstatic StringJSON_PROPERTY_VERIFICATION_STATUS
-
Constructor Summary
Constructors Constructor Description SupportingEntityCapability()SupportingEntityCapability(Boolean allowed, String id, Boolean requested, String verificationStatus)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this SupportingEntityCapability object is equal to o.static SupportingEntityCapabilityfromJson(String jsonString)Create an instance of SupportingEntityCapability given an JSON stringBooleangetAllowed()Indicates whether the capability is allowed for the supporting entity.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetId()Supporting entity referenceBooleangetRequested()Indicates whether the supporting entity capability is requested.StringgetVerificationStatus()The status of the verification checks for the capability of the supporting entity.inthashCode()SupportingEntityCapabilityincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.StringtoJson()Convert an instance of SupportingEntityCapability to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ALLOWED
public static final String JSON_PROPERTY_ALLOWED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUESTED
public static final String JSON_PROPERTY_REQUESTED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VERIFICATION_STATUS
public static final String JSON_PROPERTY_VERIFICATION_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAllowed
public Boolean getAllowed()
Indicates whether the capability is allowed for the supporting entity. If a capability is allowed for a supporting entity but not for the parent legal entity, this means the legal entity has other supporting entities that failed verification. **You can use the allowed supporting entity** regardless of the verification status of other supporting entities.- Returns:
- allowed Indicates whether the capability is allowed for the supporting entity. If a capability is allowed for a supporting entity but not for the parent legal entity, this means the legal entity has other supporting entities that failed verification. **You can use the allowed supporting entity** regardless of the verification status of other supporting entities.
-
getId
public String getId()
Supporting entity reference- Returns:
- id Supporting entity reference
-
getRequested
public Boolean getRequested()
Indicates whether the supporting entity capability is requested.- Returns:
- requested Indicates whether the supporting entity capability is requested.
-
getVerificationStatus
public String getVerificationStatus()
The status of the verification checks for the capability of the supporting entity. 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 The status of the verification checks for the capability of the supporting entity. 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.
-
includeNullValues
public SupportingEntityCapability includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this SupportingEntityCapability object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static SupportingEntityCapability fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SupportingEntityCapability given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SupportingEntityCapability
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SupportingEntityCapability
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SupportingEntityCapability to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-