Class CommerceItem

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CommerceItem>

    @TypeAlias("CommerceItem")
    public class CommerceItem
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<CommerceItem>
    This entity has been implemented as a reference item from the product sold.
    See Also:
    Serialized Form
    • Constructor Detail

      • CommerceItem

        public CommerceItem()
    • Method Detail

      • calculateTotalPrice

        public java.math.BigDecimal calculateTotalPrice()
      • increaseQuantity

        public void increaseQuantity​(java.lang.Double value)
      • decreaseQuantity

        public boolean decreaseQuantity​(java.lang.Double value)
      • compareTo

        public int compareTo​(@NotNull
                             CommerceItem o)
        Specified by:
        compareTo in interface java.lang.Comparable<CommerceItem>