Class DocumentsApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.legalentitymanagement.DocumentsApi
-
public class DocumentsApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description DocumentsApi(Client client)Documents constructor inpackage.DocumentsApi(Client client, String baseURL)Documents constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteDocument(String id)Delete a documentvoiddeleteDocument(String id, RequestOptions requestOptions)Delete a documentDocumentgetDocument(String id)Get a documentDocumentgetDocument(String id, Boolean skipContent, RequestOptions requestOptions)Get a documentDocumentupdateDocument(String id, Document document)Update a documentDocumentupdateDocument(String id, Document document, RequestOptions requestOptions)Update a documentDocumentuploadDocumentForVerificationChecks(Document document)Upload a document for verification checksDocumentuploadDocumentForVerificationChecks(Document document, RequestOptions requestOptions)Upload a document for verification checks-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
DocumentsApi
public DocumentsApi(Client client)
Documents constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
deleteDocument
public void deleteDocument(String id) throws ApiException, IOException
Delete a document- Parameters:
id-StringThe unique identifier of the document to be deleted. (required)- Throws:
ApiException- if fails to make API callIOException
-
deleteDocument
public void deleteDocument(String id, RequestOptions requestOptions) throws ApiException, IOException
Delete a document- Parameters:
id-StringThe unique identifier of the document to be deleted. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
getDocument
public Document getDocument(String id) throws ApiException, IOException
Get a document- Parameters:
id-StringThe unique identifier of the document. (required)- Returns:
Document- Throws:
ApiException- if fails to make API callIOException
-
getDocument
public Document getDocument(String id, Boolean skipContent, RequestOptions requestOptions) throws ApiException, IOException
Get a document- Parameters:
id-StringThe unique identifier of the document. (required)skipContent-BooleanQuery: Do not load document content while fetching the document. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Document- Throws:
ApiException- if fails to make API callIOException
-
updateDocument
public Document updateDocument(String id, Document document) throws ApiException, IOException
Update a document- Parameters:
id-StringThe unique identifier of the document to be updated. (required)document-Document(required)- Returns:
Document- Throws:
ApiException- if fails to make API callIOException
-
updateDocument
public Document updateDocument(String id, Document document, RequestOptions requestOptions) throws ApiException, IOException
Update a document- Parameters:
id-StringThe unique identifier of the document to be updated. (required)document-Document(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Document- Throws:
ApiException- if fails to make API callIOException
-
uploadDocumentForVerificationChecks
public Document uploadDocumentForVerificationChecks(Document document) throws ApiException, IOException
Upload a document for verification checks- Parameters:
document-Document(required)- Returns:
Document- Throws:
ApiException- if fails to make API callIOException
-
uploadDocumentForVerificationChecks
public Document uploadDocumentForVerificationChecks(Document document, RequestOptions requestOptions) throws ApiException, IOException
Upload a document for verification checks- Parameters:
document-Document(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Document- Throws:
ApiException- if fails to make API callIOException
-
-