Skip to content

Commit 7e63603

Browse files
false[adyen-sdk-automation] automated change
1 parent f702eae commit 7e63603

File tree

4 files changed

+122
-0
lines changed

4 files changed

+122
-0
lines changed

Adyen/services/balancePlatform/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
from .payment_instruments_api import PaymentInstrumentsApi
1515
from .platform_api import PlatformApi
1616
from .transaction_rules_api import TransactionRulesApi
17+
from .transfer_limits_balance_account_level_api import TransferLimitsBalanceAccountLevelApi
18+
from .transfer_limits_balance_platform_level_api import TransferLimitsBalancePlatformLevelApi
1719
from .transfer_routes_api import TransferRoutesApi
1820

1921

@@ -41,4 +43,6 @@ def __init__(self, client=None):
4143
self.payment_instruments_api = PaymentInstrumentsApi(client=client)
4244
self.platform_api = PlatformApi(client=client)
4345
self.transaction_rules_api = TransactionRulesApi(client=client)
46+
self.transfer_limits_balance_account_level_api = TransferLimitsBalanceAccountLevelApi(client=client)
47+
self.transfer_limits_balance_platform_level_api = TransferLimitsBalancePlatformLevelApi(client=client)
4448
self.transfer_routes_api = TransferRoutesApi(client=client)
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
from ..base import AdyenServiceBase
2+
3+
4+
class TransferLimitsBalanceAccountLevelApi(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(TransferLimitsBalanceAccountLevelApi, self).__init__(client=client)
13+
self.service = "balancePlatform"
14+
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
15+
16+
def approve_pending_transfer_limits(self, request, id, approveTransferLimitRequest, idempotency_key=None, **kwargs):
17+
"""
18+
Approve pending transfer limits
19+
"""
20+
endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/approve"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
24+
def create_transfer_limit(self, request, id, createTransferLimitRequest, idempotency_key=None, **kwargs):
25+
"""
26+
Create a transfer limit
27+
"""
28+
endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits"
29+
method = "POST"
30+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
31+
32+
def delete_pending_transfer_limit(self, transferLimitId, id, idempotency_key=None, **kwargs):
33+
"""
34+
Delete a scheduled or pending transfer limit
35+
"""
36+
endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/{transferLimitId}"
37+
method = "DELETE"
38+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
39+
40+
def get_current_transfer_limits(self, id, idempotency_key=None, **kwargs):
41+
"""
42+
Get all current transfer limits
43+
"""
44+
endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/current"
45+
method = "GET"
46+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
47+
48+
def get_specific_transfer_limit(self, transferLimitId, id, idempotency_key=None, **kwargs):
49+
"""
50+
Get the details of a transfer limit
51+
"""
52+
endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/{transferLimitId}"
53+
method = "GET"
54+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
55+
56+
def get_transfer_limits(self, id, idempotency_key=None, **kwargs):
57+
"""
58+
Filter and view the transfer limits
59+
"""
60+
endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits"
61+
method = "GET"
62+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
63+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
from ..base import AdyenServiceBase
2+
3+
4+
class TransferLimitsBalancePlatformLevelApi(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(TransferLimitsBalancePlatformLevelApi, self).__init__(client=client)
13+
self.service = "balancePlatform"
14+
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
15+
16+
def create_transfer_limit(self, request, id, createTransferLimitRequest, idempotency_key=None, **kwargs):
17+
"""
18+
Create a transfer limit
19+
"""
20+
endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
24+
def delete_pending_transfer_limit(self, transferLimitId, id, idempotency_key=None, **kwargs):
25+
"""
26+
Delete a scheduled or pending transfer limit
27+
"""
28+
endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits/{transferLimitId}"
29+
method = "DELETE"
30+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
31+
32+
def get_specific_transfer_limit(self, transferLimitId, id, idempotency_key=None, **kwargs):
33+
"""
34+
Get the details of a transfer limit
35+
"""
36+
endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits/{transferLimitId}"
37+
method = "GET"
38+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
39+
40+
def get_transfer_limits(self, id, idempotency_key=None, **kwargs):
41+
"""
42+
Filter and view the transfer limits
43+
"""
44+
endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits"
45+
method = "GET"
46+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
47+

Adyen/services/checkout/utility_api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,11 @@ def updates_order_for_paypal_express_checkout(self, request, idempotency_key=Non
3939
method = "POST"
4040
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
4141

42+
def validate_shopper_id(self, request, validateShopperIdRequest, idempotency_key=None, **kwargs):
43+
"""
44+
Validates shopper Id
45+
"""
46+
endpoint = self.baseUrl + f"/validateShopperId"
47+
method = "POST"
48+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
49+

0 commit comments

Comments
 (0)