org.broadleafcommerce.pricing.service.module
Class USPSSingleItemPerPackageShippingCalculationModule

java.lang.Object
  extended by org.broadleafcommerce.pricing.service.module.USPSShippingCalculationModule
      extended by org.broadleafcommerce.pricing.service.module.USPSSingleItemPerPackageShippingCalculationModule
All Implemented Interfaces:
org.broadleafcommerce.core.pricing.service.module.ShippingModule

public class USPSSingleItemPerPackageShippingCalculationModule
extends USPSShippingCalculationModule

This implementation of the USPSShippingCalculationModule will package each fulfillment group order item in its own box for the purpose of USPS shipping price calculation. This will generally not be the most useful approach, as more than one item will generally be able to be included in a single shipping box. Developers may wish to extend USPSShippingCalculationModule with their own custom implementation, or utilize the BandedShippingModule for estimated shipping.

Author:
jfischer

Field Summary
 
Fields inherited from class org.broadleafcommerce.pricing.service.module.USPSShippingCalculationModule
isDefaultModule, name, originationPostalCode, shippingCalculationService
 
Constructor Summary
USPSSingleItemPerPackageShippingCalculationModule()
           
 
Method Summary
protected  List<USPSContainerItemRequest> createPackages(org.broadleafcommerce.core.order.domain.FulfillmentGroup fulfillmentGroup)
           
protected  USPSContainerItemRequest createRequest(org.broadleafcommerce.core.order.domain.FulfillmentGroup fulfillmentGroup, org.broadleafcommerce.core.order.domain.DiscreteOrderItem discreteItem, int counter)
           
 String getServiceName()
           
 
Methods inherited from class org.broadleafcommerce.pricing.service.module.USPSShippingCalculationModule
calculateShippingForFulfillmentGroup, deducePostage, findRequestByPackageId, getName, getOriginationPostalCode, isDefaultModule, isValidModuleForService, setDefaultModule, setName, setOriginationPostalCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

USPSSingleItemPerPackageShippingCalculationModule

public USPSSingleItemPerPackageShippingCalculationModule()
Method Detail

createPackages

protected List<USPSContainerItemRequest> createPackages(org.broadleafcommerce.core.order.domain.FulfillmentGroup fulfillmentGroup)
                                                 throws org.broadleafcommerce.common.vendor.service.exception.ShippingPriceException
Specified by:
createPackages in class USPSShippingCalculationModule
Throws:
org.broadleafcommerce.common.vendor.service.exception.ShippingPriceException

getServiceName

public String getServiceName()

createRequest

protected USPSContainerItemRequest createRequest(org.broadleafcommerce.core.order.domain.FulfillmentGroup fulfillmentGroup,
                                                 org.broadleafcommerce.core.order.domain.DiscreteOrderItem discreteItem,
                                                 int counter)
                                          throws org.broadleafcommerce.common.vendor.service.exception.ShippingPriceException
Throws:
org.broadleafcommerce.common.vendor.service.exception.ShippingPriceException


Copyright © 2012. All Rights Reserved.