Class CommerceItem

  • All Implemented Interfaces:
    java.io.Serializable

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

      • id

        private java.lang.String id
      • name

        private java.lang.String name
      • quantity

        private java.lang.Double quantity
      • pricePerItem

        private java.math.BigDecimal pricePerItem
      • specs

        private java.util.Map<java.lang.String,​java.lang.Object> specs
        Contains values of SKU.
      • embeddedShoppingCart

        private EmbeddedBean embeddedShoppingCart
    • 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)