Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Adyen/services/balancePlatform/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
from .balances_api import BalancesApi
from .bank_account_validation_api import BankAccountValidationApi
from .card_orders_api import CardOrdersApi
from .custom_payout_schedules_sweeps_api import CustomPayoutSchedulesSweepsApi
from .direct_debit_mandates_api import DirectDebitMandatesApi
from .grant_accounts_api import GrantAccountsApi
from .grant_offers_api import GrantOffersApi
from .manage_card_pin_api import ManageCardPINApi
from .manage_sca_devices_api import ManageSCADevicesApi
from .managed_payout_schedules_api import ManagedPayoutSchedulesApi
from .network_tokens_api import NetworkTokensApi
from .payment_instrument_groups_api import PaymentInstrumentGroupsApi
from .payment_instruments_api import PaymentInstrumentsApi
Expand Down Expand Up @@ -37,11 +39,13 @@ def __init__(self, client=None):
self.balances_api = BalancesApi(client=client)
self.bank_account_validation_api = BankAccountValidationApi(client=client)
self.card_orders_api = CardOrdersApi(client=client)
self.custom_payout_schedules_sweeps_api = CustomPayoutSchedulesSweepsApi(client=client)
self.direct_debit_mandates_api = DirectDebitMandatesApi(client=client)
self.grant_accounts_api = GrantAccountsApi(client=client)
self.grant_offers_api = GrantOffersApi(client=client)
self.manage_sca_devices_api = ManageSCADevicesApi(client=client)
self.manage_card_pin_api = ManageCardPINApi(client=client)
self.managed_payout_schedules_api = ManagedPayoutSchedulesApi(client=client)
self.network_tokens_api = NetworkTokensApi(client=client)
self.payment_instrument_groups_api = PaymentInstrumentGroupsApi(client=client)
self.payment_instruments_api = PaymentInstrumentsApi(client=client)
Expand Down
50 changes: 0 additions & 50 deletions Adyen/services/balancePlatform/balance_accounts_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,36 +23,6 @@ def create_balance_account(self, request, idempotency_key=None, **kwargs):
request, self.service, method, endpoint, idempotency_key, **kwargs
)

def create_sweep(self, request, balanceAccountId, idempotency_key=None, **kwargs):
"""
Create a sweep
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps"
method = "POST"
return self.client.call_adyen_api(
request, self.service, method, endpoint, idempotency_key, **kwargs
)

def delete_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs):
"""
Delete a sweep
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}"
method = "DELETE"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def get_all_sweeps_for_balance_account(self, balanceAccountId, idempotency_key=None, **kwargs):
"""
Get all sweeps for a balance account
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps"
method = "GET"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def get_all_transaction_rules_for_balance_account(self, id, idempotency_key=None, **kwargs):
"""
Get all transaction rules for a balance account
Expand Down Expand Up @@ -83,16 +53,6 @@ def get_payment_instruments_linked_to_balance_account(self, id, idempotency_key=
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def get_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs):
"""
Get a sweep
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}"
method = "GET"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def update_balance_account(self, request, id, idempotency_key=None, **kwargs):
"""
Update a balance account
Expand All @@ -102,13 +62,3 @@ def update_balance_account(self, request, id, idempotency_key=None, **kwargs):
return self.client.call_adyen_api(
request, self.service, method, endpoint, idempotency_key, **kwargs
)

def update_sweep(self, request, balanceAccountId, sweepId, idempotency_key=None, **kwargs):
"""
Update a sweep
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}"
method = "PATCH"
return self.client.call_adyen_api(
request, self.service, method, endpoint, idempotency_key, **kwargs
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
from ..base import AdyenServiceBase


class CustomPayoutSchedulesSweepsApi(AdyenServiceBase):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech

Do not edit the class manually.
"""

def __init__(self, client=None):
super().__init__(client=client)
self.service = "balancePlatform"
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"

def create_sweep(self, request, balanceAccountId, idempotency_key=None, **kwargs):

Check warning on line 16 in Adyen/services/balancePlatform/custom_payout_schedules_sweeps_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balanceAccountId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXqSilvH0gCLiwUq&open=AZ5AMXqSilvH0gCLiwUq&pullRequest=480
"""
Create a sweep
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps"
method = "POST"
return self.client.call_adyen_api(
request, self.service, method, endpoint, idempotency_key, **kwargs
)

def delete_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs):

Check warning on line 26 in Adyen/services/balancePlatform/custom_payout_schedules_sweeps_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balanceAccountId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXqSilvH0gCLiwUr&open=AZ5AMXqSilvH0gCLiwUr&pullRequest=480

Check warning on line 26 in Adyen/services/balancePlatform/custom_payout_schedules_sweeps_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "sweepId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXqSilvH0gCLiwUs&open=AZ5AMXqSilvH0gCLiwUs&pullRequest=480
"""
Delete a sweep
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}"
method = "DELETE"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def get_all_sweeps_for_balance_account(self, balanceAccountId, idempotency_key=None, **kwargs):

Check warning on line 36 in Adyen/services/balancePlatform/custom_payout_schedules_sweeps_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balanceAccountId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXqSilvH0gCLiwUt&open=AZ5AMXqSilvH0gCLiwUt&pullRequest=480
"""
Get all sweeps for a balance account
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps"
method = "GET"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def get_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs):

Check warning on line 46 in Adyen/services/balancePlatform/custom_payout_schedules_sweeps_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balanceAccountId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXqSilvH0gCLiwUu&open=AZ5AMXqSilvH0gCLiwUu&pullRequest=480

Check warning on line 46 in Adyen/services/balancePlatform/custom_payout_schedules_sweeps_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "sweepId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXqSilvH0gCLiwUv&open=AZ5AMXqSilvH0gCLiwUv&pullRequest=480
"""
Get a sweep
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}"
method = "GET"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def update_sweep(self, request, balanceAccountId, sweepId, idempotency_key=None, **kwargs):

