-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
80 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
from .base import AdyenServiceBase | ||
|
||
|
||
class AdyenDisputesApi(AdyenServiceBase): | ||
"""NOTE: This class is auto generated by OpenAPI Generator | ||
Ref: https://openapi-generator.tech | ||
Do not edit the class manually. | ||
""" | ||
|
||
def __init__(self, client=None): | ||
super(AdyenDisputesApi, self).__init__(client=client) | ||
self.service = "disputes" | ||
self.baseUrl = "https://ca-test.adyen.com/ca/services/DisputeService/v30" | ||
|
||
def accept_dispute(self, request, idempotency_key=None, **kwargs): | ||
""" | ||
Accept a dispute | ||
""" | ||
endpoint = self.baseUrl + f"/acceptDispute" | ||
method = "POST" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def defend_dispute(self, request, idempotency_key=None, **kwargs): | ||
""" | ||
Defend a dispute | ||
""" | ||
endpoint = self.baseUrl + f"/defendDispute" | ||
method = "POST" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def delete_dispute_defense_document(self, request, idempotency_key=None, **kwargs): | ||
""" | ||
Delete a defense document | ||
""" | ||
endpoint = self.baseUrl + f"/deleteDisputeDefenseDocument" | ||
method = "POST" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def download_dispute_defense_document(self, request, idempotency_key=None, **kwargs): | ||
""" | ||
Download a defense document | ||
""" | ||
endpoint = self.baseUrl + f"/downloadDisputeDefenseDocument" | ||
method = "POST" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def retrieve_applicable_defense_reasons(self, request, idempotency_key=None, **kwargs): | ||
""" | ||
Get applicable defense reasons | ||
""" | ||
endpoint = self.baseUrl + f"/retrieveApplicableDefenseReasons" | ||
method = "POST" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def supply_defense_document(self, request, idempotency_key=None, **kwargs): | ||
""" | ||
Supply a defense document | ||
""" | ||
endpoint = self.baseUrl + f"/supplyDefenseDocument" | ||
method = "POST" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters