Class BalancesApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.BalancesApi
-
public class BalancesApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description BalancesApi(Client client)Balances constructor inpackage.BalancesApi(Client client, String baseURL)Balances constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookSettingcreateWebhookSetting(String balancePlatformId, String webhookId, BalanceWebhookSettingInfo balanceWebhookSettingInfo)Create a balance webhook settingWebhookSettingcreateWebhookSetting(String balancePlatformId, String webhookId, BalanceWebhookSettingInfo balanceWebhookSettingInfo, RequestOptions requestOptions)Create a balance webhook settingvoiddeleteWebhookSetting(String balancePlatformId, String webhookId, String settingId)Delete a balance webhook setting by idvoiddeleteWebhookSetting(String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions)Delete a balance webhook setting by idWebhookSettingsgetAllWebhookSettings(String balancePlatformId, String webhookId)Get all balance webhook settingsWebhookSettingsgetAllWebhookSettings(String balancePlatformId, String webhookId, RequestOptions requestOptions)Get all balance webhook settingsWebhookSettinggetWebhookSetting(String balancePlatformId, String webhookId, String settingId)Get a balance webhook setting by idWebhookSettinggetWebhookSetting(String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions)Get a balance webhook setting by idWebhookSettingupdateWebhookSetting(String balancePlatformId, String webhookId, String settingId, BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate)Update a balance webhook setting by idWebhookSettingupdateWebhookSetting(String balancePlatformId, String webhookId, String settingId, BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate, RequestOptions requestOptions)Update a balance webhook setting by id-
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
-
BalancesApi
public BalancesApi(Client client)
Balances constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
createWebhookSetting
public WebhookSetting createWebhookSetting(String balancePlatformId, String webhookId, BalanceWebhookSettingInfo balanceWebhookSettingInfo) throws ApiException, IOException
Create a balance webhook setting- Parameters:
balancePlatformId-StringThe unique identifier of the balance platform. (required)webhookId-StringThe unique identifier of the balance webhook. (required)balanceWebhookSettingInfo-BalanceWebhookSettingInfo(required)- Returns:
WebhookSetting- Throws:
ApiException- if fails to make API callIOException
-
createWebhookSetting
public WebhookSetting createWebhookSetting(String balancePlatformId, String webhookId, BalanceWebhookSettingInfo balanceWebhookSettingInfo, RequestOptions requestOptions) throws ApiException, IOException
Create a balance webhook setting- Parameters:
balancePlatformId-StringThe unique identifier of the balance platform. (required)webhookId-StringThe unique identifier of the balance webhook. (required)balanceWebhookSettingInfo-BalanceWebhookSettingInfo(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
WebhookSetting- Throws:
ApiException- if fails to make API callIOException
-
deleteWebhookSetting
public void deleteWebhookSetting(String balancePlatformId, String webhookId, String settingId) throws ApiException, IOException
Delete a balance webhook setting by id- Parameters:
balancePlatformId-StringThe unique identifier of the balance platform. (required)webhookId-StringThe unique identifier of the balance webhook. (required)settingId-StringThe unique identifier of the balance webhook setting. (required)- Throws:
ApiException- if fails to make API callIOException
-
deleteWebhookSetting
public void deleteWebhookSetting(String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions) throws ApiException, IOException
Delete a balance webhook setting by id- Parameters:
balancePlatformId-StringThe unique identifier of the balance platform. (required)webhookId-StringThe unique identifier of the balance webhook. (required)settingId-StringThe unique identifier of the balance webhook setting. (required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
getAllWebhookSettings
public WebhookSettings getAllWebhookSettings(String balancePlatformId, String webhookId) throws ApiException, IOException
Get all balance webhook settings- Parameters:
balancePlatformId-StringThe unique identifier of the balance platform. (required)webhookId-StringThe unique identifier of the balance webhook. (required)- Returns:
WebhookSettings- Throws:
ApiException- if fails to make API callIOException
-
getAllWebhookSettings
public WebhookSettings getAllWebhookSettings(String balancePlatformId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException
Get all balance webhook settings- Parameters:
balancePlatformId-StringThe unique identifier of the balance platform. (required)webhookId-StringThe unique identifier of the balance webhook. (required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
WebhookSettings- Throws:
ApiException- if fails to make API callIOException
-
getWebhookSetting
public WebhookSetting getWebhookSetting(String balancePlatformId, String webhookId, String settingId) throws ApiException, IOException
Get a balance webhook setting by id- Parameters:
balancePlatformId-StringThe unique identifier of the balance platform. (required)webhookId-StringThe unique identifier of the balance webhook. (required)settingId-StringThe unique identifier of the balance webhook setting. (required)- Returns:
WebhookSetting- Throws:
ApiException- if fails to make API callIOException
-
getWebhookSetting
public WebhookSetting getWebhookSetting(String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions) throws ApiException, IOException
Get a balance webhook setting by id- Parameters:
balancePlatformId-StringThe unique identifier of the balance platform. (required)webhookId-StringThe unique identifier of the balance webhook. (required)settingId-StringThe unique identifier of the balance webhook setting. (required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
WebhookSetting- Throws:
ApiException- if fails to make API callIOException
-
updateWebhookSetting
public WebhookSetting updateWebhookSetting(String balancePlatformId, String webhookId, String settingId, BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate) throws ApiException, IOException
Update a balance webhook setting by id- Parameters:
balancePlatformId-StringThe unique identifier of the balance platform. (required)webhookId-StringThe unique identifier of the balance webhook. (required)settingId-StringThe unique identifier of the balance webhook setting. (required)balanceWebhookSettingInfoUpdate-BalanceWebhookSettingInfoUpdate(required)- Returns:
WebhookSetting- Throws:
ApiException- if fails to make API callIOException
-
updateWebhookSetting
public WebhookSetting updateWebhookSetting(String balancePlatformId, String webhookId, String settingId, BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate, RequestOptions requestOptions) throws ApiException, IOException
Update a balance webhook setting by id- Parameters:
balancePlatformId-StringThe unique identifier of the balance platform. (required)webhookId-StringThe unique identifier of the balance webhook. (required)settingId-StringThe unique identifier of the balance webhook setting. (required)balanceWebhookSettingInfoUpdate-BalanceWebhookSettingInfoUpdate(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
WebhookSetting- Throws:
ApiException- if fails to make API callIOException
-
-