Class OrderItemAdjustmentImpl
java.lang.Object
org.broadleafcommerce.core.offer.domain.OrderItemAdjustmentImpl
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiable,Adjustment,OrderItemAdjustment
@Entity
public class OrderItemAdjustmentImpl
extends Object
implements OrderItemAdjustment, org.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getOffer()org.broadleafcommerce.common.money.MoneyValue of this adjustment relative to the retail price.org.broadleafcommerce.common.money.MoneyValue of this adjustment relative to the sale price.org.broadleafcommerce.common.money.MoneygetValue()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(org.broadleafcommerce.common.money.Money retailPriceValue) voidsetSalesPriceValue(org.broadleafcommerce.common.money.Money salesPriceValue) voidsetValue(org.broadleafcommerce.common.money.Money value)
-
Field Details
-
id
-
orderItem
-
offer
-
reason
-
value
-
appliedToSalePrice
protected boolean appliedToSalePrice -
retailValue
protected org.broadleafcommerce.common.money.Money retailValue -
salesValue
protected org.broadleafcommerce.common.money.Money 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
public org.broadleafcommerce.common.money.Money getValue()- Specified by:
getValuein interfaceAdjustment
-
setValue
public void setValue(org.broadleafcommerce.common.money.Money value) - 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
public org.broadleafcommerce.common.money.Money getRetailPriceValue()Description copied from interface:OrderItemAdjustmentValue of this adjustment relative to the retail price.- Specified by:
getRetailPriceValuein interfaceOrderItemAdjustment- Returns:
-
setRetailPriceValue
public void setRetailPriceValue(org.broadleafcommerce.common.money.Money retailPriceValue) - Specified by:
setRetailPriceValuein interfaceOrderItemAdjustment
-
getSalesPriceValue
public org.broadleafcommerce.common.money.Money getSalesPriceValue()Description copied from interface:OrderItemAdjustmentValue of this adjustment relative to the sale price.- Specified by:
getSalesPriceValuein interfaceOrderItemAdjustment- Returns:
-
setSalesPriceValue
public void setSalesPriceValue(org.broadleafcommerce.common.money.Money salesPriceValue) - Specified by:
setSalesPriceValuein interfaceOrderItemAdjustment
-
getCurrencyCode
- Specified by:
getCurrencyCodein interfaceorg.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiable
-
hashCode
public int hashCode() -
equals
-