Class SpecificItemChoiceVariantPricingOverride

java.lang.Object
com.broadleafcommerce.cart.client.domain.SpecificItemChoiceVariantPricingOverride
All Implemented Interfaces:
Serializable

public class SpecificItemChoiceVariantPricingOverride extends Object implements Serializable
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.
    • 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.
    • 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