Class EnhancedProratedOfferAdjustment
- java.lang.Object
-
- com.broadleafcommerce.promotion.offer.web.context.info.EnhancedProratedOfferAdjustment
-
- All Implemented Interfaces:
com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment,Serializable
public class EnhancedProratedOfferAdjustment extends Object implements com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment, Serializable
- Author:
- Sunny Yu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnhancedProratedOfferAdjustment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)javax.money.MonetaryAmountgetAmount()The amount of the prorated adjustment for the item.com.broadleafcommerce.promotion.offer.client.web.context.info.LineItemRefgetLineItem()TheLineItemRefof theEnhancedLineItemthat gets this adjustment.com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRefgetOffer()TheOfferReffor the offer where this prorated adjustment is from.inthashCode()voidsetAmount(javax.money.MonetaryAmount amount)The amount of the prorated adjustment for the item.voidsetLineItem(com.broadleafcommerce.promotion.offer.client.web.context.info.LineItemRef lineItem)TheLineItemRefof theEnhancedLineItemthat gets this adjustment.voidsetOffer(com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef offer)TheOfferReffor the offer where this prorated adjustment is from.StringtoString()
-
-
-
Method Detail
-
getLineItem
public com.broadleafcommerce.promotion.offer.client.web.context.info.LineItemRef getLineItem()
TheLineItemRefof theEnhancedLineItemthat gets this adjustment.- Specified by:
getLineItemin interfacecom.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment- Returns:
- The
LineItemRefof theEnhancedLineItemthat gets this adjustment.
-
getOffer
public com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef getOffer()
TheOfferReffor the offer where this prorated adjustment is from.- Specified by:
getOfferin interfacecom.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment- Returns:
- The
OfferReffor the offer where this prorated adjustment is from.
-
getAmount
public javax.money.MonetaryAmount getAmount()
The amount of the prorated adjustment for the item.- Specified by:
getAmountin interfacecom.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment- Returns:
- The amount of the prorated adjustment for the item.
-
setLineItem
public void setLineItem(com.broadleafcommerce.promotion.offer.client.web.context.info.LineItemRef lineItem)
TheLineItemRefof theEnhancedLineItemthat gets this adjustment.- Specified by:
setLineItemin interfacecom.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment- Parameters:
itemLineNumber- TheLineItemRefof theEnhancedLineItemthat gets this adjustment.
-
setOffer
public void setOffer(com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef offer)
TheOfferReffor the offer where this prorated adjustment is from.- Specified by:
setOfferin interfacecom.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment- Parameters:
offerRef- TheOfferReffor the offer where this prorated adjustment is from.
-
setAmount
public void setAmount(javax.money.MonetaryAmount amount)
The amount of the prorated adjustment for the item.- Specified by:
setAmountin interfacecom.broadleafcommerce.promotion.offer.client.web.context.info.ProratedOfferAdjustment- Parameters:
amount- The amount of the prorated adjustment for the item.
-
canEqual
protected boolean canEqual(Object other)
-
-