com.konakart.bl.modules.shipping.freeproduct
Class FreeProduct
java.lang.Object
com.konakart.bl.modules.BaseModule
com.konakart.bl.modules.shipping.BaseShippingModule
com.konakart.bl.modules.shipping.freeproduct.FreeProduct
- All Implemented Interfaces:
- com.konakart.bl.modules.shipping.ShippingInterface
public class FreeProduct
- extends BaseShippingModule
- implements com.konakart.bl.modules.shipping.ShippingInterface
This shipping module returns an exception if the order contains any physical products that
require paid shipping so that the actual shipping cost is taken care of by another module. It
only returns a quote of 0 if the order contains no physical products that require paid shipping
but does contain physical products that don't require paid shipping.
|
Method Summary |
com.konakart.app.ShippingQuote |
getQuote(com.konakart.app.Order order,
ShippingInfo info)
Return a quote of 0 if there are no physical products without free shipping. |
boolean |
isAvailable()
Returns true or false |
void |
setStaticVariables()
Sets some static variables during setup |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FreeProduct
public FreeProduct()
throws org.apache.torque.TorqueException,
com.konakart.app.KKException,
com.workingdogs.village.DataSetException
- Constructor
- Throws:
com.workingdogs.village.DataSetException
com.konakart.app.KKException
org.apache.torque.TorqueException
getQuote
public com.konakart.app.ShippingQuote getQuote(com.konakart.app.Order order,
ShippingInfo info)
throws java.lang.Exception
- Return a quote of 0 if there are no physical products without free shipping. Otherwise throw
an exception.
- Specified by:
getQuote in interface com.konakart.bl.modules.shipping.ShippingInterface
- Parameters:
order -
- Returns:
- Returns a ShippingQuote object
- Throws:
java.lang.Exception
setStaticVariables
public void setStaticVariables()
throws com.konakart.app.KKException
- Sets some static variables during setup
- Specified by:
setStaticVariables in interface com.konakart.bl.modules.shipping.ShippingInterface
- Throws:
com.konakart.app.KKException
isAvailable
public boolean isAvailable()
throws com.konakart.app.KKException
- Returns true or false
- Specified by:
isAvailable in interface com.konakart.bl.modules.shipping.ShippingInterface
- Throws:
com.konakart.app.KKException
Copyright © 2006 DS Data Systems UK Ltd.