@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 OrderItemAdjustment
public Long getId()
getId
in interface Adjustment
public void setId(Long id)
setId
in interface Adjustment
public OrderItem getOrderItem()
getOrderItem
in interface OrderItemAdjustment
public Offer getOffer()
getOffer
in interface Adjustment
public String getReason()
getReason
in interface Adjustment
public void setReason(String reason)
setReason
in interface Adjustment
public void setOrderItem(OrderItem orderItem)
setOrderItem
in interface OrderItemAdjustment
public void setOffer(Offer offer)
public Money getValue()
getValue
in interface Adjustment
public void setValue(Money value)
setValue
in interface Adjustment
public boolean isAppliedToSalePrice()
OrderItemAdjustment
isAppliedToSalePrice
in interface OrderItemAdjustment
public void setAppliedToSalePrice(boolean appliedToSalePrice)
setAppliedToSalePrice
in interface OrderItemAdjustment
public Money getRetailPriceValue()
OrderItemAdjustment
getRetailPriceValue
in interface OrderItemAdjustment
public void setRetailPriceValue(Money retailPriceValue)
setRetailPriceValue
in interface OrderItemAdjustment
public Money getSalesPriceValue()
OrderItemAdjustment
getSalesPriceValue
in interface OrderItemAdjustment
public void setSalesPriceValue(Money salesPriceValue)
setSalesPriceValue
in interface OrderItemAdjustment
Copyright © 2013. All rights reserved.