Class Inventory

  • All Implemented Interfaces:
    java.io.Serializable

    @TypeAlias("Inventory")
    public class Inventory
    extends java.lang.Object
    implements java.io.Serializable
    This entity stores the quantity data offered for sale.
    See Also:
    Serialized Form
    • Field Detail

      • id

        private java.lang.String id
      • countPerUnit

        private java.lang.Double countPerUnit
      • minOrder

        private java.lang.Double minOrder
      • quantity

        private java.lang.Double quantity
      • lockedQuantity

        private java.lang.Double lockedQuantity
    • Constructor Detail

      • Inventory

        public Inventory()
    • Method Detail

      • increaseLockedQuantity

        public boolean increaseLockedQuantity​(java.lang.Double value)
      • decreaseLockedQuantity

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

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

        public double calculateFreeQuantity()