Class SpecificItemVariantPricing

java.lang.Object
com.broadleafcommerce.catalog.domain.product.option.SpecificItemVariantPricing
All Implemented Interfaces:
Serializable

public class SpecificItemVariantPricing extends Object implements 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 Details

    • SpecificItemVariantPricing

      public SpecificItemVariantPricing()
  • Method Details

    • getVariant

      public Variant getVariant()
      ID of the Variant this pricing should be used with.
      Returns:
      ID of the Variant this pricing should be used with.
    • getPricingKey

      public String 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 related Variant is selected.
      Returns:
      The price to use for this item when the related Variant is selected.
    • setVariant

      public void setVariant(Variant variant)
      ID of the Variant this pricing should be used with.
      Parameters:
      variant - ID of the Variant this pricing should be used with.
    • setPricingKey

      public void setPricingKey(String pricingKey)
      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 related Variant is selected.
      Parameters:
      The - price to use for this item when the related Variant is selected.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object