Skip to content

Commit e22bb84

Browse files
false[adyen-sdk-automation] automated change (#346)
1 parent 8b37dbf commit e22bb84

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

Adyen/services/balancePlatform/account_holders_api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ def get_all_balance_accounts_of_account_holder(self, id, idempotency_key=None, *
3737
method = "GET"
3838
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3939

40+
def get_all_transaction_rules_for_account_holder(self, id, idempotency_key=None, **kwargs):
41+
"""
42+
Get all transaction rules for an account holder
43+
"""
44+
endpoint = self.baseUrl + f"/accountHolders/{id}/transactionRules"
45+
method = "GET"
46+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
47+
4048
def get_tax_form(self, id, idempotency_key=None, **kwargs):
4149
"""
4250
Get a tax form

Adyen/services/balancePlatform/balance_accounts_api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ def get_all_sweeps_for_balance_account(self, balanceAccountId, idempotency_key=N
4545
method = "GET"
4646
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
4747

48+
def get_all_transaction_rules_for_balance_account(self, id, idempotency_key=None, **kwargs):
49+
"""
50+
Get all transaction rules for a balance account
51+
"""
52+
endpoint = self.baseUrl + f"/balanceAccounts/{id}/transactionRules"
53+
method = "GET"
54+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
55+
4856
def get_balance_account(self, id, idempotency_key=None, **kwargs):
4957
"""
5058
Get a balance account

Adyen/services/balancePlatform/platform_api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ def get_all_account_holders_under_balance_platform(self, id, idempotency_key=Non
2121
method = "GET"
2222
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
2323

24+
def get_all_transaction_rules_for_balance_platform(self, id, idempotency_key=None, **kwargs):
25+
"""
26+
Get all transaction rules for a balance platform
27+
"""
28+
endpoint = self.baseUrl + f"/balancePlatforms/{id}/transactionRules"
29+
method = "GET"
30+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
31+
2432
def get_balance_platform(self, id, idempotency_key=None, **kwargs):
2533
"""
2634
Get a balance platform

Adyen/services/checkout/payments_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self, client=None):
1515

1616
def card_details(self, request, idempotency_key=None, **kwargs):
1717
"""
18-
Get the list of brands on the card
18+
Get the brands and other details of a card
1919
"""
2020
endpoint = self.baseUrl + f"/cardDetails"
2121
method = "POST"

0 commit comments

Comments
 (0)