java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.AmountQtyTuple

public class AmountQtyTuple extends Object
Simple stucture to store an 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 a LineItemOfferDetail.
    • 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

      public List<LineItemOfferDetail> 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

      public 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.