|
| 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