com.dotmarketing.util
Class CalculateShippingAndHandling

java.lang.Object
  extended by com.dotmarketing.util.CalculateShippingAndHandling

public class CalculateShippingAndHandling
extends java.lang.Object

Author:
Oswaldo Gallango

Constructor Summary
CalculateShippingAndHandling()
           
 
Method Summary
static float calculateHandling(ShoppingCart shoppingCart)
          This Method calculate the handling cost of a shopping car
static float calculateShipping(ShoppingCart shoppingCart, int serviceType, java.lang.String Ship_To_Zip)
           
static float calculateShippingAndHandling(ShoppingCart shoppingCart, int serviceType, java.lang.String Ship_To_Zip)
          This Method get the total cost amount of shipping and handling in a shopping car
static java.lang.StringBuffer generateXML(java.lang.String ServiceType, float packageWeight, java.lang.String Ship_To_Zip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculateShippingAndHandling

public CalculateShippingAndHandling()
Method Detail

calculateShippingAndHandling

public static float calculateShippingAndHandling(ShoppingCart shoppingCart,
                                                 int serviceType,
                                                 java.lang.String Ship_To_Zip)
This Method get the total cost amount of shipping and handling in a shopping car

Parameters:
shoppingCart -
Returns:
the total amout to pay in shipping and handling

calculateHandling

public static float calculateHandling(ShoppingCart shoppingCart)
This Method calculate the handling cost of a shopping car

Parameters:
shoppingCart -
Returns:
the amount cost of the handling

calculateShipping

public static float calculateShipping(ShoppingCart shoppingCart,
                                      int serviceType,
                                      java.lang.String Ship_To_Zip)
Parameters:
shoppingCart - (product to send)
serviceType - (Ground, Next Day, Priority)
Ship_To_Zip - Shipping zip code
Returns:

generateXML

public static java.lang.StringBuffer generateXML(java.lang.String ServiceType,
                                                 float packageWeight,
                                                 java.lang.String Ship_To_Zip)


Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.