Class SkuPricingPredicate

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

public class SkuPricingPredicate extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    javax.money.MonetaryAmount
    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.MonetaryAmount
    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.
    SKU (i.e.
    int
     
    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.
    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.
    void
    SKU (i.e.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SkuPricingPredicate

      public SkuPricingPredicate()
  • Method Details

    • getSku

      public String 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

      public void setSku(String sku)
      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

      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