public interface ProductTypeDraft extends WithKey
ProductTypeCreateCommand
Modifier and Type | Method and Description |
---|---|
static List<AttributeDefinitionDraft> |
copyAttributes(List<AttributeDefinition> templates) |
List<AttributeDefinitionDraft> |
getAttributes() |
String |
getDescription() |
String |
getKey() |
String |
getName() |
static ProductTypeDraft |
of(String key,
String name,
String description,
List<AttributeDefinition> attributes)
Deprecated.
|
static ProductTypeDraft |
ofAttributeDefinitionDrafts(String key,
String name,
String description,
List<AttributeDefinitionDraft> attributes) |
String getName()
String getDescription()
List<AttributeDefinitionDraft> getAttributes()
@Deprecated static ProductTypeDraft of(@Nullable String key, String name, String description, List<AttributeDefinition> attributes)
ProductType
.key
- unique key to identify the created ProductType
name
- the name of the product type, Composable Commerce does not check that the name will be unique so it is best practice to check if a product type of this name already existsdescription
- description of the product typeattributes
- definitions of attributes for the product typestatic ProductTypeDraft ofAttributeDefinitionDrafts(@Nullable String key, String name, String description, List<AttributeDefinitionDraft> attributes)
static List<AttributeDefinitionDraft> copyAttributes(List<AttributeDefinition> templates)