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)Shopcreate(Shop model)Shopcreate(Shop model, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomData(java.lang.String shopKey, 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.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.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.String key, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)voiddeleteCustomData(java.lang.String shopKey)voiddeleteCustomData(java.lang.String shopKey, ApiOptions options)voiddeleteCustomDataForKey(java.lang.String shopKey, java.lang.String key)voiddeleteCustomDataForKey(java.lang.String shopKey, java.lang.String key, ApiOptions options)Shopget(java.lang.String shopKey)Shopget(java.lang.String shopKey, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomData(java.lang.String shopKey)java.util.Map<java.lang.String,java.lang.Object>getCustomData(java.lang.String shopKey, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(java.lang.String shopKey, java.lang.String key)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(java.lang.String shopKey, java.lang.String key, ApiOptions options)Shopupdate(java.lang.String shopKey, Shop model)Shopupdate(java.lang.String shopKey, Shop 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
-
createOrUpdateCustomData
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomData(java.lang.String shopKey, 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.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(java.lang.String shopKey) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(java.lang.String shopKey, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(java.lang.String shopKey) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(java.lang.String shopKey, 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.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.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.String key) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataForKey
public void deleteCustomDataForKey(java.lang.String shopKey, 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.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.String key, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
-