Class SpecificItemChoiceVariantPricingOverride

java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.SpecificItemChoiceVariantPricingOverride
All Implemented Interfaces:
Priceable, Serializable

public class SpecificItemChoiceVariantPricingOverride extends Object implements Serializable, Priceable
Represents a pricing override to be used for a dependent item (like a warranty) if a specific variant of the parent product is added as the dependent's parent. 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

    • SpecificItemChoiceVariantPricingOverride

      public SpecificItemChoiceVariantPricingOverride()
  • Method Details

    • getVariantId

      public String getVariantId()
      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()
      System-wide unique identifier to configure specific pricing for the choice. Relevant if pricing data is managed in a separate system or data store, like the Broadleaf pricing services.
      Returns:
      a unique key to identify this choice
    • 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.
    • getPriceInfo

      public com.broadleafcommerce.pricing.client.domain.PriceInfo getPriceInfo()
      Summary of the pricing information for this pricing override. This is more detailed than overridePrice since it includes the price type and potentially other prices or cost.
      Specified by:
      getPriceInfo in interface Priceable
      Returns:
      Summary of the pricing information for this pricing override.
    • setVariantId

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

      public void setPricingKey(String pricingKey)
      System-wide unique identifier to configure specific pricing for the choice. Relevant if pricing data is managed in a separate system or data store, like the Broadleaf pricing services.
      Parameters:
      pricingKey - a unique key to identify this choice (usually a UUID)
    • 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.
    • setPriceInfo

      public void setPriceInfo(com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo)
      Summary of the pricing information for this pricing override. This is more detailed than overridePrice since it includes the price type and potentially other prices or cost.
      Specified by:
      setPriceInfo in interface Priceable
      Parameters:
      price - Summary of the pricing information for this pricing override.
    • 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