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 boolean
boolean
javax.money.MonetaryAmount
The amount of the adjustment applied to the item.The code used (if any) that triggered the application of the offer for this adjustment.TheLineItemRef
of theLineItem
that gets this adjustment.getOffer()
TheOfferRef
for the offer that caused this adjustment to be applied.int
The quantity of merchandising items from theLineItem
to which this adjustment applies.int
hashCode()
void
setAmount
(javax.money.MonetaryAmount amount) The amount of the adjustment applied to the item.void
setCodeUsed
(String codeUsed) The code used (if any) that triggered the application of the offer for this adjustment.void
setLineItem
(LineItemRef lineItem) TheLineItemRef
of theLineItem
that gets this adjustment.void
TheOfferRef
for the offer that caused this adjustment to be applied.void
setQuantity
(int quantity) The quantity of merchandising items from theLineItem
to which this adjustment applies.toString()
-
Constructor Details
-
ProratedItemOfferAdjustmentDto
public ProratedItemOfferAdjustmentDto()
-
-
Method Details
-
getLineItem
Description copied from interface:ProratedItemOfferAdjustment
TheLineItemRef
of theLineItem
that gets this adjustment.- Specified by:
getLineItem
in interfaceProratedItemOfferAdjustment
- Returns:
- The
LineItemRef
of theLineItem
that gets this adjustment.
-
getOffer
Description copied from interface:ProratedItemOfferAdjustment
TheOfferRef
for the offer that caused this adjustment to be applied.- Specified by:
getOffer
in interfaceProratedItemOfferAdjustment
- Returns:
- The
OfferRef
for the offer that caused this adjustment to be applied.
-
getAmount
public javax.money.MonetaryAmount getAmount()Description copied from interface:ProratedItemOfferAdjustment
The amount of the adjustment applied to the item.- Specified by:
getAmount
in interfaceProratedItemOfferAdjustment
- Returns:
- The amount of the adjustment applied to the item.
-
getQuantity
public int getQuantity()Description copied from interface:ProratedItemOfferAdjustment
The quantity of merchandising items from theLineItem
to which this adjustment applies.- Specified by:
getQuantity
in interfaceProratedItemOfferAdjustment
- Returns:
- The quantity of merchandising items from the
LineItem
to which this adjustment applies.
-
getCodeUsed
Description copied from interface:ProratedItemOfferAdjustment
The code used (if any) that triggered the application of the offer for this adjustment.- Specified by:
getCodeUsed
in interfaceProratedItemOfferAdjustment
- Returns:
- The code used (if any) that triggered the application of the offer for this adjustment.
-
setLineItem
Description copied from interface:ProratedItemOfferAdjustment
TheLineItemRef
of theLineItem
that gets this adjustment.- Specified by:
setLineItem
in interfaceProratedItemOfferAdjustment
- Parameters:
lineItem
- TheLineItemRef
of theLineItem
that gets this adjustment.
-
setOffer
Description copied from interface:ProratedItemOfferAdjustment
TheOfferRef
for the offer that caused this adjustment to be applied.- Specified by:
setOffer
in interfaceProratedItemOfferAdjustment
- Parameters:
offer
- TheOfferRef
for the offer that caused this adjustment to be applied.
-
setAmount
public void setAmount(javax.money.MonetaryAmount amount) Description copied from interface:ProratedItemOfferAdjustment
The amount of the adjustment applied to the item.- Specified by:
setAmount
in interfaceProratedItemOfferAdjustment
- Parameters:
amount
- The amount of the adjustment applied to the item.
-
setQuantity
public void setQuantity(int quantity) Description copied from interface:ProratedItemOfferAdjustment
The quantity of merchandising items from theLineItem
to which this adjustment applies.- Specified by:
setQuantity
in interfaceProratedItemOfferAdjustment
- Parameters:
quantity
- The quantity of merchandising items from theLineItem
to which this adjustment applies.
-
setCodeUsed
Description copied from interface:ProratedItemOfferAdjustment
The code used (if any) that triggered the application of the offer for this adjustment.- Specified by:
setCodeUsed
in 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
-