com.konakart.bl.modules.ordertotal
Interface OrderTotalInterface

All Known Implementing Classes:
BuyXGetYFree, FreeProduct, GiftCertificate, ProductDiscount, RedeemPoints, RewardPoints, Shipping, ShippingDiscount, Subtotal, Tax, TaxCloud, Total, TotalDiscount

public interface OrderTotalInterface


Method Summary
 java.lang.String getCode()
           
 OrderTotal getOrderTotal(Order order, boolean dispPriceWithTax, java.util.Locale locale)
           
 java.util.List<OrderTotal> getOrderTotalList()
          A list of the current order totals so that an order total module can modify an order total that was previously called.
 PromotionResult getPromotionResult(Product product, Promotion promotion)
          Returns an object containing the promotion discount.
 int getSortOrder()
           
 boolean isAvailable()
           
 void setOrderTotalList(java.util.List<OrderTotal> orderTotalList)
          A list of the current order totals so that an order total module can modify an order total that was previously called.
 void setStaticVariables()
          Refreshes the static variables from the copy in the database
 

Method Detail

getOrderTotal

OrderTotal getOrderTotal(Order order,
                         boolean dispPriceWithTax,
                         java.util.Locale locale)
                         throws java.lang.Exception
Parameters:
order -
dispPriceWithTax -
locale -
Returns:
Returns an OrderTotal object for this module
Throws:
java.lang.Exception

isAvailable

boolean isAvailable()
                    throws KKException
Returns:
True or False
Throws:
KKException

getSortOrder

int getSortOrder()
Returns:
Return the order in which the module gets called and displayed

getCode

java.lang.String getCode()
Returns:
Returns the code for the module

setStaticVariables

void setStaticVariables()
                        throws KKException
Refreshes the static variables from the copy in the database

Throws:
KKException

getOrderTotalList

java.util.List<OrderTotal> getOrderTotalList()
A list of the current order totals so that an order total module can modify an order total that was previously called.

Returns:
the orderTotalList

setOrderTotalList

void setOrderTotalList(java.util.List<OrderTotal> orderTotalList)
A list of the current order totals so that an order total module can modify an order total that was previously called.

Parameters:
orderTotalList - the orderTotalList to set

getPromotionResult

PromotionResult getPromotionResult(Product product,
                                   Promotion promotion)
                                   throws java.lang.Exception
Returns an object containing the promotion discount. This method is used to apply the promotion to a single product.

Parameters:
product -
promotion -
Returns:
Returns a PromotionResult object
Throws:
java.lang.Exception


Copyright © 2011 DS Data Systems UK Ltd.