Interface ProductCatalogModel
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
ProductCatalogModel.ProductCatalogModelEnum
Determines how Product Variants are managed in the Project.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumpossible values of ProductCatalogModel -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProductCatalogModelProduct Variants are embedded in the Product.static final ProductCatalogModelThis temporary model supports migration fromClassictoModular.static final ProductCatalogModelProduct Variants are standalone resources managed through the Variants API. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProductCatalogModelfactory method for a enum value of ProductCatalogModel if no enum has been found an anonymous instance will be createdstatic Optional<ProductCatalogModel>findEnumViaJsonName(String jsonName) method to find enum using the JSON valuethe JSON valuename()the enum valuetoString()convert value to stringstatic ProductCatalogModel[]values()possible enum values
-
Field Details
-
CLASSIC
Product Variants are embedded in the Product. This is the default model.
-
IN_MIGRATION
This temporary model supports migration from
ClassictoModular. Product Variants remain embedded, and Product API Variant update actions remain supported. Other resources that resolve Variants default to standalone Variants, while Product Search defaults to embedded Variants. See the migration guide for details. -
MODULAR
Product Variants are standalone resources managed through the Variants API. Pricing uses StandalonePrices. Embedded Prices and Product API Variant update actions are unsupported.
- 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.
- Variant-related update actions on Products return a
-
-
Method Details
-
getJsonName
String getJsonName()the JSON value- Specified by:
getJsonNamein interfaceJsonEnum- Returns:
- json value
-
name
String name()the enum value -
toString
String toString()convert value to string -
findEnum
factory method for a enum value of ProductCatalogModel if no enum has been found an anonymous instance will be created- Parameters:
value- the enum value to be wrapped- Returns:
- enum instance
-
findEnumViaJsonName
method to find enum using the JSON value- Parameters:
jsonName- the json value to be wrapped- Returns:
- optional of enum instance
-
values
possible enum values- Returns:
- array of possible enum values
-