com.elasticpath.domain.shipping.impl
Class CostPerUnitWeightMethodImpl
java.lang.Object
com.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractEntityImpl
com.elasticpath.domain.shipping.impl.AbstractShippingCostCalculationMethodImpl
com.elasticpath.domain.shipping.impl.CostPerUnitWeightMethodImpl
- All Implemented Interfaces:
- Entity, EpDomain, Persistence, ShippingCostCalculationMethod, java.io.Serializable
public class CostPerUnitWeightMethodImpl
- extends AbstractShippingCostCalculationMethodImpl
Shipping cost calculation method that calculates the shipping cost as unit price * order weight. It needs one parameter: unit price.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- Serial version id.
- See Also:
- Constant Field Values
CostPerUnitWeightMethodImpl
public CostPerUnitWeightMethodImpl()
calculateShippingCost
public Money calculateShippingCost(ShoppingCart shoppingCart)
- Calculation the shipping cost for the given shoppingCart.
- Parameters:
shoppingCart
- - the shoppingCart.
- Returns:
- the shippingCost for the given shoppingCart.
getDisplayText
public java.lang.String getDisplayText()
- Return the text representation of this method for display to the user.
- Returns:
- the text representation
getParameterKeys
public java.lang.String[] getParameterKeys()
- Return an array of parameter keys required by this rule action.
- Returns:
- the parameter key array