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 Summary
ConstructorDescriptionProductPromoUseInfo
(String productPromoId, String productPromoCodeId, BigDecimal totalDiscountAmount, BigDecimal quantityLeftInActions, Map<ShoppingCartItem, BigDecimal> usageInfoMap) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Gets product promo code id.Gets product promo id.Gets quantity left in actions.Gets total discount amount.Gets usage info map.Gets usage weight.int
hashCode()
-
Constructor Details
-
ProductPromoUseInfo
public ProductPromoUseInfo(String productPromoId, String productPromoCodeId, BigDecimal totalDiscountAmount, BigDecimal quantityLeftInActions, Map<ShoppingCartItem, BigDecimal> usageInfoMap)
-
-
Method Details
-
getProductPromoId
Gets product promo id.- Returns:
- the product promo id
-
getProductPromoCodeId
Gets product promo code id.- Returns:
- the product promo code id
-
getTotalDiscountAmount
Gets total discount amount.- Returns:
- the total discount amount
-
getQuantityLeftInActions
Gets quantity left in actions.- Returns:
- the quantity left in actions
-
getUsageInfoMap
Gets usage info map.- Returns:
- the usage info map
-
getUsageWeight
Gets usage weight.- Returns:
- the usage weight
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ShoppingCart.ProductPromoUseInfo>
-
hashCode
public int hashCode() -
equals
-