-
Notifications
You must be signed in to change notification settings - Fork 47
[balancecontrol] Code generation: update services and models #449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,8 +19,7 @@ | |||||||||
|
|
||||||||||
| Deprecated since Adyen Balance Control API v1 | ||||||||||
| """ | ||||||||||
| endpoint = self.baseUrl + "/balanceTransfer" | ||||||||||
| endpoint = self.baseUrl + f"/balanceTransfer" | ||||||||||
|
Check warning on line 22 in Adyen/services/balanceControl/balance_control_api.py
|
||||||||||
| method = "POST" | ||||||||||
| return self.client.call_adyen_api( | ||||||||||
| request, self.service, method, endpoint, idempotency_key, **kwargs | ||||||||||
| ) | ||||||||||
| return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line is over 100 characters long, which harms readability and violates common Python style guidelines (like PEP 8) for line length. The previous multi-line format was more readable. It's better to break long lines for maintainability.
Suggested change
|
||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of an f-string
f"/balanceTransfer"without any expressions to interpolate is unnecessary and can be confusing. It's functionally equivalent to a regular string"/balanceTransfer". For better clarity, it's best to remove thefprefix.