Class PriceDataTierRef
java.lang.Object
com.broadleafcommerce.pricing.client.domain.PriceDataTierRef
- All Implemented Interfaces:
- 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanThe quantity that defines the minimum threshold of this tier.javax.money.MonetaryAmountgetPrice()The one-time price.javax.money.MonetaryAmountThe amount of the recurring price.javax.money.MonetaryAmountThe amount of the usage price.inthashCode()voidsetMinQuantity(Integer minQuantity) The quantity that defines the minimum threshold of this tier.voidsetPrice(javax.money.MonetaryAmount price) The one-time price.voidsetRecurringPrice(javax.money.MonetaryAmount recurringPrice) The amount of the recurring price.voidsetUsagePrice(javax.money.MonetaryAmount usagePrice) The amount of the usage price.toString()
- 
Constructor Details- 
PriceDataTierRef
- 
PriceDataTierRefpublic PriceDataTierRef()
 
- 
- 
Method Details- 
getMinQuantityThe quantity that defines the minimum threshold of this tier.
- 
getPricepublic javax.money.MonetaryAmount getPrice()The one-time price.
- 
getRecurringPricepublic javax.money.MonetaryAmount getRecurringPrice()The amount of the recurring price. Optional.- Since:
- Pricing Client 2.0.3
 
- 
getUsagePricepublic javax.money.MonetaryAmount getUsagePrice()The amount of the usage price. Optional.- Since:
- Pricing Client 2.0.3
 
- 
setMinQuantityThe quantity that defines the minimum threshold of this tier.
- 
setPricepublic void setPrice(javax.money.MonetaryAmount price) The one-time price.
- 
setRecurringPricepublic void setRecurringPrice(javax.money.MonetaryAmount recurringPrice) The amount of the recurring price. Optional.- Since:
- Pricing Client 2.0.3
 
- 
setUsagePricepublic void setUsagePrice(javax.money.MonetaryAmount usagePrice) The amount of the usage price. Optional.- Since:
- Pricing Client 2.0.3
 
- 
toString
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
 
-