Class ShippingEstimateWrapper
- java.lang.Object
-
- org.apache.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper
-
public class ShippingEstimateWrapper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Delegator
delegator
protected LocalDispatcher
dispatcher
static java.lang.String
module
protected GenericValue
originAddress
protected java.lang.String
partyId
protected java.lang.String
productStoreId
protected java.util.Map<java.lang.String,java.math.BigDecimal>
shippableItemFeatures
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
shippableItemInfo
protected java.util.List<java.math.BigDecimal>
shippableItemSizes
protected java.math.BigDecimal
shippableQuantity
protected java.math.BigDecimal
shippableTotal
protected java.math.BigDecimal
shippableWeight
protected GenericValue
shippingAddress
protected java.util.Map<GenericValue,java.math.BigDecimal>
shippingEstimates
protected java.util.List<GenericValue>
shippingMethods
protected java.util.List<GenericValue>
shippingTimeEstimates
protected java.lang.String
supplierPartyId
-
Constructor Summary
Constructors Constructor Description ShippingEstimateWrapper(LocalDispatcher dispatcher, ShoppingCart cart, int shipGroup)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<GenericValue,java.math.BigDecimal>
getAllEstimates()
java.math.BigDecimal
getShippingEstimate(GenericValue storeCarrierShipMethod)
java.util.List<GenericValue>
getShippingMethods()
java.lang.Double
getShippingTimeEstimateInDay(GenericValue storeCarrierShipMethod)
java.util.List<GenericValue>
getShippingTimeEstimates()
static ShippingEstimateWrapper
getWrapper(LocalDispatcher dispatcher, ShoppingCart cart, int shipGroup)
protected void
loadEstimates(java.math.BigDecimal totalAllowance)
protected void
loadShipmentTimeEstimates()
protected void
loadShippingMethods()
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
delegator
protected Delegator delegator
-
dispatcher
protected LocalDispatcher dispatcher
-
shippingEstimates
protected java.util.Map<GenericValue,java.math.BigDecimal> shippingEstimates
-
shippingTimeEstimates
protected java.util.List<GenericValue> shippingTimeEstimates
-
shippingMethods
protected java.util.List<GenericValue> shippingMethods
-
shippingAddress
protected GenericValue shippingAddress
-
originAddress
protected GenericValue originAddress
-
shippableItemFeatures
protected java.util.Map<java.lang.String,java.math.BigDecimal> shippableItemFeatures
-
shippableItemSizes
protected java.util.List<java.math.BigDecimal> shippableItemSizes
-
shippableItemInfo
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> shippableItemInfo
-
productStoreId
protected java.lang.String productStoreId
-
shippableQuantity
protected java.math.BigDecimal shippableQuantity
-
shippableWeight
protected java.math.BigDecimal shippableWeight
-
shippableTotal
protected java.math.BigDecimal shippableTotal
-
partyId
protected java.lang.String partyId
-
supplierPartyId
protected java.lang.String supplierPartyId
-
-
Constructor Detail
-
ShippingEstimateWrapper
public ShippingEstimateWrapper(LocalDispatcher dispatcher, ShoppingCart cart, int shipGroup)
-
-
Method Detail
-
getWrapper
public static ShippingEstimateWrapper getWrapper(LocalDispatcher dispatcher, ShoppingCart cart, int shipGroup)
-
loadShippingMethods
protected void loadShippingMethods()
-
loadEstimates
protected void loadEstimates(java.math.BigDecimal totalAllowance)
-
loadShipmentTimeEstimates
protected void loadShipmentTimeEstimates()
-
getShippingMethods
public java.util.List<GenericValue> getShippingMethods()
-
getAllEstimates
public java.util.Map<GenericValue,java.math.BigDecimal> getAllEstimates()
-
getShippingEstimate
public java.math.BigDecimal getShippingEstimate(GenericValue storeCarrierShipMethod)
-
getShippingTimeEstimates
public java.util.List<GenericValue> getShippingTimeEstimates()
-
getShippingTimeEstimateInDay
public java.lang.Double getShippingTimeEstimateInDay(GenericValue storeCarrierShipMethod)
-
-