Skip to content

Commit 9377a3c

Browse files
false[adyen-sdk-automation] automated change (#326)
1 parent e1f98ca commit 9377a3c

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from ..base import AdyenServiceBase
2+
from .payments_app_api import PaymentsAppApi
3+
4+
5+
class AdyenPaymentsAppApi(AdyenServiceBase):
6+
"""NOTE: This class is auto generated by OpenAPI Generator
7+
Ref: https://openapi-generator.tech
8+
9+
Do not edit the class manually.
10+
"""
11+
12+
def __init__(self, client=None):
13+
super(AdyenPaymentsAppApi, self).__init__(client=client)
14+
self.payments_app_api = PaymentsAppApi(client=client)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
from ..base import AdyenServiceBase
2+
3+
4+
class PaymentsAppApi(AdyenServiceBase):
5+
"""NOTE: This class is auto generated by OpenAPI Generator
6+
Ref: https://openapi-generator.tech
7+
8+
Do not edit the class manually.
9+
"""
10+
11+
def __init__(self, client=None):
12+
super(PaymentsAppApi, self).__init__(client=client)
13+
self.service = "paymentsApp"
14+
self.baseUrl = "https://management-live.adyen.com/v1"
15+
16+
def generate_payments_app_boarding_token_for_merchant(self, request, merchantId, boardingTokenRequest, idempotency_key=None, **kwargs):
17+
"""
18+
Create a boarding token - merchant level
19+
"""
20+
endpoint = self.baseUrl + f"/merchants/{merchantId}/generatePaymentsAppBoardingToken"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
24+
def generate_payments_app_boarding_token_for_store(self, request, merchantId, storeId, boardingTokenRequest, idempotency_key=None, **kwargs):
25+
"""
26+
Create a boarding token - store level
27+
"""
28+
endpoint = self.baseUrl + f"/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken"
29+
method = "POST"
30+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
31+
32+
def list_payments_app_for_merchant(self, merchantId, idempotency_key=None, **kwargs):
33+
"""
34+
Get a list of Payments Apps - merchant level
35+
"""
36+
endpoint = self.baseUrl + f"/merchants/{merchantId}/paymentsApps"
37+
method = "GET"
38+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
39+
40+
def list_payments_app_for_store(self, merchantId, storeId, idempotency_key=None, **kwargs):
41+
"""
42+
Get a list of Payments Apps - store level
43+
"""
44+
endpoint = self.baseUrl + f"/merchants/{merchantId}/stores/{storeId}/paymentsApps"
45+
method = "GET"
46+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
47+
48+
def revoke_payments_app(self, merchantId, installationId, idempotency_key=None, **kwargs):
49+
"""
50+
Revoke Payments App instance authentication
51+
"""
52+
endpoint = self.baseUrl + f"/merchants/{merchantId}/paymentsApps/{installationId}/revoke"
53+
method = "POST"
54+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
55+

0 commit comments

Comments
 (0)