Class AddCodeRequest
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.AddCodeRequest
-
- All Implemented Interfaces:
CartVersionedRequest,Serializable
public class AddCodeRequest extends CartModifyingRequest implements Serializable
DTO for a request to add a promotional code to the Cart.- Author:
- Nathan Moore (nathandmoore)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddCodeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetCode()The code to add.inthashCode()voidsetCode(String code)The code to add.StringtoString()-
Methods inherited from class com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
getCartVersion, getVersion, setCartVersion, setVersion
-
-
-
-
Method Detail
-
getCode
public String getCode()
The code to add.- Returns:
- The code to add.
-
setCode
public void setCode(String code)
The code to add.- Parameters:
code- The code to add.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCartModifyingRequest
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classCartModifyingRequest
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCartModifyingRequest
-
toString
public String toString()
- Overrides:
toStringin classCartModifyingRequest
-
-