|
| 1 | +from ..base import AdyenServiceBase |
| 2 | + |
| 3 | + |
| 4 | +class BalanceAccountsApi(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(BalanceAccountsApi, self).__init__(client=client) |
| 13 | + self.service = "balancePlatform" |
| 14 | + |
| 15 | + def get_balance_account(self, id, idempotency_key=None, **kwargs): |
| 16 | + """ |
| 17 | + Get a balance account |
| 18 | + """ |
| 19 | + endpoint = f"/balanceAccounts/{id}" |
| 20 | + method = "GET" |
| 21 | + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) |
| 22 | + |
| 23 | + def get_all_payment_instruments_for_balance_account(self, id, idempotency_key=None, **kwargs): |
| 24 | + """ |
| 25 | + Get all payment instruments for a balance account |
| 26 | + """ |
| 27 | + endpoint = f"/balanceAccounts/{id}/paymentInstruments" |
| 28 | + method = "GET" |
| 29 | + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) |
| 30 | + |
| 31 | + def update_balance_account(self, request, id, idempotency_key=None, **kwargs): |
| 32 | + """ |
| 33 | + Update a balance account |
| 34 | + """ |
| 35 | + endpoint = f"/balanceAccounts/{id}" |
| 36 | + method = "PATCH" |
| 37 | + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) |
| 38 | + |
| 39 | + def create_balance_account(self, request, idempotency_key=None, **kwargs): |
| 40 | + """ |
| 41 | + Create a balance account |
| 42 | + """ |
| 43 | + endpoint = f"/balanceAccounts" |
| 44 | + method = "POST" |
| 45 | + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) |
| 46 | + |
0 commit comments