Package com.adyen.model.balanceplatform
Class AccountSupportingEntityCapability
- java.lang.Object
-
- com.adyen.model.balanceplatform.AccountSupportingEntityCapability
-
public class AccountSupportingEntityCapability extends Object
AccountSupportingEntityCapability
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountSupportingEntityCapability.AllowedLevelEnumThe capability level that is allowed for the account holder.static classAccountSupportingEntityCapability.CustomTypeAdapterFactorystatic classAccountSupportingEntityCapability.RequestedLevelEnumThe requested level of the capability.static classAccountSupportingEntityCapability.VerificationStatusEnumThe status of the verification checks for the supporting entity capability.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ALLOWEDstatic StringSERIALIZED_NAME_ALLOWED_LEVELstatic StringSERIALIZED_NAME_ENABLEDstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_REQUESTEDstatic StringSERIALIZED_NAME_REQUESTED_LEVELstatic StringSERIALIZED_NAME_VERIFICATION_STATUS
-
Constructor Summary
Constructors Constructor Description AccountSupportingEntityCapability()AccountSupportingEntityCapability(Boolean allowed, AccountSupportingEntityCapability.AllowedLevelEnum allowedLevel, String id, AccountSupportingEntityCapability.VerificationStatusEnum verificationStatus)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountSupportingEntityCapabilityenabled(Boolean enabled)booleanequals(Object o)static AccountSupportingEntityCapabilityfromJson(String jsonString)Create an instance of AccountSupportingEntityCapability given an JSON stringBooleangetAllowed()Indicates whether the supporting entity capability is allowed.AccountSupportingEntityCapability.AllowedLevelEnumgetAllowedLevel()The capability level that is allowed for the account holder.BooleangetEnabled()Indicates whether the capability is enabled.StringgetId()The ID of the supporting entity.BooleangetRequested()Indicates whether the capability is requested.AccountSupportingEntityCapability.RequestedLevelEnumgetRequestedLevel()The requested level of the capability.AccountSupportingEntityCapability.VerificationStatusEnumgetVerificationStatus()The status of the verification checks for the supporting entity capability.inthashCode()AccountSupportingEntityCapabilityrequested(Boolean requested)AccountSupportingEntityCapabilityrequestedLevel(AccountSupportingEntityCapability.RequestedLevelEnum requestedLevel)voidsetEnabled(Boolean enabled)voidsetRequested(Boolean requested)voidsetRequestedLevel(AccountSupportingEntityCapability.RequestedLevelEnum requestedLevel)StringtoJson()Convert an instance of AccountSupportingEntityCapability 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_ALLOWED_LEVEL
public static final String SERIALIZED_NAME_ALLOWED_LEVEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLED
public static final String SERIALIZED_NAME_ENABLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUESTED
public static final String SERIALIZED_NAME_REQUESTED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUESTED_LEVEL
public static final String SERIALIZED_NAME_REQUESTED_LEVEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERIFICATION_STATUS
public static final String SERIALIZED_NAME_VERIFICATION_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AccountSupportingEntityCapability
public AccountSupportingEntityCapability()
-
AccountSupportingEntityCapability
public AccountSupportingEntityCapability(Boolean allowed, AccountSupportingEntityCapability.AllowedLevelEnum allowedLevel, String id, AccountSupportingEntityCapability.VerificationStatusEnum verificationStatus)
-
-
Method Detail
-
getAllowed
public Boolean getAllowed()
Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability.- Returns:
- allowed
-
getAllowedLevel
public AccountSupportingEntityCapability.AllowedLevelEnum getAllowedLevel()
The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**.- Returns:
- allowedLevel
-
enabled
public AccountSupportingEntityCapability enabled(Boolean enabled)
-
getEnabled
public Boolean getEnabled()
Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder.- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
getId
public String getId()
The ID of the supporting entity.- Returns:
- id
-
requested
public AccountSupportingEntityCapability requested(Boolean requested)
-
getRequested
public Boolean getRequested()
Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field.- Returns:
- requested
-
setRequested
public void setRequested(Boolean requested)
-
requestedLevel
public AccountSupportingEntityCapability requestedLevel(AccountSupportingEntityCapability.RequestedLevelEnum requestedLevel)
-
getRequestedLevel
public AccountSupportingEntityCapability.RequestedLevelEnum getRequestedLevel()
The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**.- Returns:
- requestedLevel
-
setRequestedLevel
public void setRequestedLevel(AccountSupportingEntityCapability.RequestedLevelEnum requestedLevel)
-
getVerificationStatus
public AccountSupportingEntityCapability.VerificationStatusEnum 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 AccountSupportingEntityCapability
-
fromJson
public static AccountSupportingEntityCapability fromJson(String jsonString) throws IOException
Create an instance of AccountSupportingEntityCapability given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountSupportingEntityCapability
- Throws:
IOException- if the JSON string is invalid with respect to AccountSupportingEntityCapability
-
toJson
public String toJson()
Convert an instance of AccountSupportingEntityCapability to an JSON string- Returns:
- JSON string
-
-