Class OrderItemAdjustmentImpl
java.lang.Object
org.broadleafcommerce.core.offer.domain.OrderItemAdjustmentImpl
- All Implemented Interfaces:
Serializable,CurrencyCodeIdentifiable,Adjustment,OrderItemAdjustment
@Entity
public class OrderItemAdjustmentImpl
extends Object
implements OrderItemAdjustment, CurrencyCodeIdentifiable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getOffer()Value of this adjustment relative to the retail price.Value of this adjustment relative to the sale price.getValue()inthashCode()voidbooleanEven 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.voidsetAppliedToSalePrice(boolean appliedToSalePrice) voidvoidvoidsetOrderItem(OrderItem orderItem) voidvoidsetRetailPriceValue(Money retailPriceValue) voidsetSalesPriceValue(Money salesPriceValue) void
-
Field Details
-
id
-
orderItem
-
offer
-
reason
-
value
-
appliedToSalePrice
protected boolean appliedToSalePrice -
retailValue
-
salesValue
-
deproxiedOffer
-
-
Constructor Details
-
OrderItemAdjustmentImpl
public OrderItemAdjustmentImpl()
-
-
Method Details
-
init
- Specified by:
initin interfaceOrderItemAdjustment
-
getId
- Specified by:
getIdin interfaceAdjustment
-
setId
- Specified by:
setIdin interfaceAdjustment
-
getOrderItem
- Specified by:
getOrderItemin interfaceOrderItemAdjustment
-
setOrderItem
- Specified by:
setOrderItemin interfaceOrderItemAdjustment
-
getOffer
- Specified by:
getOfferin interfaceAdjustment
-
setOffer
-
getReason
- Specified by:
getReasonin interfaceAdjustment
-
setReason
- Specified by:
setReasonin interfaceAdjustment
-
getValue
- Specified by:
getValuein interfaceAdjustment
-
setValue
- Specified by:
setValuein interfaceAdjustment
-
isAppliedToSalePrice
public boolean isAppliedToSalePrice()Description copied from interface:OrderItemAdjustmentEven 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.Since some offers can be applied to the sale price and some only to the retail price, this setting provides the required value.
- Specified by:
isAppliedToSalePricein interfaceOrderItemAdjustment- Returns:
- true if this adjustment was applied to the sale price
-
setAppliedToSalePrice
public void setAppliedToSalePrice(boolean appliedToSalePrice) - Specified by:
setAppliedToSalePricein interfaceOrderItemAdjustment
-
getRetailPriceValue
Description copied from interface:OrderItemAdjustmentValue of this adjustment relative to the retail price.- Specified by:
getRetailPriceValuein interfaceOrderItemAdjustment- Returns:
-
setRetailPriceValue
- Specified by:
setRetailPriceValuein interfaceOrderItemAdjustment
-
getSalesPriceValue
Description copied from interface:OrderItemAdjustmentValue of this adjustment relative to the sale price.- Specified by:
getSalesPriceValuein interfaceOrderItemAdjustment- Returns:
-
setSalesPriceValue
- Specified by:
setSalesPriceValuein interfaceOrderItemAdjustment
-
getCurrencyCode
- Specified by:
getCurrencyCodein interfaceCurrencyCodeIdentifiable
-
hashCode
public int hashCode() -
equals
-