Skip to content

[transferwebhooks] Code generation: update services and models - #914

Merged
ashwaniarya-adyen merged 1 commit into
mainfrom
sdk-automation/transferwebhooks
Aug 31, 2026
Merged

[transferwebhooks] Code generation: update services and models#914
ashwaniarya-adyen merged 1 commit into
mainfrom
sdk-automation/transferwebhooks

Conversation

@AdyenAutomationBot

@AdyenAutomationBot AdyenAutomationBot commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the transferwebhooks service.

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

New Features -

Adds network reason details to transfers.
Adds tracing models for UK Faster Payments and US ACH.
Removes the obsolete adviceAuthorised and adviceRefused status values.

@AdyenAutomationBot
AdyenAutomationBot requested a review from a team as a code owner July 6, 2026 17:27

@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 updates the Transfer Webhooks models by removing deprecated status constants and introducing new models for network reasons and tracing data, specifically NetworkReason, TransferDataTracing, TransferEventTracingData, UKFpsTracingData, and USAchTracingData. Feedback is provided regarding the validation logic in TransferDataTracing and TransferEventTracingData, where fpid and traceNumber are currently unconditionally required. Since these fields are mutually exclusive depending on the tracing type (ukFps vs. usAch), the validation checks should be made conditional to prevent webhook validation failures when one of the fields is null.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +275 to +284
public function listInvalidProperties()
{
$invalidProperties = [];

if ($this->container['fpid'] === null) {
$invalidProperties[] = "'fpid' can't be null";
}
if ($this->container['type'] === null) {
$invalidProperties[] = "'type' can't be null";
}

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

The TransferDataTracing model represents tracing data for either UK Faster Payments (ukFps) or US ACH (usAch) transfers. Since a transfer can only belong to one of these networks, fpid and traceNumber are mutually exclusive and should not both be unconditionally required. Currently, if either is null, validation fails, which breaks webhook validation. These checks should be made conditional on the type of tracing.

        if ($this->container['type'] === 'ukFps' && $this->container['fpid'] === null) {
            $invalidProperties[] = "'fpid' can't be null";
        }
        if ($this->container['type'] === null) {
            $invalidProperties[] = "'type' can't be null";
        }

        if ($this->container['type'] === 'usAch' && $this->container['traceNumber'] === null) {
            $invalidProperties[] = "'traceNumber' can't be null";
        }

Comment on lines +275 to +284
public function listInvalidProperties()
{
$invalidProperties = [];

if ($this->container['fpid'] === null) {
$invalidProperties[] = "'fpid' can't be null";
}
if ($this->container['type'] === null) {
$invalidProperties[] = "'type' can't be null";
}

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

The TransferEventTracingData model represents tracing data for either UK Faster Payments (ukFps) or US ACH (usAch) transfers. Since a transfer can only belong to one of these networks, fpid and traceNumber are mutually exclusive and should not both be unconditionally required. Currently, if either is null, validation fails, which breaks webhook validation. These checks should be made conditional on the type of tracing.

        if ($this->container['type'] === 'ukFps' && $this->container['fpid'] === null) {
            $invalidProperties[] = "'fpid' can't be null";
        }
        if ($this->container['type'] === null) {
            $invalidProperties[] = "'type' can't be null";
        }

        if ($this->container['type'] === 'usAch' && $this->container['traceNumber'] === null) {
            $invalidProperties[] = "'traceNumber' can't be null";
        }

@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transferwebhooks branch 4 times, most recently from d9d4b6a to 2918495 Compare July 13, 2026 14:26
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transferwebhooks branch 7 times, most recently from caf4095 to 5ca1668 Compare July 21, 2026 09:57
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transferwebhooks branch 4 times, most recently from a061991 to 70a8a46 Compare July 27, 2026 10:32
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transferwebhooks branch 3 times, most recently from 2389c46 to b26d5c4 Compare August 4, 2026 17:19
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transferwebhooks branch 3 times, most recently from 108650e to 50c5518 Compare August 21, 2026 14:05
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transferwebhooks branch 2 times, most recently from f07670d to cddb82e Compare August 27, 2026 14:02
@ashwaniarya-adyen

Copy link
Copy Markdown

SDK Automator not taking care of -
oneOf:
- $ref: '#/components/schemas/UKFpsTracingData'
- $ref: '#/components/schemas/USAchTracingData'
Functionality Bug, so not sure it should be merged !!

@ashwaniarya-adyen

Copy link
Copy Markdown

The changes match the OpenAPI update. The tracing models are affected by the PHP generator’s known oneOf limitation, which will be addressed separately and does not regress existing webhook flows. Approving and merging.

@ashwaniarya-adyen
ashwaniarya-adyen force-pushed the sdk-automation/transferwebhooks branch from cddb82e to 8542fc4 Compare August 31, 2026 13:15
@sonarqubecloud

Copy link
Copy Markdown

@ashwaniarya-adyen
ashwaniarya-adyen added this pull request to the merge queue Aug 31, 2026
Merged via the queue into main with commit 077f8fe Aug 31, 2026
10 checks passed
@ashwaniarya-adyen
ashwaniarya-adyen deleted the sdk-automation/transferwebhooks branch August 31, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants