Class FulfillmentGroupAdjustmentImpl
java.lang.Object
org.broadleafcommerce.core.offer.domain.FulfillmentGroupAdjustmentImpl
- All Implemented Interfaces:
Serializable
,CurrencyCodeIdentifiable
,Adjustment
,FulfillmentGroupAdjustment
@Entity
public class FulfillmentGroupAdjustmentImpl
extends Object
implements FulfillmentGroupAdjustment, CurrencyCodeIdentifiable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Offer
protected FulfillmentGroup
protected Long
protected Boolean
protected Offer
protected String
protected BigDecimal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
getOffer()
getValue()
int
hashCode()
void
init
(FulfillmentGroup fulfillmentGroup, Offer offer, String reason) Future credit means that the associated adjustment will be discounted at a later time to the customer via a credit.void
setFulfillmentGroup
(FulfillmentGroup fulfillmentGroup) void
setFutureCredit
(Boolean futureCredit) Future credit means that the associated adjustment will be discounted at a later time to the customer via a credit.void
void
void
void
-
Field Details
-
id
-
fulfillmentGroup
-
offer
-
reason
-
value
-
isFutureCredit
-
deproxiedOffer
-
-
Constructor Details
-
FulfillmentGroupAdjustmentImpl
public FulfillmentGroupAdjustmentImpl()
-
-
Method Details
-
init
- Specified by:
init
in interfaceFulfillmentGroupAdjustment
-
getId
- Specified by:
getId
in interfaceAdjustment
-
setId
- Specified by:
setId
in interfaceAdjustment
-
getFulfillmentGroup
- Specified by:
getFulfillmentGroup
in interfaceFulfillmentGroupAdjustment
-
setFulfillmentGroup
- Specified by:
setFulfillmentGroup
in interfaceFulfillmentGroupAdjustment
-
getOffer
- Specified by:
getOffer
in interfaceAdjustment
-
setOffer
-
getReason
- Specified by:
getReason
in interfaceAdjustment
-
setReason
- Specified by:
setReason
in interfaceAdjustment
-
getValue
- Specified by:
getValue
in interfaceAdjustment
-
setValue
- Specified by:
setValue
in interfaceAdjustment
- Specified by:
setValue
in interfaceFulfillmentGroupAdjustment
-
getCurrencyCode
- Specified by:
getCurrencyCode
in interfaceCurrencyCodeIdentifiable
-
isFutureCredit
Description copied from interface:FulfillmentGroupAdjustment
Future 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:
isFutureCredit
in interfaceFulfillmentGroupAdjustment
- Returns:
-
setFutureCredit
Description copied from interface:FulfillmentGroupAdjustment
Future 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:
setFutureCredit
in interfaceFulfillmentGroupAdjustment
-
hashCode
public int hashCode() -
equals
-