public class Cart extends LineItemContainer
Modifier and Type | Class and Description |
---|---|
static class |
Cart.CartState
Describes the state of a
Cart . |
static class |
Cart.InventoryMode
Defines the cart behavior regarding inventory management.
|
totalPrice
Modifier | Constructor and Description |
---|---|
protected |
Cart(java.lang.String id,
int version) |
Modifier and Type | Method and Description |
---|---|
static Cart |
createEmpty(java.util.Currency currency,
Cart.InventoryMode inventoryMode)
Creates an empty dummy cart (no id, zero price, empty line item list).
|
Cart.CartState |
getCartState()
The state.
|
Cart.InventoryMode |
getInventoryMode()
Defines the cart behavior regarding inventory management.
|
java.lang.String |
toString() |
getBillingAddress, getCountry, getCreatedAt, getCurrency, getCustomerEmail, getCustomerGroup, getCustomerId, getCustomLineItemById, getCustomLineItems, getDiscountCodes, getId, getIdAndVersion, getLastModifiedAt, getLineItemById, getLineItems, getLineItemTotalPrice, getShippingAddress, getShippingInfo, getTaxedPrice, getTotalPrice, getTotalQuantity
public static Cart createEmpty(java.util.Currency currency, Cart.InventoryMode inventoryMode)
@Nonnull public Cart.CartState getCartState()
@Nonnull public Cart.InventoryMode getInventoryMode()
public java.lang.String toString()
toString
in class LineItemContainer