public class ShippingModule extends Module implements ShippingModuleInterface
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
classPrefix |
configKeyStub, configs, implementationFileName, installed, keys, logMODULE_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, setMsgsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConfigs, getImplementationFileName, getKeys, getModuleCode, getModuleSubType, getModuleTitle, init, install, installed, remove, setConfigKeyStub, setInstalledpublic java.lang.String getClassPrefix()
getClassPrefix in interface ModuleInterfacegetClassPrefix in class Modulepublic int getModuleType()
getModuleType in interface ModuleInterfacegetModuleType in class Modulepublic java.lang.String getConfigKeyStub()
getConfigKeyStub in interface ModuleInterfacegetConfigKeyStub in class Modulepublic java.lang.String toString()
toString in interface ModuleInterfacetoString in class java.lang.Objectpublic com.konakart.app.ExportOrderResponse exportOrderForShipping(AdminOrder order, com.konakart.app.ExportOrderOptions options, KKAdminIf adminEng) throws KKAdminException
ShippingModuleInterfaceexportOrderForShipping in interface ShippingModuleInterfaceorder - 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.