Class ShopService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- com.aboutyou.cloud.adminapi.service.ShopService
-
public class ShopService extends AbstractService
-
-
Constructor Summary
Constructors Constructor Description ShopService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCollection<Shop>all()ApiCollection<Shop>all(ApiOptions options)ApiCollection<ShopProperty>allProperties(java.lang.String shopKey)ApiCollection<ShopProperty>allProperties(java.lang.String shopKey, ApiOptions options)Shopcreate(Shop model)Shopcreate(Shop model, ApiOptions options)voiddeleteProperty(java.lang.String shopKey, java.lang.String shopPropertyKey)voiddeleteProperty(java.lang.String shopKey, java.lang.String shopPropertyKey, ApiOptions options)Shopget(java.lang.String shopKey)Shopget(java.lang.String shopKey, ApiOptions options)ShopPropertygetProperty(java.lang.String shopKey, java.lang.String shopPropertyKey)ShopPropertygetProperty(java.lang.String shopKey, java.lang.String shopPropertyKey, ApiOptions options)Shopupdate(java.lang.String shopKey, Shop model)Shopupdate(java.lang.String shopKey, Shop model, ApiOptions options)AssortmentupdateAssortment(java.lang.String shopKey, Assortment model)AssortmentupdateAssortment(java.lang.String shopKey, Assortment model, ApiOptions options)ShopPropertyupdateOrCreateProperty(java.lang.String shopKey, ShopProperty model)ShopPropertyupdateOrCreateProperty(java.lang.String shopKey, ShopProperty model, ApiOptions options)-
Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
-
-
-
Constructor Detail
-
ShopService
public ShopService(HttpClient httpClient)
-
-
Method Detail
-
create
public Shop create(Shop model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Shop create(Shop model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Shop> all() throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Shop> all(ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Shop get(java.lang.String shopKey) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Shop get(java.lang.String shopKey, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Shop update(java.lang.String shopKey, Shop model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Shop update(java.lang.String shopKey, Shop model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateAssortment
public Assortment updateAssortment(java.lang.String shopKey, Assortment model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateAssortment
public Assortment updateAssortment(java.lang.String shopKey, Assortment model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateProperty
public ShopProperty updateOrCreateProperty(java.lang.String shopKey, ShopProperty model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateProperty
public ShopProperty updateOrCreateProperty(java.lang.String shopKey, ShopProperty model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteProperty
public void deleteProperty(java.lang.String shopKey, java.lang.String shopPropertyKey) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteProperty
public void deleteProperty(java.lang.String shopKey, java.lang.String shopPropertyKey, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getProperty
public ShopProperty getProperty(java.lang.String shopKey, java.lang.String shopPropertyKey) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getProperty
public ShopProperty getProperty(java.lang.String shopKey, java.lang.String shopPropertyKey, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allProperties
public ApiCollection<ShopProperty> allProperties(java.lang.String shopKey) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allProperties
public ApiCollection<ShopProperty> allProperties(java.lang.String shopKey, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
-