org.ofbiz.order.shoppingcart
Class ShoppingCart.CartShipInfo

java.lang.Object
  extended by org.ofbiz.order.shoppingcart.ShoppingCart.CartShipInfo
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ShoppingCart

public static class ShoppingCart.CartShipInfo
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class ShoppingCart.CartShipInfo.CartShipItemInfo
           
 
Field Summary
 java.util.Map<java.lang.String,java.lang.Object> attributes
           
 java.lang.String carrierPartyId
           
 java.lang.String carrierRoleTypeId
           
 java.lang.String giftMessage
           
 java.lang.String isGift
           
 java.lang.String maySplit
           
 java.lang.String orderTypeId
           
 java.lang.String productStoreShipMethId
           
 java.sql.Timestamp shipAfterDate
           
 java.sql.Timestamp shipBeforeDate
           
 java.math.BigDecimal shipEstimate
           
 java.util.Map<ShoppingCartItem,ShoppingCart.CartShipInfo.CartShipItemInfo> shipItemInfo
           
 java.lang.String shipmentMethodTypeId
           
 java.lang.String shippingInstructions
           
 java.util.List<GenericValue> shipTaxAdj
           
 java.lang.String supplierPartyId
           
 java.lang.String telecomContactMechId
           
 java.lang.String vendorPartyId
           
 
Constructor Summary
ShoppingCart.CartShipInfo()
           
 
Method Summary
 void clearAllTaxInfo()
           
 java.lang.String getAssociatedShipGroupSeqId()
           
<T> T
getAttribute(java.lang.String name)
           
 java.lang.String getCarrierPartyId()
           
 java.lang.String getContactMechId()
           
 java.lang.String getFacilityId()
           
 java.lang.String getOrderTypeId()
           
 java.math.BigDecimal getShipEstimate()
           
 java.lang.String getShipGroupSeqId()
           
 ShoppingCart.CartShipInfo.CartShipItemInfo getShipItemInfo(ShoppingCartItem item)
           
 java.util.Set<ShoppingCartItem> getShipItems()
           
 java.lang.String getShipmentMethodTypeId()
           
 java.lang.String getSupplierPartyId()
           
 java.math.BigDecimal getTotal()
           
 java.math.BigDecimal getTotalTax(ShoppingCart cart)
           
 java.lang.String getVendorPartyId()
           
 java.util.List<GenericValue> makeItemShipGroupAndAssoc(Delegator delegator, ShoppingCart cart, long groupIndex)
           
 void removeAttribute(java.lang.String name)
           
 void resetShipAfterDateIfBefore(java.sql.Timestamp newShipAfterDate)
          Reset the ship group's shipAfterDate if it is before the parameter
 void resetShipBeforeDateIfAfter(java.sql.Timestamp newShipBeforeDate)
          Reset the ship group's shipBeforeDate if it is after the parameter
 void setAssociatedShipGroupSeqId(java.lang.String shipGroupSeqId)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 void setContactMechId(java.lang.String contactMechId)
           
 void setFacilityId(java.lang.String facilityId)
           
 ShoppingCart.CartShipInfo.CartShipItemInfo setItemInfo(ShoppingCartItem item, java.math.BigDecimal quantity)
           
 ShoppingCart.CartShipInfo.CartShipItemInfo setItemInfo(ShoppingCartItem item, java.math.BigDecimal quantity, java.util.List<GenericValue> taxAdj)
           
 ShoppingCart.CartShipInfo.CartShipItemInfo setItemInfo(ShoppingCartItem item, java.util.List<GenericValue> taxAdj)
           
 void setMaySplit(java.lang.Boolean maySplit)
           
 void setShipGroupSeqId(java.lang.String shipGroupSeqId)
           
 void setVendorPartyId(java.lang.String vendorPartyId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shipItemInfo

public java.util.Map<ShoppingCartItem,ShoppingCart.CartShipInfo.CartShipItemInfo> shipItemInfo

shipTaxAdj

public java.util.List<GenericValue> shipTaxAdj

orderTypeId

public java.lang.String orderTypeId

telecomContactMechId

public java.lang.String telecomContactMechId

shipmentMethodTypeId

public java.lang.String shipmentMethodTypeId

supplierPartyId

public java.lang.String supplierPartyId

carrierRoleTypeId

public java.lang.String carrierRoleTypeId

carrierPartyId

public java.lang.String carrierPartyId

giftMessage

public java.lang.String giftMessage

shippingInstructions

public java.lang.String shippingInstructions

maySplit

public java.lang.String maySplit

isGift

public java.lang.String isGift

shipEstimate

public java.math.BigDecimal shipEstimate

shipBeforeDate

public java.sql.Timestamp shipBeforeDate

shipAfterDate

public java.sql.Timestamp shipAfterDate

vendorPartyId

public java.lang.String vendorPartyId

productStoreShipMethId

public java.lang.String productStoreShipMethId

attributes

public java.util.Map<java.lang.String,java.lang.Object> attributes
Constructor Detail

ShoppingCart.CartShipInfo

public ShoppingCart.CartShipInfo()
Method Detail

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)

