-
Notifications
You must be signed in to change notification settings - Fork 47
[binlookup] Code generation: update services and models #451
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -17,18 +17,15 @@ | |||||||||
| """ | ||||||||||
| Check if 3D Secure is available | ||||||||||
| """ | ||||||||||
| endpoint = self.baseUrl + "/get3dsAvailability" | ||||||||||
| endpoint = self.baseUrl + f"/get3dsAvailability" | ||||||||||
|
Check warning on line 20 in Adyen/services/binlookup/bin_lookup_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 120 characters long, which makes it difficult to read and violates common Python style guides (like PEP 8). The previous multi-line version was more readable. It's recommended to break up long lines.
Suggested change
|
||||||||||
|
|
||||||||||
| def get_cost_estimate(self, request, idempotency_key=None, **kwargs): | ||||||||||
| """ | ||||||||||
| Get a fees cost estimate | ||||||||||
| """ | ||||||||||
| endpoint = self.baseUrl + "/getCostEstimate" | ||||||||||
| endpoint = self.baseUrl + f"/getCostEstimate" | ||||||||||
|
Check warning on line 28 in Adyen/services/binlookup/bin_lookup_api.py
|
||||||||||
|
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. The use of an f-string on a static string
Suggested change
|
||||||||||
| 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 120 characters long, which makes it difficult to read and violates common Python style guides (like PEP 8). The previous multi-line version was more readable. It's recommended to break up long lines.
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 on a static string
f"/get3dsAvailability"is unnecessary as it provides no formatting. For improved readability and to make the string formatting intention clear, it's better to format the entire URL endpoint using an f-string.