public class ShippingModule extends Module implements ShippingModuleInterface
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
classPrefix |
configKeyStub, configs, implementationFileName, installed, keys, log
MODULE_SUB_TYPE_PROMOTION, MODULE_TYPE_ORDER_TOTAL, MODULE_TYPE_OTHER, MODULE_TYPE_PAYMENT, MODULE_TYPE_SHIPPING
Constructor and Description |
---|
ShippingModule()
Constructor
|
Modifier and Type | Method and Description |
---|---|
com.konakart.app.ExportOrderResponse |
exportOrderForShipping(AdminOrder order,
com.konakart.app.ExportOrderOptions options,
KKAdminIf adminEng)
Export the order for shipping.
|
protected AdminOrderMgrIf |
getAdminOrderMgr(KKAdminIf adminEng)
Retrieve a new AndminOrderMgr object
|
java.lang.String |
getClassPrefix() |
java.lang.String |
getConfigKeyStub() |
protected java.lang.String |
getConfigVariable(KKAdminIf adminEng,
java.lang.String key)
Retrieve the value of the configuration variable with the specified key
|
int |
getModuleType() |
protected java.lang.String |
getOrderExportBase(KKAdminIf adminEng)
Retrieve the base directory for the exported orders.
|
protected java.math.BigDecimal |
getWeightOfOrder(AdminOrder order)
Calculate the total weight of the order
|
java.lang.String |
toString() |
getConfigs, getImplementationFileName, getKeys, getKonakartTimeStampDate, getModuleCode, getModuleSubType, getModuleTitle, getMsgs, init, install, installed, remove, setConfigKeyStub, setConfigs, setImplementationFileName, setInstalled, setKeys, setMsgs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConfigs, getImplementationFileName, getKeys, getModuleCode, getModuleSubType, getModuleTitle, init, install, installed, remove, setConfigKeyStub, setInstalled
public java.lang.String getClassPrefix()
getClassPrefix
in interface ModuleInterface
getClassPrefix
in class Module
public int getModuleType()
getModuleType
in interface ModuleInterface
getModuleType
in class Module
public java.lang.String getConfigKeyStub()
getConfigKeyStub
in interface ModuleInterface
getConfigKeyStub
in class Module
public java.lang.String toString()
toString
in interface ModuleInterface
toString
in class java.lang.Object
public com.konakart.app.ExportOrderResponse exportOrderForShipping(AdminOrder order, com.konakart.app.ExportOrderOptions options, KKAdminIf adminEng) throws KKAdminException
ShippingModuleInterface
exportOrderForShipping
in interface ShippingModuleInterface
order
- AdminOrder object to export for shippingoptions
- Defines the options to use for the export of the OrderadminEng
- A KKAdmin engine which may be useful for accessing configuration variables etc.KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected java.math.BigDecimal getWeightOfOrder(AdminOrder order)
order
- the Orderprotected java.lang.String getOrderExportBase(KKAdminIf adminEng) throws KKAdminException
adminEng
- the admin engineEXPORT_ORDERS_BASE_DIRECTORY/storeId/KKConstants.EXP_ORDER_BY_SHIPPING_MODULE/code
KKAdminException
- when there are problems accessing the configuration variableprotected java.lang.String getConfigVariable(KKAdminIf adminEng, java.lang.String key) throws KKAdminException
adminEng
- the admin enginekey
- the configuration keyKKAdminException
- when there are problems accessing the configuration variableprotected AdminOrderMgrIf getAdminOrderMgr(KKAdminIf adminEng) throws KKAdminException
adminEng
- the admin engineKKAdminException
- when there are problems creating an AdminOrderMgr objectCopyright © 2018 DS Data Systems UK Ltd.