removeAttribute

public void removeAttribute(java.lang.String name)

getAttribute

public <T> T getAttribute(java.lang.String name)

getOrderTypeId

public java.lang.String getOrderTypeId()

getContactMechId

public java.lang.String getContactMechId()

setContactMechId

public void setContactMechId(java.lang.String contactMechId)

getCarrierPartyId

public java.lang.String getCarrierPartyId()

getSupplierPartyId

public java.lang.String getSupplierPartyId()

getShipmentMethodTypeId

public java.lang.String getShipmentMethodTypeId()

getShipEstimate

public java.math.BigDecimal getShipEstimate()

getShipGroupSeqId

public java.lang.String getShipGroupSeqId()

setShipGroupSeqId

public void setShipGroupSeqId(java.lang.String shipGroupSeqId)

getAssociatedShipGroupSeqId

public java.lang.String getAssociatedShipGroupSeqId()

setAssociatedShipGroupSeqId

public void setAssociatedShipGroupSeqId(java.lang.String shipGroupSeqId)

getFacilityId

public java.lang.String getFacilityId()

setFacilityId

public void setFacilityId(java.lang.String facilityId)

getVendorPartyId

public java.lang.String getVendorPartyId()

setVendorPartyId

public void setVendorPartyId(java.lang.String vendorPartyId)

setMaySplit

public void setMaySplit(java.lang.Boolean maySplit)

clearAllTaxInfo

public void clearAllTaxInfo()

makeItemShipGroupAndAssoc

public java.util.List<GenericValue> makeItemShipGroupAndAssoc(Delegator delegator,
                                                              ShoppingCart cart,
                                                              long groupIndex)

setItemInfo

public ShoppingCart.CartShipInfo.CartShipItemInfo setItemInfo(ShoppingCartItem item,
                                                              java.math.BigDecimal quantity,
                                                              java.util.List<GenericValue> taxAdj)

setItemInfo

public ShoppingCart.CartShipInfo.CartShipItemInfo setItemInfo(ShoppingCartItem item,
                                                              java.util.List<GenericValue> taxAdj)

setItemInfo

public ShoppingCart.CartShipInfo.CartShipItemInfo setItemInfo(ShoppingCartItem item,
                                                              java.math.BigDecimal quantity)

getShipItemInfo

public ShoppingCart.CartShipInfo.CartShipItemInfo getShipItemInfo(ShoppingCartItem item)

getShipItems

public java.util.Set<ShoppingCartItem> getShipItems()

resetShipBeforeDateIfAfter

public void resetShipBeforeDateIfAfter(java.sql.Timestamp newShipBeforeDate)
Reset the ship group's shipBeforeDate if it is after the parameter

Parameters:
newShipBeforeDate - the ship group's shipBeforeDate to be reset

resetShipAfterDateIfBefore

public void resetShipAfterDateIfBefore(java.sql.Timestamp newShipAfterDate)
Reset the ship group's shipAfterDate if it is before the parameter

Parameters:
newShipAfterDate - the ship group's shipAfterDate to be reset

getTotalTax

public java.math.BigDecimal getTotalTax(ShoppingCart cart)

getTotal

public java.math.BigDecimal getTotal()