Skip to content

Commit 74ade84

Browse files
[paymentsapp] Automated update from Adyen/adyen-openapi@6f2bb26
1 parent ff7647e commit 74ade84

1 file changed

Lines changed: 9 additions & 25 deletions

File tree

Adyen/services/paymentsApp/payments_app_api.py

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,59 +13,43 @@ def __init__(self, client=None):
1313
self.service = "paymentsApp"
1414
self.baseUrl = "https://management-live.adyen.com/v1"
1515

16-
def generate_payments_app_boarding_token_for_merchant(
17-
self, request, merchantId, idempotency_key=None, **kwargs
18-
):
16+
def generate_payments_app_boarding_token_for_merchant(self, request, merchantId, idempotency_key=None, **kwargs):
1917
"""
2018
Create a boarding token - merchant level
2119
"""
2220
endpoint = self.baseUrl + f"/merchants/{merchantId}/generatePaymentsAppBoardingToken"
2321
method = "POST"
24-
return self.client.call_adyen_api(
25-
request, self.service, method, endpoint, idempotency_key, **kwargs
26-
)
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
2723

28-
def generate_payments_app_boarding_token_for_store(
29-
self, request, merchantId, storeId, idempotency_key=None, **kwargs
30-
):
24+
def generate_payments_app_boarding_token_for_store(self, request, merchantId, storeId, idempotency_key=None, **kwargs):
3125
"""
3226
Create a boarding token - store level
3327
"""
34-
endpoint = (
35-
self.baseUrl
36-
+ f"/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken"
37-
)
28+
endpoint = self.baseUrl + f"/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken"
3829
method = "POST"
39-
return self.client.call_adyen_api(
40-
request, self.service, method, endpoint, idempotency_key, **kwargs
41-
)
30+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
4231

4332
def list_payments_app_for_merchant(self, merchantId, idempotency_key=None, **kwargs):
4433
"""
4534
Get a list of Payments Apps - merchant level
4635
"""
4736
endpoint = self.baseUrl + f"/merchants/{merchantId}/paymentsApps"
4837
method = "GET"
49-
return self.client.call_adyen_api(
50-
None, self.service, method, endpoint, idempotency_key, **kwargs
51-
)
38+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
5239

5340
def list_payments_app_for_store(self, merchantId, storeId, idempotency_key=None, **kwargs):
5441
"""
5542
Get a list of Payments Apps - store level
5643
"""
5744
endpoint = self.baseUrl + f"/merchants/{merchantId}/stores/{storeId}/paymentsApps"
5845
method = "GET"
59-
return self.client.call_adyen_api(
60-
None, self.service, method, endpoint, idempotency_key, **kwargs
61-
)
46+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
6247

6348
def revoke_payments_app(self, merchantId, installationId, idempotency_key=None, **kwargs):
6449
"""
6550
Revoke Payments App instance authentication
6651
"""
6752
endpoint = self.baseUrl + f"/merchants/{merchantId}/paymentsApps/{installationId}/revoke"
6853
method = "POST"
69-
return self.client.call_adyen_api(
70-
None, self.service, method, endpoint, idempotency_key, **kwargs
71-
)
54+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
55+

0 commit comments

Comments
 (0)