com.elasticpath.domain.shipping.impl
Class FixedBaseAndCostPerUnitWeightMethodImpl
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.FixedBaseAndCostPerUnitWeightMethodImpl
- All Implemented Interfaces:
- Entity, EpDomain, Persistence, ShippingCostCalculationMethod, java.io.Serializable
public class FixedBaseAndCostPerUnitWeightMethodImpl
- extends AbstractShippingCostCalculationMethodImpl
Shipping cost calculation method that calculates the shipping cost as fixBase + % of order total. It needs two parameters: the value of fixBase
and the value of percentage of the order total.
- 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
FixedBaseAndCostPerUnitWeightMethodImpl
public FixedBaseAndCostPerUnitWeightMethodImpl()
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