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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerificationErrorscheckLegalEntitysVerificationErrors(String id)Check a legal entity's verification errorsVerificationErrorscheckLegalEntitysVerificationErrors(String id, RequestOptions requestOptions)Check a legal entity's verification errorsLegalEntitycreateLegalEntity(LegalEntityInfoRequiredType legalEntityInfoRequiredType)Create a legal entityLegalEntitycreateLegalEntity(LegalEntityInfoRequiredType legalEntityInfoRequiredType, RequestOptions requestOptions)Create a legal entityBusinessLinesgetAllBusinessLinesUnderLegalEntity(String id)Get all business lines under a legal entityBusinessLinesgetAllBusinessLinesUnderLegalEntity(String id, RequestOptions requestOptions)Get all business lines under a legal entityLegalEntitygetLegalEntity(String id)Get a legal entityLegalEntitygetLegalEntity(String id, RequestOptions requestOptions)Get a legal entityLegalEntityupdateLegalEntity(String id, LegalEntityInfo legalEntityInfo)Update a legal entityLegalEntityupdateLegalEntity(String id, LegalEntityInfo legalEntityInfo, RequestOptions requestOptions)Update a legal entity-
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
-
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
-
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
-
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
-
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
-
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
-
-