Class ItemProrationDetail
- java.lang.Object
-
- com.broadleafcommerce.order.common.domain.ItemProrationDetail
-
- All Implemented Interfaces:
Serializable
public class ItemProrationDetail extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemProrationDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
int
getQuantity()
The total quantity.javax.money.MonetaryAmount
getUnitAmount()
The unit proration amount.int
hashCode()
void
setQuantity(int quantity)
The total quantity.void
setUnitAmount(javax.money.MonetaryAmount unitAmount)
The unit proration amount.String
toString()
-
-
-
Method Detail
-
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.
-
canEqual
protected boolean canEqual(Object other)
-
-