Class ScaAssociationManagementApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.ScaAssociationManagementApi
-
public class ScaAssociationManagementApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description ScaAssociationManagementApi(Client client)SCA association management constructor inpackage.ScaAssociationManagementApi(Client client, String baseURL)SCA association management constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApproveAssociationResponseapproveAssociation(ApproveAssociationRequest approveAssociationRequest)Approve a pending approval associationApproveAssociationResponseapproveAssociation(ApproveAssociationRequest approveAssociationRequest, RequestOptions requestOptions)Approve a pending approval associationListAssociationsResponselistAssociations(ScaEntityType entityType, String entityId, Integer pageSize, Integer pageNumber)Get a list of devices associated with an entityListAssociationsResponselistAssociations(ScaEntityType entityType, String entityId, Integer pageSize, Integer pageNumber, RequestOptions requestOptions)Get a list of devices associated with an entityvoidremoveAssociation(RemoveAssociationRequest removeAssociationRequest)Delete association to devicesvoidremoveAssociation(RemoveAssociationRequest removeAssociationRequest, RequestOptions requestOptions)Delete association to devices-
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
-
ScaAssociationManagementApi
public ScaAssociationManagementApi(Client client)
SCA association management constructor inpackage.- Parameters:
client-Client(required)
-
ScaAssociationManagementApi
public ScaAssociationManagementApi(Client client, String baseURL)
SCA association management constructor inpackage. Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant.
-
-
Method Detail
-
approveAssociation
public ApproveAssociationResponse approveAssociation(ApproveAssociationRequest approveAssociationRequest) throws ApiException, IOException
Approve a pending approval association- Parameters:
approveAssociationRequest-ApproveAssociationRequest(required)- Returns:
ApproveAssociationResponse- Throws:
ApiException- if fails to make API callIOException
-
approveAssociation
public ApproveAssociationResponse approveAssociation(ApproveAssociationRequest approveAssociationRequest, RequestOptions requestOptions) throws ApiException, IOException
Approve a pending approval association- Parameters:
approveAssociationRequest-ApproveAssociationRequest(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
ApproveAssociationResponse- Throws:
ApiException- if fails to make API callIOException
-
listAssociations
public ListAssociationsResponse listAssociations(ScaEntityType entityType, String entityId, Integer pageSize, Integer pageNumber) throws ApiException, IOException
Get a list of devices associated with an entity- Parameters:
entityType-ScaEntityTypeQuery: The type of entity you want to retrieve a list of associations for. Possible values: **accountHolder**, **legalEntity** or **paymentInstrument**. (required)entityId-StringQuery: The unique identifier of the entity. (required)pageSize-IntegerQuery: The number of items to have on a page. Default: **5**. (required)pageNumber-IntegerQuery: The index of the page to retrieve. The index of the first page is **0** (zero). Default: **0**. (required)- Returns:
ListAssociationsResponse- Throws:
ApiException- if fails to make API callIOException
-
listAssociations
public ListAssociationsResponse listAssociations(ScaEntityType entityType, String entityId, Integer pageSize, Integer pageNumber, RequestOptions requestOptions) throws ApiException, IOException
Get a list of devices associated with an entity- Parameters:
entityType-ScaEntityTypeQuery: The type of entity you want to retrieve a list of associations for. Possible values: **accountHolder**, **legalEntity** or **paymentInstrument**. (required)entityId-StringQuery: The unique identifier of the entity. (required)pageSize-IntegerQuery: The number of items to have on a page. Default: **5**. (required)pageNumber-IntegerQuery: The index of the page to retrieve. The index of the first page is **0** (zero). Default: **0**. (required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
ListAssociationsResponse- Throws:
ApiException- if fails to make API callIOException
-
removeAssociation
public void removeAssociation(RemoveAssociationRequest removeAssociationRequest) throws ApiException, IOException
Delete association to devices- Parameters:
removeAssociationRequest-RemoveAssociationRequest(required)- Throws:
ApiException- if fails to make API callIOException
-
removeAssociation
public void removeAssociation(RemoveAssociationRequest removeAssociationRequest, RequestOptions requestOptions) throws ApiException, IOException
Delete association to devices- Parameters:
removeAssociationRequest-RemoveAssociationRequest(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
-