Class DynamicSkuPrices

java.lang.Object
org.broadleafcommerce.core.catalog.service.dynamic.DynamicSkuPrices
All Implemented Interfaces:
Serializable

public class DynamicSkuPrices extends Object implements Serializable
DTO to represent pricing overrides returned from invocations to DynamicSkuPricingService
Author:
jfischer
See Also:
  • Field Details

    • retailPrice

      protected org.broadleafcommerce.common.money.Money retailPrice
    • salePrice

      protected org.broadleafcommerce.common.money.Money salePrice
    • priceAdjustment

      protected org.broadleafcommerce.common.money.Money priceAdjustment
    • didOverride

      protected Boolean didOverride
  • Constructor Details

    • DynamicSkuPrices

      public DynamicSkuPrices()
  • Method Details

    • getRetailPrice

      public org.broadleafcommerce.common.money.Money getRetailPrice()
    • setRetailPrice

      public void setRetailPrice(org.broadleafcommerce.common.money.Money retailPrice)
    • getSalePrice

      public org.broadleafcommerce.common.money.Money getSalePrice()
    • setSalePrice

      public void setSalePrice(org.broadleafcommerce.common.money.Money salePrice)
    • getPriceAdjustment

      public org.broadleafcommerce.common.money.Money getPriceAdjustment()
    • setPriceAdjustment

      public void setPriceAdjustment(org.broadleafcommerce.common.money.Money priceAdjustment)
    • getPriceForQuantity

      public org.broadleafcommerce.common.money.Money getPriceForQuantity(long quantity)
      The out of box implementation returns getPrice(). Intended as a hook for advanced pricing considerations like those in BLC Enterprise pricing.
      Parameters:
      quantity -
      Returns:
    • getPrice

      public org.broadleafcommerce.common.money.Money getPrice()
      Returns the lower of getSalePrice() and getRetailPrice(). Intended as a hook for advanced pricing considerations like those in BLC Enterprise pricing.
      Returns:
    • getDidOverride

      public Boolean getDidOverride()
    • setDidOverride

      public void setDidOverride(Boolean didOverride)