Package io.voucherify.client.api
Class CategoriesApi
java.lang.Object
io.voucherify.client.api.CategoriesApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCategory(CategoriesCreateRequestBody categoriesCreateRequestBody) Create Category Create category with a specific name and hierarchy.okhttp3.CallcreateCategoryAsync(CategoriesCreateRequestBody categoriesCreateRequestBody, ApiCallback<CategoriesCreateResponseBody> _callback) Create Category (asynchronously) Create category with a specific name and hierarchy.okhttp3.CallcreateCategoryCall(CategoriesCreateRequestBody categoriesCreateRequestBody, ApiCallback _callback) Build call for createCategorycreateCategoryWithHttpInfo(CategoriesCreateRequestBody categoriesCreateRequestBody) Create Category Create category with a specific name and hierarchy.voiddeleteCategory(String categoryId) Delete Category Delete a category by the category ID.okhttp3.CalldeleteCategoryAsync(String categoryId, ApiCallback<Void> _callback) Delete Category (asynchronously) Delete a category by the category ID.okhttp3.CalldeleteCategoryCall(String categoryId, ApiCallback _callback) Build call for deleteCategorydeleteCategoryWithHttpInfo(String categoryId) Delete Category Delete a category by the category ID.getCategory(String categoryId) Get Category Retrieve a category by the category ID.okhttp3.CallgetCategoryAsync(String categoryId, ApiCallback<CategoriesGetResponseBody> _callback) Get Category (asynchronously) Retrieve a category by the category ID.okhttp3.CallgetCategoryCall(String categoryId, ApiCallback _callback) Build call for getCategorygetCategoryWithHttpInfo(String categoryId) Get Category Retrieve a category by the category ID.intList Categories List all categories.okhttp3.CalllistCategoriesAsync(ApiCallback<CategoriesListResponseBody> _callback) List Categories (asynchronously) List all categories.okhttp3.CalllistCategoriesCall(ApiCallback _callback) Build call for listCategoriesList Categories List all categories.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) updateCategory(String categoryId, CategoriesUpdateRequestBody categoriesUpdateRequestBody) Update Category Update category using the category ID.okhttp3.CallupdateCategoryAsync(String categoryId, CategoriesUpdateRequestBody categoriesUpdateRequestBody, ApiCallback<CategoriesUpdateResponseBody> _callback) Update Category (asynchronously) Update category using the category ID.okhttp3.CallupdateCategoryCall(String categoryId, CategoriesUpdateRequestBody categoriesUpdateRequestBody, ApiCallback _callback) Build call for updateCategoryupdateCategoryWithHttpInfo(String categoryId, CategoriesUpdateRequestBody categoriesUpdateRequestBody) Update Category Update category using the category ID.
-
Constructor Details
-
CategoriesApi
public CategoriesApi() -
CategoriesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createCategoryCall
public okhttp3.Call createCategoryCall(CategoriesCreateRequestBody categoriesCreateRequestBody, ApiCallback _callback) throws ApiException Build call for createCategory- Parameters:
categoriesCreateRequestBody- Specify the details of the category that you would like to create. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
createCategory
public CategoriesCreateResponseBody createCategory(CategoriesCreateRequestBody categoriesCreateRequestBody) throws ApiException Create Category Create category with a specific name and hierarchy.- Parameters:
categoriesCreateRequestBody- Specify the details of the category that you would like to create. (optional)- Returns:
- CategoriesCreateResponseBody
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createCategoryWithHttpInfo
public ApiResponse<CategoriesCreateResponseBody> createCategoryWithHttpInfo(CategoriesCreateRequestBody categoriesCreateRequestBody) throws ApiException Create Category Create category with a specific name and hierarchy.- Parameters:
categoriesCreateRequestBody- Specify the details of the category that you would like to create. (optional)- Returns:
- ApiResponse<CategoriesCreateResponseBody>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createCategoryAsync
public okhttp3.Call createCategoryAsync(CategoriesCreateRequestBody categoriesCreateRequestBody, ApiCallback<CategoriesCreateResponseBody> _callback) throws ApiException Create Category (asynchronously) Create category with a specific name and hierarchy.- Parameters:
categoriesCreateRequestBody- Specify the details of the category that you would like to create. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
deleteCategoryCall
public okhttp3.Call deleteCategoryCall(String categoryId, ApiCallback _callback) throws ApiException Build call for deleteCategory- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
deleteCategory
Delete Category Delete a category by the category ID.- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteCategoryWithHttpInfo
Delete Category Delete a category by the category ID.- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteCategoryAsync
public okhttp3.Call deleteCategoryAsync(String categoryId, ApiCallback<Void> _callback) throws ApiException Delete Category (asynchronously) Delete a category by the category ID.- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getCategoryCall
Build call for getCategory- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getCategory
Get Category Retrieve a category by the category ID.- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)- Returns:
- CategoriesGetResponseBody
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getCategoryWithHttpInfo
public ApiResponse<CategoriesGetResponseBody> getCategoryWithHttpInfo(String categoryId) throws ApiException Get Category Retrieve a category by the category ID.- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)- Returns:
- ApiResponse<CategoriesGetResponseBody>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getCategoryAsync
public okhttp3.Call getCategoryAsync(String categoryId, ApiCallback<CategoriesGetResponseBody> _callback) throws ApiException Get Category (asynchronously) Retrieve a category by the category ID.- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
listCategoriesCall
Build call for listCategories- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
listCategories
List Categories List all categories.- Returns:
- CategoriesListResponseBody
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listCategoriesWithHttpInfo
List Categories List all categories.- Returns:
- ApiResponse<CategoriesListResponseBody>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listCategoriesAsync
public okhttp3.Call listCategoriesAsync(ApiCallback<CategoriesListResponseBody> _callback) throws ApiException List Categories (asynchronously) List all categories.- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
updateCategoryCall
public okhttp3.Call updateCategoryCall(String categoryId, CategoriesUpdateRequestBody categoriesUpdateRequestBody, ApiCallback _callback) throws ApiException Build call for updateCategory- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)categoriesUpdateRequestBody- Specify the details of the category that you would like to update. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
updateCategory
public CategoriesUpdateResponseBody updateCategory(String categoryId, CategoriesUpdateRequestBody categoriesUpdateRequestBody) throws ApiException Update Category Update category using the category ID.- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)categoriesUpdateRequestBody- Specify the details of the category that you would like to update. (optional)- Returns:
- CategoriesUpdateResponseBody
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
updateCategoryWithHttpInfo
public ApiResponse<CategoriesUpdateResponseBody> updateCategoryWithHttpInfo(String categoryId, CategoriesUpdateRequestBody categoriesUpdateRequestBody) throws ApiException Update Category Update category using the category ID.- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)categoriesUpdateRequestBody- Specify the details of the category that you would like to update. (optional)- Returns:
- ApiResponse<CategoriesUpdateResponseBody>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
updateCategoryAsync
public okhttp3.Call updateCategoryAsync(String categoryId, CategoriesUpdateRequestBody categoriesUpdateRequestBody, ApiCallback<CategoriesUpdateResponseBody> _callback) throws ApiException Update Category (asynchronously) Update category using the category ID.- Parameters:
categoryId- Unique category ID assigned by Voucherify. (required)categoriesUpdateRequestBody- Specify the details of the category that you would like to update. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-