Class OfferItemDetail
java.lang.Object
com.broadleafcommerce.promotion.offer.client.web.context.info.OfferItemDetail
- All Implemented Interfaces:
Serializable
A DTO structure that provides offer qualifier or target information for a given
LineItem
.
From out-of-box, this DTO is only used to provide qualifier information, and target information
is tracked using ItemAdjustment
instead.
- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
The quantity of the qualifier or target item that this offer was applied to.Theid
of the item that is a qualifier or target.The offer id where this item is a qualifier or target of.int
The number of times the offer is applied.int
The quantity per offer usage of the item that is a qualifier or target.int
hashCode()
void
setItemAdjustmentQuantity
(int itemAdjustmentQuantity) The quantity of the qualifier or target item that this offer was applied to.void
Theid
of the item that is a qualifier or target.void
setOfferId
(String offerId) The offer id where this item is a qualifier or target of.void
setOfferUses
(int offerUses) The number of times the offer is applied.void
setQuantityPerUsage
(int quantityPerUsage) The quantity per offer usage of the item that is a qualifier or target.toString()
-
Constructor Details
-
OfferItemDetail
public OfferItemDetail()
-
-
Method Details
-
getOfferId
The offer id where this item is a qualifier or target of. -
getItemId
Theid
of the item that is a qualifier or target. -
getQuantityPerUsage
public int getQuantityPerUsage()The quantity per offer usage of the item that is a qualifier or target. -
getItemAdjustmentQuantity
public int getItemAdjustmentQuantity()The quantity of the qualifier or target item that this offer was applied to. -
getOfferUses
public int getOfferUses()The number of times the offer is applied. -
setOfferId
The offer id where this item is a qualifier or target of. -
setItemId
Theid
of the item that is a qualifier or target. -
setQuantityPerUsage
public void setQuantityPerUsage(int quantityPerUsage) The quantity per offer usage of the item that is a qualifier or target. -
setItemAdjustmentQuantity
public void setItemAdjustmentQuantity(int itemAdjustmentQuantity) The quantity of the qualifier or target item that this offer was applied to. -
setOfferUses
public void setOfferUses(int offerUses) The number of times the offer is applied. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-