com.konakart.bl.modules.shipping.item
Class Item
java.lang.Object
com.konakart.bl.modules.BaseModule
com.konakart.bl.modules.shipping.BaseShippingModule
com.konakart.bl.modules.shipping.item.Item
- All Implemented Interfaces:
- com.konakart.bl.modules.shipping.ShippingInterface
public class Item
- extends BaseShippingModule
- implements com.konakart.bl.modules.shipping.ShippingInterface
This shipping module implements a flat rate per item which is set in the configuration property
MODULE_SHIPPING_ITEM_COST . If MODULE_SHIPPING_ITEM_TAX_CLASS is greater than zero, then tax is
added if the shipping address is in a taxable zone. The handling charge defined by
MODULE_SHIPPING_ITEM_HANDLING is also added.
|
Constructor Summary |
Item()
Constructor |
|
Method Summary |
com.konakart.app.ShippingQuote |
getQuote(com.konakart.app.Order order,
ShippingInfo info)
From the ShippingCountry we find the iso code of the country and determine its zone. |
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 |
Item
public Item()
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
- From the ShippingCountry we find the iso code of the country and determine its zone.
- Specified by:
getQuote in interface com.konakart.bl.modules.shipping.ShippingInterface
- Parameters:
order -
- Returns:
- Returns a ShippingQuote object
- Throws:
com.konakart.app.KKException
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.