Class ShippingEstimateWrapper

java.lang.Object
org.apache.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper

public class ShippingEstimateWrapper extends Object
  • Constructor Details

  • Method Details

    • getWrapper

      public static ShippingEstimateWrapper getWrapper(LocalDispatcher dispatcher, ShoppingCart cart, int shipGroup)
    • loadShippingMethods

      protected void loadShippingMethods()
      Load shipping methods.
    • loadEstimates

      protected void loadEstimates(BigDecimal totalAllowance)
      Load estimates.
      Parameters:
      totalAllowance - the total allowance
    • loadShipmentTimeEstimates

      protected void loadShipmentTimeEstimates()
      Load shipment time estimates.
    • getShippingMethods

      public List<GenericValue> getShippingMethods()
      Gets shipping methods.
      Returns:
      the shipping methods
    • getAllEstimates

      public Map<GenericValue,BigDecimal> getAllEstimates()
      Gets all estimates.
      Returns:
      the all estimates
    • getShippingEstimate

      public BigDecimal getShippingEstimate(GenericValue storeCarrierShipMethod)
      Gets shipping estimate.
      Parameters:
      storeCarrierShipMethod - the store carrier ship method
      Returns:
      the shipping estimate
    • getShippingTimeEstimates

      public List<GenericValue> getShippingTimeEstimates()
      Gets shipping time estimates.
      Returns:
      the shipping time estimates
    • getShippingTimeEstimateInDay

      public Double getShippingTimeEstimateInDay(GenericValue storeCarrierShipMethod)
      Gets shipping time estimate in day.
      Parameters:
      storeCarrierShipMethod - the store carrier ship method
      Returns:
      the shipping time estimate in day