Class ShoppingCart.ProductPromoUseInfo
- java.lang.Object
-
- org.apache.ofbiz.order.shoppingcart.ShoppingCart.ProductPromoUseInfo
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ShoppingCart.ProductPromoUseInfo>
- Enclosing class:
- ShoppingCart
public static class ShoppingCart.ProductPromoUseInfo extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ShoppingCart.ProductPromoUseInfo>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
productPromoCodeId
java.lang.String
productPromoId
java.math.BigDecimal
quantityLeftInActions
java.math.BigDecimal
totalDiscountAmount
-
Constructor Summary
Constructors Constructor Description ProductPromoUseInfo(java.lang.String productPromoId, java.lang.String productPromoCodeId, java.math.BigDecimal totalDiscountAmount, java.math.BigDecimal quantityLeftInActions, java.util.Map<ShoppingCartItem,java.math.BigDecimal> usageInfoMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ShoppingCart.ProductPromoUseInfo other)
boolean
equals(java.lang.Object obj)
java.lang.String
getProductPromoCodeId()
java.lang.String
getProductPromoId()
java.math.BigDecimal
getQuantityLeftInActions()
java.math.BigDecimal
getTotalDiscountAmount()
java.util.Map<ShoppingCartItem,java.math.BigDecimal>
getUsageInfoMap()
java.math.BigDecimal
getUsageWeight()
int
hashCode()
-
-
-
Constructor Detail
-
ProductPromoUseInfo
public ProductPromoUseInfo(java.lang.String productPromoId, java.lang.String productPromoCodeId, java.math.BigDecimal totalDiscountAmount, java.math.BigDecimal quantityLeftInActions, java.util.Map<ShoppingCartItem,java.math.BigDecimal> usageInfoMap)
-
-
Method Detail
-
getProductPromoId
public java.lang.String getProductPromoId()
-
getProductPromoCodeId
public java.lang.String getProductPromoCodeId()
-
getTotalDiscountAmount
public java.math.BigDecimal getTotalDiscountAmount()
-
getQuantityLeftInActions
public java.math.BigDecimal getQuantityLeftInActions()
-
getUsageInfoMap
public java.util.Map<ShoppingCartItem,java.math.BigDecimal> getUsageInfoMap()
-
getUsageWeight
public java.math.BigDecimal getUsageWeight()
-
compareTo
public int compareTo(ShoppingCart.ProductPromoUseInfo other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ShoppingCart.ProductPromoUseInfo>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-