public class ProductResourceApi extends Object
| Constructor and Description |
|---|
ProductResourceApi() |
ProductResourceApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
List<ProductDTO> |
findProductsByVendor(Long vendorId)
findProductsByVendor
Required permissions: CAN_GET_PRODUCTS_BY_VENDOR
|
com.squareup.okhttp.Call |
findProductsByVendorAsync(Long vendorId,
ApiCallback<List<ProductDTO>> callback)
findProductsByVendor (asynchronously)
Required permissions: CAN_GET_PRODUCTS_BY_VENDOR
|
com.squareup.okhttp.Call |
findProductsByVendorCall(Long vendorId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for findProductsByVendor
|
ApiResponse<List<ProductDTO>> |
findProductsByVendorWithHttpInfo(Long vendorId)
findProductsByVendor
Required permissions: CAN_GET_PRODUCTS_BY_VENDOR
|
List<ProductDTO> |
getAllProducts(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder,
String type,
List<String> tagFilter,
String tagFilterMode)
getAllProducts
Required permissions: CAN_GET_PRODUCTS
|
com.squareup.okhttp.Call |
getAllProductsAsync(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder,
String type,
List<String> tagFilter,
String tagFilterMode,
ApiCallback<List<ProductDTO>> callback)
getAllProducts (asynchronously)
Required permissions: CAN_GET_PRODUCTS
|
com.squareup.okhttp.Call |
getAllProductsCall(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder,
String type,
List<String> tagFilter,
String tagFilterMode,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getAllProducts
|
ApiResponse<List<ProductDTO>> |
getAllProductsWithHttpInfo(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder,
String type,
List<String> tagFilter,
String tagFilterMode)
getAllProducts
Required permissions: CAN_GET_PRODUCTS
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public ProductResourceApi()
public ProductResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call findProductsByVendorCall(Long vendorId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
vendorId - the internal vendor id (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic List<ProductDTO> findProductsByVendor(Long vendorId) throws ApiException
vendorId - the internal vendor id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<ProductDTO>> findProductsByVendorWithHttpInfo(Long vendorId) throws ApiException
vendorId - the internal vendor id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call findProductsByVendorAsync(Long vendorId, ApiCallback<List<ProductDTO>> callback) throws ApiException
vendorId - the internal vendor id (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 objectpublic com.squareup.okhttp.Call getAllProductsCall(String query, Integer size, Integer page, String sortBy, String sortOrder, String type, List<String> tagFilter, String tagFilterMode, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
query - query text (optional)size - quantity of listed records on page (optional)page - listing starts from page value (optional)sortBy - sort by (optional)sortOrder - sort order (optional)type - product type (optional)tagFilter - tagFilter (optional)tagFilterMode - tagFilterMode (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic List<ProductDTO> getAllProducts(String query, Integer size, Integer page, String sortBy, String sortOrder, String type, List<String> tagFilter, String tagFilterMode) throws ApiException
query - query text (optional)size - quantity of listed records on page (optional)page - listing starts from page value (optional)sortBy - sort by (optional)sortOrder - sort order (optional)type - product type (optional)tagFilter - tagFilter (optional)tagFilterMode - tagFilterMode (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<ProductDTO>> getAllProductsWithHttpInfo(String query, Integer size, Integer page, String sortBy, String sortOrder, String type, List<String> tagFilter, String tagFilterMode) throws ApiException
query - query text (optional)size - quantity of listed records on page (optional)page - listing starts from page value (optional)sortBy - sort by (optional)sortOrder - sort order (optional)type - product type (optional)tagFilter - tagFilter (optional)tagFilterMode - tagFilterMode (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getAllProductsAsync(String query, Integer size, Integer page, String sortBy, String sortOrder, String type, List<String> tagFilter, String tagFilterMode, ApiCallback<List<ProductDTO>> callback) throws ApiException
query - query text (optional)size - quantity of listed records on page (optional)page - listing starts from page value (optional)sortBy - sort by (optional)sortOrder - sort order (optional)type - product type (optional)tagFilter - tagFilter (optional)tagFilterMode - tagFilterMode (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 objectCopyright © 2018. All rights reserved.