Class AmountQtyTuple
java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.AmountQtyTuple
Simple stucture to store an amount and qty.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmount
int
getQty()
When building this object for a LineItem, it is useful to know the specific details that were used to build the amount and qty.javax.money.MonetaryAmount
This structure does not always contain meaningful unit price data.void
setAmount
(javax.money.MonetaryAmount amount) void
setQty
(int qty) void
setRelevantDetails
(List<LineItemOfferDetail> relevantDetails) When building this object for a LineItem, it is useful to know the specific details that were used to build the amount and qty.
-
Constructor Details
-
AmountQtyTuple
public AmountQtyTuple()
-
-
Method Details
-
getUnitPrice
public javax.money.MonetaryAmount getUnitPrice()This structure does not always contain meaningful unit price data. This method is useful in the context of Items with no adjustments and when used directly from aLineItemOfferDetail
. -
getAmount
public javax.money.MonetaryAmount getAmount() -
setAmount
public void setAmount(javax.money.MonetaryAmount amount) -
getQty
public int getQty() -
setQty
public void setQty(int qty) -
getRelevantDetails
When building this object for a LineItem, it is useful to know the specific details that were used to build the amount and qty. -
setRelevantDetails
When building this object for a LineItem, it is useful to know the specific details that were used to build the amount and qty.
-