@Entity public class OrderItemPriceDetailAdjustmentImpl extends Object implements OrderItemPriceDetailAdjustment, CurrencyCodeIdentifiable
Modifier and Type | Field and Description |
---|---|
protected boolean |
appliedToSalePrice |
protected Long |
id |
protected Offer |
offer |
protected String |
offerName |
protected OrderItemPriceDetail |
orderItemPriceDetail |
protected String |
reason |
protected Money |
retailValue |
protected Money |
salesValue |
static long |
serialVersionUID |
protected BigDecimal |
value |
Constructor and Description |
---|
OrderItemPriceDetailAdjustmentImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
protected BroadleafCurrency |
getCurrency() |
String |
getCurrencyCode() |
Long |
getId() |
Offer |
getOffer() |
String |
getOfferName()
Stores the offer name at the time the adjustment was made.
|
OrderItemPriceDetail |
getOrderItemPriceDetail() |
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(OrderItemPriceDetail orderItemPriceDetail,
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 |
setOfferName(String offerName)
Returns the name of the offer at the time the adjustment was made.
|
void |
setOrderItemPriceDetail(OrderItemPriceDetail orderItemPriceDetail) |
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 OrderItemPriceDetail orderItemPriceDetail
protected Offer offer
protected String offerName
protected String reason
protected BigDecimal value
protected boolean appliedToSalePrice
protected Money retailValue
protected Money salesValue
public void init(OrderItemPriceDetail orderItemPriceDetail, Offer offer, String reason)
init
in interface OrderItemPriceDetailAdjustment
public Long getId()
getId
in interface Adjustment
public void setId(Long id)
setId
in interface Adjustment
public OrderItemPriceDetail getOrderItemPriceDetail()
getOrderItemPriceDetail
in interface OrderItemPriceDetailAdjustment
public Offer getOffer()
getOffer
in interface Adjustment
public String getOfferName()
OrderItemPriceDetailAdjustment
getOfferName
in interface OrderItemPriceDetailAdjustment
public String getReason()
getReason
in interface Adjustment
public void setReason(String reason)
setReason
in interface Adjustment
public void setOrderItemPriceDetail(OrderItemPriceDetail orderItemPriceDetail)
setOrderItemPriceDetail
in interface OrderItemPriceDetailAdjustment
public void setOffer(Offer offer)
public void setOfferName(String offerName)
OrderItemPriceDetailAdjustment
setOfferName
in interface OrderItemPriceDetailAdjustment
protected BroadleafCurrency getCurrency()
public Money getValue()
getValue
in interface Adjustment
public void setValue(Money value)
setValue
in interface Adjustment
public boolean isAppliedToSalePrice()
OrderItemPriceDetailAdjustment
isAppliedToSalePrice
in interface OrderItemPriceDetailAdjustment
public void setAppliedToSalePrice(boolean appliedToSalePrice)
setAppliedToSalePrice
in interface OrderItemPriceDetailAdjustment
public Money getRetailPriceValue()
OrderItemPriceDetailAdjustment
getRetailPriceValue
in interface OrderItemPriceDetailAdjustment
public void setRetailPriceValue(Money retailPriceValue)
setRetailPriceValue
in interface OrderItemPriceDetailAdjustment
public Money getSalesPriceValue()
OrderItemPriceDetailAdjustment
getSalesPriceValue
in interface OrderItemPriceDetailAdjustment
public void setSalesPriceValue(Money salesPriceValue)
setSalesPriceValue
in interface OrderItemPriceDetailAdjustment
public String getCurrencyCode()
getCurrencyCode
in interface CurrencyCodeIdentifiable
Copyright © 2014. All rights reserved.