public interface ProductVariant extends AttributeContainer
Modifier and Type | Method and Description |
---|---|
List<Asset> |
getAssets() |
ProductVariantAvailability |
getAvailability()
The availability is set if the variant is tracked by the inventory.
|
Integer |
getId() |
ByIdVariantIdentifier |
getIdentifier()
Gets the id of the product and the variant.
|
List<Image> |
getImages()
Product images
|
String |
getKey()
Key of the variant.
|
Price |
getPrice()
Optional price from the price selection in the search endpoint.
|
List<Price> |
getPrices()
Gets all prices for this product variant.
|
ScopedPrice |
getScopedPrice()
Optional price from the price scoped filtering in the search endpoint.
|
String |
getSku() |
Boolean |
isMatchingVariant()
A flag that indicates whether the variant matches the search criteria used when requesting the list of products or not.
|
Boolean |
isScopedPriceDiscounted()
Flag if scoped price is discounted.
|
findAttribute, findAttribute, findAttribute, getAttribute, getAttributes, hasAttribute, hasAttribute, of
Integer getId()
List<Price> getPrices()
ProductProjectionSearch
with ProductProjectionSearch.withPriceSelection(PriceSelection)
.getPrice()
,
getScopedPrice()
@Nullable Price getPrice()
ProductProjectionSearch.withPriceSelection(PriceSelection)
.getPrices()
,
getScopedPrice()
@Nullable ScopedPrice getScopedPrice()
ProductVariantFilterSearchModel.scopedPrice()
.getPrices()
,
getPrice()
@Nullable Boolean isScopedPriceDiscounted()
ProductVariantFilterSearchModel.scopedPrice()
.List<Image> getImages()
MoveImageToPosition
,
AddExternalImage
,
RemoveImage
@Nullable ProductVariantAvailability getAvailability()
@Nullable Boolean isMatchingVariant()
@Nullable ByIdVariantIdentifier getIdentifier()
ProductVariant
has been created
by loading a Product
or a ProductProjection
from JSON.UnsupportedOperationException
- if the operation is not available@Nullable String getKey()
SetProductVariantKey