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
ConstructorsConstructorDescriptionIncludedProductDetail(IncludedProduct includedProduct, ProductDetails product, VariantDetail variant, PriceInfo priceInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetAsset()com.broadleafcommerce.data.tracking.core.EmbeddedContextStatejavax.money.MonetaryAmountgetId()getLabel()javax.money.MonetaryAmountDeprecated.Summary of thepricing informationrelated to the included product.Deprecated.This field contains the specified product if theadd-on typeisDefaultItemChoiceTargetType.SPECIFIC_PRODUCTS.intgetType()This field contains the specified variant if theadd-on typeisDefaultItemChoiceTargetType.SPECIFIC_VARIANTS.inthashCode()booleanDeprecated.voidsetAsset(IncludedProductAsset asset) voidsetContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) voidsetDiscountAllowed(boolean discountAllowed) Deprecated.voidsetDisplayOrder(Long displayOrder) voidvoidsetIncludedProduct(IncludedProduct includedProduct) voidvoidsetOverridePrice(javax.money.MonetaryAmount overridePrice) Deprecated.voidsetPriceInfo(PriceInfo priceInfo) Summary of thepricing informationrelated to the included product.voidsetPricingKey(String pricingKey) Deprecated.voidsetProduct(ProductDetails product) This field contains the specified product if theadd-on typeisDefaultItemChoiceTargetType.SPECIFIC_PRODUCTS.voidsetQuantity(int quantity) voidvoidsetVariant(VariantDetail variant) This field contains the specified variant if theadd-on typeisDefaultItemChoiceTargetType.SPECIFIC_VARIANTS.voidsetVariantParentProductId(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 typeisDefaultItemChoiceTargetType.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 typeisDefaultItemChoiceTargetType.SPECIFIC_VARIANTS.- Returns:
- the variant to use if this add-on is of type
DefaultItemChoiceTargetType.SPECIFIC_VARIANTS
-
getPriceInfo
Summary of thepricing informationrelated to the included product.- Returns:
- Summary of the
pricing informationrelated to the included product
-
setIncludedProduct
-
setProduct
This field contains the specified product if theadd-on typeisDefaultItemChoiceTargetType.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 typeisDefaultItemChoiceTargetType.SPECIFIC_VARIANTS.- Parameters:
variant- the variant to use if this add-on is of typeDefaultItemChoiceTargetType.SPECIFIC_VARIANTS
-
setPriceInfo
Summary of thepricing informationrelated to the included product.- Parameters:
priceInfo- Summary of thepricing informationrelated 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
-