Interface ProratedItemOfferAdjustment
- All Known Implementing Classes:
ProratedItemOfferAdjustmentDto
public interface ProratedItemOfferAdjustment
DTO containing prorated price adjustment information for a
LineItem caused by an
offer targeting it or using it as a qualifier.
If an offer's discount's proration type is TARGET_AND_QUALIFIER, then the discount should
be spread between target items and item qualifiers. Thus, this DTO will contain the
additional adjustments created for qualifiers. Practically, this information is only needed for
reporting services since the total discount is the same for the LineItem however it gets
distributed amongst its individual merchandising items.
- Author:
- Chad Harchar (charchar), Nathan Moore (nathanmoore)
-
Method Summary
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmountThe amount of the adjustment applied to the item.default StringThe 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.default intThe quantity of merchandising items from theLineItemto which this adjustment applies.voidsetAmount(javax.money.MonetaryAmount amount) The amount of the adjustment applied to the item.default 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.default voidsetQuantity(int quantity) The quantity of merchandising items from theLineItemto which this adjustment applies.
-
Method Details
-
getLineItem
LineItemRef getLineItem()TheLineItemRefof theLineItemthat gets this adjustment.- Returns:
- The
LineItemRefof theLineItemthat gets this adjustment.
-
setLineItem
TheLineItemRefof theLineItemthat gets this adjustment.- Parameters:
lineItem- TheLineItemRefof theLineItemthat gets this adjustment.
-
getOffer
OfferRef getOffer()TheOfferReffor the offer that caused this adjustment to be applied.- Returns:
- The
OfferReffor the offer that caused this adjustment to be applied.
-
setOffer
TheOfferReffor the offer that caused this adjustment to be applied.- Parameters:
offer- TheOfferReffor the offer that caused this adjustment to be applied.
-
getAmount
javax.money.MonetaryAmount getAmount()The amount of the adjustment applied to the item.- Returns:
- The amount of the adjustment applied to the item.
-
setAmount
void setAmount(javax.money.MonetaryAmount amount) The amount of the adjustment applied to the item.- Parameters:
amount- The amount of the adjustment applied to the item.
-
getQuantity
default int getQuantity()The quantity of merchandising items from theLineItemto which this adjustment applies.- Returns:
- The quantity of merchandising items from the
LineItemto which this adjustment applies.
-
setQuantity
default void setQuantity(int quantity) The quantity of merchandising items from theLineItemto which this adjustment applies.- Parameters:
quantity- The quantity of merchandising items from theLineItemto which this adjustment applies.
-
getCodeUsed
The code used (if any) that triggered the application of the offer for this adjustment.- Returns:
- The code used (if any) that triggered the application of the offer for this adjustment.
-
setCodeUsed
The code used (if any) that triggered the application of the offer for this adjustment.- Parameters:
codeUsed- The code used (if any) that triggered the application of the offer for this adjustment.
-