Skip to content

Commit b66bd0e

Browse files
committed
wip update generator
1 parent 4a5849f commit b66bd0e

34 files changed

+612
-23
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from ..base import AdyenServiceBase
2+
from .balance_control_api import BalanceControlApi
3+
4+
5+
class AdyenBalanceControlApi(AdyenServiceBase):
6+
"""NOTE: This class is auto generated by OpenAPI Generator
7+
Ref: https://openapi-generator.tech
8+
9+
Do not edit the class manually.
10+
"""
11+
12+
def __init__(self, client=None):
13+
super(AdyenBalanceControlApi, self).__init__(client=client)
14+
self.balance_control_api = BalanceControlApi(client=client)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from ..base import AdyenServiceBase
2+
3+
4+
class BalanceControlApi(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(BalanceControlApi, self).__init__(client=client)
13+
self.service = "balanceControl"
14+
self.baseUrl = "https://pal-test.adyen.com/pal/servlet/BalanceControl/v1"
15+
16+
def balance_transfer(self, request, idempotency_key=None, **kwargs):
17+
"""
18+
Start a balance transfer
19+
20+
Deprecated since Adyen Balance Control API v1
21+
"""
22+
endpoint = self.baseUrl + f"/balanceTransfer"
23+
method = "POST"
24+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
25+

Adyen/services/balancePlatform/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
from .payment_instrument_groups_api import PaymentInstrumentGroupsApi
1414
from .payment_instruments_api import PaymentInstrumentsApi
1515
from .platform_api import PlatformApi
16+
from .sca_association_management_api import SCAAssociationManagementApi
17+
from .sca_device_management_api import SCADeviceManagementApi
1618
from .transaction_rules_api import TransactionRulesApi
19+
from .transfer_limits_balance_account_level_api import TransferLimitsBalanceAccountLevelApi
20+
from .transfer_limits_balance_platform_level_api import TransferLimitsBalancePlatformLevelApi
1721
from .transfer_routes_api import TransferRoutesApi
1822

1923

@@ -40,5 +44,9 @@ def __init__(self, client=None):
4044
self.payment_instrument_groups_api = PaymentInstrumentGroupsApi(client=client)
4145
self.payment_instruments_api = PaymentInstrumentsApi(client=client)
4246
self.platform_api = PlatformApi(client=client)
47+
self.sca_association_management_api = SCAAssociationManagementApi(client=client)
48+
self.sca_device_management_api = SCADeviceManagementApi(client=client)
4349
self.transaction_rules_api = TransactionRulesApi(client=client)
50+
self.transfer_limits_balance_account_level_api = TransferLimitsBalanceAccountLevelApi(client=client)
51+
self.transfer_limits_balance_platform_level_api = TransferLimitsBalancePlatformLevelApi(client=client)
4452
self.transfer_routes_api = TransferRoutesApi(client=client)

Adyen/services/balancePlatform/authorized_card_users_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self, client=None):
1313
self.service = "balancePlatform"
1414
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
1515

16-
def create_authorised_card_users(self, request, paymentInstrumentId, authorisedCardUsers, idempotency_key=None, **kwargs):
16+
def create_authorised_card_users(self, request, paymentInstrumentId, idempotency_key=None, **kwargs):
1717
"""
1818
Create authorized users for a card.
1919
"""
@@ -37,7 +37,7 @@ def get_all_authorised_card_users(self, paymentInstrumentId, idempotency_key=Non
3737
method = "GET"
3838
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3939

40-
def update_authorised_card_users(self, request, paymentInstrumentId, authorisedCardUsers, idempotency_key=None, **kwargs):
40+
def update_authorised_card_users(self, request, paymentInstrumentId, idempotency_key=None, **kwargs):
4141
"""
4242
Update the authorized users for a card.
4343
"""

Adyen/services/balancePlatform/balances_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self, client=None):
1313
self.service = "balancePlatform"
1414
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
1515

16-
def create_webhook_setting(self, request, balancePlatformId, webhookId, balanceWebhookSettingInfo, idempotency_key=None, **kwargs):
16+
def create_webhook_setting(self, request, balancePlatformId, webhookId, idempotency_key=None, **kwargs):
1717
"""
1818
Create a balance webhook setting
1919
"""
@@ -45,7 +45,7 @@ def get_webhook_setting(self, balancePlatformId, webhookId, settingId, idempoten
4545
method = "GET"
4646
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
4747

48-
def update_webhook_setting(self, request, balancePlatformId, webhookId, settingId, balanceWebhookSettingInfoUpdate, idempotency_key=None, **kwargs):
48+
def update_webhook_setting(self, request, balancePlatformId, webhookId, settingId, idempotency_key=None, **kwargs):
4949
"""
5050
Update a balance webhook setting by id
5151
"""
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Hfrom ..base import AdyenServiceBase
2+
3+
4+
class SCAAssociationManagementApi(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(SCAAssociationManagementApi, self).__init__(client=client)
13+
self.service = "balancePlatform"
14+
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
15+
16+
def approve_association(self, request, idempotency_key=None, **kwargs):
17+
"""
18+
Approve a pending approval association
19+
"""
20+
endpoint = self.baseUrl + f"/scaAssociations"
21+
method = "PATCH"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
24+
def list_associations(self, idempotency_key=None, **kwargs):
25+
"""
26+
Get a list of devices associated with an entity
27+
"""
28+
endpoint = self.baseUrl + f"/scaAssociations"
29+
method = "GET"
30+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
31+
32+
def remove_association(self, request, idempotency_key=None, **kwargs):
33+
"""
34+
Delete association to devices
35+
"""
36+
endpoint = self.baseUrl + f"/scaAssociations"
37+
method = "DELETE"
38+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
39+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
from ..base import AdyenServiceBase
2+
3+
4+
class SCADeviceManagementApi(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(SCADeviceManagementApi, self).__init__(client=client)
13+
self.service = "balancePlatform"
14+
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
15+
16+
def begin_sca_device_registration(self, request, idempotency_key=None, **kwargs):
17+
"""
18+
Begin SCA device registration
19+
"""
20+
endpoint = self.baseUrl + f"/scaDevices"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
24+
def finish_sca_device_registration(self, request, deviceId, idempotency_key=None, **kwargs):
25+
"""
26+
Finish registration process for a SCA device
27+
"""
28+
endpoint = self.baseUrl + f"/scaDevices/{deviceId}"
29+
method = "PATCH"
30+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
31+
32+
def submit_sca_association(self, request, deviceId, idempotency_key=None, **kwargs):
33+
"""
34+
Create a new SCA association for a device
35+
"""
36+
endpoint = self.baseUrl + f"/scaDevices/{deviceId}/scaAssociations"
37+
method = "POST"
38+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
39+
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, 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, 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, id, transferLimitId, 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, id, transferLimitId, 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, 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, id, transferLimitId, 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, id, transferLimitId, 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+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from ..base import AdyenServiceBase
2+
from .bin_lookup_api import BinLookupApi
3+
4+
5+
class AdyenBinlookupApi(AdyenServiceBase):
6+
"""NOTE: This class is auto generated by OpenAPI Generator
7+
Ref: https://openapi-generator.tech
8+
9+
Do not edit the class manually.
10+
"""
11+
12+
def __init__(self, client=None):
13+
super(AdyenBinlookupApi, self).__init__(client=client)
14+
self.bin_lookup_api = BinLookupApi(client=client)

0 commit comments

Comments
 (0)