Package co.mastermindcms.modules.beans
Class CommerceItem
- java.lang.Object
-
- co.mastermindcms.common.entities.Auditable<java.lang.String>
-
- co.mastermindcms.modules.beans.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 Summary
Fields Modifier and Type Field Description private CurrencyItem
currency
private EmbeddedBean
embeddedOrder
private EmbeddedBean
embeddedSeller
private EmbeddedBean
embeddedSellerSKU
private EmbeddedBean
embeddedShoppingCart
private java.lang.String
id
private java.lang.String
name
private java.math.BigDecimal
pricePerItem
private java.lang.Double
quantity
static java.lang.String
SEQUENCE_NAME
private java.util.Map<java.lang.String,java.lang.Object>
specs
Contains values of SKU.private java.math.BigDecimal
taxPerItem
private CommerceItemType
type
-
Fields inherited from class co.mastermindcms.common.entities.Auditable
createdBy, createdDate, lastModifiedBy, lastModifiedDate, metaInfo
-
-
Constructor Summary
Constructors Constructor Description CommerceItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimal
calculateTotalPrice()
boolean
decreaseQuantity(java.lang.Double value)
void
increaseQuantity(java.lang.Double value)
-
Methods inherited from class co.mastermindcms.common.entities.Auditable
getCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, getMetaInfo, putMetaInfo, removeMetaInfo, setCreatedBy, setCreatedDate, setLastModifiedBy, setLastModifiedDate, setMetaInfo
-
-
-
-
Field Detail
-
id
private java.lang.String id
-
type
private CommerceItemType type
-
name
private java.lang.String name
-
quantity
private java.lang.Double quantity
-
pricePerItem
private java.math.BigDecimal pricePerItem
-
currency
private CurrencyItem currency
-
taxPerItem
private java.math.BigDecimal taxPerItem
-
specs
private java.util.Map<java.lang.String,java.lang.Object> specs
Contains values of SKU.
-
embeddedSellerSKU
private EmbeddedBean embeddedSellerSKU
-
embeddedSeller
private EmbeddedBean embeddedSeller
-
embeddedOrder
private EmbeddedBean embeddedOrder
-
embeddedShoppingCart
private EmbeddedBean embeddedShoppingCart
-
SEQUENCE_NAME
public static final java.lang.String SEQUENCE_NAME
- See Also:
- Constant Field Values
-
-