Class UpdateCartInfoRequest

java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
com.broadleafcommerce.cartoperation.web.endpoint.domain.UpdateCartInfoRequest
All Implemented Interfaces:
CartVersionedRequest, Serializable

public class UpdateCartInfoRequest extends CartModifyingRequest
Represents a request to update some basic info on the cart like its name or, if a quote, its expiration date. Not all fields can be updated through this request.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • UpdateCartInfoRequest

      public UpdateCartInfoRequest()
  • Method Details

    • getName

      public String getName()
      The new name for the cart.
    • getExpirationDate

      public Instant getExpirationDate()
      Then new expiration date for a DefaultCartTypes.QUOTE cart.
    • isClearExpirationDate

      public boolean isClearExpirationDate()
      If expirationDate is null and this field is true, then the expiration date on the cart will be cleared. This is needed because Java does not treat undefined and null differently.
    • setName

      public void setName(String name)
      The new name for the cart.
    • setExpirationDate

      public void setExpirationDate(Instant expirationDate)
      Then new expiration date for a DefaultCartTypes.QUOTE cart.
    • setClearExpirationDate

      public void setClearExpirationDate(boolean clearExpirationDate)
      If expirationDate is null and this field is true, then the expiration date on the cart will be cleared. This is needed because Java does not treat undefined and null differently.
    • equals

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

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class CartModifyingRequest
    • hashCode

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

      public String toString()
      Overrides:
      toString in class CartModifyingRequest