Class ResolveCartRequest

java.lang.Object
com.broadleafcommerce.cartoperation.domain.resolution.ResolveCartRequest

public class ResolveCartRequest extends Object
A DTO used for passing data for Cart resolution.
Author:
Sunny Yu
  • Constructor Details

    • ResolveCartRequest

      public ResolveCartRequest()
  • Method Details

    • getCartId

      public String getCartId()
      The cart id used to resolve the cart.
    • getCartVersion

      @Nullable public Integer getCartVersion()
      The version of the cart.
    • getCustomerRef

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

      public String getWorkflow()
      The flow that this cart resolution is for.

      This is useful for validation for when a cart can be read or updated depending on its status and the workflow.

      See Also:
    • isRepriceCartOnResolve

      public boolean isRepriceCartOnResolve()
      Whether the resolved Cart should be repriced if the pricing is stale.
    • getAdditionalData

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

      public void setCartId(String cartId)
      The cart id used to resolve the cart.
    • setCartVersion

      public void setCartVersion(@Nullable Integer cartVersion)
      The version of the cart.
    • setCustomerRef

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

      public void setWorkflow(String workflow)
      The flow that this cart resolution is for.

      This is useful for validation for when a cart can be read or updated depending on its status and the workflow.

      See Also:
    • setRepriceCartOnResolve

      public void setRepriceCartOnResolve(boolean repriceCartOnResolve)
      Whether the resolved Cart should be repriced if the pricing is stale.
    • 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