Class TransferLimitsBalancePlatformLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.TransferLimitsBalancePlatformLevelApi
-
public class TransferLimitsBalancePlatformLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description TransferLimitsBalancePlatformLevelApi(Client client)Transfer limits - balance platform level constructor inpackage.TransferLimitsBalancePlatformLevelApi(Client client, String baseURL)Transfer limits - balance platform level constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferLimitcreateTransferLimit(String id, CreateTransferLimitRequest createTransferLimitRequest)Create a transfer limitTransferLimitcreateTransferLimit(String id, CreateTransferLimitRequest createTransferLimitRequest, RequestOptions requestOptions)Create a transfer limitvoiddeletePendingTransferLimit(String id, String transferLimitId)Delete a scheduled or pending transfer limitvoiddeletePendingTransferLimit(String id, String transferLimitId, RequestOptions requestOptions)Delete a scheduled or pending transfer limitTransferLimitgetSpecificTransferLimit(String id, String transferLimitId)Get the details of a transfer limitTransferLimitgetSpecificTransferLimit(String id, String transferLimitId, RequestOptions requestOptions)Get the details of a transfer limitTransferLimitListResponsegetTransferLimits(String id)Filter and view the transfer limitsTransferLimitListResponsegetTransferLimits(String id, Scope scope, TransferType transferType, LimitStatus status, RequestOptions requestOptions)Filter and view the transfer limits-
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
-
TransferLimitsBalancePlatformLevelApi
public TransferLimitsBalancePlatformLevelApi(Client client)
Transfer limits - balance platform level constructor inpackage.- Parameters:
client-Client(required)
-
TransferLimitsBalancePlatformLevelApi
public TransferLimitsBalancePlatformLevelApi(Client client, String baseURL)
Transfer limits - balance platform level 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
-
createTransferLimit
public TransferLimit createTransferLimit(String id, CreateTransferLimitRequest createTransferLimitRequest) throws ApiException, IOException
Create a transfer limit- Parameters:
id-StringThe unique identifier of the balance platform. (required)createTransferLimitRequest-CreateTransferLimitRequest(required)- Returns:
TransferLimit- Throws:
ApiException- if fails to make API callIOException
-
createTransferLimit
public TransferLimit createTransferLimit(String id, CreateTransferLimitRequest createTransferLimitRequest, RequestOptions requestOptions) throws ApiException, IOException
Create a transfer limit- Parameters:
id-StringThe unique identifier of the balance platform. (required)createTransferLimitRequest-CreateTransferLimitRequest(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
TransferLimit- Throws:
ApiException- if fails to make API callIOException
-
deletePendingTransferLimit
public void deletePendingTransferLimit(String id, String transferLimitId) throws ApiException, IOException
Delete a scheduled or pending transfer limit- Parameters:
id-StringThe unique identifier of the balance platform. (required)transferLimitId-StringThe unique identifier of the transfer limit. (required)- Throws:
ApiException- if fails to make API callIOException
-
deletePendingTransferLimit
public void deletePendingTransferLimit(String id, String transferLimitId, RequestOptions requestOptions) throws ApiException, IOException
Delete a scheduled or pending transfer limit- Parameters:
id-StringThe unique identifier of the balance platform. (required)transferLimitId-StringThe unique identifier of the transfer limit. (required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
getSpecificTransferLimit
public TransferLimit getSpecificTransferLimit(String id, String transferLimitId) throws ApiException, IOException
Get the details of a transfer limit- Parameters:
id-StringThe unique identifier of the balance platform. (required)transferLimitId-StringThe unique identifier of the transfer limit. (required)- Returns:
TransferLimit- Throws:
ApiException- if fails to make API callIOException
-
getSpecificTransferLimit
public TransferLimit getSpecificTransferLimit(String id, String transferLimitId, RequestOptions requestOptions) throws ApiException, IOException
Get the details of a transfer limit- Parameters:
id-StringThe unique identifier of the balance platform. (required)transferLimitId-StringThe unique identifier of the transfer limit. (required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
TransferLimit- Throws:
ApiException- if fails to make API callIOException
-
getTransferLimits
public TransferLimitListResponse getTransferLimits(String id) throws ApiException, IOException
Filter and view the transfer limits- Parameters:
id-StringThe unique identifier of the balance platform. (required)- Returns:
TransferLimitListResponse- Throws:
ApiException- if fails to make API callIOException
-
getTransferLimits
public TransferLimitListResponse getTransferLimits(String id, Scope scope, TransferType transferType, LimitStatus status, RequestOptions requestOptions) throws ApiException, IOException
Filter and view the transfer limits- Parameters:
id-StringThe unique identifier of the balance platform. (required)scope-ScopeQuery: The scope to which the transfer limit applies. Possible values: * **perTransaction**: you set a maximum amount for each transfer made from the balance account or balance platform. * **perDay**: you set a maximum total amount for all transfers made from the balance account or balance platform in a day. (optional)transferType-TransferTypeQuery: The type of transfer to which the limit applies. Possible values: * **instant**: the limit applies to transfers with an **instant** priority. * **all**: the limit applies to all transfers, regardless of priority. (optional)status-LimitStatusQuery: The status of the transfer limit. Possible values: * **active**: the limit is currently active. * **inactive**: the limit is currently inactive. * **pendingSCA**: the limit is pending until your user performs SCA. * **scheduled**: the limit is scheduled to become active at a future date. (optional)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
TransferLimitListResponse- Throws:
ApiException- if fails to make API callIOException
-
-