Class ItemProrationDetail
java.lang.Object
com.broadleafcommerce.order.common.domain.ItemProrationDetail
- All Implemented Interfaces:
Serializable
Represents the detail for an order-level adjustment for an item on a per-quantity basis.
For example, if the prorated order adjustment for a item is $5 and the item has a quantity of 3, there should be one detail with quantity of 2 and amount of $1.67, and one detail with quantity of 1 and amount of $1.66, totaling to $5
- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
The total quantity.javax.money.MonetaryAmount
The unit proration amount.int
hashCode()
void
setQuantity
(int quantity) The total quantity.void
setUnitAmount
(javax.money.MonetaryAmount unitAmount) The unit proration amount.toString()
-
Constructor Details
-
ItemProrationDetail
public ItemProrationDetail()
-
-
Method Details
-
getUnitAmount
public javax.money.MonetaryAmount getUnitAmount()The unit proration amount. -
getQuantity
public int getQuantity()The total quantity. -
setUnitAmount
public void setUnitAmount(javax.money.MonetaryAmount unitAmount) The unit proration amount. -
setQuantity
public void setQuantity(int quantity) The total quantity. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-