Class SpecificItemVariantPricingDetail
java.lang.Object
com.broadleafcommerce.catalog.domain.product.commerce.SpecificItemVariantPricingDetail
- All Implemented Interfaces:
Serializable
A version of
SpecificItemVariantPricing tailored toward the needs of a commerce-facing
product details page.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountThe price to use for this item when the relatedVariantis selected.Gets the variantId this pricing should match with.inthashCode()voidsetOverridePrice(javax.money.MonetaryAmount overridePrice) voidsetPriceInfo(PriceInfo priceInfo) The price to use for this item when the relatedVariantis selected.voidsetPricingKey(String pricingKey) voidsetSpecificItemVariantPricing(SpecificItemVariantPricing specificItemVariantPricing) toString()
-
Constructor Details
-
SpecificItemVariantPricingDetail
public SpecificItemVariantPricingDetail()
-
-
Method Details
-
getVariantId
Gets the variantId this pricing should match with.- Returns:
- The variantId this pricing should match with.
-
getSpecificItemVariantPricing
-
getPriceInfo
The price to use for this item when the relatedVariantis selected.- Returns:
- The price to use for this item when the related
Variantis selected.
-
setSpecificItemVariantPricing
-
setPriceInfo
The price to use for this item when the relatedVariantis selected.- Parameters:
priceInfo- the price to use for this item when the relatedVariantis selected.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getPricingKey
-
getOverridePrice
public javax.money.MonetaryAmount getOverridePrice() -
setPricingKey
-
setOverridePrice
public void setOverridePrice(javax.money.MonetaryAmount overridePrice)
-