Class ShoppingCart.ProductPromoUseInfo

java.lang.Object
org.apache.ofbiz.order.shoppingcart.ShoppingCart.ProductPromoUseInfo
All Implemented Interfaces:
Serializable, Comparable<ShoppingCart.ProductPromoUseInfo>
Enclosing class:
ShoppingCart

public static class ShoppingCart.ProductPromoUseInfo extends Object implements Serializable, Comparable<ShoppingCart.ProductPromoUseInfo>
See Also:
  • Constructor Details

  • Method Details

    • getProductPromoId

      public String getProductPromoId()
      Gets product promo id.
      Returns:
      the product promo id
    • getProductPromoCodeId

      public String getProductPromoCodeId()
      Gets product promo code id.
      Returns:
      the product promo code id
    • getTotalDiscountAmount

      public BigDecimal getTotalDiscountAmount()
      Gets total discount amount.
      Returns:
      the total discount amount
    • getQuantityLeftInActions

      public BigDecimal getQuantityLeftInActions()
      Gets quantity left in actions.
      Returns:
      the quantity left in actions
    • getUsageInfoMap

      public Map<ShoppingCartItem,BigDecimal> getUsageInfoMap()
      Gets usage info map.
      Returns:
      the usage info map
    • getUsageWeight

      public BigDecimal getUsageWeight()
      Gets usage weight.
      Returns:
      the usage weight
    • compareTo

      public int compareTo(ShoppingCart.ProductPromoUseInfo other)
      Specified by:
      compareTo in interface Comparable<ShoppingCart.ProductPromoUseInfo>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object