Class AmountQtyTuple
java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.AmountQtyTuple
Simple stucture to store an amount and qty.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmountintgetQty()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.MonetaryAmountThis structure does not always contain meaningful unit price data.voidsetAmount(javax.money.MonetaryAmount amount) voidsetQty(int qty) voidsetRelevantDetails(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.
-