Class CartRequest
- java.lang.Object
-
- com.broadleafcommerce.cart.client.domain.Cart
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.CartRequest
-
- All Implemented Interfaces:
CartVersionedRequest
,com.broadleafcommerce.data.tracking.core.ContextStateAware
,com.broadleafcommerce.money.CurrencyConsumer
,Serializable
,javax.money.CurrencySupplier
public class CartRequest extends com.broadleafcommerce.cart.client.domain.Cart implements CartVersionedRequest
Represents a cart request (when a cart is submitted as the request body).- Author:
- Jacob Mitash
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CartRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getCartVersion()
Gets the cart version that the client is aware of.String
getRequestId()
A unique id used to represent the request.void
setCartVersion(Integer version)
Sets the cart version.void
setRequestId(String requestId)
A unique id used to represent the request.-
Methods inherited from class com.broadleafcommerce.cart.client.domain.Cart
canEqual, equals, getAdjustments, getAttributeChoices, getAttributes, getCampaignRefs, getCartAlerts, getCartItems, getCartItemsWithDependentItems, getCartPricing, getCheckoutSubmissions, getContextState, getCreateDate, getCurrency, getCustomerRef, getEmailAddress, getFulfillmentGroups, getId, getInternalAttributes, getLastCatalogReprice, getLocale, getName, getOfferCodes, getOrderNumber, getQuantity, getStatus, getSubmitDate, getVersion, getVouchers, hashCode, isAnonymous, isPriced, isTaxEstimated, setAdjustments, setAttributeChoices, setAttributes, setCampaignRefs, setCartAlerts, setCartItems, setCartPricing, setCheckoutSubmissions, setContextState, setCreateDate, setCurrency, setCustomerRef, setEmailAddress, setFulfillmentGroups, setId, setInternalAttributes, setLastCatalogReprice, setLocale, setName, setOfferCodes, setOrderNumber, setPriced, setStatus, setSubmitDate, setTaxEstimated, setVersion, setVouchers, toString
-
-
-
-
Method Detail
-
getCartVersion
public Integer getCartVersion()
Description copied from interface:CartVersionedRequest
Gets the cart version that the client is aware of. This should be populated by the client when making a request that modifies an existing cart.- Specified by:
getCartVersion
in interfaceCartVersionedRequest
- Returns:
- the cart version
-
setCartVersion
public void setCartVersion(Integer version)
Description copied from interface:CartVersionedRequest
Sets the cart version. Typically only used for setting the version on the request body if the version came from an alternative source (e.g. cookie or header).- Specified by:
setCartVersion
in interfaceCartVersionedRequest
- Parameters:
version
- the version to set for this request
-
getRequestId
public String getRequestId()
A unique id used to represent the request. This value can be used to link various persisted entities/values to the originating request.
-
setRequestId
public void setRequestId(String requestId)
A unique id used to represent the request. This value can be used to link various persisted entities/values to the originating request.
-
-