Skip to content

[transfers] Code generation: update services and models#387

Open
AdyenAutomationBot wants to merge 1 commit into
mainfrom
sdk-automation/transfers
Open

[transfers] Code generation: update services and models#387
AdyenAutomationBot wants to merge 1 commit into
mainfrom
sdk-automation/transfers

Conversation

@AdyenAutomationBot
Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the transfers 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 June 1, 2026 09:44
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 1, 2026

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 updates the transfers service by renaming the CapitalApi class and its corresponding accessor to CapitalDeprecatedApi, and introducing a new CashOutApi service with an initiate_cashout endpoint. Feedback on these changes highlights that renaming the public capital_api method is a breaking change for SDK consumers. It is recommended to retain capital_api as a deprecated alias that delegates to capital_deprecated_api and issues a deprecation warning to preserve backward compatibility.

Comment on lines +22 to +24
def capital_deprecated_api
@capital_deprecated_api ||= Adyen::CapitalDeprecatedApi.new(@client, @version)
end
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

Renaming the public method capital_api to capital_deprecated_api is a breaking change for users of this SDK who are currently calling client.transfers.capital_api.

To maintain backward compatibility and prevent breaking existing integrations, please retain the capital_api method as a deprecated alias that delegates to capital_deprecated_api and outputs a deprecation warning.

    def capital_deprecated_api
      @capital_deprecated_api ||= Adyen::CapitalDeprecatedApi.new(@client, @version)
    end

    def capital_api
      warn "[DEPRECATION] `capital_api` is deprecated. Use `capital_deprecated_api` instead."
      capital_deprecated_api
    end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant