Class ProratedItemOfferAdjustmentDto
java.lang.Object
com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedItemOfferAdjustmentDto
- All Implemented Interfaces:
ProratedItemOfferAdjustment,Serializable
public class ProratedItemOfferAdjustmentDto
extends Object
implements ProratedItemOfferAdjustment, Serializable
- Author:
- Chad Harchar (charchar), Nathan Moore (nathanmoore).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountThe amount of the adjustment applied to the item.The code used (if any) that triggered the application of the offer for this adjustment.TheLineItemRefof theLineItemthat gets this adjustment.getOffer()TheOfferReffor the offer that caused this adjustment to be applied.intThe quantity of merchandising items from theLineItemto which this adjustment applies.inthashCode()voidsetAmount(javax.money.MonetaryAmount amount) The amount of the adjustment applied to the item.voidsetCodeUsed(String codeUsed) The code used (if any) that triggered the application of the offer for this adjustment.voidsetLineItem(LineItemRef lineItem) TheLineItemRefof theLineItemthat gets this adjustment.voidTheOfferReffor the offer that caused this adjustment to be applied.voidsetQuantity(int quantity) The quantity of merchandising items from theLineItemto which this adjustment applies.toString()
-
Constructor Details
-
ProratedItemOfferAdjustmentDto
public ProratedItemOfferAdjustmentDto()
-
-
Method Details
-
getLineItem
Description copied from interface:ProratedItemOfferAdjustmentTheLineItemRefof theLineItemthat gets this adjustment.- Specified by:
getLineItemin interfaceProratedItemOfferAdjustment- Returns:
- The
LineItemRefof theLineItemthat gets this adjustment.
-
getOffer
Description copied from interface:ProratedItemOfferAdjustmentTheOfferReffor the offer that caused this adjustment to be applied.- Specified by:
getOfferin interfaceProratedItemOfferAdjustment- Returns:
- The
OfferReffor the offer that caused this adjustment to be applied.
-
getAmount
public javax.money.MonetaryAmount getAmount()Description copied from interface:ProratedItemOfferAdjustmentThe amount of the adjustment applied to the item.- Specified by:
getAmountin interfaceProratedItemOfferAdjustment- Returns:
- The amount of the adjustment applied to the item.
-
getQuantity
public int getQuantity()Description copied from interface:ProratedItemOfferAdjustmentThe quantity of merchandising items from theLineItemto which this adjustment applies.- Specified by:
getQuantityin interfaceProratedItemOfferAdjustment- Returns:
- The quantity of merchandising items from the
LineItemto which this adjustment applies.
-
getCodeUsed
Description copied from interface:ProratedItemOfferAdjustmentThe code used (if any) that triggered the application of the offer for this adjustment.- Specified by:
getCodeUsedin interfaceProratedItemOfferAdjustment- Returns:
- The code used (if any) that triggered the application of the offer for this adjustment.
-
setLineItem
Description copied from interface:ProratedItemOfferAdjustmentTheLineItemRefof theLineItemthat gets this adjustment.- Specified by:
setLineItemin interfaceProratedItemOfferAdjustment- Parameters:
lineItem- TheLineItemRefof theLineItemthat gets this adjustment.
-
setOffer
Description copied from interface:ProratedItemOfferAdjustmentTheOfferReffor the offer that caused this adjustment to be applied.- Specified by:
setOfferin interfaceProratedItemOfferAdjustment- Parameters:
offer- TheOfferReffor the offer that caused this adjustment to be applied.
-
setAmount
public void setAmount(javax.money.MonetaryAmount amount) Description copied from interface:ProratedItemOfferAdjustmentThe amount of the adjustment applied to the item.- Specified by:
setAmountin interfaceProratedItemOfferAdjustment- Parameters:
amount- The amount of the adjustment applied to the item.
-
setQuantity
public void setQuantity(int quantity) Description copied from interface:ProratedItemOfferAdjustmentThe quantity of merchandising items from theLineItemto which this adjustment applies.- Specified by:
setQuantityin interfaceProratedItemOfferAdjustment- Parameters:
quantity- The quantity of merchandising items from theLineItemto which this adjustment applies.
-
setCodeUsed
Description copied from interface:ProratedItemOfferAdjustmentThe code used (if any) that triggered the application of the offer for this adjustment.- Specified by:
setCodeUsedin interfaceProratedItemOfferAdjustment- Parameters:
codeUsed- The code used (if any) that triggered the application of the offer for this adjustment.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-