[transfers] Code generation: update services and models#387
[transfers] Code generation: update services and models#387AdyenAutomationBot wants to merge 1 commit into
Conversation
|
There was a problem hiding this comment.
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.
| def capital_deprecated_api | ||
| @capital_deprecated_api ||= Adyen::CapitalDeprecatedApi.new(@client, @version) | ||
| end |
There was a problem hiding this comment.
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


This PR contains the automated changes for the
transfersservice.The commit history of this PR reflects the
adyen-openapicommits that have been applied.