Interface ProductUnpublishAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<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:
- If the Product uses Embedded Prices, remove the Embedded Prices from the unpublished Product.
- If the Product uses Standalone Prices, inactivate or delete the Standalone Prices.
Example to create an instance using the builder pattern
ProductUnpublishAction productUnpublishAction = ProductUnpublishAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductUnpublishActionbuilder
(ProductUnpublishAction template) create builder for ProductUnpublishAction instancestatic ProductUnpublishAction
deepCopy
(ProductUnpublishAction template) factory method to create a deep copy of ProductUnpublishActionstatic ProductUnpublishAction
of()
factory methodstatic ProductUnpublishAction
of
(ProductUnpublishAction template) factory method to create a shallow copy ProductUnpublishActionstatic com.fasterxml.jackson.core.type.TypeReference<ProductUnpublishAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
UNPUBLISH
discriminator value for ProductUnpublishAction- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of ProductUnpublishAction
-
of
factory method to create a shallow copy ProductUnpublishAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductUnpublishAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductUnpublishAction- Returns:
- builder
-
builder
create builder for ProductUnpublishAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductUnpublishAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-