Skip to content

[payout] Code generation: update services and models#1950

Merged
jeandersonbc merged 1 commit into
mainfrom
sdk-automation/payout
May 15, 2026
Merged

[payout] Code generation: update services and models#1950
jeandersonbc merged 1 commit into
mainfrom
sdk-automation/payout

Conversation

@AdyenAutomationBot
Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the payout service.

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

@AdyenAutomationBot AdyenAutomationBot requested a review from a team as a code owner April 20, 2026 10:48
Copy link
Copy Markdown
Contributor

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

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 adds a metadata log for the 'payout' service and includes minor code cleanup and reformatting within the 'clouddevice' service. A review comment highlights a discrepancy between the service name specified in the new metadata file and the actual code changes provided, suggesting a potential issue with the automated generation or missing files.

Comment thread sdk-generation-log/payout.json
@AdyenAutomationBot AdyenAutomationBot force-pushed the sdk-automation/payout branch 2 times, most recently from e759a3f to 8e75c50 Compare April 30, 2026 10:00
@AdyenAutomationBot AdyenAutomationBot force-pushed the sdk-automation/payout branch 3 times, most recently from 9ae5eb8 to 0f4b73c Compare May 1, 2026 07:57
@AdyenAutomationBot AdyenAutomationBot force-pushed the sdk-automation/payout branch 2 times, most recently from 16cf6b4 to 4ff79ab Compare May 14, 2026 14:22
@jeandersonbc jeandersonbc force-pushed the sdk-automation/payout branch from 4ff79ab to 89ef1ac Compare May 15, 2026 11:15
@jeandersonbc jeandersonbc added the Breaking change Indicates a change that has caused a major version update label May 15, 2026
Copy link
Copy Markdown
Contributor

@jeandersonbc jeandersonbc left a comment

Choose a reason for hiding this comment

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

[payout] Add cardAltID, networkProcessingMode fields and relax cardProductId to open String

Summary

Two payout response model classes are updated to reflect changes in the Adyen OpenAPI spec:

  • ResponseAdditionalDataCard gains a new cardAltID field and drops the CardProductIdEnum inner enum in favour of a plain String for cardProductId.
  • ResponseAdditionalDataCommon gains a new networkProcessingMode field.

⚠️ Breaking change: cardProductId getter/setter/builder signatures change from CardProductIdEnum to String. Any caller referencing CardProductIdEnum or its constants
will fail to compile.


Features Added

Field Class Description
cardAltID ResponseAdditionalDataCard ALT ID (alternate ID) mapped to the Card PAN. Returned only for Ecommerce Card Payments in India.
networkProcessingMode ResponseAdditionalDataCommon Indicates the processing flow: sale (auto-capture) or auth (manual capture required).

Features Removed

Removed Class Details
CardProductIdEnum inner enum ResponseAdditionalDataCard Fully removed, including its @JsonCreator/@JsonValue logic and unknown-value warning. Unused imports
(JsonCreator, JsonValue, Arrays, Logger) are also cleaned up.

Behavioral Changes

Change Class Details
cardProductId type: CardProductIdEnumString ResponseAdditionalDataCard All getter, setter, and builder overloads now accept/return String. Enables forward-compatibility with card product IDs not previously enumerated by the enum. Breaking for existing callers.
equals / hashCode / toString updated ResponseAdditionalDataCard, ResponseAdditionalDataCommon New fields (cardAltID, networkProcessingMode) are included in equality checks, hash computation, and string serialization.
Null-serialization guard added for new fields ResponseAdditionalDataCard, ResponseAdditionalDataCommon The addIfNull / isSet* pattern is applied to both new fields, consistent with existing field handling.

Doc Changes

Change Class Details
"Possible values" → "Example values" ResponseAdditionalDataCard All Javadoc for cardProductId (getter, setter, builder) updated to reflect that the listed Visa/Mastercard codes are examples, not an exhaustive set — consistent with the type relaxation.

@jeandersonbc jeandersonbc added this pull request to the merge queue May 15, 2026
Merged via the queue into main with commit f03e7cf May 15, 2026
5 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.

2 participants