Class UsagePriceDetail
java.lang.Object
com.broadleafcommerce.order.common.domain.UsagePriceDetail
- All Implemented Interfaces:
Serializable
Represents the details related to a usage price including the units.
- Since:
- Order Common 2.0.3
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The amount ofunits
to charge for, e.g., charge $2 for every 1 GB used.javax.money.MonetaryAmount
getPrice()
The price to charge for usage.getUnits()
The units (e.g., minutes, texts, GB) defining what is getting used against which to charge theamount
.int
hashCode()
void
setAmount
(BigDecimal amount) The amount ofunits
to charge for, e.g., charge $2 for every 1 GB used.void
setPrice
(javax.money.MonetaryAmount price) The price to charge for usage.void
The units (e.g., minutes, texts, GB) defining what is getting used against which to charge theamount
.toString()
-
Constructor Details
-
UsagePriceDetail
public UsagePriceDetail()
-
-
Method Details
-
getPrice
public javax.money.MonetaryAmount getPrice()The price to charge for usage. -
getAmount
The amount ofunits
to charge for, e.g., charge $2 for every 1 GB used. -
getUnits
The units (e.g., minutes, texts, GB) defining what is getting used against which to charge theamount
. -
setPrice
public void setPrice(javax.money.MonetaryAmount price) The price to charge for usage. -
setAmount
The amount ofunits
to charge for, e.g., charge $2 for every 1 GB used. -
setUnits
The units (e.g., minutes, texts, GB) defining what is getting used against which to charge theamount
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-