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 booleanbooleanThe amount ofunitsto charge for, e.g., charge $2 for every 1 GB used.javax.money.MonetaryAmountgetPrice()The price to charge for usage.getUnits()The units (e.g., minutes, texts, GB) defining what is getting used against which to charge theamount.inthashCode()voidsetAmount(BigDecimal amount) The amount ofunitsto charge for, e.g., charge $2 for every 1 GB used.voidsetPrice(javax.money.MonetaryAmount price) The price to charge for usage.voidThe 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 ofunitsto 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 ofunitsto 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
-