|
| 1 | +from ..base import AdyenServiceBase |
| 2 | + |
| 3 | + |
| 4 | +class BalancesApi(AdyenServiceBase): |
| 5 | + """NOTE: This class is auto generated by OpenAPI Generator |
| 6 | + Ref: https://openapi-generator.tech |
| 7 | +
|
| 8 | + Do not edit the class manually. |
| 9 | + """ |
| 10 | + |
| 11 | + def __init__(self, client=None): |
| 12 | + super(BalancesApi, self).__init__(client=client) |
| 13 | + self.service = "balancePlatform" |
| 14 | + self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2" |
| 15 | + |
| 16 | + def balance_platforms_balance_platform_id_webhooks_webhook_id_settings_get(self, balancePlatformId, webhookId, idempotency_key=None, **kwargs): |
| 17 | + """ |
| 18 | + Get webhook settings |
| 19 | + """ |
| 20 | + endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings" |
| 21 | + method = "GET" |
| 22 | + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) |
| 23 | + |
| 24 | + def balance_platforms_balance_platform_id_webhooks_webhook_id_settings_post(self, request, balancePlatformId, webhookId, balanceWebhookSettingsRequest, idempotency_key=None, **kwargs): |
| 25 | + """ |
| 26 | + Create a balance webhook setting |
| 27 | + """ |
| 28 | + endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings" |
| 29 | + method = "POST" |
| 30 | + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) |
| 31 | + |
| 32 | + def balance_platforms_balance_platform_id_webhooks_webhook_id_settings_setting_id_delete(self, balancePlatformId, webhookId, settingId, idempotency_key=None, **kwargs): |
| 33 | + """ |
| 34 | + Delete a webhook setting |
| 35 | + """ |
| 36 | + endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}" |
| 37 | + method = "DELETE" |
| 38 | + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) |
| 39 | + |
| 40 | + def balance_platforms_balance_platform_id_webhooks_webhook_id_settings_setting_id_get(self, balancePlatformId, webhookId, settingId, idempotency_key=None, **kwargs): |
| 41 | + """ |
| 42 | + Get a webhook setting |
| 43 | + """ |
| 44 | + endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}" |
| 45 | + method = "GET" |
| 46 | + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) |
| 47 | + |
| 48 | + def balance_platforms_balance_platform_id_webhooks_webhook_id_settings_setting_id_patch(self, request, balancePlatformId, webhookId, settingId, patchableBalanceWebhookSettingsRequest, idempotency_key=None, **kwargs): |
| 49 | + """ |
| 50 | + Update a webhook setting |
| 51 | + """ |
| 52 | + endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}" |
| 53 | + method = "PATCH" |
| 54 | + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) |
| 55 | + |
0 commit comments