Skip to content

Commit 3fd60ad

Browse files
[payout] Automated update from Adyen/adyen-openapi@37c03ec
1 parent bb9a385 commit 3fd60ad

4 files changed

Lines changed: 19 additions & 28 deletions

File tree

Adyen/services/payouts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class AdyenPayoutsApi(AdyenServiceBase):
1212
"""
1313

1414
def __init__(self, client=None):
15-
super().__init__(client=client)
15+
super(AdyenPayoutsApi, self).__init__(client=client)
1616
self.initialization_api = InitializationApi(client=client)
1717
self.instant_payouts_api = InstantPayoutsApi(client=client)
1818
self.reviewing_api = ReviewingApi(client=client)

Adyen/services/payouts/initialization_api.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,31 @@ class InitializationApi(AdyenServiceBase):
99
"""
1010

1111
def __init__(self, client=None):
12-
super().__init__(client=client)
12+
super(InitializationApi, self).__init__(client=client)
1313
self.service = "payouts"
1414
self.baseUrl = "https://pal-test.adyen.com/pal/servlet/Payout/v68"
1515

1616
def store_detail(self, request, idempotency_key=None, **kwargs):
1717
"""
1818
Store payout details
1919
"""
20-
endpoint = self.baseUrl + "/storeDetail"
20+
endpoint = self.baseUrl + f"/storeDetail"
2121
method = "POST"
22-
return self.client.call_adyen_api(
23-
request, self.service, method, endpoint, idempotency_key, **kwargs
24-
)
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
2523

2624
def store_detail_and_submit_third_party(self, request, idempotency_key=None, **kwargs):
2725
"""
2826
Store details and submit a payout
2927
"""
30-
endpoint = self.baseUrl + "/storeDetailAndSubmitThirdParty"
28+
endpoint = self.baseUrl + f"/storeDetailAndSubmitThirdParty"
3129
method = "POST"
32-
return self.client.call_adyen_api(
33-
request, self.service, method, endpoint, idempotency_key, **kwargs
34-
)
30+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
3531

3632
def submit_third_party(self, request, idempotency_key=None, **kwargs):
3733
"""
3834
Submit a payout
3935
"""
40-
endpoint = self.baseUrl + "/submitThirdParty"
36+
endpoint = self.baseUrl + f"/submitThirdParty"
4137
method = "POST"
42-
return self.client.call_adyen_api(
43-
request, self.service, method, endpoint, idempotency_key, **kwargs
44-
)
38+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
39+

Adyen/services/payouts/instant_payouts_api.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@ class InstantPayoutsApi(AdyenServiceBase):
99
"""
1010

1111
def __init__(self, client=None):
12-
super().__init__(client=client)
12+
super(InstantPayoutsApi, self).__init__(client=client)
1313
self.service = "payouts"
1414
self.baseUrl = "https://pal-test.adyen.com/pal/servlet/Payout/v68"
1515

1616
def payout(self, request, idempotency_key=None, **kwargs):
1717
"""
1818
Make an instant card payout
1919
"""
20-
endpoint = self.baseUrl + "/payout"
20+
endpoint = self.baseUrl + f"/payout"
2121
method = "POST"
22-
return self.client.call_adyen_api(
23-
request, self.service, method, endpoint, idempotency_key, **kwargs
24-
)
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+

Adyen/services/payouts/reviewing_api.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,23 @@ class ReviewingApi(AdyenServiceBase):
99
"""
1010

1111
def __init__(self, client=None):
12-
super().__init__(client=client)
12+
super(ReviewingApi, self).__init__(client=client)
1313
self.service = "payouts"
1414
self.baseUrl = "https://pal-test.adyen.com/pal/servlet/Payout/v68"
1515

1616
def confirm_third_party(self, request, idempotency_key=None, **kwargs):
1717
"""
1818
Confirm a payout
1919
"""
20-
endpoint = self.baseUrl + "/confirmThirdParty"
20+
endpoint = self.baseUrl + f"/confirmThirdParty"
2121
method = "POST"
22-
return self.client.call_adyen_api(
23-
request, self.service, method, endpoint, idempotency_key, **kwargs
24-
)
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
2523

2624
def decline_third_party(self, request, idempotency_key=None, **kwargs):
2725
"""
2826
Cancel a payout
2927
"""
30-
endpoint = self.baseUrl + "/declineThirdParty"
28+
endpoint = self.baseUrl + f"/declineThirdParty"
3129
method = "POST"
32-
return self.client.call_adyen_api(
33-
request, self.service, method, endpoint, idempotency_key, **kwargs
34-
)
30+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
31+

0 commit comments

Comments
 (0)