public class ReceiptsApi
extends java.lang.Object
| Constructor and Description |
|---|
ReceiptsApi() |
ReceiptsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
CreateReceiptResponse |
createReceipt(java.lang.Integer companyId,
CreateReceiptRequest createReceiptRequest)
Create Receipt Creates a new receipt.
|
okhttp3.Call |
createReceiptAsync(java.lang.Integer companyId,
CreateReceiptRequest createReceiptRequest,
ApiCallback<CreateReceiptResponse> _callback)
Create Receipt (asynchronously) Creates a new receipt.
|
okhttp3.Call |
createReceiptCall(java.lang.Integer companyId,
CreateReceiptRequest createReceiptRequest,
ApiCallback _callback)
Build call for createReceipt
|
ApiResponse<CreateReceiptResponse> |
createReceiptWithHttpInfo(java.lang.Integer companyId,
CreateReceiptRequest createReceiptRequest)
Create Receipt Creates a new receipt.
|
void |
deleteReceipt(java.lang.Integer companyId,
java.lang.Integer documentId)
Delete Receipt Deletes the specified receipt.
|
okhttp3.Call |
deleteReceiptAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
ApiCallback<java.lang.Void> _callback)
Delete Receipt (asynchronously) Deletes the specified receipt.
|
okhttp3.Call |
deleteReceiptCall(java.lang.Integer companyId,
java.lang.Integer documentId,
ApiCallback _callback)
Build call for deleteReceipt
|
ApiResponse<java.lang.Void> |
deleteReceiptWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer documentId)
Delete Receipt Deletes the specified receipt.
|
ApiClient |
getApiClient() |
java.lang.String |
getCustomBaseUrl() |
int |
getHostIndex() |
GetReceiptResponse |
getReceipt(java.lang.Integer companyId,
java.lang.Integer documentId,
java.lang.String fields,
java.lang.String fieldset)
Get Receipt Gets the specified receipt.
|
okhttp3.Call |
getReceiptAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback<GetReceiptResponse> _callback)
Get Receipt (asynchronously) Gets the specified receipt.
|
okhttp3.Call |
getReceiptCall(java.lang.Integer companyId,
java.lang.Integer documentId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback _callback)
Build call for getReceipt
|
GetReceiptPreCreateInfoResponse |
getReceiptPreCreateInfo(java.lang.Integer companyId)
Get Receipt Pre-Create Info Retrieves the information useful while creating a new receipt.
|
okhttp3.Call |
getReceiptPreCreateInfoAsync(java.lang.Integer companyId,
ApiCallback<GetReceiptPreCreateInfoResponse> _callback)
Get Receipt Pre-Create Info (asynchronously) Retrieves the information useful while creating a
new receipt.
|
okhttp3.Call |
getReceiptPreCreateInfoCall(java.lang.Integer companyId,
ApiCallback _callback)
Build call for getReceiptPreCreateInfo
|
ApiResponse<GetReceiptPreCreateInfoResponse> |
getReceiptPreCreateInfoWithHttpInfo(java.lang.Integer companyId)
Get Receipt Pre-Create Info Retrieves the information useful while creating a new receipt.
|
GetReceiptsMonthlyTotalsResponse |
getReceiptsMonthlyTotals(java.lang.Integer companyId,
java.lang.String type,
java.lang.String year)
Get Receipts Monthly Totals Returns the monthly totals by year and receipt type.
|
okhttp3.Call |
getReceiptsMonthlyTotalsAsync(java.lang.Integer companyId,
java.lang.String type,
java.lang.String year,
ApiCallback<GetReceiptsMonthlyTotalsResponse> _callback)
Get Receipts Monthly Totals (asynchronously) Returns the monthly totals by year and receipt
type.
|
okhttp3.Call |
getReceiptsMonthlyTotalsCall(java.lang.Integer companyId,
java.lang.String type,
java.lang.String year,
ApiCallback _callback)
Build call for getReceiptsMonthlyTotals
|
ApiResponse<GetReceiptsMonthlyTotalsResponse> |
getReceiptsMonthlyTotalsWithHttpInfo(java.lang.Integer companyId,
java.lang.String type,
java.lang.String year)
Get Receipts Monthly Totals Returns the monthly totals by year and receipt type.
|
ApiResponse<GetReceiptResponse> |
getReceiptWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer documentId,
java.lang.String fields,
java.lang.String fieldset)
Get Receipt Gets the specified receipt.
|
ListReceiptsResponse |
listReceipts(java.lang.Integer companyId,
java.lang.String fields,
java.lang.String fieldset,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String sort,
java.lang.String q)
List Receipts Lists the receipts.
|
okhttp3.Call |
listReceiptsAsync(java.lang.Integer companyId,
java.lang.String fields,
java.lang.String fieldset,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String sort,
java.lang.String q,
ApiCallback<ListReceiptsResponse> _callback)
List Receipts (asynchronously) Lists the receipts.
|
okhttp3.Call |
listReceiptsCall(java.lang.Integer companyId,
java.lang.String fields,
java.lang.String fieldset,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String sort,
java.lang.String q,
ApiCallback _callback)
Build call for listReceipts
|
ApiResponse<ListReceiptsResponse> |
listReceiptsWithHttpInfo(java.lang.Integer companyId,
java.lang.String fields,
java.lang.String fieldset,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String sort,
java.lang.String q)
List Receipts Lists the receipts.
|
ModifyReceiptResponse |
modifyReceipt(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceiptRequest modifyReceiptRequest)
Modify Receipt Modifies the specified receipt.
|
okhttp3.Call |
modifyReceiptAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceiptRequest modifyReceiptRequest,
ApiCallback<ModifyReceiptResponse> _callback)
Modify Receipt (asynchronously) Modifies the specified receipt.
|
okhttp3.Call |
modifyReceiptCall(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceiptRequest modifyReceiptRequest,
ApiCallback _callback)
Build call for modifyReceipt
|
ApiResponse<ModifyReceiptResponse> |
modifyReceiptWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceiptRequest modifyReceiptRequest)
Modify Receipt Modifies the specified receipt.
|
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(java.lang.String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
public ReceiptsApi()
public ReceiptsApi(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 createReceiptCall(java.lang.Integer companyId,
CreateReceiptRequest createReceiptRequest,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)createReceiptRequest - The Receipt to create. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Created Receipt. | - |
| 401 | Unauthorized | - |
public CreateReceiptResponse createReceipt(java.lang.Integer companyId, CreateReceiptRequest createReceiptRequest) throws ApiException
companyId - The ID of the company. (required)createReceiptRequest - The Receipt 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 | Created Receipt. | - |
| 401 | Unauthorized | - |
public ApiResponse<CreateReceiptResponse> createReceiptWithHttpInfo(java.lang.Integer companyId, CreateReceiptRequest createReceiptRequest) throws ApiException
companyId - The ID of the company. (required)createReceiptRequest - The Receipt 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 | Created Receipt. | - |
| 401 | Unauthorized | - |
public okhttp3.Call createReceiptAsync(java.lang.Integer companyId,
CreateReceiptRequest createReceiptRequest,
ApiCallback<CreateReceiptResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)createReceiptRequest - The Receipt 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 | Created Receipt. | - |
| 401 | Unauthorized | - |
public okhttp3.Call deleteReceiptCall(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 deleteReceipt(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> deleteReceiptWithHttpInfo(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 deleteReceiptAsync(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 getReceiptCall(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 | Receipt Details. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public GetReceiptResponse getReceipt(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 | Receipt Details. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<GetReceiptResponse> getReceiptWithHttpInfo(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 | Receipt Details. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getReceiptAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback<GetReceiptResponse> _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 | Receipt Details. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getReceiptPreCreateInfoCall(java.lang.Integer companyId,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Pre-create info. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public GetReceiptPreCreateInfoResponse getReceiptPreCreateInfo(java.lang.Integer companyId) throws ApiException
companyId - The ID of the company. (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. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<GetReceiptPreCreateInfoResponse> getReceiptPreCreateInfoWithHttpInfo(java.lang.Integer companyId) throws ApiException
companyId - The ID of the company. (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. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getReceiptPreCreateInfoAsync(java.lang.Integer companyId,
ApiCallback<GetReceiptPreCreateInfoResponse> _callback)
throws ApiException
companyId - The ID of the company. (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. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getReceiptsMonthlyTotalsCall(java.lang.Integer companyId,
java.lang.String type,
java.lang.String year,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)type - Receipt Type (required)year - Year for which you want monthly totals (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Monthly Totals. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public GetReceiptsMonthlyTotalsResponse getReceiptsMonthlyTotals(java.lang.Integer companyId, java.lang.String type, java.lang.String year) throws ApiException
companyId - The ID of the company. (required)type - Receipt Type (required)year - Year for which you want monthly totals (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Monthly Totals. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<GetReceiptsMonthlyTotalsResponse> getReceiptsMonthlyTotalsWithHttpInfo(java.lang.Integer companyId, java.lang.String type, java.lang.String year) throws ApiException
companyId - The ID of the company. (required)type - Receipt Type (required)year - Year for which you want monthly totals (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Monthly Totals. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getReceiptsMonthlyTotalsAsync(java.lang.Integer companyId,
java.lang.String type,
java.lang.String year,
ApiCallback<GetReceiptsMonthlyTotalsResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)type - Receipt Type (required)year - Year for which you want monthly totals (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 | Monthly Totals. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call listReceiptsCall(java.lang.Integer companyId,
java.lang.String fields,
java.lang.String fieldset,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String sort,
java.lang.String q,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)page - The page to retrieve. (optional, default to 1)perPage - The size of the page. (optional, default to 5)sort - List of comma-separated fields for result sorting (minus for desc sorting).
(optional)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 | Receipts list. | - |
| 401 | Unauthorized | - |
public ListReceiptsResponse listReceipts(java.lang.Integer companyId, java.lang.String fields, java.lang.String fieldset, java.lang.Integer page, java.lang.Integer perPage, java.lang.String sort, java.lang.String q) throws ApiException
companyId - The ID of the company. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)page - The page to retrieve. (optional, default to 1)perPage - The size of the page. (optional, default to 5)sort - List of comma-separated fields for result sorting (minus for desc sorting).
(optional)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 | Receipts list. | - |
| 401 | Unauthorized | - |
public ApiResponse<ListReceiptsResponse> listReceiptsWithHttpInfo(java.lang.Integer companyId, java.lang.String fields, java.lang.String fieldset, java.lang.Integer page, java.lang.Integer perPage, java.lang.String sort, java.lang.String q) throws ApiException
companyId - The ID of the company. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)page - The page to retrieve. (optional, default to 1)perPage - The size of the page. (optional, default to 5)sort - List of comma-separated fields for result sorting (minus for desc sorting).
(optional)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 | Receipts list. | - |
| 401 | Unauthorized | - |
public okhttp3.Call listReceiptsAsync(java.lang.Integer companyId,
java.lang.String fields,
java.lang.String fieldset,
java.lang.Integer page,
java.lang.Integer perPage,
java.lang.String sort,
java.lang.String q,
ApiCallback<ListReceiptsResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)fields - List of comma-separated fields. (optional)fieldset - Name of the fieldset. (optional)page - The page to retrieve. (optional, default to 1)perPage - The size of the page. (optional, default to 5)sort - List of comma-separated fields for result sorting (minus for desc sorting).
(optional)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 | Receipts list. | - |
| 401 | Unauthorized | - |
public okhttp3.Call modifyReceiptCall(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceiptRequest modifyReceiptRequest,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)modifyReceiptRequest - Modified receipt. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Modified receipt. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ModifyReceiptResponse modifyReceipt(java.lang.Integer companyId, java.lang.Integer documentId, ModifyReceiptRequest modifyReceiptRequest) throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)modifyReceiptRequest - Modified receipt. (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 receipt. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<ModifyReceiptResponse> modifyReceiptWithHttpInfo(java.lang.Integer companyId, java.lang.Integer documentId, ModifyReceiptRequest modifyReceiptRequest) throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)modifyReceiptRequest - Modified receipt. (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 receipt. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call modifyReceiptAsync(java.lang.Integer companyId,
java.lang.Integer documentId,
ModifyReceiptRequest modifyReceiptRequest,
ApiCallback<ModifyReceiptResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)documentId - The ID of the document. (required)modifyReceiptRequest - Modified receipt. (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 receipt. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |