Search in sources :

Example 1 with BandedFulfillmentPricingProvider

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);
}
Also used : BandedFulfillmentPricingProvider(org.broadleafcommerce.core.pricing.service.fulfillment.provider.BandedFulfillmentPricingProvider) BandedPriceFulfillmentOption(org.broadleafcommerce.core.order.fulfillment.domain.BandedPriceFulfillmentOption) BandedWeightFulfillmentOption(org.broadleafcommerce.core.order.fulfillment.domain.BandedWeightFulfillmentOption) FulfillmentOption(org.broadleafcommerce.core.order.domain.FulfillmentOption) HashSet(java.util.HashSet)

Aggregations

HashSet (java.util.HashSet)1 FulfillmentOption (org.broadleafcommerce.core.order.domain.FulfillmentOption)1 BandedPriceFulfillmentOption (org.broadleafcommerce.core.order.fulfillment.domain.BandedPriceFulfillmentOption)1 BandedWeightFulfillmentOption (org.broadleafcommerce.core.order.fulfillment.domain.BandedWeightFulfillmentOption)1 BandedFulfillmentPricingProvider (org.broadleafcommerce.core.pricing.service.fulfillment.provider.BandedFulfillmentPricingProvider)1