Class ProductPricingPredicate
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ProductPricingPredicate
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountgetCost()Default cost of the product (from the Catalog).Default SKU price info, if applicable.Lowest priced SKU price info, if exists.javax.money.MonetaryAmountgetPrice()Default price of the product (from the Catalog).Product's pricing key - used to call the pricing service to decorate search results with additional or more accurate pricing.SKU of the product.javax.money.MonetaryAmountDefault sale price of the product (from the Catalog).inthashCode()voidsetCost(javax.money.MonetaryAmount cost) Default cost of the product (from the Catalog).voidsetDefaultSku(SkuPricingPredicate defaultSku) Default SKU price info, if applicable.voidsetLowestPricedSku(SkuPricingPredicate lowestPricedSku) Lowest priced SKU price info, if exists.voidsetPrice(javax.money.MonetaryAmount price) Default price of the product (from the Catalog).voidsetPricingKey(String pricingKey) Product's pricing key - used to call the pricing service to decorate search results with additional or more accurate pricing.voidsetProductSku(String productSku) SKU of the product.voidsetSalePrice(javax.money.MonetaryAmount salePrice) Default sale price of the product (from the Catalog).toString()
-
Constructor Details
-
ProductPricingPredicate
public ProductPricingPredicate()
-
-
Method Details
-
getPricingKey
Product's pricing key - used to call the pricing service to decorate search results with additional or more accurate pricing. -
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
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
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
Product's pricing key - used to call the pricing service to decorate search results with additional or more accurate pricing. -
setProductSku
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
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
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-