Class SpecificItemVariantPricing
java.lang.Object
com.broadleafcommerce.catalog.domain.product.option.SpecificItemVariantPricing
- All Implemented Interfaces:
Serializable
Represents a pricing override to be used for a
SpecificItemChoice
if a specific variant
of the parent product is added to the cart along with the item choice. For instance, this could
be a pricing override for a warranty where the price is increased if a more expensive variant is
selected than the default or base variant.- 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.Special key used to target this item from pricing services.ID of theVariant
this pricing should be used with.int
hashCode()
void
setOverridePrice
(javax.money.MonetaryAmount overridePrice) The price to use for this item when the relatedVariant
is selected.void
setPricingKey
(String pricingKey) Special key used to target this item from pricing services.void
setVariant
(Variant variant) ID of theVariant
this pricing should be used with.toString()
-
Constructor Details
-
SpecificItemVariantPricing
public SpecificItemVariantPricing()
-
-
Method Details
-
getVariant
ID of theVariant
this pricing should be used with.- Returns:
- ID of the
Variant
this pricing should be used with.
-
getPricingKey
Special key used to target this item from pricing services.- Returns:
- Special key used to target this item from pricing services.
-
getOverridePrice
public javax.money.MonetaryAmount getOverridePrice()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.
-
setVariant
ID of theVariant
this pricing should be used with.- Parameters:
variant
- ID of theVariant
this pricing should be used with.
-
setPricingKey
Special key used to target this item from pricing services.- Parameters:
pricingKey
- Special key used to target this item from pricing services.
-
setOverridePrice
public void setOverridePrice(javax.money.MonetaryAmount overridePrice) The price to use for this item when the relatedVariant
is selected.- Parameters:
The
- price to use for this item when the relatedVariant
is selected.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-