Class LegalEntitiesApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.legalentitymanagement.LegalEntitiesApi
-
public class LegalEntitiesApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description LegalEntitiesApi(Client client)Legal entities constructor inpackage.LegalEntitiesApi(Client client, String baseURL)Legal entities constructor inpackage.
-
Method Summary
-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
LegalEntitiesApi
public LegalEntitiesApi(Client client)
Legal entities constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
checkLegalEntitysVerificationErrors
public VerificationErrors checkLegalEntitysVerificationErrors(String id) throws ApiException, IOException
Check a legal entity's verification errors- Parameters:
id-StringThe unique identifier of the legal entity. (required)- Returns:
VerificationErrors- Throws:
ApiException- if fails to make API callIOException
-
checkLegalEntitysVerificationErrors
public VerificationErrors checkLegalEntitysVerificationErrors(String id, RequestOptions requestOptions) throws ApiException, IOException
Check a legal entity's verification errors- Parameters:
id-StringThe unique identifier of the legal entity. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
VerificationErrors- Throws:
ApiException- if fails to make API callIOException
-
confirmDataReview
public DataReviewConfirmationResponse confirmDataReview(String id) throws ApiException, IOException
Confirm data review- Parameters:
id-StringThe unique identifier of the legal entity. (required)- Returns:
DataReviewConfirmationResponse- Throws:
ApiException- if fails to make API callIOException
-
confirmDataReview
public DataReviewConfirmationResponse confirmDataReview(String id, RequestOptions requestOptions) throws ApiException, IOException
Confirm data review- Parameters:
id-StringThe unique identifier of the legal entity. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
DataReviewConfirmationResponse- Throws:
ApiException- if fails to make API callIOException
-
createLegalEntity
public LegalEntity createLegalEntity(LegalEntityInfoRequiredType legalEntityInfoRequiredType) throws ApiException, IOException
Create a legal entity- Parameters:
legalEntityInfoRequiredType-LegalEntityInfoRequiredType(required)- Returns:
LegalEntity- Throws:
ApiException- if fails to make API callIOException
-
createLegalEntity
public LegalEntity createLegalEntity(LegalEntityInfoRequiredType legalEntityInfoRequiredType, RequestOptions requestOptions) throws ApiException, IOException
Create a legal entity- Parameters:
legalEntityInfoRequiredType-LegalEntityInfoRequiredType(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
LegalEntity- Throws:
ApiException- if fails to make API callIOException
-
getAllBusinessLinesUnderLegalEntity
public BusinessLines getAllBusinessLinesUnderLegalEntity(String id) throws ApiException, IOException
Get all business lines under a legal entity- Parameters:
id-StringThe unique identifier of the legal entity. (required)- Returns:
BusinessLines- Throws:
ApiException- if fails to make API callIOException
-
getAllBusinessLinesUnderLegalEntity
public BusinessLines getAllBusinessLinesUnderLegalEntity(String id, RequestOptions requestOptions) throws ApiException, IOException
Get all business lines under a legal entity- Parameters:
id-StringThe unique identifier of the legal entity. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
BusinessLines- Throws:
ApiException- if fails to make API callIOException
-
getLegalEntity
public LegalEntity getLegalEntity(String id) throws ApiException, IOException
Get a legal entity- Parameters:
id-StringThe unique identifier of the legal entity. (required)- Returns:
LegalEntity- Throws:
ApiException- if fails to make API callIOException
-
getLegalEntity
public LegalEntity getLegalEntity(String id, RequestOptions requestOptions) throws ApiException, IOException
Get a legal entity- Parameters:
id-StringThe unique identifier of the legal entity. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
LegalEntity- Throws:
ApiException- if fails to make API callIOException
-
updateLegalEntity
public LegalEntity updateLegalEntity(String id, LegalEntityInfo legalEntityInfo) throws ApiException, IOException
Update a legal entity- Parameters:
id-StringThe unique identifier of the legal entity. (required)legalEntityInfo-LegalEntityInfo(required)- Returns:
LegalEntity- Throws:
ApiException- if fails to make API callIOException
-
updateLegalEntity
public LegalEntity updateLegalEntity(String id, LegalEntityInfo legalEntityInfo, RequestOptions requestOptions) throws ApiException, IOException
Update a legal entity- Parameters:
id-StringThe unique identifier of the legal entity. (required)legalEntityInfo-LegalEntityInfo(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
LegalEntity- Throws:
ApiException- if fails to make API callIOException
-
-