Interface Variant
-
- All Known Implementing Classes:
VariantImpl
public interface Variant
Variant is a view model interface representing a product variant that contains properties specific to a variant in comparison to its base product.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description List<Asset>
getAssets()
Integer
getColor()
String
getCurrency()
Deprecated.Please use getPriceRange() instead.String
getDescription()
String
getFormattedPrice()
Deprecated.Please use getPriceRange() instead.String
getId()
Boolean
getInStock()
String
getName()
Double
getPrice()
Deprecated.Please use getPriceRange() instead.Price
getPriceRange()
String
getSku()
Map<String,Integer>
getVariantAttributes()
-
-
-
Method Detail
-
getId
String getId()
-
getName
String getName()
-
getDescription
String getDescription()
-
getSku
String getSku()
-
getCurrency
@Deprecated String getCurrency()
Deprecated.Please use getPriceRange() instead.- Returns:
- The price currency.
-
getPrice
@Deprecated Double getPrice()
Deprecated.Please use getPriceRange() instead.- Returns:
- The price.
-
getFormattedPrice
@Deprecated String getFormattedPrice()
Deprecated.Please use getPriceRange() instead.- Returns:
- The formatted price including the currency.
-
getPriceRange
Price getPriceRange()
-
getInStock
Boolean getInStock()
-
getColor
Integer getColor()
-
-