Class ProductVariantService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- com.aboutyou.cloud.adminapi.service.ProductVariantService
-
public class ProductVariantService extends AbstractService
-
-
Constructor Summary
Constructors Constructor Description ProductVariantService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCollection<ProductVariant>all(Identifier productIdentifier)ApiCollection<ProductVariant>all(Identifier productIdentifier, ApiOptions options)ApiCollection<Attribute>allAttributes(Identifier productIdentifier, Identifier variantIdentifier)ApiCollection<Attribute>allAttributes(Identifier productIdentifier, Identifier variantIdentifier, ApiOptions options)ProductVariantcreate(Identifier productIdentifier, ProductVariant model)ProductVariantcreate(Identifier productIdentifier, ProductVariant model, ApiOptions options)ProductVariantcreateComposite(Identifier productIdentifier, ProductVariant model)ProductVariantcreateComposite(Identifier productIdentifier, ProductVariant model, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomData(Identifier variantIdentifier, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomData(Identifier variantIdentifier, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForKey(Identifier variantIdentifier, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForKey(Identifier variantIdentifier, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)voiddelete(Identifier productIdentifier, Identifier variantIdentifier)voiddelete(Identifier productIdentifier, Identifier variantIdentifier, ApiOptions options)voiddeleteAttribute(Identifier productIdentifier, Identifier variantIdentifier, java.lang.String attributeGroupName)voiddeleteAttribute(Identifier productIdentifier, Identifier variantIdentifier, java.lang.String attributeGroupName, ApiOptions options)voiddeleteComposite(Identifier productIdentifier, Identifier variantIdentifier)voiddeleteComposite(Identifier productIdentifier, Identifier variantIdentifier, ApiOptions options)voiddeleteCustomData(Identifier variantIdentifier)voiddeleteCustomData(Identifier variantIdentifier, ApiOptions options)voiddeleteCustomDataForKey(Identifier variantIdentifier, java.lang.String key)voiddeleteCustomDataForKey(Identifier variantIdentifier, java.lang.String key, ApiOptions options)ProductVariantget(Identifier productIdentifier, Identifier variantIdentifier)ProductVariantget(Identifier productIdentifier, Identifier variantIdentifier, ApiOptions options)AttributegetAttribute(Identifier productIdentifier, Identifier variantIdentifier, java.lang.String attributeGroupName)AttributegetAttribute(Identifier productIdentifier, Identifier variantIdentifier, java.lang.String attributeGroupName, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomData(Identifier variantIdentifier)java.util.Map<java.lang.String,java.lang.Object>getCustomData(Identifier variantIdentifier, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(Identifier variantIdentifier, java.lang.String key)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(Identifier variantIdentifier, java.lang.String key, ApiOptions options)ProductVariantupdate(Identifier productIdentifier, Identifier variantIdentifier, ProductVariant model)ProductVariantupdate(Identifier productIdentifier, Identifier variantIdentifier, ProductVariant model, ApiOptions options)ProductVariantupdateComposite(Identifier productIdentifier, Identifier variantIdentifier, ProductVariant model)ProductVariantupdateComposite(Identifier productIdentifier, Identifier variantIdentifier, ProductVariant model, ApiOptions options)AttributeupdateOrCreateAttribute(Identifier productIdentifier, Identifier variantIdentifier, Attribute model)AttributeupdateOrCreateAttribute(Identifier productIdentifier, Identifier variantIdentifier, Attribute model, ApiOptions options)-
Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
-
-
-
Constructor Detail
-
ProductVariantService
public ProductVariantService(HttpClient httpClient)
-
-
Method Detail
-
create
public ProductVariant create(Identifier productIdentifier, ProductVariant model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public ProductVariant create(Identifier productIdentifier, ProductVariant model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public ProductVariant get(Identifier productIdentifier, Identifier variantIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public ProductVariant get(Identifier productIdentifier, Identifier variantIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<ProductVariant> all(Identifier productIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<ProductVariant> all(Identifier productIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public ProductVariant update(Identifier productIdentifier, Identifier variantIdentifier, ProductVariant model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public ProductVariant update(Identifier productIdentifier, Identifier variantIdentifier, ProductVariant model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(Identifier productIdentifier, Identifier variantIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(Identifier productIdentifier, Identifier variantIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateAttribute
public Attribute updateOrCreateAttribute(Identifier productIdentifier, Identifier variantIdentifier, Attribute model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateAttribute
public Attribute updateOrCreateAttribute(Identifier productIdentifier, Identifier variantIdentifier, Attribute model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteAttribute
public void deleteAttribute(Identifier productIdentifier, Identifier variantIdentifier, java.lang.String attributeGroupName) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteAttribute
public void deleteAttribute(Identifier productIdentifier, Identifier variantIdentifier, java.lang.String attributeGroupName, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getAttribute
public Attribute getAttribute(Identifier productIdentifier, Identifier variantIdentifier, java.lang.String attributeGroupName) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getAttribute
public Attribute getAttribute(Identifier productIdentifier, Identifier variantIdentifier, java.lang.String attributeGroupName, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allAttributes
public ApiCollection<Attribute> allAttributes(Identifier productIdentifier, Identifier variantIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allAttributes
public ApiCollection<Attribute> allAttributes(Identifier productIdentifier, Identifier variantIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomData
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomData(Identifier variantIdentifier, 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(Identifier variantIdentifier, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(Identifier variantIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(Identifier variantIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(Identifier variantIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(Identifier variantIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataForKey(Identifier variantIdentifier, 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(Identifier variantIdentifier, 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(Identifier variantIdentifier, java.lang.String key) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataForKey
public void deleteCustomDataForKey(Identifier variantIdentifier, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForKey(Identifier variantIdentifier, java.lang.String key) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForKey(Identifier variantIdentifier, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createComposite
public ProductVariant createComposite(Identifier productIdentifier, ProductVariant model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createComposite
public ProductVariant createComposite(Identifier productIdentifier, ProductVariant model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateComposite
public ProductVariant updateComposite(Identifier productIdentifier, Identifier variantIdentifier, ProductVariant model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateComposite
public ProductVariant updateComposite(Identifier productIdentifier, Identifier variantIdentifier, ProductVariant model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteComposite
public void deleteComposite(Identifier productIdentifier, Identifier variantIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteComposite
public void deleteComposite(Identifier productIdentifier, Identifier variantIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
-