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 Summary
Constructors -
Method Summary
Modifier 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
-
PriceDataTierRef
public PriceDataTierRef()
-
-
Method Details
-
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
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
-
equals
-
canEqual
-
hashCode
public int hashCode()
-