Class IncludedProductDetail
java.lang.Object
com.broadleafcommerce.catalog.domain.product.commerce.IncludedProductDetail
- All Implemented Interfaces:
Serializable
A version of
IncludedProduct
tailored toward the needs of a commerce-facing product
details page.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
ConstructorDescriptionIncludedProductDetail
(IncludedProduct includedProduct, ProductDetails product, VariantDetail variant, PriceInfo priceInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getAsset()
com.broadleafcommerce.data.tracking.core.EmbeddedContextState
javax.money.MonetaryAmount
getId()
getLabel()
javax.money.MonetaryAmount
Deprecated.Summary of thepricing information
related to the included product.Deprecated.This field contains the specified product if theadd-on type
isDefaultItemChoiceTargetType.SPECIFIC_PRODUCTS
.int
getType()
This field contains the specified variant if theadd-on type
isDefaultItemChoiceTargetType.SPECIFIC_VARIANTS
.int
hashCode()
boolean
Deprecated.void
setAsset
(IncludedProductAsset asset) void
setContextState
(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) void
setDiscountAllowed
(boolean discountAllowed) Deprecated.void
setDisplayOrder
(Long displayOrder) void
void
setIncludedProduct
(IncludedProduct includedProduct) void
void
setOverridePrice
(javax.money.MonetaryAmount overridePrice) Deprecated.void
setPriceInfo
(PriceInfo priceInfo) Summary of thepricing information
related to the included product.void
setPricingKey
(String pricingKey) Deprecated.void
setProduct
(ProductDetails product) This field contains the specified product if theadd-on type
isDefaultItemChoiceTargetType.SPECIFIC_PRODUCTS
.void
setQuantity
(int quantity) void
void
setVariant
(VariantDetail variant) This field contains the specified variant if theadd-on type
isDefaultItemChoiceTargetType.SPECIFIC_VARIANTS
.void
setVariantParentProductId
(String variantParentProductId) toString()
-
Constructor Details
-
IncludedProductDetail
public IncludedProductDetail(IncludedProduct includedProduct, ProductDetails product, VariantDetail variant, PriceInfo priceInfo) -
IncludedProductDetail
public IncludedProductDetail()
-
-
Method Details
-
getIncludedProduct
-
getProduct
This field contains the specified product if theadd-on type
isDefaultItemChoiceTargetType.SPECIFIC_PRODUCTS
.- Returns:
- the product to use if this add-on is of type
DefaultItemChoiceTargetType.SPECIFIC_PRODUCTS
-
getVariant
This field contains the specified variant if theadd-on type
isDefaultItemChoiceTargetType.SPECIFIC_VARIANTS
.- Returns:
- the variant to use if this add-on is of type
DefaultItemChoiceTargetType.SPECIFIC_VARIANTS
-
getPriceInfo
Summary of thepricing information
related to the included product.- Returns:
- Summary of the
pricing information
related to the included product
-
setIncludedProduct
-
setProduct
This field contains the specified product if theadd-on type
isDefaultItemChoiceTargetType.SPECIFIC_PRODUCTS
.- Parameters:
product
- the product to use if this add-on is of typeDefaultItemChoiceTargetType.SPECIFIC_PRODUCTS
-
setVariant
This field contains the specified variant if theadd-on type
isDefaultItemChoiceTargetType.SPECIFIC_VARIANTS
.- Parameters:
variant
- the variant to use if this add-on is of typeDefaultItemChoiceTargetType.SPECIFIC_VARIANTS
-
setPriceInfo
Summary of thepricing information
related to the included product.- Parameters:
priceInfo
- Summary of thepricing information
related to the included product
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getDefaultPrice
public javax.money.MonetaryAmount getDefaultPrice() -
getId
-
getPricingKey
Deprecated. -
getType
-
getLabel
-
getDisplayOrder
-
getVariantParentProductId
-
getOverridePrice
Deprecated. -
isDiscountAllowed
Deprecated. -
getQuantity
public int getQuantity() -
getContextState
public com.broadleafcommerce.data.tracking.core.EmbeddedContextState getContextState() -
getAsset
-
setId
-
setPricingKey
Deprecated. -
setType
-
setLabel
-
setDisplayOrder
-
setVariantParentProductId
-
setOverridePrice
Deprecated. -
setDiscountAllowed
Deprecated. -
setQuantity
public void setQuantity(int quantity) -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) -
setAsset
-