public class ProductsApi
extends java.lang.Object
| Constructor and Description |
|---|
ProductsApi() |
ProductsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
CreateProductResponse |
createProduct(java.lang.Integer companyId,
CreateProductRequest createProductRequest)
Create Product Creates a new product.
|
okhttp3.Call |
createProductAsync(java.lang.Integer companyId,
CreateProductRequest createProductRequest,
ApiCallback<CreateProductResponse> _callback)
Create Product (asynchronously) Creates a new product.
|
okhttp3.Call |
createProductCall(java.lang.Integer companyId,
CreateProductRequest createProductRequest,
ApiCallback _callback)
Build call for createProduct
|
ApiResponse<CreateProductResponse> |
createProductWithHttpInfo(java.lang.Integer companyId,
CreateProductRequest createProductRequest)
Create Product Creates a new product.
|
void |
deleteProduct(java.lang.Integer companyId,
java.lang.Integer productId)
Delete Product Deletes the specified product.
|
okhttp3.Call |
deleteProductAsync(java.lang.Integer companyId,
java.lang.Integer productId,
ApiCallback<java.lang.Void> _callback)
Delete Product (asynchronously) Deletes the specified product.
|
okhttp3.Call |
deleteProductCall(java.lang.Integer companyId,
java.lang.Integer productId,
ApiCallback _callback)
Build call for deleteProduct
|
ApiResponse<java.lang.Void> |
deleteProductWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer productId)
Delete Product Deletes the specified product.
|
ApiClient |
getApiClient() |
java.lang.String |
getCustomBaseUrl() |
int |
getHostIndex() |
GetProductResponse |
getProduct(java.lang.Integer companyId,
java.lang.Integer productId,
java.lang.String fields,
java.lang.String fieldset)
Get Product Gets the specified product.
|
okhttp3.Call |
getProductAsync(java.lang.Integer companyId,
java.lang.Integer productId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback<GetProductResponse> _callback)
Get Product (asynchronously) Gets the specified product.
|
okhttp3.Call |
getProductCall(java.lang.Integer companyId,
java.lang.Integer productId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback _callback)
Build call for getProduct
|
ApiResponse<GetProductResponse> |
getProductWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer productId,
java.lang.String fields,
java.lang.String fieldset)
Get Product Gets the specified product.
|
ListProductsResponse |
listProducts(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 Products Lists the products.
|
okhttp3.Call |
listProductsAsync(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<ListProductsResponse> _callback)
List Products (asynchronously) Lists the products.
|
okhttp3.Call |
listProductsCall(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 listProducts
|
ApiResponse<ListProductsResponse> |
listProductsWithHttpInfo(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 Products Lists the products.
|
ModifyProductResponse |
modifyProduct(java.lang.Integer companyId,
java.lang.Integer productId,
ModifyProductRequest modifyProductRequest)
Modify Product Modifies the specified product.
|
okhttp3.Call |
modifyProductAsync(java.lang.Integer companyId,
java.lang.Integer productId,
ModifyProductRequest modifyProductRequest,
ApiCallback<ModifyProductResponse> _callback)
Modify Product (asynchronously) Modifies the specified product.
|
okhttp3.Call |
modifyProductCall(java.lang.Integer companyId,
java.lang.Integer productId,
ModifyProductRequest modifyProductRequest,
ApiCallback _callback)
Build call for modifyProduct
|
ApiResponse<ModifyProductResponse> |
modifyProductWithHttpInfo(java.lang.Integer companyId,
java.lang.Integer productId,
ModifyProductRequest modifyProductRequest)
Modify Product Modifies the specified product.
|
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(java.lang.String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
public ProductsApi()
public ProductsApi(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 createProductCall(java.lang.Integer companyId,
CreateProductRequest createProductRequest,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)createProductRequest - (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Example response | - |
public CreateProductResponse createProduct(java.lang.Integer companyId, CreateProductRequest createProductRequest) throws ApiException
companyId - The ID of the company. (required)createProductRequest - (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<CreateProductResponse> createProductWithHttpInfo(java.lang.Integer companyId, CreateProductRequest createProductRequest) throws ApiException
companyId - The ID of the company. (required)createProductRequest - (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 createProductAsync(java.lang.Integer companyId,
CreateProductRequest createProductRequest,
ApiCallback<CreateProductResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)createProductRequest - (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 deleteProductCall(java.lang.Integer companyId,
java.lang.Integer productId,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Product removed. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public void deleteProduct(java.lang.Integer companyId,
java.lang.Integer productId)
throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Product removed. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public ApiResponse<java.lang.Void> deleteProductWithHttpInfo(java.lang.Integer companyId, java.lang.Integer productId) throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response body| Status Code | Description | Response Headers |
| 200 | Product removed. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call deleteProductAsync(java.lang.Integer companyId,
java.lang.Integer productId,
ApiCallback<java.lang.Void> _callback)
throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (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 | Product removed. | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
public okhttp3.Call getProductCall(java.lang.Integer companyId,
java.lang.Integer productId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (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 GetProductResponse getProduct(java.lang.Integer companyId, java.lang.Integer productId, java.lang.String fields, java.lang.String fieldset) throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (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<GetProductResponse> getProductWithHttpInfo(java.lang.Integer companyId, java.lang.Integer productId, java.lang.String fields, java.lang.String fieldset) throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (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 getProductAsync(java.lang.Integer companyId,
java.lang.Integer productId,
java.lang.String fields,
java.lang.String fieldset,
ApiCallback<GetProductResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (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 listProductsCall(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 | Products List. | - |
| 401 | Unauthorized | - |
public ListProductsResponse listProducts(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 | Products List. | - |
| 401 | Unauthorized | - |
public ApiResponse<ListProductsResponse> listProductsWithHttpInfo(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 | Products List. | - |
| 401 | Unauthorized | - |
public okhttp3.Call listProductsAsync(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<ListProductsResponse> _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 | Products List. | - |
| 401 | Unauthorized | - |
public okhttp3.Call modifyProductCall(java.lang.Integer companyId,
java.lang.Integer productId,
ModifyProductRequest modifyProductRequest,
ApiCallback _callback)
throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (required)modifyProductRequest - Modified product details. (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 ModifyProductResponse modifyProduct(java.lang.Integer companyId, java.lang.Integer productId, ModifyProductRequest modifyProductRequest) throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (required)modifyProductRequest - Modified product details. (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<ModifyProductResponse> modifyProductWithHttpInfo(java.lang.Integer companyId, java.lang.Integer productId, ModifyProductRequest modifyProductRequest) throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (required)modifyProductRequest - Modified product details. (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 modifyProductAsync(java.lang.Integer companyId,
java.lang.Integer productId,
ModifyProductRequest modifyProductRequest,
ApiCallback<ModifyProductResponse> _callback)
throws ApiException
companyId - The ID of the company. (required)productId - The ID of the product. (required)modifyProductRequest - Modified product details. (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 | - |