Interface ProjectSetProductCatalogModelAction
- All Superinterfaces:
ProjectUpdateAction,ResourceUpdateAction<ProjectUpdateAction>
ProjectSetProductCatalogModelAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProjectSetProductCatalogModelAction projectSetProductCatalogModelAction = ProjectSetProductCatalogModelAction.builder()
.productCatalogModel(ProductCatalogModel.CLASSIC)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProjectSetProductCatalogModelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProjectSetProductCatalogModelActionbuilder(ProjectSetProductCatalogModelAction template) create builder for ProjectSetProductCatalogModelAction instancecopyDeep()deepCopy(ProjectSetProductCatalogModelAction template) factory method to create a deep copy of ProjectSetProductCatalogModelAction@NotNull ProductCatalogModelConfiguration for the Product catalog model in the Project.of()factory methodof(ProjectSetProductCatalogModelAction template) factory method to create a shallow copy ProjectSetProductCatalogModelActionvoidsetProductCatalogModel(ProductCatalogModel productCatalogModel) Configuration for the Product catalog model in the Project.static tools.jackson.core.type.TypeReference<ProjectSetProductCatalogModelAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.project.ProjectUpdateAction
getAction, withProjectUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_PRODUCT_CATALOG_MODEL
discriminator value for ProjectSetProductCatalogModelAction- See Also:
-
-
Method Details
-
getProductCatalogModel
Configuration for the Product catalog model in the Project.
When set to
Classic, Product Variants are embedded in the Product.When set to
Modular, Product Variants are managed as standalone entities. In this mode:- Variant-related update actions on Products return a
400error. - Products must be created without
masterVariantandvariants. - Products cannot be deleted while Variants reference them.
- Products cannot be unpublished while they have published Variants.
- Carts read variant data from the Variant API instead of embedded Product Variants.
priceModeon Products is set toStandalone.
- Returns:
- productCatalogModel
- Variant-related update actions on Products return a
-
setProductCatalogModel
Configuration for the Product catalog model in the Project.
When set to
Classic, Product Variants are embedded in the Product.When set to
Modular, Product Variants are managed as standalone entities. In this mode:- Variant-related update actions on Products return a
400error. - Products must be created without
masterVariantandvariants. - Products cannot be deleted while Variants reference them.
- Products cannot be unpublished while they have published Variants.
- Carts read variant data from the Variant API instead of embedded Product Variants.
priceModeon Products is set toStandalone.
- Parameters:
productCatalogModel- value to be set
- Variant-related update actions on Products return a
-
of
factory method- Returns:
- instance of ProjectSetProductCatalogModelAction
-
of
factory method to create a shallow copy ProjectSetProductCatalogModelAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProjectSetProductCatalogModelAction copyDeep()- Specified by:
copyDeepin interfaceProjectUpdateAction
-
deepCopy
@Nullable static ProjectSetProductCatalogModelAction deepCopy(@Nullable ProjectSetProductCatalogModelAction template) factory method to create a deep copy of ProjectSetProductCatalogModelAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProjectSetProductCatalogModelAction- Returns:
- builder
-
builder
static ProjectSetProductCatalogModelActionBuilder builder(ProjectSetProductCatalogModelAction template) create builder for ProjectSetProductCatalogModelAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProjectSetProductCatalogModelAction
default <T> T withProjectSetProductCatalogModelAction(Function<ProjectSetProductCatalogModelAction, T> helper) 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
-