Class SkuPricingPredicate
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.SkuPricingPredicate
- All Implemented Interfaces:
Serializable
Wrapper around default SKU pricing details. These generally come from the catalog, and not the
pricing service. But they are stored because they can be used for pricing, and for calling the
pricing service to hydrate more accurate prices based on price lists.
- Author:
- Kelly Tisdell (ktisdell)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountgetPrice()Default price of the variant (from the Catalog), which may be different than the Product's default price, or it may be null.javax.money.MonetaryAmountDefault sale price of the variant (from the Catalog), which may be different than the Product's default sale price, or it may be null.getSku()SKU (i.e.inthashCode()voidsetPrice(javax.money.MonetaryAmount price) Default price of the variant (from the Catalog), which may be different than the Product's default price, or it may be null.voidsetSalePrice(javax.money.MonetaryAmount salePrice) Default sale price of the variant (from the Catalog), which may be different than the Product's default sale price, or it may be null.voidSKU (i.e.toString()
-
Constructor Details
-
SkuPricingPredicate
public SkuPricingPredicate()
-
-
Method Details
-
getSku
SKU (i.e. SKU code) of the SKU or variant. -
getPrice
public javax.money.MonetaryAmount getPrice()Default price of the variant (from the Catalog), which may be different than the Product's default price, or it may be null. -
getSalePrice
public javax.money.MonetaryAmount getSalePrice()Default sale price of the variant (from the Catalog), which may be different than the Product's default sale price, or it may be null. -
setSku
SKU (i.e. SKU code) of the SKU or variant. -
setPrice
public void setPrice(javax.money.MonetaryAmount price) Default price of the variant (from the Catalog), which may be different than the Product's default price, or it may be null. -
setSalePrice
public void setSalePrice(javax.money.MonetaryAmount salePrice) Default sale price of the variant (from the Catalog), which may be different than the Product's default sale price, or it may be null. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-