Interface ProductUnpublishAction

All Superinterfaces:
ProductUpdateAction, ResourceUpdateAction<ProductUpdateAction>

public interface ProductUnpublishAction extends ProductUpdateAction

Sets the published flag on the ProductCatalogData to false. This makes the current representation of a Product unavailable in Product Projection endpoints by default, and excludes it from Product Search. To retrieve unpublished Products on Product Projection endpoints, set parameter staged=true.

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()