Class UpdateCartInfoRequest
java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
com.broadleafcommerce.cartoperation.web.endpoint.domain.UpdateCartInfoRequest
- All Implemented Interfaces:
CartVersionedRequest
,Serializable
Represents a request to update some basic info on the cart like its name or, if a quote, its
expiration date. Not all fields can be updated through this request.
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Then new expiration date for aDefaultCartTypes.QUOTE
cart.getName()
The new name for the cart.int
hashCode()
boolean
IfexpirationDate
is null and this field is true, then the expiration date on the cart will be cleared.void
setClearExpirationDate
(boolean clearExpirationDate) IfexpirationDate
is null and this field is true, then the expiration date on the cart will be cleared.void
setExpirationDate
(Instant expirationDate) Then new expiration date for aDefaultCartTypes.QUOTE
cart.void
The new name for the cart.toString()
Methods inherited from class com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
getCartVersion, getVersion, setCartVersion, setVersion
-
Constructor Details
-
UpdateCartInfoRequest
public UpdateCartInfoRequest()
-
-
Method Details
-
getName
The new name for the cart. -
getExpirationDate
Then new expiration date for aDefaultCartTypes.QUOTE
cart. -
isClearExpirationDate
public boolean isClearExpirationDate()IfexpirationDate
is null and this field is true, then the expiration date on the cart will be cleared. This is needed because Java does not treat undefined and null differently. -
setName
The new name for the cart. -
setExpirationDate
Then new expiration date for aDefaultCartTypes.QUOTE
cart. -
setClearExpirationDate
public void setClearExpirationDate(boolean clearExpirationDate) IfexpirationDate
is null and this field is true, then the expiration date on the cart will be cleared. This is needed because Java does not treat undefined and null differently. -
equals
- Overrides:
equals
in classCartModifyingRequest
-
canEqual
- Overrides:
canEqual
in classCartModifyingRequest
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCartModifyingRequest
-
toString
- Overrides:
toString
in classCartModifyingRequest
-