use of org.broadleafcommerce.core.pricing.service.fulfillment.provider.BandedFulfillmentPricingProvider in project BroadleafCommerce by BroadleafCommerce.
the class BandedPriceFulfillmentTest method calculationResponse.
protected Money calculationResponse(FulfillmentOption option, Order order) throws Exception {
Set<FulfillmentOption> options = new HashSet<FulfillmentOption>();
options.add(option);
BandedFulfillmentPricingProvider provider = new BandedFulfillmentPricingProvider();
return provider.estimateCostForFulfillmentGroup(order.getFulfillmentGroups().get(0), options).getFulfillmentOptionPrices().get(option);
}
Aggregations