Class ProductPricingPredicate

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

public class ProductPricingPredicate extends Object implements Serializable
This is a wrapper class around the default pricing details that generally need to be stored together and returned from the search service in order to allow proper pricing details (i.e. price lists) to be fetched and decorated prior to returning to the customer. This is data that will be stored in the search engine, but that will not typically be searched, filtered, sorted, or faceted. Rather this will be stored and returned, for future processing and/or informational purposes only.
Author:
Kelly Tisdell
See Also:
  • Constructor Details

    • ProductPricingPredicate

      public ProductPricingPredicate()
  • Method Details

    • getPricingKey

      public String getPricingKey()
      Product's pricing key - used to call the pricing service to decorate search results with additional or more accurate pricing.
    • getProductSku

      public String getProductSku()
      SKU of the product.
    • getPrice

      public javax.money.MonetaryAmount getPrice()
      Default price of the product (from the Catalog).
    • getSalePrice

      public javax.money.MonetaryAmount getSalePrice()
      Default sale price of the product (from the Catalog). This value may be null.
    • getCost

      public javax.money.MonetaryAmount getCost()
      Default cost of the product (from the Catalog). This value may be null.
    • getDefaultSku

      public SkuPricingPredicate getDefaultSku()
      Default SKU price info, if applicable. This will be null if the product does not have variants or if the product does not use a default sku that matches one of the variants.
    • getLowestPricedSku

      public SkuPricingPredicate getLowestPricedSku()
      Lowest priced SKU price info, if exists. This will be null if the product does not have variants, or if none of the SKUs have a price.
    • setPricingKey

      public void setPricingKey(String pricingKey)
      Product's pricing key - used to call the pricing service to decorate search results with additional or more accurate pricing.
    • setProductSku

      public void setProductSku(String productSku)
      SKU of the product.
    • setPrice

      public void setPrice(javax.money.MonetaryAmount price)
      Default price of the product (from the Catalog).
    • setSalePrice

      public void setSalePrice(javax.money.MonetaryAmount salePrice)
      Default sale price of the product (from the Catalog). This value may be null.
    • setCost

      public void setCost(javax.money.MonetaryAmount cost)
      Default cost of the product (from the Catalog). This value may be null.
    • setDefaultSku

      public void setDefaultSku(SkuPricingPredicate defaultSku)
      Default SKU price info, if applicable. This will be null if the product does not have variants or if the product does not use a default sku that matches one of the variants.
    • setLowestPricedSku

      public void setLowestPricedSku(SkuPricingPredicate lowestPricedSku)
      Lowest priced SKU price info, if exists. This will be null if the product does not have variants, or if none of the SKUs have a price.
    • 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