Class SearchProductRequiredOptionInfo

java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.SearchProductRequiredOptionInfo
All Implemented Interfaces:
Serializable

public class SearchProductRequiredOptionInfo extends Object implements Serializable
Summarizes information about a search result product's required options. This is used to make it easier for search indexers to index the related information and for consumer of search results to build PriceableTargets. By default, these are only present for MerchandisingProducts.
Since:
Catalog Browse 2.0.7, Release Train 2.1.5
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • SearchProductRequiredOptionInfo

      public SearchProductRequiredOptionInfo()
  • Method Details

    • getPricingKey

      public String getPricingKey()
    • getTargetType

      public String getTargetType()
    • getOverridePrice

      public javax.money.MonetaryAmount getOverridePrice()
      The override price from the ItemChoice.
    • getMinimumQuantity

      public int getMinimumQuantity()
      The minimum quantity from the ItemChoice.
    • getDefaultChoicePricingKey

      public String getDefaultChoicePricingKey()
    • getDefaultChoiceUnderlyingSku

      public String getDefaultChoiceUnderlyingSku()
      From the underlying SKU of the default SpecificItemChoice.
    • getDefaultChoiceUnderlyingPricingKey

      public String getDefaultChoiceUnderlyingPricingKey()
      From the underlying product pricing key default SpecificItemChoice.
    • getDefaultChoiceOverridePrice

      public javax.money.MonetaryAmount getDefaultChoiceOverridePrice()
    • getDefaultChoicePrice

      public javax.money.MonetaryAmount getDefaultChoicePrice()
      The price of the default SpecificItemChoice.

      This may be the same as defaultChoiceOverridePrice or else it is the underlying item's default price multiplied by the minimum quantity.

    • getDefaultChoiceUnderlyingDefaultTerm

      public ProductTerm getDefaultChoiceUnderlyingDefaultTerm()
      The default ProductTerm for the default SpecificItemChoice if relevant.
    • setPricingKey

      public void setPricingKey(String pricingKey)
    • setTargetType

      public void setTargetType(String targetType)
    • setOverridePrice

      public void setOverridePrice(javax.money.MonetaryAmount overridePrice)
      The override price from the ItemChoice.
    • setMinimumQuantity

      public void setMinimumQuantity(int minimumQuantity)
      The minimum quantity from the ItemChoice.
    • setDefaultChoicePricingKey

      public void setDefaultChoicePricingKey(String defaultChoicePricingKey)
    • setDefaultChoiceUnderlyingSku

      public void setDefaultChoiceUnderlyingSku(String defaultChoiceUnderlyingSku)
      From the underlying SKU of the default SpecificItemChoice.
    • setDefaultChoiceUnderlyingPricingKey

      public void setDefaultChoiceUnderlyingPricingKey(String defaultChoiceUnderlyingPricingKey)
      From the underlying product pricing key default SpecificItemChoice.
    • setDefaultChoiceOverridePrice

      public void setDefaultChoiceOverridePrice(javax.money.MonetaryAmount defaultChoiceOverridePrice)
    • setDefaultChoicePrice

      public void setDefaultChoicePrice(javax.money.MonetaryAmount defaultChoicePrice)
      The price of the default SpecificItemChoice.

      This may be the same as defaultChoiceOverridePrice or else it is the underlying item's default price multiplied by the minimum quantity.

    • setDefaultChoiceUnderlyingDefaultTerm

      public void setDefaultChoiceUnderlyingDefaultTerm(ProductTerm defaultChoiceUnderlyingDefaultTerm)
      The default ProductTerm for the default SpecificItemChoice if relevant.
    • 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