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 boolean
canEqual(Object other)
boolean
equals(Object o)
String
getCode()
The code to add.int
hashCode()
void
setCode(String code)
The code to add.String
toString()
-
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:
equals
in classCartModifyingRequest
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classCartModifyingRequest
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCartModifyingRequest
-
toString
public String toString()
- Overrides:
toString
in classCartModifyingRequest
-
-