org.broadleafcommerce.pricing.service.module
Class USPSSingleItemPerPackageShippingCalculationModule
java.lang.Object
org.broadleafcommerce.pricing.service.module.USPSShippingCalculationModule
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USPSSingleItemPerPackageShippingCalculationModule
public USPSSingleItemPerPackageShippingCalculationModule()
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.