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 boolean
boolean
The quantity that defines the minimum threshold of this tier.javax.money.MonetaryAmount
getPrice()
The one-time price.javax.money.MonetaryAmount
The amount of the recurring price.javax.money.MonetaryAmount
The amount of the usage price.int
hashCode()
void
setMinQuantity
(Integer minQuantity) The quantity that defines the minimum threshold of this tier.void
setPrice
(javax.money.MonetaryAmount price) The one-time price.void
setRecurringPrice
(javax.money.MonetaryAmount recurringPrice) The amount of the recurring price.void
setUsagePrice
(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()
-