public class SuppliersApi
extends java.lang.Object
| Constructor and Description |
|---|
SuppliersApi() |
SuppliersApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
CreateSupplierResponse |
createSupplier(java.lang.Integer companyId,
CreateSupplierRequest createSupplierRequest)
Create Supplier Creates a new supplier.
|
okhttp3.Call |
createSupplierAsync(java.lang.Integer companyId,
CreateSupplierRequest createSupplierRequest,
ApiCallback<CreateSupplierResponse> _callback)
Create Supplier (asynchronously) Creates a new supplier.
|
okhttp3.Call |
createSupplierCall(java.lang.Integer companyId,
CreateSupplierRequest createSupplierRequest,
ApiCallback _callback)
Build call for createSupplier
|
ApiResponse<CreateSupplierResponse> |
createSupplierWithHttpInfo(java.lang.Integer companyId,
CreateSupplierRequest createSupplierRequest)
Create Supplier Creates a new supplier.
|
void |
deleteSupplier(java.lang.Integer companyId,
java.lang.Integer supplierId)
Delete Supplier Deletes the specified supplier.
|
okhttp3.Call |
deleteSupplierAsync(java.lang.Integer companyId,
java.lang.Integer supplierId,
ApiCallback<java.lang.Void> _callback)
Delete Supplier (asynchronously) Deletes the specified supplier.
|
okhttp3.Call |
deleteSupplierCall(java.lang.Integer companyId,
java.lang.Integer supplierId,
ApiCallback _callback)
Build call for deleteSupplier
|
ApiResponse<java.lang.Void> |
deleteSupplierWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer supplierId)
Delete Supplier Deletes the specified supplier.
|
ApiClient |
getApiClient() |
java.lang.String |
getCustomBaseUrl() |
int |
getHostIndex() |
GetSupplierResponse |
getSupplier(java.lang.Integer companyId,
java.lang.Integer supplierId,
java.lang.String fields,
java.lang.String fieldset)
Get Supplier Gets the specified supplier.
|
okhttp3.Call |
getSupplierAsync(java.lang.Integer companyId,
java.lang.Integer supplierId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback<GetSupplierResponse> _callback)
Get Supplier (asynchronously) Gets the specified supplier.
|
okhttp3.Call |
getSupplierCall(java.lang.Integer companyId,
java.lang.Integer supplierId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback _callback)
Build call for getSupplier
|
ApiResponse<GetSupplierResponse> |
getSupplierWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer supplierId,
java.lang.String fields,
java.lang.String fieldset)
Get Supplier Gets the specified supplier.
|
ListSuppliersResponse |
listSuppliers(java.lang.Integer companyId,
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 Suppliers Lists the suppliers.
|
okhttp3.Call |
listSuppliersAsync(java.lang.Integer companyId,
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<ListSuppliersResponse> _callback)
List Suppliers (asynchronously) Lists the suppliers.
|
okhttp3.Call |
listSuppliersCall(java.lang.Integer companyId,
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 listSuppliers
|
ApiResponse<ListSuppliersResponse> |
listSuppliersWithHttpInfo(java.lang.Integer companyId,
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 Suppliers Lists the suppliers.
|
ModifySupplierResponse |
modifySupplier(java.lang.Integer companyId,
java.lang.Integer supplierId,
ModifySupplierRequest modifySupplierRequest)
Modify Supplier Modifies the specified supplier.
|
okhttp3.Call |
modifySupplierAsync(java.lang.Integer companyId,
java.lang.Integer supplierId,
ModifySupplierRequest modifySupplierRequest,
ApiCallback<ModifySupplierResponse> _callback)
Modify Supplier (asynchronously) Modifies the specified supplier.
|
okhttp3.Call |
modifySupplierCall(java.lang.Integer companyId,
java.lang.Integer supplierId,
ModifySupplierRequest modifySupplierRequest,
ApiCallback _callback)
Build call for modifySupplier
|
ApiResponse<ModifySupplierResponse> |
modifySupplierWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer supplierId,
ModifySupplierRequest modifySupplierRequest)
Modify Supplier Modifies the specified supplier.
|
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(java.lang.String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
public SuppliersApi()
public SuppliersApi(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 createSupplierCall(java.lang.Integer companyId,
CreateSupplierRequest createSupplierRequest,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)createSupplierRequest - The supplier to create (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Example response | - |
public CreateSupplierResponse createSupplier(java.lang.Integer companyId, CreateSupplierRequest createSupplierRequest) throws ApiException
companyId - The ID of the company. (required)createSupplierRequest - The supplier 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 | Example response | - |
public ApiResponse<CreateSupplierResponse> createSupplierWithHttpInfo(java.lang.Integer companyId, CreateSupplierRequest createSupplierRequest) throws ApiException
companyId - The ID of the company. (required)createSupplierRequest - The supplier 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 | Example response | - |
public okhttp3.Call createSupplierAsync(java.lang.Integer companyId,
CreateSupplierRequest createSupplierRequest,
ApiCallback<CreateSupplierResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)createSupplierRequest - The supplier 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 | Example response | - |
public okhttp3.Call deleteSupplierCall(java.lang.Integer companyId,
java.lang.Integer supplierId,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Entity Removed | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public void deleteSupplier(java.lang.Integer companyId,
java.lang.Integer supplierId)
throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Entity Removed | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<java.lang.Void> deleteSupplierWithHttpInfo(java.lang.Integer companyId, java.lang.Integer supplierId) throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Entity Removed | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call deleteSupplierAsync(java.lang.Integer companyId,
java.lang.Integer supplierId,
ApiCallback<java.lang.Void> _callback)
throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (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 | Entity Removed | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getSupplierCall(java.lang.Integer companyId,
java.lang.Integer supplierId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (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 | Example response | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public GetSupplierResponse getSupplier(java.lang.Integer companyId, java.lang.Integer supplierId, java.lang.String fields, java.lang.String fieldset) throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (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 | Example response | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<GetSupplierResponse> getSupplierWithHttpInfo(java.lang.Integer companyId, java.lang.Integer supplierId, java.lang.String fields, java.lang.String fieldset) throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (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 | Example response | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getSupplierAsync(java.lang.Integer companyId,
java.lang.Integer supplierId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback<GetSupplierResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (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 | Example response | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call listSuppliersCall(java.lang.Integer companyId,
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)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 | Example response | - |
| 401 | Unauthorized | - |
public ListSuppliersResponse listSuppliers(java.lang.Integer companyId, 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)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 | Example response | - |
| 401 | Unauthorized | - |
public ApiResponse<ListSuppliersResponse> listSuppliersWithHttpInfo(java.lang.Integer companyId, 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)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 | Example response | - |
| 401 | Unauthorized | - |
public okhttp3.Call listSuppliersAsync(java.lang.Integer companyId,
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<ListSuppliersResponse> _callback)
throws ApiException
companyId - The ID of the company. (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 | Example response | - |
| 401 | Unauthorized | - |
public okhttp3.Call modifySupplierCall(java.lang.Integer companyId,
java.lang.Integer supplierId,
ModifySupplierRequest modifySupplierRequest,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (required)modifySupplierRequest - The modified Supplier. First level parameters are managed in delta
mode. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Example response | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ModifySupplierResponse modifySupplier(java.lang.Integer companyId, java.lang.Integer supplierId, ModifySupplierRequest modifySupplierRequest) throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (required)modifySupplierRequest - The modified Supplier. First level parameters are managed in delta
mode. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Example response | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<ModifySupplierResponse> modifySupplierWithHttpInfo(java.lang.Integer companyId, java.lang.Integer supplierId, ModifySupplierRequest modifySupplierRequest) throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (required)modifySupplierRequest - The modified Supplier. First level parameters are managed in delta
mode. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Example response | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call modifySupplierAsync(java.lang.Integer companyId,
java.lang.Integer supplierId,
ModifySupplierRequest modifySupplierRequest,
ApiCallback<ModifySupplierResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)supplierId - The ID of the supplier. (required)modifySupplierRequest - The modified Supplier. First level parameters are managed in delta
mode. (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 | Example response | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |