Class AddAttributeRequest

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

public class AddAttributeRequest extends CartModifyingRequest implements Serializable
DTO for a request to add a Cart attribute.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • AddAttributeRequest

      public AddAttributeRequest()
  • Method Details

    • getKey

      public String getKey()
      The attribute's key.
      Returns:
      The attribute's key.
    • getValue

      public Object getValue()
      The attribute's value.
      Returns:
      The attribute's value.
    • isInvalidatePricing

      public boolean isInvalidatePricing()
      Whether to invalidate Pricing. This is used to override the addAttribute property of CartOperationServiceProperties.PriceInvalidation.
      Since:
      Cart Operation Service 2.1.5, Release Train 2.1.5
    • setKey

      public void setKey(String key)
      The attribute's key.
      Parameters:
      key - The attribute's key.
    • setValue

      public void setValue(Object value)
      The attribute's value.
      Parameters:
      value - The attribute's value.
    • setInvalidatePricing

      public void setInvalidatePricing(boolean invalidatePricing)
      Whether to invalidate Pricing. This is used to override the addAttribute property of CartOperationServiceProperties.PriceInvalidation.
      Since:
      Cart Operation Service 2.1.5, Release Train 2.1.5
    • 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