Class CommerceItem

  • All Implemented Interfaces:
    java.io.Serializable

    @TypeAlias("CommerceItem")
    public class CommerceItem
    extends Auditable<java.lang.String>
    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
      • taxPerItem

        private java.math.BigDecimal taxPerItem
      • 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)