Class OfferAdjustmentType
java.lang.Object
org.broadleafcommerce.core.offer.service.type.OfferAdjustmentType
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.BroadleafEnumerationType
public class OfferAdjustmentType
extends Object
implements Serializable, org.broadleafcommerce.common.BroadleafEnumerationType
This indicates how an Offer should be fulfilled to the customer, defaulting to order time discount.
Currently, this enumeration can be ORDER_DISCOUNT or FUTURE_CREDIT. "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. The adjustment entities have a new "isFutureCredit" field used to determine if an
adjustment originated from an offer marked as FUTURE_CREDIT. Order, OrderItem and FulfillmentGroup have new
accessor methods for retrieving the future credit values when they are needed to be fulfilled.
Out-of-box, this field is disabled from admin and must be manually enabled to view, since it is not a typical requirement to most implementations. To enable, add the following to AdminConfig.java:
- Author:
- Chad Harchar (charchar)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OfferAdjustmentTypestatic final OfferAdjustmentType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OfferAdjustmentTypegetInstance(String type) getType()inthashCode()void
-
Field Details
-
ORDER_DISCOUNT
-
FUTURE_CREDIT
-
-
Constructor Details
-
OfferAdjustmentType
public OfferAdjustmentType() -
OfferAdjustmentType
-
-
Method Details
-
getInstance
-
getType
- Specified by:
getTypein interfaceorg.broadleafcommerce.common.BroadleafEnumerationType
-
setType
-
getFriendlyType
- Specified by:
getFriendlyTypein interfaceorg.broadleafcommerce.common.BroadleafEnumerationType
-
hashCode
public int hashCode() -
equals
-