Interface ProductUnpublishAction

All Superinterfaces:
ProductUpdateAction, ResourceUpdateAction<ProductUpdateAction>

public interface ProductUnpublishAction extends ProductUpdateAction

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.

When a Product is unpublished, any associated Line Items already present in a Cart remain unaffected and can still be ordered. To prevent this, do the following:


Example to create an instance using the builder pattern

     ProductUnpublishAction productUnpublishAction = ProductUnpublishAction.builder()
             .build()