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)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)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)ProductVariantupdate(Identifier productIdentifier, Identifier variantIdentifier, ProductVariant model)ProductVariantupdate(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
-
-