Class LegalEntityCapability
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.LegalEntityCapability
-
public class LegalEntityCapability extends Object
LegalEntityCapability
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLegalEntityCapability.AllowedLevelEnumThe capability level that is allowed for the legal entity.static classLegalEntityCapability.RequestedLevelEnumThe requested level of the capability.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALLOWEDstatic StringJSON_PROPERTY_ALLOWED_LEVELstatic StringJSON_PROPERTY_ALLOWED_SETTINGSstatic StringJSON_PROPERTY_REQUESTEDstatic StringJSON_PROPERTY_REQUESTED_LEVELstatic StringJSON_PROPERTY_REQUESTED_SETTINGSstatic StringJSON_PROPERTY_TRANSFER_INSTRUMENTSstatic StringJSON_PROPERTY_VERIFICATION_STATUS
-
Constructor Summary
Constructors Constructor Description LegalEntityCapability()LegalEntityCapability(Boolean allowed, LegalEntityCapability.AllowedLevelEnum allowedLevel, Boolean requested, LegalEntityCapability.RequestedLevelEnum requestedLevel, List<SupportingEntityCapability> transferInstruments, String verificationStatus)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LegalEntityCapabilityallowedSettings(CapabilitySettings allowedSettings)allowedSettingsbooleanequals(Object o)Return true if this LegalEntityCapability object is equal to o.static LegalEntityCapabilityfromJson(String jsonString)Create an instance of LegalEntityCapability given an JSON stringBooleangetAllowed()Indicates whether the capability is allowed.LegalEntityCapability.AllowedLevelEnumgetAllowedLevel()The capability level that is allowed for the legal entity.CapabilitySettingsgetAllowedSettings()Get allowedSettingsMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.BooleangetRequested()Indicates whether the capability is requested.LegalEntityCapability.RequestedLevelEnumgetRequestedLevel()The requested level of the capability.CapabilitySettingsgetRequestedSettings()Get requestedSettingsList<SupportingEntityCapability>getTransferInstruments()The capability status of transfer instruments associated with the legal entity.StringgetVerificationStatus()The status of the verification checks for the capability.inthashCode()LegalEntityCapabilityincludeNullValues(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.LegalEntityCapabilityrequestedSettings(CapabilitySettings requestedSettings)requestedSettingsvoidsetAllowedSettings(CapabilitySettings allowedSettings)allowedSettingsvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetRequestedSettings(CapabilitySettings requestedSettings)requestedSettingsStringtoJson()Convert an instance of LegalEntityCapability to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ALLOWED
public static final String JSON_PROPERTY_ALLOWED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALLOWED_LEVEL
public static final String JSON_PROPERTY_ALLOWED_LEVEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALLOWED_SETTINGS
public static final String JSON_PROPERTY_ALLOWED_SETTINGS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUESTED
public static final String JSON_PROPERTY_REQUESTED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUESTED_LEVEL
public static final String JSON_PROPERTY_REQUESTED_LEVEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUESTED_SETTINGS
public static final String JSON_PROPERTY_REQUESTED_SETTINGS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSFER_INSTRUMENTS
public static final String JSON_PROPERTY_TRANSFER_INSTRUMENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VERIFICATION_STATUS
public static final String JSON_PROPERTY_VERIFICATION_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LegalEntityCapability
public LegalEntityCapability()
-
LegalEntityCapability
public LegalEntityCapability(Boolean allowed, LegalEntityCapability.AllowedLevelEnum allowedLevel, Boolean requested, LegalEntityCapability.RequestedLevelEnum requestedLevel, List<SupportingEntityCapability> transferInstruments, String verificationStatus)
-
-
Method Detail
-
getAllowed
public Boolean getAllowed()
Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful.- Returns:
- allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful.
-
getAllowedLevel
public LegalEntityCapability.AllowedLevelEnum getAllowedLevel()
The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**.- Returns:
- allowedLevel The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**.
-
allowedSettings
public LegalEntityCapability allowedSettings(CapabilitySettings allowedSettings)
allowedSettings- Parameters:
allowedSettings-- Returns:
- the current
LegalEntityCapabilityinstance, allowing for method chaining
-
getAllowedSettings
public CapabilitySettings getAllowedSettings()
Get allowedSettings- Returns:
- allowedSettings
-
setAllowedSettings
public void setAllowedSettings(CapabilitySettings allowedSettings)
allowedSettings- Parameters:
allowedSettings-
-
getRequested
public Boolean getRequested()
Indicates whether the capability is requested. To check whether the legal entity is permitted to use the capability, refer to the `allowed` field.- Returns:
- requested Indicates whether the capability is requested. To check whether the legal entity is permitted to use the capability, refer to the `allowed` field.
-
getRequestedLevel
public LegalEntityCapability.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 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**.
-
requestedSettings
public LegalEntityCapability requestedSettings(CapabilitySettings requestedSettings)
requestedSettings- Parameters:
requestedSettings-- Returns:
- the current
LegalEntityCapabilityinstance, allowing for method chaining
-
getRequestedSettings
public CapabilitySettings getRequestedSettings()
Get requestedSettings- Returns:
- requestedSettings
-
setRequestedSettings
public void setRequestedSettings(CapabilitySettings requestedSettings)
requestedSettings- Parameters:
requestedSettings-
-
getTransferInstruments
public List<SupportingEntityCapability> getTransferInstruments()
The capability status of transfer instruments associated with the legal entity.- Returns:
- transferInstruments The capability status of transfer instruments associated with the legal entity.
-
getVerificationStatus
public String getVerificationStatus()
The status of the verification checks for the 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 The status of the verification checks for the 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.
-
includeNullValues
public LegalEntityCapability 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 LegalEntityCapability 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 LegalEntityCapability fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of LegalEntityCapability given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LegalEntityCapability
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to LegalEntityCapability
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of LegalEntityCapability to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-