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 ProductCatalogModelProduct Variants are managed as standalone entities through the Variants endpoint. -
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 behavior.
-
MODULAR
Product Variants are managed as standalone entities through the Variants endpoint. Variant-related update actions on Products are not available in this mode. Pricing is exclusively handled through StandalonePrices; Embedded Prices are not supported.
-
-
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
-