Package | Description |
---|---|
io.sphere.sdk.carts |
Provides model classes and builders for carts.
|
io.sphere.sdk.products |
Provides model classes and builders for products.
|
io.sphere.sdk.products.attributes |
Provides model classes for product type attributes.
|
io.sphere.sdk.products.commands.updateactions |
Provides the possible operations which can be performed on update commands for products.
|
io.sphere.sdk.products.messages |
Provides model classes and builders for products.
|
io.sphere.sdk.shoppinglists |
Provides model classes and builders for shopping lists.
|
Modifier and Type | Method and Description |
---|---|
ProductVariant |
LineItem.getVariant() |
Modifier and Type | Method and Description |
---|---|
ProductVariant |
ProductProjection.getMasterVariant() |
ProductVariant |
ProductData.getMasterVariant() |
default ProductVariant |
ProductProjection.getVariant(int variantId) |
default ProductVariant |
ProductData.getVariant(int variantId) |
default ProductVariant |
ProductProjection.getVariantOrMaster(int variantId) |
default ProductVariant |
ProductData.getVariantOrMaster(int variantId) |
Modifier and Type | Method and Description |
---|---|
default Optional<ProductVariant> |
ProductProjection.findFirstMatchingVariant()
Finds the first matching variant according to the search criteria used in the search request, if any.
|
default List<ProductVariant> |
ProductProjection.findMatchingVariants()
Finds all variants that match the search criteria used in the search request, if any.
|
default Optional<ProductVariant> |
ProductProjection.findVariant(ByIdVariantIdentifier identifier) |
default Optional<ProductVariant> |
ProductProjection.findVariantBySku(String sku)
Finds a variant by SKU.
|
default List<ProductVariant> |
ProductProjection.getAllVariants() |
default List<ProductVariant> |
ProductData.getAllVariants() |
List<ProductVariant> |
ProductProjection.getVariants() |
List<ProductVariant> |
ProductData.getVariants() |
Modifier and Type | Method and Description |
---|---|
List<Map.Entry<String,String>> |
DefaultProductAttributeFormatter.createAttributeEntryList(ProductVariant variant,
Reference<ProductType> productType,
List<String> attrNamesToShow)
Creates a list of attribute translated and formatted labels and values.
|
Modifier and Type | Method and Description |
---|---|
static RemoveVariant |
RemoveVariant.of(ProductVariant variant) |
Modifier and Type | Method and Description |
---|---|
ProductVariant |
ProductVariantDeletedMessage.getVariant() |
Modifier and Type | Method and Description |
---|---|
ProductVariant |
LineItem.getVariant() |