Class OrderAdjustmentImpl
java.lang.Object
org.broadleafcommerce.core.offer.domain.OrderAdjustmentImpl
- All Implemented Interfaces:
Serializable,CurrencyCodeIdentifiable,Adjustment,OrderAdjustment
@Entity
public class OrderAdjustmentImpl
extends Object
implements OrderAdjustment, CurrencyCodeIdentifiable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getOffer()getOrder()getValue()inthashCode()voidFuture credit means that the associated adjustment will be discounted at a later time to the customer via a credit.voidsetFutureCredit(Boolean futureCredit) Future credit means that the associated adjustment will be discounted at a later time to the customer via a credit.voidvoidvoidvoidvoid
-
Field Details
-
id
-
order
-
offer
-
reason
-
value
-
isFutureCredit
-
deproxiedOffer
-
-
Constructor Details
-
OrderAdjustmentImpl
public OrderAdjustmentImpl()
-
-
Method Details
-
init
- Specified by:
initin interfaceOrderAdjustment
-
getId
- Specified by:
getIdin interfaceAdjustment
-
setId
- Specified by:
setIdin interfaceAdjustment
-
getOrder
- Specified by:
getOrderin interfaceOrderAdjustment
-
setOrder
- Specified by:
setOrderin interfaceOrderAdjustment
-
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
-
getCurrencyCode
- Specified by:
getCurrencyCodein interfaceCurrencyCodeIdentifiable
-
isFutureCredit
Description copied from interface:OrderAdjustmentFuture credit means that the associated adjustment will be discounted at a later time to the customer via a credit. It is up to the implementor to decide how to achieve this. This field is used to determine if the adjustment originated from an offer marked as FUTURE_CREDIT.See
Offer.getAdjustmentType()for more info- Specified by:
isFutureCreditin interfaceOrderAdjustment- Returns:
-
setFutureCredit
Description copied from interface:OrderAdjustmentFuture credit means that the associated adjustment will be discounted at a later time to the customer via a credit. It is up to the implementor to decide how to achieve this. This field is used to determine if the adjustment originated from an offer marked as FUTURE_CREDIT.See
Offer.getAdjustmentType()for more info- Specified by:
setFutureCreditin interfaceOrderAdjustment
-
hashCode
public int hashCode() -
equals
-