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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
javax.money.MonetaryAmount
The price to use for this item when the relatedVariant
is selected.Gets the variantId this pricing should match with.int
hashCode()
void
setOverridePrice
(javax.money.MonetaryAmount overridePrice) void
setPriceInfo
(PriceInfo priceInfo) The price to use for this item when the relatedVariant
is selected.void
setPricingKey
(String pricingKey) void
setSpecificItemVariantPricing
(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 relatedVariant
is selected.- Returns:
- The price to use for this item when the related
Variant
is selected.
-
setSpecificItemVariantPricing
-
setPriceInfo
The price to use for this item when the relatedVariant
is selected.- Parameters:
priceInfo
- the price to use for this item when the relatedVariant
is selected.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getPricingKey
-
getOverridePrice
public javax.money.MonetaryAmount getOverridePrice() -
setPricingKey
-
setOverridePrice
public void setOverridePrice(javax.money.MonetaryAmount overridePrice)
-