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.String countryCode, java.lang.Integer shopCategoryId)ApiCollection<ShopCategoryProperty>allProperties(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, ApiOptions options)ShopCategorycreate(java.lang.String shopKey, ShopCategory model)ShopCategorycreate(java.lang.String shopKey, ShopCategory model, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)voiddelete(java.lang.String shopKey, java.lang.Integer shopCategoryId)voiddelete(java.lang.String shopKey, java.lang.Integer shopCategoryId, ApiOptions options)voiddeleteCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId)voiddeleteCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId, ApiOptions options)voiddeleteCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode)voiddeleteCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, ApiOptions options)voiddeleteCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key)voiddeleteCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key, ApiOptions options)voiddeleteCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key)voiddeleteCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key, ApiOptions options)voiddeleteProperty(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey)voiddeleteProperty(java.lang.String shopKey, java.lang.String countryCode, 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)ShopCategoryCountrygetCountry(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId)ShopCategoryCountrygetCountry(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId)java.util.Map<java.lang.String,java.lang.Object>getCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key)java.util.Map<java.lang.String,java.lang.Object>getCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key, ApiOptions options)ShopCategoryPropertygetProperty(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey)ShopCategoryPropertygetProperty(java.lang.String shopKey, java.lang.String countryCode, 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)ShopCategoryCountryupdateOrCreateCountry(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, ShopCategoryCountry model)ShopCategoryCountryupdateOrCreateCountry(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, ShopCategoryCountry model, ApiOptions options)ShopCategoryPropertyupdateOrCreateProperty(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, ShopCategoryProperty model)ShopCategoryPropertyupdateOrCreateProperty(java.lang.String shopKey, java.lang.String countryCode, 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.String countryCode, java.lang.Integer shopCategoryId, ShopCategoryProperty model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateProperty
public ShopCategoryProperty updateOrCreateProperty(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, ShopCategoryProperty model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteProperty
public void deleteProperty(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteProperty
public void deleteProperty(java.lang.String shopKey, java.lang.String countryCode, 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.String countryCode, java.lang.Integer shopCategoryId, java.lang.String shopCategoryPropertyKey) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getProperty
public ShopCategoryProperty getProperty(java.lang.String shopKey, java.lang.String countryCode, 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.String countryCode, java.lang.Integer shopCategoryId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allProperties
public ApiCollection<ShopCategoryProperty> allProperties(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomData
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.util.Map<java.lang.String,java.lang.Object> model) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomData
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(java.lang.String shopKey, java.lang.Integer shopCategoryId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataForKey
public void deleteCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataForKey
public void deleteCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForKey(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataForCountry
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.util.Map<java.lang.String,java.lang.Object> model) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataForCountry
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataForCountry
public void deleteCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataForCountry
public void deleteCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForCountry
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForCountry
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataKeyForCountry
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataKeyForCountry
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataKeyForCountry
public void deleteCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataKeyForCountry
public void deleteCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataKeyForCountry
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataKeyForCountry
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataKeyForCountry(java.lang.String shopKey, java.lang.Integer shopCategoryId, java.lang.String countryCode, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCountry
public ShopCategoryCountry getCountry(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCountry
public ShopCategoryCountry getCountry(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateCountry
public ShopCategoryCountry updateOrCreateCountry(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, ShopCategoryCountry model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateCountry
public ShopCategoryCountry updateOrCreateCountry(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer shopCategoryId, ShopCategoryCountry model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
-