Package co.mastermindcms.modules.beans
Class Inventory
- java.lang.Object
-
- co.mastermindcms.modules.beans.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 Summary
Fields Modifier and Type Field Description private java.lang.Double
countPerUnit
private EmbeddedBean
embeddedSellerSKU
private java.lang.String
id
private java.lang.Double
lockedQuantity
private java.lang.Double
minOrder
private java.lang.Double
quantity
static java.lang.String
SEQUENCE_NAME
-
Constructor Summary
Constructors Constructor Description Inventory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calculateFreeQuantity()
boolean
decreaseLockedQuantity(java.lang.Double value)
boolean
decreaseQuantity(java.lang.Double value)
boolean
increaseLockedQuantity(java.lang.Double value)
-
-
-
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
-
embeddedSellerSKU
private EmbeddedBean embeddedSellerSKU
-
SEQUENCE_NAME
public static final java.lang.String SEQUENCE_NAME
- See Also:
- Constant Field Values
-
-
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()
-
-