Package co.mastermindcms.modules.beans
Class ShoppingCart
- java.lang.Object
-
- co.mastermindcms.common.entities.Auditable<java.lang.String>
-
- co.mastermindcms.modules.beans.ShoppingCart
-
- All Implemented Interfaces:
java.io.Serializable
@TypeAlias("ShoppingCart") public class ShoppingCart extends Auditable<java.lang.String>
Shopping cart entity.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
id
private java.util.List<CommerceItem>
items
private Seller
seller
static java.lang.String
SEQUENCE_NAME
-
Fields inherited from class co.mastermindcms.common.entities.Auditable
createdBy, createdDate, lastModifiedBy, lastModifiedDate, metaInfo
-
-
Constructor Summary
Constructors Constructor Description ShoppingCart()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<CommerceItem>
findItemByCommerceItemId(java.lang.String itemId)
java.util.Optional<CommerceItem>
findItemBySellerSkuId(java.lang.String sellerSkuId)
-
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
-
seller
@DBRef private Seller seller
-
items
@DBRef private java.util.List<CommerceItem> items
-
SEQUENCE_NAME
public static final java.lang.String SEQUENCE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
findItemByCommerceItemId
public java.util.Optional<CommerceItem> findItemByCommerceItemId(java.lang.String itemId)
-
findItemBySellerSkuId
public java.util.Optional<CommerceItem> findItemBySellerSkuId(java.lang.String sellerSkuId)
-
-