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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The optional, long-form comment explaining any extra context for the override.javax.money.MonetaryAmount
The new price value.The reason the override was performed, for example, "Price Match".int
hashCode()
void
setComment
(String comment) The optional, long-form comment explaining any extra context for the override.void
setOverridePrice
(javax.money.MonetaryAmount overridePrice) The new price value.void
The 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:
equals
in classCartItemModifyingRequest
-
canEqual
- Overrides:
canEqual
in classCartItemModifyingRequest
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCartItemModifyingRequest
-
toString
- Overrides:
toString
in classCartItemModifyingRequest
-