Class 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 Detail

      • ItemProrationDetail

        public ItemProrationDetail()
    • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object