Check warning on line 56 in Adyen/services/balancePlatform/custom_payout_schedules_sweeps_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "sweepId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXqSilvH0gCLiwUx&open=AZ5AMXqSilvH0gCLiwUx&pullRequest=480

Check warning on line 56 in Adyen/services/balancePlatform/custom_payout_schedules_sweeps_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balanceAccountId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXqSilvH0gCLiwUw&open=AZ5AMXqSilvH0gCLiwUw&pullRequest=480
"""
Update a sweep
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}"
method = "PATCH"
return self.client.call_adyen_api(
request, self.service, method, endpoint, idempotency_key, **kwargs
)
108 changes: 108 additions & 0 deletions Adyen/services/balancePlatform/managed_payout_schedules_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
from ..base import AdyenServiceBase


class ManagedPayoutSchedulesApi(AdyenServiceBase):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech

Do not edit the class manually.
"""

def __init__(self, client=None):
super().__init__(client=client)
self.service = "balancePlatform"
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"

def apply_managed_schedule(self, request, balanceAccountId, idempotency_key=None, **kwargs):

Check warning on line 16 in Adyen/services/balancePlatform/managed_payout_schedules_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balanceAccountId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXoiilvH0gCLiwUi&open=AZ5AMXoiilvH0gCLiwUi&pullRequest=480
"""
Apply a managed payout schedule to a balance account
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/payoutSchedules"
method = "POST"
return self.client.call_adyen_api(
request, self.service, method, endpoint, idempotency_key, **kwargs
)

def delete_balance_account_managed_schedule(
self, balanceAccountId, id, idempotency_key=None, **kwargs

Check warning on line 27 in Adyen/services/balancePlatform/managed_payout_schedules_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balanceAccountId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXoiilvH0gCLiwUj&open=AZ5AMXoiilvH0gCLiwUj&pullRequest=480
):
"""
Delete a managed payout schedule on a balance account
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/payoutSchedules/{id}"
method = "DELETE"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def get_balance_account_managed_schedule_by_id(
self, balanceAccountId, id, idempotency_key=None, **kwargs

Check warning on line 39 in Adyen/services/balancePlatform/managed_payout_schedules_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balanceAccountId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXoiilvH0gCLiwUk&open=AZ5AMXoiilvH0gCLiwUk&pullRequest=480
):
"""
Get a specific managed payout schedule on a balance account
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/payoutSchedules/{id}"
method = "GET"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def get_balance_account_managed_schedules(
self, balanceAccountId, idempotency_key=None, **kwargs

Check warning on line 51 in Adyen/services/balancePlatform/managed_payout_schedules_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balanceAccountId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXoiilvH0gCLiwUl&open=AZ5AMXoiilvH0gCLiwUl&pullRequest=480
):
"""
Get all managed payout schedules on a balance account
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/payoutSchedules"
method = "GET"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def get_balance_platform_managed_schedule_by_id(
self, balancePlatformId, id, idempotency_key=None, **kwargs

Check warning on line 63 in Adyen/services/balancePlatform/managed_payout_schedules_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balancePlatformId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXoiilvH0gCLiwUm&open=AZ5AMXoiilvH0gCLiwUm&pullRequest=480
):
"""
Get a specific managed payout schedule on your balance platform
"""
endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/payoutSchedules/{id}"
method = "GET"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def get_balance_platform_managed_schedules(
self, balancePlatformId, idempotency_key=None, **kwargs

Check warning on line 75 in Adyen/services/balancePlatform/managed_payout_schedules_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balancePlatformId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXoiilvH0gCLiwUn&open=AZ5AMXoiilvH0gCLiwUn&pullRequest=480
):
"""
Get all managed payout schedules on your balance platform
"""
endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/payoutSchedules"
method = "GET"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def get_payout_schedule_executions(self, balanceAccountId, id, idempotency_key=None, **kwargs):

Check warning on line 86 in Adyen/services/balancePlatform/managed_payout_schedules_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balanceAccountId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXoiilvH0gCLiwUo&open=AZ5AMXoiilvH0gCLiwUo&pullRequest=480
"""
View executions of a managed payout schedule
"""
endpoint = (
self.baseUrl + f"/balanceAccounts/{balanceAccountId}/payoutSchedules/{id}/executions"
)
method = "GET"
return self.client.call_adyen_api(
None, self.service, method, endpoint, idempotency_key, **kwargs
)

def update_balance_account_managed_schedule(
self, request, balanceAccountId, id, idempotency_key=None, **kwargs

Check warning on line 99 in Adyen/services/balancePlatform/managed_payout_schedules_api.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this parameter "balanceAccountId" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-python-api-library&issues=AZ5AMXoiilvH0gCLiwUp&open=AZ5AMXoiilvH0gCLiwUp&pullRequest=480
):
"""
Update a managed payout schedule on a balance account
"""
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/payoutSchedules/{id}"
method = "PATCH"
return self.client.call_adyen_api(
request, self.service, method, endpoint, idempotency_key, **kwargs
)
8 changes: 8 additions & 0 deletions sdk-generation-log/balanceplatform.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"service": "balanceplatform",
"project": "python",
"generatedAt": "2026-05-19T14:55:22Z",
"openapiCommitSha": "e5eedc5cba69416331333d4b0e90cb4871715517",
"automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284",
"libraryCommitSha": "ee1c36b4cd52298171022cb48352c7fb7caae39f"
}
Loading