Class AddAttributeRequest
java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
com.broadleafcommerce.cartoperation.web.endpoint.domain.AddAttributeRequest
- All Implemented Interfaces:
CartVersionedRequest,Serializable
DTO for a request to add a Cart attribute.
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetKey()The attribute's key.getValue()The attribute's value.inthashCode()booleanWhether to invalidate Pricing.voidsetInvalidatePricing(boolean invalidatePricing) Whether to invalidate Pricing.voidThe attribute's key.voidThe attribute's value.toString()Methods inherited from class com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
getCartVersion, getVersion, setCartVersion, setVersion
-
Constructor Details
-
AddAttributeRequest
public AddAttributeRequest()
-
-
Method Details
-
getKey
The attribute's key.- Returns:
- The attribute's key.
-
getValue
The attribute's value.- Returns:
- The attribute's value.
-
isInvalidatePricing
public boolean isInvalidatePricing()Whether to invalidate Pricing. This is used to override theaddAttributeproperty ofCartOperationServiceProperties.PriceInvalidation.- Since:
- Cart Operation Service 2.1.5, Release Train 2.1.5
-
setKey
The attribute's key.- Parameters:
key- The attribute's key.
-
setValue
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 theaddAttributeproperty ofCartOperationServiceProperties.PriceInvalidation.- Since:
- Cart Operation Service 2.1.5, Release Train 2.1.5
-
equals
- Overrides:
equalsin classCartModifyingRequest
-
canEqual
- Overrides:
canEqualin classCartModifyingRequest
-
hashCode
public int hashCode()- Overrides:
hashCodein classCartModifyingRequest
-
toString
- Overrides:
toStringin classCartModifyingRequest
-