@Entity public class OrderItemAdjustmentImpl extends Object implements OrderItemAdjustment
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
appliedToSalePrice |
protected Long |
id |
protected Offer |
offer |
protected OrderItem |
orderItem |
protected String |
reason |
protected Money |
retailValue |
protected Money |
salesValue |
static long |
serialVersionUID |
protected BigDecimal |
value |
| Constructor and Description |
|---|
OrderItemAdjustmentImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Long |
getId() |
Offer |
getOffer() |
OrderItem |
getOrderItem() |
String |
getReason() |
Money |
getRetailPriceValue()
Value of this adjustment relative to the retail price.
|
Money |
getSalesPriceValue()
Value of this adjustment relative to the sale price.
|
Money |
getValue() |
int |
hashCode() |
void |
init(OrderItem orderItem,
Offer offer,
String reason) |
boolean |
isAppliedToSalePrice()
Even for items that are on sale, it is possible that an adjustment was made
to the retail price that gave the customer a better offer.
|
void |
setAppliedToSalePrice(boolean appliedToSalePrice) |
void |
setId(Long id) |
void |
setOffer(Offer offer) |
void |
setOrderItem(OrderItem orderItem) |
void |
setReason(String reason) |
void |
setRetailPriceValue(Money retailPriceValue) |
void |
setSalesPriceValue(Money salesPriceValue) |
void |
setValue(Money value) |
public static final long serialVersionUID
protected Long id
protected OrderItem orderItem
protected Offer offer
protected String reason
protected BigDecimal value
protected boolean appliedToSalePrice
protected Money retailValue
protected Money salesValue
public void init(OrderItem orderItem, Offer offer, String reason)
init in interface OrderItemAdjustmentpublic Long getId()
getId in interface Adjustmentpublic void setId(Long id)
setId in interface Adjustmentpublic OrderItem getOrderItem()
getOrderItem in interface OrderItemAdjustmentpublic Offer getOffer()
getOffer in interface Adjustmentpublic String getReason()
getReason in interface Adjustmentpublic void setReason(String reason)
setReason in interface Adjustmentpublic void setOrderItem(OrderItem orderItem)
setOrderItem in interface OrderItemAdjustmentpublic void setOffer(Offer offer)
public Money getValue()
getValue in interface Adjustmentpublic void setValue(Money value)
setValue in interface Adjustmentpublic boolean isAppliedToSalePrice()
OrderItemAdjustmentisAppliedToSalePrice in interface OrderItemAdjustmentpublic void setAppliedToSalePrice(boolean appliedToSalePrice)
setAppliedToSalePrice in interface OrderItemAdjustmentpublic Money getRetailPriceValue()
OrderItemAdjustmentgetRetailPriceValue in interface OrderItemAdjustmentpublic void setRetailPriceValue(Money retailPriceValue)
setRetailPriceValue in interface OrderItemAdjustmentpublic Money getSalesPriceValue()
OrderItemAdjustmentgetSalesPriceValue in interface OrderItemAdjustmentpublic void setSalesPriceValue(Money salesPriceValue)
setSalesPriceValue in interface OrderItemAdjustmentCopyright © 2013. All rights reserved.