Class ChangeCartStatusRequest

java.lang.Object
com.broadleafcommerce.cartoperation.domain.status.ChangeCartStatusRequest

public class ChangeCartStatusRequest extends Object
A DTO used for passing data when changing the Cart status.
Author:
Sunny Yu
  • Constructor Details

    • ChangeCartStatusRequest

      public ChangeCartStatusRequest()
  • Method Details

    • getCurrentCartStatus

      public String getCurrentCartStatus()
    • getCartType

      public String getCartType()
    • getCart

      public com.broadleafcommerce.cart.client.domain.Cart getCart()
      The Cart whose status is being changed.
    • getOldStatus

      public String getOldStatus()
      The old cart status to change from.
    • getTargetStatus

      public String getTargetStatus()
      The target status to change the cart to.
    • getCustomerRef

      public com.broadleafcommerce.order.common.domain.CustomerRef getCustomerRef()
      The CustomerRef representing the currently authenticated user.
    • saveCart

      public boolean saveCart()
      Whether or not to save the cart after changing status.
    • getCartActionAuditToCreate

      @Nullable public com.broadleafcommerce.cart.client.domain.CartActionAudit getCartActionAuditToCreate()
      An optional CartActionAudit to create when changing the cart status.
    • getAdditionalData

      public Map<String,Object> getAdditionalData()
      A map to hold additional data.
    • setCart

      public void setCart(com.broadleafcommerce.cart.client.domain.Cart cart)
      The Cart whose status is being changed.
    • setOldStatus

      public void setOldStatus(String oldStatus)
      The old cart status to change from.
    • setTargetStatus

      public void setTargetStatus(String targetStatus)
      The target status to change the cart to.
    • setCustomerRef

      public void setCustomerRef(com.broadleafcommerce.order.common.domain.CustomerRef customerRef)
      The CustomerRef representing the currently authenticated user.
    • saveCart

      public ChangeCartStatusRequest saveCart(boolean saveCart)
      Whether or not to save the cart after changing status.
      Returns:
      this.
    • setCartActionAuditToCreate

      public void setCartActionAuditToCreate(@Nullable com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAuditToCreate)
      An optional CartActionAudit to create when changing the cart status.
    • setAdditionalData

      public void setAdditionalData(Map<String,Object> additionalData)
      A map to hold additional data.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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