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 booleancanEqual(Object other)booleanequals(Object o)StringgetComment()The optional, long-form comment explaining any extra context for the override.javax.money.MonetaryAmountgetOverridePrice()The new price value.StringgetReason()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.voidsetReason(String reason)The reason the override was performed, for example, "Price Match".StringtoString()-
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:
equalsin classCartItemModifyingRequest
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classCartItemModifyingRequest
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCartItemModifyingRequest
-
toString
public String toString()
- Overrides:
toStringin classCartItemModifyingRequest
-
-