Class ShopCategoryService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- com.aboutyou.cloud.adminapi.service.ShopCategoryService
-
public class ShopCategoryService extends AbstractService
-
-
Constructor Summary
Constructors Constructor Description ShopCategoryService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCollection<ShopCategory>all(java.lang.String shopKey)ApiCollection<ShopCategory>all(java.lang.String shopKey, ApiOptions options)ApiCollection<ShopCategoryProperty>allProperties(java.lang.String shopKey, java.lang.Integer shopCategoryId)ApiCollection<ShopCategoryProperty>allProperties(java.lang.String shopKey, java.lang.Integer shopCategoryId, ApiOptions options)ShopCategorycreate(java.lang.String shopKey, ShopCategory model)ShopCategorycreate(java.lang.String shopKey, ShopCategory model, ApiOptions options)voiddelete(java.lang.String shopKey, java.lang.Integer shopCategoryId)voiddelete(java.lang.String shopKey, java.lang.Integer shopCategoryId, ApiOptions options)voiddeleteProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey)voiddeleteProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey, ApiOptions options)ShopCategoryget(java.lang.String shopKey, java.lang.Integer shopCategoryId)ShopCategoryget(java.lang.String shopKey, java.lang.Integer shopCategoryId, ApiOptions options)ShopCategoryPropertygetProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey)ShopCategoryPropertygetProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey, ApiOptions options)ShopCategoryupdate(java.lang.String shopKey, java.lang.Integer shopCategoryId, ShopCategory model)ShopCategoryupdate(java.lang.String shopKey, java.lang.Integer shopCategoryId, ShopCategory model, ApiOptions options)ShopCategoryPropertyupdateOrCreateProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, ShopCategoryProperty model)ShopCategoryPropertyupdateOrCreateProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, ShopCategoryProperty model, ApiOptions options)-
Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
-
-
-
Constructor Detail
-
ShopCategoryService
public ShopCategoryService(HttpClient httpClient)
-
-
Method Detail
-
create
public ShopCategory create(java.lang.String shopKey, ShopCategory model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public ShopCategory create(java.lang.String shopKey, ShopCategory model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<ShopCategory> all(java.lang.String shopKey) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<ShopCategory> all(java.lang.String shopKey, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public ShopCategory get(java.lang.String shopKey, java.lang.Integer shopCategoryId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public ShopCategory get(java.lang.String shopKey, java.lang.Integer shopCategoryId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public ShopCategory update(java.lang.String shopKey, java.lang.Integer shopCategoryId, ShopCategory model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public ShopCategory update(java.lang.String shopKey, java.lang.Integer shopCategoryId, ShopCategory model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(java.lang.String shopKey, java.lang.Integer shopCategoryId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(java.lang.String shopKey, java.lang.Integer shopCategoryId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateProperty
public ShopCategoryProperty updateOrCreateProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, ShopCategoryProperty model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateProperty
public ShopCategoryProperty updateOrCreateProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, ShopCategoryProperty model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteProperty
public void deleteProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteProperty
public void deleteProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getProperty
public ShopCategoryProperty getProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getProperty
public ShopCategoryProperty getProperty(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allProperties
public ApiCollection<ShopCategoryProperty> allProperties(java.lang.String shopKey, java.lang.Integer shopCategoryId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allProperties
public ApiCollection<ShopCategoryProperty> allProperties(java.lang.String shopKey, java.lang.Integer shopCategoryId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
-