Skip to content

[balanceplatform] Code generation: update services and models - #1969

Merged
poojah-adyen merged 2 commits into
mainfrom
sdk-automation/balanceplatform
Jul 21, 2026
Merged

[balanceplatform] Code generation: update services and models#1969
poojah-adyen merged 2 commits into
mainfrom
sdk-automation/balanceplatform

Conversation

@AdyenAutomationBot

@AdyenAutomationBot AdyenAutomationBot commented May 19, 2026

Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the balanceplatform service.

The commit history of this PR reflects the adyen-openapi commits that have been applied.

Breaking Changes 🛠️

Sweep endpoints moved to CustomPayoutSchedulesSweepsApi

The sweep operations previously on BalanceAccountsApi have been moved to the new CustomPayoutSchedulesSweepsApi service. The following methods were removed from BalanceAccountsApi and are now available on CustomPayoutSchedulesSweepsApi:

  • createSweep
  • getAllSweepsForBalanceAccount
  • getSweep
  • updateSweep
  • deleteSweep

New Features 💎

ManagedPayoutSchedulesApi

New service exposing managed payout schedule endpoints:

  • POST /balanceAccounts/{balanceAccountId}/payoutSchedules — apply a managed schedule to a balance account.
  • GET /balanceAccounts/{balanceAccountId}/payoutSchedules — list managed schedules for a balance account.
  • GET, PATCH, DELETE /balanceAccounts/{balanceAccountId}/payoutSchedules/{id} — retrieve, update, and delete a balance account managed schedule.
  • GET /balanceAccounts/{balanceAccountId}/payoutSchedules/{id}/executions — list payout schedule executions.
  • GET /balancePlatforms/{balancePlatformId}/payoutSchedules and
  • GET /balancePlatforms/{balancePlatformId}/payoutSchedules/{id} — list and retrieve balance platform managed schedules.

Balance

  • New pendingAvailable field.

New Models

  • BalanceAccountConfigurationRequest
  • BalanceAccountConfiguration
  • BalanceAccountConfigurationUpdate
  • BalanceAccountConfigurations
  • BalancePlatformConfiguration
  • BalancePlatformConfigurations
  • PayoutScheduleExecution
  • PayoutScheduleExecutionDetail
  • PayoutScheduleExecutions
  • ExecutionResult (failed, succeeded, skipped)
  • ModelLocalTime

@AdyenAutomationBot
AdyenAutomationBot requested a review from a team as a code owner May 19, 2026 12:23

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces several new model classes and API services for managing payout schedules and configurations within the Balance Platform. Key changes include refactoring BalanceAccountsApi to move sweep-related functionality into a new CustomPayoutSchedulesSweepsApi and adding a new ManagedPayoutSchedulesApi. Feedback was provided regarding a high-severity issue in ManagedPayoutSchedulesApi where a list of enums was incorrectly formatted as a query parameter, along with a code suggestion to fix it.

// Add query params
Map<String, String> queryParams = new HashMap<>();
if (results != null) {
queryParams.put("results", results.toString());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using results.toString() on a List of enums produces a string like [failed, succeeded], which is not a valid format for a query parameter. You should join the enum values with a comma instead.

Suggested change
queryParams.put("results", results.toString());
queryParams.put("results", results.toString().replace("[", "").replace("]", "").replace(" ", ""));

@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/balanceplatform branch from 7ec949f to 4fcc124 Compare May 19, 2026 14:56

@jeandersonbc jeandersonbc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR contains a model that doesn't follow the naming conventions - PatchableBalanceAccountConfigurationRequest

@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/balanceplatform branch 4 times, most recently from d610c1f to a248024 Compare June 2, 2026 15:30
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/balanceplatform branch from a248024 to a757df7 Compare June 4, 2026 13:32
@jeandersonbc
jeandersonbc force-pushed the sdk-automation/balanceplatform branch from a757df7 to 3b66db1 Compare June 9, 2026 10:14
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/balanceplatform branch 5 times, most recently from 9284b9c to f2ce439 Compare June 19, 2026 10:29
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/balanceplatform branch 5 times, most recently from 3d7ffa2 to 5fc8fb8 Compare June 24, 2026 08:32
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/balanceplatform branch 3 times, most recently from a7b1f25 to fd9145d Compare July 7, 2026 09:21
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/balanceplatform branch 7 times, most recently from 1b54fc7 to 2be6572 Compare July 15, 2026 15:00
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/balanceplatform branch 3 times, most recently from 7bd8d14 to 7443cd6 Compare July 16, 2026 14:28
@poojah-adyen poojah-adyen added the Breaking change Indicates a change that has caused a major version update label Jul 17, 2026
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/balanceplatform branch 2 times, most recently from 3f9bbd6 to a1768bf Compare July 21, 2026 09:54
@poojah-adyen poojah-adyen self-assigned this Jul 21, 2026
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/balanceplatform branch from a1768bf to 1dc922a Compare July 21, 2026 12:29
@sonarqubecloud

Copy link
Copy Markdown

@poojah-adyen
poojah-adyen enabled auto-merge July 21, 2026 12:54
@poojah-adyen
poojah-adyen added this pull request to the merge queue Jul 21, 2026
Merged via the queue into main with commit b574dbb Jul 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking change Indicates a change that has caused a major version update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants