Class TermsOfServiceApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.legalentitymanagement.TermsOfServiceApi
-
public class TermsOfServiceApi extends Service
-
-
Constructor Summary
Constructors Constructor Description TermsOfServiceApi(Client client)
-
Method Summary
-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
TermsOfServiceApi
public TermsOfServiceApi(Client client)
-
-
Method Detail
-
getTermsOfServiceInformationForLegalEntity
public GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceInformationForLegalEntity(String id) throws ApiException, IOException
Get Terms of Service information for a legal entity- Parameters:
id-StringThe unique identifier of the legal entity. (required)- Returns:
GetTermsOfServiceAcceptanceInfosResponse- Throws:
ApiException- if fails to make API callIOException
-
getTermsOfServiceInformationForLegalEntity
public GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceInformationForLegalEntity(String id, RequestOptions requestOptions) throws ApiException, IOException
Get Terms of Service information for a legal entity- Parameters:
id-StringThe unique identifier of the legal entity. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
GetTermsOfServiceAcceptanceInfosResponse- Throws:
ApiException- if fails to make API callIOException
-
acceptTermsOfService
public AcceptTermsOfServiceResponse acceptTermsOfService(String id, String termsofservicedocumentid, AcceptTermsOfServiceRequest acceptTermsOfServiceRequest) throws ApiException, IOException
Accept Terms of Service- Parameters:
id-StringThe unique identifier of the legal entity. (required)termsofservicedocumentid-StringThe unique identifier of the Terms of Service document. (required)acceptTermsOfServiceRequest-AcceptTermsOfServiceRequest(required)- Returns:
AcceptTermsOfServiceResponse- Throws:
ApiException- if fails to make API callIOException
-
acceptTermsOfService
public AcceptTermsOfServiceResponse acceptTermsOfService(String id, String termsofservicedocumentid, AcceptTermsOfServiceRequest acceptTermsOfServiceRequest, RequestOptions requestOptions) throws ApiException, IOException
Accept Terms of Service- Parameters:
id-StringThe unique identifier of the legal entity. (required)termsofservicedocumentid-StringThe unique identifier of the Terms of Service document. (required)acceptTermsOfServiceRequest-AcceptTermsOfServiceRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
AcceptTermsOfServiceResponse- Throws:
ApiException- if fails to make API callIOException
-
getTermsOfServiceDocument
public GetTermsOfServiceDocumentResponse getTermsOfServiceDocument(String id, GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest) throws ApiException, IOException
Get Terms of Service document- Parameters:
id-StringThe unique identifier of the legal entity. (required)getTermsOfServiceDocumentRequest-GetTermsOfServiceDocumentRequest(required)- Returns:
GetTermsOfServiceDocumentResponse- Throws:
ApiException- if fails to make API callIOException
-
getTermsOfServiceDocument
public GetTermsOfServiceDocumentResponse getTermsOfServiceDocument(String id, GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest, RequestOptions requestOptions) throws ApiException, IOException
Get Terms of Service document- Parameters:
id-StringThe unique identifier of the legal entity. (required)getTermsOfServiceDocumentRequest-GetTermsOfServiceDocumentRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
GetTermsOfServiceDocumentResponse- Throws:
ApiException- if fails to make API callIOException
-
-