Class ProductUnpublishActionImpl
java.lang.Object
com.commercetools.api.models.product.ProductUnpublishActionImpl
- All Implemented Interfaces:
ProductUnpublishAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductUnpublishActionImpl
extends Object
implements ProductUnpublishAction, io.vrap.rmf.base.client.ModelBase
Removes the current projection of the Product. The staged projection is unaffected. To retrieve unpublished Products, the staged
parameter must be set to false
when querying/searching Product Projections. Produces the ProductUnpublished Message.
Unpublished Products cannot be added to a Cart. However, if a Cart contains Line Items for Products that were added before the Product was unpublished, the Cart is unaffected and can still be used to create an Order. To prevent this, in addition to unpublishing the Product you should remove the Prices from the Product using Remove Price for Embedded Prices or Delete StandalonePrice for Standalone Prices.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.product.ProductUnpublishAction
UNPUBLISH
-
Method Summary
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product.ProductUnpublishAction
withProductUnpublishAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceProductUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductUpdateAction>
- Returns:
- action
-
equals
-
hashCode
public int hashCode() -
toString
-