|
| 1 | +from ..base import AdyenServiceBase |
| 2 | + |
| 3 | + |
| 4 | +class SplitConfigurationMerchantLevelApi(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(SplitConfigurationMerchantLevelApi, self).__init__(client=client) |
| 13 | + self.service = "management" |
| 14 | + |
| 15 | + def delete_split_configuration(self, merchantId, splitConfigurationId, idempotency_key=None, **kwargs): |
| 16 | + """ |
| 17 | + Delete a split configuration |
| 18 | + """ |
| 19 | + endpoint = f"/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}" |
| 20 | + method = "DELETE" |
| 21 | + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) |
| 22 | + |
| 23 | + def delete_split_configuration_rule(self, merchantId, splitConfigurationId, splitConfigurationRuleId, idempotency_key=None, **kwargs): |
| 24 | + """ |
| 25 | + Delete a split configuration rule |
| 26 | + """ |
| 27 | + endpoint = f"/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{splitConfigurationRuleId}" |
| 28 | + method = "DELETE" |
| 29 | + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) |
| 30 | + |
| 31 | + def list_split_configurations(self, merchantId, idempotency_key=None, **kwargs): |
| 32 | + """ |
| 33 | + Get a list of split configurations |
| 34 | + """ |
| 35 | + endpoint = f"/merchants/{merchantId}/splitConfigurations" |
| 36 | + method = "GET" |
| 37 | + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) |
| 38 | + |
| 39 | + def get_split_configuration(self, merchantId, splitConfigurationId, idempotency_key=None, **kwargs): |
| 40 | + """ |
| 41 | + Get a split configuration |
| 42 | + """ |
| 43 | + endpoint = f"/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}" |
| 44 | + method = "GET" |
| 45 | + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) |
| 46 | + |
| 47 | + def update_split_configuration_description(self, request, merchantId, splitConfigurationId, idempotency_key=None, **kwargs): |
| 48 | + """ |
| 49 | + Update split configuration description |
| 50 | + """ |
| 51 | + endpoint = f"/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}" |
| 52 | + method = "PATCH" |
| 53 | + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) |
| 54 | + |
| 55 | + def update_split_conditions(self, request, merchantId, splitConfigurationId, ruleId, idempotency_key=None, **kwargs): |
| 56 | + """ |
| 57 | + Update split conditions |
| 58 | + """ |
| 59 | + endpoint = f"/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}" |
| 60 | + method = "PATCH" |
| 61 | + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) |
| 62 | + |
| 63 | + def update_split_logic(self, request, merchantId, splitConfigurationId, ruleId, splitLogicId, idempotency_key=None, **kwargs): |
| 64 | + """ |
| 65 | + Update the split logic |
| 66 | + """ |
| 67 | + endpoint = f"/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}/splitLogic/{splitLogicId}" |
| 68 | + method = "PATCH" |
| 69 | + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) |
| 70 | + |
| 71 | + def create_split_configuration(self, request, merchantId, idempotency_key=None, **kwargs): |
| 72 | + """ |
| 73 | + Create a split configuration |
| 74 | + """ |
| 75 | + endpoint = f"/merchants/{merchantId}/splitConfigurations" |
| 76 | + method = "POST" |
| 77 | + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) |
| 78 | + |
| 79 | + def create_rule(self, request, merchantId, splitConfigurationId, idempotency_key=None, **kwargs): |
| 80 | + """ |
| 81 | + Create a rule |
| 82 | + """ |
| 83 | + endpoint = f"/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}" |
| 84 | + method = "POST" |
| 85 | + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) |
| 86 | + |
0 commit comments