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.