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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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
    The updated Cart, including the code and applicable adjustments (discounts).
    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.
    List<com.broadleafcommerce.order.common.domain.Voucher>
    The list of vouchers that were added to the cart because of the code's application.
    int
     
    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 updated Cart, 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.
    void
    setVouchers(List<com.broadleafcommerce.order.common.domain.Voucher> vouchers)
    The list of vouchers that were added to the cart because of the code's application.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AddCodeToCartResponse

      public AddCodeToCartResponse()
  • Method Details

    • getCart

      public com.broadleafcommerce.cart.client.domain.Cart getCart()
      The updated Cart, 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:
    • 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.
    • getVouchers

      public List<com.broadleafcommerce.order.common.domain.Voucher> getVouchers()
      The list of vouchers that were added to the cart because of the code's application.
      Returns:
      The list of vouchers that were added to the cart because of the code's application.
    • setCart

      public void setCart(com.broadleafcommerce.cart.client.domain.Cart cart)
      The updated Cart, 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:
    • 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.
    • setVouchers

      public void setVouchers(List<com.broadleafcommerce.order.common.domain.Voucher> vouchers)
      The list of vouchers that were added to the cart because of the code's application.
      Parameters:
      vouchers - The list of vouchers that were added to the cart because of the code's application.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object