-
Notifications
You must be signed in to change notification settings - Fork 47
[balanceplatform] Code generation: update services and models #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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
|
||
| """ | ||
| 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
|
||
| """ | ||
| 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
|
||
| """ | ||
| 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
|
||
| """ | ||
| 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
|
||
| """ | ||
| 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,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
|
||
| """ | ||
| 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
|
||
| ): | ||
| """ | ||
| 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
|
||
| ): | ||
| """ | ||
| 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
|
||
| ): | ||
| """ | ||
| 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
|
||
| ): | ||
| """ | ||
| 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
|
||
| ): | ||
| """ | ||
| 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 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
|
||
| ): | ||
| """ | ||
| 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 | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "service": "balanceplatform", | ||
| "project": "python", | ||
| "generatedAt": "2026-05-28T09:01:58Z", | ||
| "openapiCommitSha": "1e3919b0fb3a780c92f1b11f8ca3d829a641066c", | ||
| "automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284", | ||
| "libraryCommitSha": "20da67d74d66b555a063b507ab54fe0ad7e1f3e5" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I too find it really annoying the mix of camelCase on variable/params.