Repository navigation
[foreignexchange] Code generation: update services and models - #406
AdyenAutomationBot wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces the ForeignExchange service and its associated RatesApi to calculate currency amounts. The review feedback highlights two critical issues: first, DEFAULT_VERSION is undefined in RatesApi, which will cause a NameError upon initialization; second, the 'ForeignExchange' service name is not yet supported in Adyen::Client#service_url_base, which will lead to an ArgumentError during API calls.
| def initialize(client, version = DEFAULT_VERSION) | ||
| super(client, version, 'ForeignExchange') | ||
| end |
There was a problem hiding this comment.
The constant DEFAULT_VERSION is not defined within the RatesApi class or the Adyen module scope, which will result in a NameError: uninitialized constant Adyen::RatesApi::DEFAULT_VERSION when initializing RatesApi without explicitly passing a version. Defining DEFAULT_VERSION = 1 inside the RatesApi class resolves this issue.
DEFAULT_VERSION = 1
def initialize(client, version = DEFAULT_VERSION)
super(client, version, 'ForeignExchange')
end|
|
||
| DEFAULT_VERSION = 1 | ||
| def initialize(client, version = DEFAULT_VERSION) | ||
| @service = 'ForeignExchange' |
There was a problem hiding this comment.
55521fb to
a216f07
Compare
7329c31 to
038f8fb
Compare
de0fc92 to
7aef115
Compare
7aef115 to
0aaa08f
Compare
|



This PR contains the automated changes for the
foreignexchangeservice.Adyen/adyen-openapi@a70bc37
The commit history of this PR reflects the
adyen-openapicommits that have been applied.