public class ReceivedDocumentsApi
extends java.lang.Object
| Constructor and Description |
|---|
ReceivedDocumentsApi() |
ReceivedDocumentsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
CreateReceivedDocumentResponse |
createReceivedDocument(java.lang.Integer companyId,
CreateReceivedDocumentRequest createReceivedDocumentRequest)
Create Received Document Creates a new document.
|
okhttp3.Call |
createReceivedDocumentAsync(java.lang.Integer companyId,
CreateReceivedDocumentRequest createReceivedDocumentRequest,
ApiCallback<CreateReceivedDocumentResponse> _callback)
Create Received Document (asynchronously) Creates a new document.
|
okhttp3.Call |
createReceivedDocumentCall(java.lang.Integer companyId,
CreateReceivedDocumentRequest createReceivedDocumentRequest,
ApiCallback _callback)
Build call for createReceivedDocument
|
ApiResponse<CreateReceivedDocumentResponse> |
createReceivedDocumentWithHttpInfo(java.lang.Integer companyId,
CreateReceivedDocumentRequest createReceivedDocumentRequest)
Create Received Document Creates a new document.
|
void |
deleteReceivedDocument(java.lang.Integer companyId,
java.lang.Integer documentId)
Delete Received Document Deletes the specified document.
|
okhttp3.Call |
deleteReceivedDocumentAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
ApiCallback<java.lang.Void> _callback)
Delete Received Document (asynchronously) Deletes the specified document.
|
void |
deleteReceivedDocumentAttachment(java.lang.Integer companyId,
java.lang.Integer documentId)
Delete Received Document Attachment Removes the attachment of the specified document.
|
okhttp3.Call |
deleteReceivedDocumentAttachmentAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
ApiCallback<java.lang.Void> _callback)
Delete Received Document Attachment (asynchronously) Removes the attachment of the specified
document.
|
okhttp3.Call |
deleteReceivedDocumentAttachmentCall(java.lang.Integer companyId,
java.lang.Integer documentId,
ApiCallback _callback)
Build call for deleteReceivedDocumentAttachment
|
ApiResponse<java.lang.Void> |
deleteReceivedDocumentAttachmentWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer documentId)
Delete Received Document Attachment Removes the attachment of the specified document.
|
okhttp3.Call |
deleteReceivedDocumentCall(java.lang.Integer companyId,
java.lang.Integer documentId,
ApiCallback _callback)
Build call for deleteReceivedDocument
|
ApiResponse<java.lang.Void> |
deleteReceivedDocumentWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer documentId)
Delete Received Document Deletes the specified document.
|
ApiClient |
getApiClient() |
java.lang.String |
getCustomBaseUrl() |
GetExistingReceivedDocumentTotalsResponse |
getExistingReceivedDocumentTotals(java.lang.Integer companyId,
java.lang.Integer documentId,
GetExistingReceivedDocumentTotalsRequest getExistingReceivedDocumentTotalsRequest)
Get Existing Received Document Totals Returns the totals for the specified document.
|
okhttp3.Call |
getExistingReceivedDocumentTotalsAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
GetExistingReceivedDocumentTotalsRequest getExistingReceivedDocumentTotalsRequest,
ApiCallback<GetExistingReceivedDocumentTotalsResponse> _callback)
Get Existing Received Document Totals (asynchronously) Returns the totals for the specified
document.
|
okhttp3.Call |
getExistingReceivedDocumentTotalsCall(java.lang.Integer companyId,
java.lang.Integer documentId,
GetExistingReceivedDocumentTotalsRequest getExistingReceivedDocumentTotalsRequest,
ApiCallback _callback)
Build call for getExistingReceivedDocumentTotals
|
ApiResponse<GetExistingReceivedDocumentTotalsResponse> |
getExistingReceivedDocumentTotalsWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer documentId,
GetExistingReceivedDocumentTotalsRequest getExistingReceivedDocumentTotalsRequest)
Get Existing Received Document Totals Returns the totals for the specified document.
|
int |
getHostIndex() |
GetNewReceivedDocumentTotalsResponse |
getNewReceivedDocumentTotals(java.lang.Integer companyId,
GetNewReceivedDocumentTotalsRequest getNewReceivedDocumentTotalsRequest)
Get New Received Document Totals Returns the totals for a new document.
|
okhttp3.Call |
getNewReceivedDocumentTotalsAsync(java.lang.Integer companyId,
GetNewReceivedDocumentTotalsRequest getNewReceivedDocumentTotalsRequest,
ApiCallback<GetNewReceivedDocumentTotalsResponse> _callback)
Get New Received Document Totals (asynchronously) Returns the totals for a new document.
|
okhttp3.Call |
getNewReceivedDocumentTotalsCall(java.lang.Integer companyId,
GetNewReceivedDocumentTotalsRequest getNewReceivedDocumentTotalsRequest,
ApiCallback _callback)
Build call for getNewReceivedDocumentTotals
|
ApiResponse<GetNewReceivedDocumentTotalsResponse> |
getNewReceivedDocumentTotalsWithHttpInfo(java.lang.Integer companyId,
GetNewReceivedDocumentTotalsRequest getNewReceivedDocumentTotalsRequest)
Get New Received Document Totals Returns the totals for a new document.
|
GetReceivedDocumentResponse |
getReceivedDocument(java.lang.Integer companyId,
java.lang.Integer documentId,
java.lang.String fields,
java.lang.String fieldset)
Get Received Document Gets the specified document.
|
okhttp3.Call |
getReceivedDocumentAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback<GetReceivedDocumentResponse> _callback)
Get Received Document (asynchronously) Gets the specified document.
|
okhttp3.Call |
getReceivedDocumentCall(java.lang.Integer companyId,
java.lang.Integer documentId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback _callback)
Build call for getReceivedDocument
|
GetReceivedDocumentPreCreateInfoResponse |
getReceivedDocumentPreCreateInfo(java.lang.Integer companyId,
java.lang.String type)
Get Received Document Pre-Create Info Retrieves the information useful while creating a new
document.
|
okhttp3.Call |
getReceivedDocumentPreCreateInfoAsync(java.lang.Integer companyId,
java.lang.String type,
ApiCallback<GetReceivedDocumentPreCreateInfoResponse> _callback)
Get Received Document Pre-Create Info (asynchronously) Retrieves the information useful while
creating a new document.
|
okhttp3.Call |
getReceivedDocumentPreCreateInfoCall(java.lang.Integer companyId,
java.lang.String type,
ApiCallback _callback)
Build call for getReceivedDocumentPreCreateInfo
|
ApiResponse<GetReceivedDocumentPreCreateInfoResponse> |
getReceivedDocumentPreCreateInfoWithHttpInfo(java.lang.Integer companyId,
java.lang.String type)
Get Received Document Pre-Create Info Retrieves the information useful while creating a new
document.
|
ApiResponse<GetReceivedDocumentResponse> |
getReceivedDocumentWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer documentId,
java.lang.String fields,
java.lang.String fieldset)
Get Received Document Gets the specified document.
|
ListReceivedDocumentsResponse |
listReceivedDocuments(java.lang.Integer companyId,
java.lang.String type,
java.lang.String fields,
java.lang.String fieldset,
java.lang.String sort,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String q)
List Received Documents Lists the received documents.
|
okhttp3.Call |
listReceivedDocumentsAsync(java.lang.Integer companyId,
java.lang.String type,
java.lang.String fields,
java.lang.String fieldset,
java.lang.String sort,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String q,
ApiCallback<ListReceivedDocumentsResponse> _callback)
List Received Documents (asynchronously) Lists the received documents.
|
okhttp3.Call |
listReceivedDocumentsCall(java.lang.Integer companyId,
java.lang.String type,
java.lang.String fields,
java.lang.String fieldset,
java.lang.String sort,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String q,
ApiCallback _callback)
Build call for listReceivedDocuments
|
ApiResponse<ListReceivedDocumentsResponse> |
listReceivedDocumentsWithHttpInfo(java.lang.Integer companyId,
java.lang.String type,
java.lang.String fields,
java.lang.String fieldset,
java.lang.String sort,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String q)
List Received Documents Lists the received documents.
|
ModifyReceivedDocumentResponse |
modifyReceivedDocument(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceivedDocumentRequest modifyReceivedDocumentRequest)
Modify Received Document Modifies the specified document.
|
okhttp3.Call |
modifyReceivedDocumentAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceivedDocumentRequest modifyReceivedDocumentRequest,
ApiCallback<ModifyReceivedDocumentResponse> _callback)
Modify Received Document (asynchronously) Modifies the specified document.
|
okhttp3.Call |
modifyReceivedDocumentCall(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceivedDocumentRequest modifyReceivedDocumentRequest,
ApiCallback _callback)
Build call for modifyReceivedDocument
|
ApiResponse<ModifyReceivedDocumentResponse> |
modifyReceivedDocumentWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceivedDocumentRequest modifyReceivedDocumentRequest)
Modify Received Document Modifies the specified document.
|
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(java.lang.String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
UploadReceivedDocumentAttachmentResponse |
uploadReceivedDocumentAttachment(java.lang.Integer companyId,
java.lang.String filename,
java.io.File attachment)
Upload Received Document Attachment Uploads an attachment destined to a received document.
|
okhttp3.Call |
uploadReceivedDocumentAttachmentAsync(java.lang.Integer companyId,
java.lang.String filename,
java.io.File attachment,
ApiCallback<UploadReceivedDocumentAttachmentResponse> _callback)
Upload Received Document Attachment (asynchronously) Uploads an attachment destined to a
received document.
|
okhttp3.Call |
uploadReceivedDocumentAttachmentCall(java.lang.Integer companyId,
java.lang.String filename,
java.io.File attachment,
ApiCallback _callback)
Build call for uploadReceivedDocumentAttachment
|
ApiResponse<UploadReceivedDocumentAttachmentResponse> |
uploadReceivedDocumentAttachmentWithHttpInfo(java.lang.Integer companyId,
java.lang.String filename,
java.io.File attachment)
Upload Received Document Attachment Uploads an attachment destined to a received document.
|
public ReceivedDocumentsApi()
public ReceivedDocumentsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public java.lang.String getCustomBaseUrl()
public void setCustomBaseUrl(java.lang.String customBaseUrl)
public okhttp3.Call createReceivedDocumentCall(java.lang.Integer companyId,
CreateReceivedDocumentRequest createReceivedDocumentRequest,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)createReceivedDocumentRequest - Document to create (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Document created. | - |
public CreateReceivedDocumentResponse createReceivedDocument(java.lang.Integer companyId, CreateReceivedDocumentRequest createReceivedDocumentRequest) throws ApiException
companyId - The ID of the company. (required)createReceivedDocumentRequest - Document to create (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Document created. | - |
public ApiResponse<CreateReceivedDocumentResponse> createReceivedDocumentWithHttpInfo(java.lang.Integer companyId, CreateReceivedDocumentRequest createReceivedDocumentRequest) throws ApiException
companyId - The ID of the company. (required)createReceivedDocumentRequest - Document to create (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Document created. | - |
public okhttp3.Call createReceivedDocumentAsync(java.lang.Integer companyId,
CreateReceivedDocumentRequest createReceivedDocumentRequest,
ApiCallback<CreateReceivedDocumentResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)createReceivedDocumentRequest - Document to create (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Document created. | - |
public okhttp3.Call deleteReceivedDocumentCall(java.lang.Integer companyId,
java.lang.Integer documentId,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Document removed. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public void deleteReceivedDocument(java.lang.Integer companyId,
java.lang.Integer documentId)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Document removed. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<java.lang.Void> deleteReceivedDocumentWithHttpInfo(java.lang.Integer companyId, java.lang.Integer documentId) throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Document removed. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call deleteReceivedDocumentAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
ApiCallback<java.lang.Void> _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Document removed. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call deleteReceivedDocumentAttachmentCall(java.lang.Integer companyId,
java.lang.Integer documentId,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | File removed | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public void deleteReceivedDocumentAttachment(java.lang.Integer companyId,
java.lang.Integer documentId)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | File removed | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<java.lang.Void> deleteReceivedDocumentAttachmentWithHttpInfo(java.lang.Integer companyId, java.lang.Integer documentId) throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | File removed | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call deleteReceivedDocumentAttachmentAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
ApiCallback<java.lang.Void> _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | File removed | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getExistingReceivedDocumentTotalsCall(java.lang.Integer companyId,
java.lang.Integer documentId,
GetExistingReceivedDocumentTotalsRequest getExistingReceivedDocumentTotalsRequest,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)getExistingReceivedDocumentTotalsRequest - Received document. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Document Totals. | - |
public GetExistingReceivedDocumentTotalsResponse getExistingReceivedDocumentTotals(java.lang.Integer companyId, java.lang.Integer documentId, GetExistingReceivedDocumentTotalsRequest getExistingReceivedDocumentTotalsRequest) throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)getExistingReceivedDocumentTotalsRequest - Received document. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Document Totals. | - |
public ApiResponse<GetExistingReceivedDocumentTotalsResponse> getExistingReceivedDocumentTotalsWithHttpInfo(java.lang.Integer companyId, java.lang.Integer documentId, GetExistingReceivedDocumentTotalsRequest getExistingReceivedDocumentTotalsRequest) throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)getExistingReceivedDocumentTotalsRequest - Received document. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Document Totals. | - |
public okhttp3.Call getExistingReceivedDocumentTotalsAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
GetExistingReceivedDocumentTotalsRequest getExistingReceivedDocumentTotalsRequest,
ApiCallback<GetExistingReceivedDocumentTotalsResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)getExistingReceivedDocumentTotalsRequest - Received document. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Document Totals. | - |
public okhttp3.Call getNewReceivedDocumentTotalsCall(java.lang.Integer companyId,
GetNewReceivedDocumentTotalsRequest getNewReceivedDocumentTotalsRequest,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)getNewReceivedDocumentTotalsRequest - Received document. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Document Totals. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public GetNewReceivedDocumentTotalsResponse getNewReceivedDocumentTotals(java.lang.Integer companyId, GetNewReceivedDocumentTotalsRequest getNewReceivedDocumentTotalsRequest) throws ApiException
companyId - The ID of the company. (required)getNewReceivedDocumentTotalsRequest - Received document. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Document Totals. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<GetNewReceivedDocumentTotalsResponse> getNewReceivedDocumentTotalsWithHttpInfo(java.lang.Integer companyId, GetNewReceivedDocumentTotalsRequest getNewReceivedDocumentTotalsRequest) throws ApiException
companyId - The ID of the company. (required)getNewReceivedDocumentTotalsRequest - Received document. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Document Totals. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getNewReceivedDocumentTotalsAsync(java.lang.Integer companyId,
GetNewReceivedDocumentTotalsRequest getNewReceivedDocumentTotalsRequest,
ApiCallback<GetNewReceivedDocumentTotalsResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)getNewReceivedDocumentTotalsRequest - Received document. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Document Totals. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getReceivedDocumentCall(java.lang.Integer companyId,
java.lang.Integer documentId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Document details. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public GetReceivedDocumentResponse getReceivedDocument(java.lang.Integer companyId, java.lang.Integer documentId, java.lang.String fields, java.lang.String fieldset) throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Document details. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<GetReceivedDocumentResponse> getReceivedDocumentWithHttpInfo(java.lang.Integer companyId, java.lang.Integer documentId, java.lang.String fields, java.lang.String fieldset) throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Document details. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getReceivedDocumentAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback<GetReceivedDocumentResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Document details. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getReceivedDocumentPreCreateInfoCall(java.lang.Integer companyId,
java.lang.String type,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)type - The type of the received document. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Pre-create info | - |
public GetReceivedDocumentPreCreateInfoResponse getReceivedDocumentPreCreateInfo(java.lang.Integer companyId, java.lang.String type) throws ApiException
companyId - The ID of the company. (required)type - The type of the received document. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Pre-create info | - |
public ApiResponse<GetReceivedDocumentPreCreateInfoResponse> getReceivedDocumentPreCreateInfoWithHttpInfo(java.lang.Integer companyId, java.lang.String type) throws ApiException
companyId - The ID of the company. (required)type - The type of the received document. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Pre-create info | - |
public okhttp3.Call getReceivedDocumentPreCreateInfoAsync(java.lang.Integer companyId,
java.lang.String type,
ApiCallback<GetReceivedDocumentPreCreateInfoResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)type - The type of the received document. (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Pre-create info | - |
public okhttp3.Call listReceivedDocumentsCall(java.lang.Integer companyId,
java.lang.String type,
java.lang.String fields,
java.lang.String fieldset,
java.lang.String sort,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String q,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)type - The type of the received document. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)sort - List of comma-separated fields for result sorting (minus for desc sorting).
(optional)page - The page to retrieve. (optional, default to 1)perPage - The size of the page. (optional, default to 5)q - Query for filtering the results. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Results list. | - |
| 401 | Unauthorized | - |
public ListReceivedDocumentsResponse listReceivedDocuments(java.lang.Integer companyId, java.lang.String type, java.lang.String fields, java.lang.String fieldset, java.lang.String sort, java.lang.Integer page, java.lang.Integer perPage, java.lang.String q) throws ApiException
companyId - The ID of the company. (required)type - The type of the received document. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)sort - List of comma-separated fields for result sorting (minus for desc sorting).
(optional)page - The page to retrieve. (optional, default to 1)perPage - The size of the page. (optional, default to 5)q - Query for filtering the results. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Results list. | - |
| 401 | Unauthorized | - |
public ApiResponse<ListReceivedDocumentsResponse> listReceivedDocumentsWithHttpInfo(java.lang.Integer companyId, java.lang.String type, java.lang.String fields, java.lang.String fieldset, java.lang.String sort, java.lang.Integer page, java.lang.Integer perPage, java.lang.String q) throws ApiException
companyId - The ID of the company. (required)type - The type of the received document. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)sort - List of comma-separated fields for result sorting (minus for desc sorting).
(optional)page - The page to retrieve. (optional, default to 1)perPage - The size of the page. (optional, default to 5)q - Query for filtering the results. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Results list. | - |
| 401 | Unauthorized | - |
public okhttp3.Call listReceivedDocumentsAsync(java.lang.Integer companyId,
java.lang.String type,
java.lang.String fields,
java.lang.String fieldset,
java.lang.String sort,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String q,
ApiCallback<ListReceivedDocumentsResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)type - The type of the received document. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)sort - List of comma-separated fields for result sorting (minus for desc sorting).
(optional)page - The page to retrieve. (optional, default to 1)perPage - The size of the page. (optional, default to 5)q - Query for filtering the results. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Results list. | - |
| 401 | Unauthorized | - |
public okhttp3.Call modifyReceivedDocumentCall(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceivedDocumentRequest modifyReceivedDocumentRequest,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)modifyReceivedDocumentRequest - Modified document. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Modified document. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ModifyReceivedDocumentResponse modifyReceivedDocument(java.lang.Integer companyId, java.lang.Integer documentId, ModifyReceivedDocumentRequest modifyReceivedDocumentRequest) throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)modifyReceivedDocumentRequest - Modified document. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Modified document. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<ModifyReceivedDocumentResponse> modifyReceivedDocumentWithHttpInfo(java.lang.Integer companyId, java.lang.Integer documentId, ModifyReceivedDocumentRequest modifyReceivedDocumentRequest) throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)modifyReceivedDocumentRequest - Modified document. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Modified document. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call modifyReceivedDocumentAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceivedDocumentRequest modifyReceivedDocumentRequest,
ApiCallback<ModifyReceivedDocumentResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)modifyReceivedDocumentRequest - Modified document. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Modified document. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call uploadReceivedDocumentAttachmentCall(java.lang.Integer companyId,
java.lang.String filename,
java.io.File attachment,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)filename - Attachment file name (optional)attachment - Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]
(optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Attachment Token. | - |
| 401 | Unauthorized | - |
public UploadReceivedDocumentAttachmentResponse uploadReceivedDocumentAttachment(java.lang.Integer companyId, java.lang.String filename, java.io.File attachment) throws ApiException
companyId - The ID of the company. (required)filename - Attachment file name (optional)attachment - Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]
(optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Attachment Token. | - |
| 401 | Unauthorized | - |
public ApiResponse<UploadReceivedDocumentAttachmentResponse> uploadReceivedDocumentAttachmentWithHttpInfo(java.lang.Integer companyId, java.lang.String filename, java.io.File attachment) throws ApiException
companyId - The ID of the company. (required)filename - Attachment file name (optional)attachment - Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]
(optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Attachment Token. | - |
| 401 | Unauthorized | - |
public okhttp3.Call uploadReceivedDocumentAttachmentAsync(java.lang.Integer companyId,
java.lang.String filename,
java.io.File attachment,
ApiCallback<UploadReceivedDocumentAttachmentResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)filename - Attachment file name (optional)attachment - Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]
(optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Attachment Token. | - |
| 401 | Unauthorized | - |