-
Notifications
You must be signed in to change notification settings - Fork 47
[payout] Code generation: update services and models #448
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,28 +17,23 @@ | |||||
| """ | ||||||
| Store payout details | ||||||
| """ | ||||||
| endpoint = self.baseUrl + "/storeDetail" | ||||||
| endpoint = self.baseUrl + f"/storeDetail" | ||||||
|
Check warning on line 20 in Adyen/services/payouts/initialization_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) | ||||||
|
|
||||||
| def store_detail_and_submit_third_party(self, request, idempotency_key=None, **kwargs): | ||||||
| """ | ||||||
| Store details and submit a payout | ||||||
| """ | ||||||
| endpoint = self.baseUrl + "/storeDetailAndSubmitThirdParty" | ||||||
| endpoint = self.baseUrl + f"/storeDetailAndSubmitThirdParty" | ||||||
|
Check warning on line 28 in Adyen/services/payouts/initialization_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 for 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) | ||||||
|
|
||||||
| def submit_third_party(self, request, idempotency_key=None, **kwargs): | ||||||
| """ | ||||||
| Submit a payout | ||||||
| """ | ||||||
| endpoint = self.baseUrl + "/submitThirdParty" | ||||||
| endpoint = self.baseUrl + f"/submitThirdParty" | ||||||
|
Check warning on line 36 in Adyen/services/payouts/initialization_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 for 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) | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -17,8 +17,7 @@ | |||||
| """ | ||||||
| Make an instant card payout | ||||||
| """ | ||||||
| endpoint = self.baseUrl + "/payout" | ||||||
| endpoint = self.baseUrl + f"/payout" | ||||||
|
Check warning on line 20 in Adyen/services/payouts/instant_payouts_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 for 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) | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -17,18 +17,15 @@ | |||||
| """ | ||||||
| Confirm a payout | ||||||
| """ | ||||||
| endpoint = self.baseUrl + "/confirmThirdParty" | ||||||
| endpoint = self.baseUrl + f"/confirmThirdParty" | ||||||
|
Check warning on line 20 in Adyen/services/payouts/reviewing_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 for 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) | ||||||
|
|
||||||
| def decline_third_party(self, request, idempotency_key=None, **kwargs): | ||||||
| """ | ||||||
| Cancel a payout | ||||||
| """ | ||||||
| endpoint = self.baseUrl + "/declineThirdParty" | ||||||
| endpoint = self.baseUrl + f"/declineThirdParty" | ||||||
|
Check warning on line 28 in Adyen/services/payouts/reviewing_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 for 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) | ||||||
|
|
||||||
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 for a static string
/storeDetailis unnecessary, and concatenating it withself.baseUrlis not ideal. For better readability and to follow Python best practices, you can use a single f-string to construct the entire endpoint URL.