public class Cart extends ModelObject
Constructor and Description |
---|
Cart() |
Cart(Cart cart) |
Cart(List<CartItem> items) |
Cart(String json) |
Cart(String currency,
List<CartItem> items) |
Modifier and Type | Method and Description |
---|---|
String |
getCurrency()
The preferred currency for the user cart
|
List<CartItem> |
getItems() |
String |
getOrigin()
Origin of the cart.
|
List<String> |
getProductNames()
Deprecated.
@see #getItems()
|
List<Promotion> |
getPromotions() |
Map<String,Object> |
getProperties()
Deprecated.
|
String |
getSessionId() |
String |
getUserId() |
void |
setCurrency(String currency)
The preferred currency for the user cart
|
void |
setItems(List<CartItem> items) |
void |
setOrigin(String origin)
Origin of the cart.
|
void |
setProductNames(List<String> productNames)
Deprecated.
@see #setItems(List)
|
void |
setPromotions(List<Promotion> promotions) |
void |
setProperties(Map<String,Object> properties)
Deprecated.
|
void |
setSessionId(String sessionId) |
void |
setUserId(String userId) |
public String getUserId()
public void setUserId(String userId)
public String getSessionId()
public void setSessionId(String sessionId)
@Deprecated public List<String> getProductNames()
List
of product names@Deprecated public void setProductNames(List<String> productNames)
productNames
- as List
of String namespublic String getOrigin()
public void setOrigin(String origin)
public String getCurrency()
public void setCurrency(String currency)
@Deprecated public Map<String,Object> getProperties()
CartItem
than to maintain a separate mapping.@Deprecated public void setProperties(Map<String,Object> properties)
CartItem
than to maintain a separate mapping.Copyright © 2018. All rights reserved.