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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThen new expiration date for aDefaultCartTypes.QUOTEcart.getName()The new name for the cart.inthashCode()booleanIfexpirationDateis null and this field is true, then the expiration date on the cart will be cleared.voidsetClearExpirationDate(boolean clearExpirationDate) IfexpirationDateis null and this field is true, then the expiration date on the cart will be cleared.voidsetExpirationDate(Instant expirationDate) Then new expiration date for aDefaultCartTypes.QUOTEcart.voidThe 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.QUOTEcart. -
isClearExpirationDate
public boolean isClearExpirationDate()IfexpirationDateis 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.QUOTEcart. -
setClearExpirationDate
public void setClearExpirationDate(boolean clearExpirationDate) IfexpirationDateis 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:
equalsin classCartModifyingRequest
-
canEqual
- Overrides:
canEqualin classCartModifyingRequest
-
hashCode
public int hashCode()- Overrides:
hashCodein classCartModifyingRequest
-
toString
- Overrides:
toStringin classCartModifyingRequest
-