Class PriceDataTierRef

java.lang.Object
com.broadleafcommerce.pricing.client.domain.PriceDataTierRef
All Implemented Interfaces:
Serializable

public class PriceDataTierRef extends Object implements Serializable
Specify a price depending on a minimum quantity being met. i.e. "Sku A" gets a reduced price if you buy 5 of them, and a further reduced price if you buy 10.
Author:
Chad Harchar (charchar)
See Also:
  • Constructor Details

    • PriceDataTierRef

      public PriceDataTierRef(Integer minQuantity, javax.money.MonetaryAmount price)
    • PriceDataTierRef

      public PriceDataTierRef()
  • Method Details

    • getMinQuantity

      public Integer getMinQuantity()
      The quantity that defines the minimum threshold of this tier.
    • getPrice

      public javax.money.MonetaryAmount getPrice()
      The one-time price.
    • getRecurringPrice

      public javax.money.MonetaryAmount getRecurringPrice()
      The amount of the recurring price. Optional.
      Since:
      Pricing Client 2.0.3
    • getUsagePrice

      public javax.money.MonetaryAmount getUsagePrice()
      The amount of the usage price. Optional.
      Since:
      Pricing Client 2.0.3
    • setMinQuantity

      public void setMinQuantity(Integer minQuantity)
      The quantity that defines the minimum threshold of this tier.
    • setPrice

      public void setPrice(javax.money.MonetaryAmount price)
      The one-time price.
    • setRecurringPrice

      public void setRecurringPrice(javax.money.MonetaryAmount recurringPrice)
      The amount of the recurring price. Optional.
      Since:
      Pricing Client 2.0.3
    • setUsagePrice

      public void setUsagePrice(javax.money.MonetaryAmount usagePrice)
      The amount of the usage price. Optional.
      Since:
      Pricing Client 2.0.3
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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