Skip to content

[management] Code generation: update services and models - #2004

Merged
poojah-adyen merged 2 commits into
mainfrom
sdk-automation/management
Jul 22, 2026
Merged

poojah-adyen merged 2 commits into
mainfrom
sdk-automation/management

Conversation

@AdyenAutomationBot

@AdyenAutomationBot AdyenAutomationBot commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the management service.

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

Breaking Changes 🛠️

PaymentMethodSetupInfo

  • The carnet field type changed from GenericPmWithTdiInfo to CarnetInfo (getter/setter/builder signatures updated).

New Features 💎

DonationCampaignsApi

Adds donation campaign management, backed by the new campaignManagement and nonprofits endpoints:

  • createDonationCampaignPOST /companies/{companyId}/campaignManagement
  • deleteDonationCampaignDELETE /companies/{companyId}/campaignManagement/{donationCampaignId}
  • updateDonationCampaignPATCH /companies/{companyId}/campaignManagement/{donationCampaignId}
  • updateDonationCampaignStatusPOST /companies/{companyId}/campaignManagement/{donationCampaignId}/...
  • listDonationCampaignsForAccountHolderGET /companies/{companyId}/campaignManagement
  • listNonprofits / createNonprofitPOST /companies/{companyId}/nonprofits

Cash App Pay support

  • New model CashAppUpdateInfo and CarnetInfo.
  • UpdatePaymentMethodInfo — new cashapp field (CashAppUpdateInfo).
  • PaymentMethodResponse and PaymentMethodSetupInfo — new cashapp enum value in payment method type.

PaymentMethod

  • New associatedPaymentMethods field (List<AssociatedPaymentMethod>) — payment methods updated as part of an associated transition. New model AssociatedPaymentMethod.

Split configuration DCC

  • New model SplitDcc.
  • SplitConfigurationLogic and UpdateSplitConfigurationLogicRequest — new dcc field (SplitDcc).
  • ScheduleTerminalActionsRequestActionDetails- Added discriminator (type) mappings for the action-details subtypes

Other Changes

  • Unreferenced.enableUnreferencedRefunds — documentation expanded with liability/risk warning for unreferenced refunds.
  • MealVoucherFRInfo — documentation typo change (mealVoucher_FR_edenred → mealVoucher_FR_endenred) in subTypes allowed values.
  • Added ManagementTest cases and a donation-campaign.json mock for the new donation campaigns flow.

@AdyenAutomationBot
AdyenAutomationBot requested a review from a team as a code owner July 13, 2026 14: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 new models and API endpoints for managing donation campaigns and nonprofits within the Adyen Management API, alongside updates to payment methods (adding Cash App and associated payment methods), split configurations (adding DCC support), and terminal surcharge settings. The review feedback highlights two critical issues in the newly added 'DonationCampaignsApi.java': a compilation error caused by putting an enum directly into a 'Map<String, String>' path parameter, and a query parameter serialization bug where 'List.toString()' is used instead of joining the list elements.

Comment thread src/main/java/com/adyen/service/management/DonationCampaignsApi.java Outdated
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/management branch 7 times, most recently from 227ac1d to 19c688d Compare July 16, 2026 14:28
@poojah-adyen poojah-adyen self-assigned this Jul 20, 2026
@poojah-adyen poojah-adyen added the Breaking change Indicates a change that has caused a major version update label Jul 20, 2026
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/management branch 2 times, most recently from b178a64 to 01d4c9d Compare July 21, 2026 09:54
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/management branch from 01d4c9d to d5043f9 Compare July 21, 2026 13:17
@sonarqubecloud

Copy link
Copy Markdown

@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.

changes look good. This PR contains mostly:

  • breaking change: GenericPmWithTdiInfo -> CarnetInfo (PaumentMethodSetupinfo)
  • feature: DonationCompaignsApi (and related models)
  • minor updates: added fields, docs updates

@poojah-adyen
poojah-adyen added this pull request to the merge queue Jul 22, 2026
Merged via the queue into main with commit 800896a Jul 22, 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