Class OverridePriceRequest
java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.CartItemModifyingRequest
com.broadleafcommerce.cartoperation.web.endpoint.domain.OverridePriceRequest
- All Implemented Interfaces:
CartVersionedRequest,Serializable
DTO for a request to update the prices.
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe optional, long-form comment explaining any extra context for the override.javax.money.MonetaryAmountThe new price value.The reason the override was performed, for example, "Price Match".inthashCode()voidsetComment(String comment) The optional, long-form comment explaining any extra context for the override.voidsetOverridePrice(javax.money.MonetaryAmount overridePrice) The new price value.voidThe reason the override was performed, for example, "Price Match".toString()Methods inherited from class com.broadleafcommerce.cartoperation.web.endpoint.domain.CartItemModifyingRequest
getCartVersion, setCartVersion
-
Constructor Details
-
OverridePriceRequest
public OverridePriceRequest()
-
-
Method Details
-
getOverridePrice
public javax.money.MonetaryAmount getOverridePrice()The new price value.- Returns:
- the price value.
-
getReason
The reason the override was performed, for example, "Price Match".- Returns:
- The reason the override was performed.
-
getComment
The optional, long-form comment explaining any extra context for the override.- Returns:
- The optional, long-form comment explaining any extra context for the override.
-
setOverridePrice
public void setOverridePrice(javax.money.MonetaryAmount overridePrice) The new price value.- Parameters:
overridePrice- the price value.
-
setReason
The reason the override was performed, for example, "Price Match".- Parameters:
reason- The reason the override was performed.
-
setComment
The optional, long-form comment explaining any extra context for the override.- Parameters:
comment- The optional, long-form comment explaining any extra context for the override.
-
equals
- Overrides:
equalsin classCartItemModifyingRequest
-
canEqual
- Overrides:
canEqualin classCartItemModifyingRequest
-
hashCode
public int hashCode()- Overrides:
hashCodein classCartItemModifyingRequest
-
toString
- Overrides:
toStringin classCartItemModifyingRequest
-