Class OverridePriceRequest
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.CartItemModifyingRequest
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.OverridePriceRequest
-
- All Implemented Interfaces:
CartVersionedRequest
,Serializable
public class OverridePriceRequest extends CartItemModifyingRequest implements Serializable
DTO for a request to update the prices.- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OverridePriceRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getComment()
The optional, long-form comment explaining any extra context for the override.javax.money.MonetaryAmount
getOverridePrice()
The new price value.String
getReason()
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
setReason(String reason)
The reason the override was performed, for example, "Price Match".String
toString()
-
Methods inherited from class com.broadleafcommerce.cartoperation.web.endpoint.domain.CartItemModifyingRequest
getCartVersion, setCartVersion
-
-
-
-
Method Detail
-
getOverridePrice
public javax.money.MonetaryAmount getOverridePrice()
The new price value.- Returns:
- the price value.
-
getReason
public String getReason()
The reason the override was performed, for example, "Price Match".- Returns:
- The reason the override was performed.
-
getComment
public String 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
public void setReason(String reason)
The reason the override was performed, for example, "Price Match".- Parameters:
reason
- The reason the override was performed.
-
setComment
public void setComment(String comment)
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
public boolean equals(Object o)
- Overrides:
equals
in classCartItemModifyingRequest
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classCartItemModifyingRequest
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCartItemModifyingRequest
-
toString
public String toString()
- Overrides:
toString
in classCartItemModifyingRequest
-
-