Skip to content

Commit a04a3cc

Browse files
AdyenAutomationBotthomasc-adyen
authored andcommitted
[balanceplatform] Automated update from Adyen/adyen-openapi@6f2bb26
1 parent c7a1043 commit a04a3cc

3 files changed

Lines changed: 66 additions & 0 deletions

File tree

Adyen/services/balancePlatform/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from .balances_api import BalancesApi
66
from .bank_account_validation_api import BankAccountValidationApi
77
from .card_orders_api import CardOrdersApi
8+
from .direct_debit_mandates_api import DirectDebitMandatesApi
89
from .grant_accounts_api import GrantAccountsApi
910
from .grant_offers_api import GrantOffersApi
1011
from .manage_card_pin_api import ManageCardPINApi
@@ -36,6 +37,7 @@ def __init__(self, client=None):
3637
self.balances_api = BalancesApi(client=client)
3738
self.bank_account_validation_api = BankAccountValidationApi(client=client)
3839
self.card_orders_api = CardOrdersApi(client=client)
40+
self.direct_debit_mandates_api = DirectDebitMandatesApi(client=client)
3941
self.grant_accounts_api = GrantAccountsApi(client=client)
4042
self.grant_offers_api = GrantOffersApi(client=client)
4143
self.manage_sca_devices_api = ManageSCADevicesApi(client=client)

Adyen/services/balancePlatform/account_holders_api.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ def get_tax_form(self, id, idempotency_key=None, **kwargs):
6363
None, self.service, method, endpoint, idempotency_key, **kwargs
6464
)
6565

66+
def get_tax_form_summary(self, id, idempotency_key=None, **kwargs):
67+
"""
68+
Get summary of tax forms for an account holder
69+
"""
70+
endpoint = self.baseUrl + f"/accountHolders/{id}/taxFormSummary"
71+
method = "GET"
72+
return self.client.call_adyen_api(
73+
None, self.service, method, endpoint, idempotency_key, **kwargs
74+
)
75+
6676
def update_account_holder(self, request, id, idempotency_key=None, **kwargs):
6777
"""
6878
Update an account holder
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
from ..base import AdyenServiceBase
2+
3+
4+
class DirectDebitMandatesApi(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().__init__(client=client)
13+
self.service = "balancePlatform"
14+
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
15+
16+
def cancel_mandate(self, mandateId, idempotency_key=None, **kwargs):
17+
"""
18+
Cancel a mandate
19+
"""
20+
endpoint = self.baseUrl + f"/mandates/{mandateId}/cancel"
21+
method = "POST"
22+
return self.client.call_adyen_api(
23+
None, self.service, method, endpoint, idempotency_key, **kwargs
24+
)
25+
26+
def get_list_of_mandates(self, idempotency_key=None, **kwargs):
27+
"""
28+
Get a list of mandates
29+
"""
30+
endpoint = self.baseUrl + "/mandates"
31+
method = "GET"
32+
return self.client.call_adyen_api(
33+
None, self.service, method, endpoint, idempotency_key, **kwargs
34+
)
35+
36+
def get_mandate_by_id(self, mandateId, idempotency_key=None, **kwargs):
37+
"""
38+
Get a specific mandate
39+
"""
40+
endpoint = self.baseUrl + f"/mandates/{mandateId}"
41+
method = "GET"
42+
return self.client.call_adyen_api(
43+
None, self.service, method, endpoint, idempotency_key, **kwargs
44+
)
45+
46+
def update_mandate(self, request, mandateId, idempotency_key=None, **kwargs):
47+
"""
48+
Amend a mandate
49+
"""
50+
endpoint = self.baseUrl + f"/mandates/{mandateId}"
51+
method = "PATCH"
52+
return self.client.call_adyen_api(
53+
request, self.service, method, endpoint, idempotency_key, **kwargs
54+
)

0 commit comments

Comments
 (0)