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:
  • 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object