Class AddCodeToCartResponse
java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.AddCodeToCartResponse
- All Implemented Interfaces:
Serializable
DTO for communicating the results of adding an offer or campaign code to the cart.
- Author:
- Chris Kittrell (ckittrell)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
List<com.broadleafcommerce.order.common.domain.Adjustment>
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).getCode()
The added offer or campaign code.A message describing the results of adding the code to the cart.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
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.toString()
-
Constructor Details
-
AddCodeToCartResponse
public AddCodeToCartResponse()
-
-
Method Details
-
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
The added offer or campaign code.- Returns:
- The added offer or campaign code.
-
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:
-
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
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
The added offer or campaign code.- Parameters:
code
- The added offer or campaign code.
-
setResponseCode
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:
-
setMessage
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
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.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-