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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountThe price to use for this item when the relatedVariantis selected.Special key used to target this item from pricing services.ID of theVariantthis pricing should be used with.inthashCode()voidsetOverridePrice(javax.money.MonetaryAmount overridePrice) The price to use for this item when the relatedVariantis selected.voidsetPricingKey(String pricingKey) Special key used to target this item from pricing services.voidsetVariant(Variant variant) ID of theVariantthis pricing should be used with.toString() 
- 
Constructor Details
- 
SpecificItemVariantPricing
public SpecificItemVariantPricing() 
 - 
 - 
Method Details
- 
getVariant
ID of theVariantthis pricing should be used with.- Returns:
 - ID of the 
Variantthis 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 relatedVariantis selected.- Returns:
 - The price to use for this item when the related 
Variantis selected. 
 - 
setVariant
ID of theVariantthis pricing should be used with.- Parameters:
 variant- ID of theVariantthis 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 relatedVariantis selected.- Parameters:
 The- price to use for this item when the relatedVariantis selected.
 - 
equals
 - 
canEqual
 - 
hashCode
public int hashCode() - 
toString
 
 -