Class AddCodeToCartResponse
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.AddCodeToCartResponse
-
- All Implemented Interfaces:
Serializable
public class AddCodeToCartResponse extends Object implements Serializable
DTO for communicating the results of adding an offer or campaign code to the cart.- Author:
- Chris Kittrell (ckittrell)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddCodeToCartResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
List<com.broadleafcommerce.order.common.domain.Adjustment>
getAdjustments()
The list of adjustments that were added to the cart because of the code's application.com.broadleafcommerce.cart.client.domain.Cart
getCart()
The updatedCart
, including the code and applicable adjustments (discounts).String
getCode()
The added offer or campaign code.String
getMessage()
A message describing the results of adding the code to the cart.String
getResponseCode()
A simple code describing the results of the add code to cart request.int
hashCode()
void
setAdjustments(List<com.broadleafcommerce.order.common.domain.Adjustment> adjustments)
The list of adjustments that were added to the cart because of the code's application.void
setCart(com.broadleafcommerce.cart.client.domain.Cart cart)
The updatedCart
, including the code and applicable adjustments (discounts).void
setCode(String code)
The added offer or campaign code.void
setMessage(String message)
A message describing the results of adding the code to the cart.void
setResponseCode(String responseCode)
A simple code describing the results of the add code to cart request.String
toString()
-
-
-
Method Detail
-
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()
The updatedCart
, including the code and applicable adjustments (discounts).- Returns:
- The updated cart, including the code and applicable adjustments (discounts).
-
getCode
public String getCode()
The added offer or campaign code.- Returns:
- The added offer or campaign code.
-
getResponseCode
public String getResponseCode()
A simple code describing the results of the add code to cart request.- Returns:
- A simple code describing the results of the add code to cart request.
- See Also:
DefaultAddCodeToCartResponseTypes
-
getMessage
public String getMessage()
A message describing the results of adding the code to the cart.- Returns:
- A message describing the results of adding the code to the cart.
-
getAdjustments
public List<com.broadleafcommerce.order.common.domain.Adjustment> getAdjustments()
The list of adjustments that were added to the cart because of the code's application.- Returns:
- The list of adjustments that were added to the cart because of the code's application.
-
setCart
public void setCart(com.broadleafcommerce.cart.client.domain.Cart cart)
The updatedCart
, including the code and applicable adjustments (discounts).- Parameters:
cart
- The updated cart, including the code and applicable adjustments (discounts).
-
setCode
public void setCode(String code)
The added offer or campaign code.- Parameters:
code
- The added offer or campaign code.
-
setResponseCode
public void setResponseCode(String responseCode)
A simple code describing the results of the add code to cart request.- Parameters:
responseCode
- A simple code describing the results of the add code to cart request.- See Also:
DefaultAddCodeToCartResponseTypes
-
setMessage
public void setMessage(String message)
A message describing the results of adding the code to the cart.- Parameters:
message
- A message describing the results of adding the code to the cart.
-
setAdjustments
public void setAdjustments(List<com.broadleafcommerce.order.common.domain.Adjustment> adjustments)
The list of adjustments that were added to the cart because of the code's application.- Parameters:
adjustments
- The list of adjustments that were added to the cart because of the code's application.
-
canEqual
protected boolean canEqual(Object other)
-
-