Class ShoppingCart.CartShipInfo
- java.lang.Object
-
- org.apache.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
Nested Classes Modifier and Type Class Description static class
ShoppingCart.CartShipInfo.CartShipItemInfo
-
Field Summary
Fields Modifier and Type Field Description 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
supplierAgreementId
java.lang.String
supplierPartyId
java.lang.String
telecomContactMechId
java.lang.String
vendorPartyId
-
Constructor Summary
Constructors Constructor Description CartShipInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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()
GenericValue
getOriginAddress(ShoppingCart cart)
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
getSupplierAgreementId()
java.lang.String
getSupplierPartyId()
java.math.BigDecimal
getTotal()
java.math.BigDecimal
getTotalTax(ShoppingCart cart)
java.lang.String
getVendorPartyId()
java.util.List<GenericValue>
makeItemShipGroupAndAssoc(LocalDispatcher dispatcher, Delegator delegator, ShoppingCart cart, java.lang.String shipGroupSeqId)
java.util.List<GenericValue>
makeItemShipGroupAndAssoc(LocalDispatcher dispatcher, Delegator delegator, ShoppingCart cart, java.lang.String shipGroupSeqId, boolean newShipGroup)
Deprecated.void
removeAttribute(java.lang.String name)
void
resetShipAfterDateIfBefore(java.sql.Timestamp newShipAfterDate)
Reset the ship group's shipAfterDate if it is before the parametervoid
resetShipBeforeDateIfAfter(java.sql.Timestamp newShipBeforeDate)
Reset the ship group's shipBeforeDate if it is after the parametervoid
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)
-
-
-
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
-
supplierAgreementId
public java.lang.String supplierAgreementId
-
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
-
-
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()
-
getSupplierAgreementId
public java.lang.String getSupplierAgreementId()
-
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)
-
getOriginAddress
public GenericValue getOriginAddress(ShoppingCart cart)
-
clearAllTaxInfo
public void clearAllTaxInfo()
-
makeItemShipGroupAndAssoc
@Deprecated public java.util.List<GenericValue> makeItemShipGroupAndAssoc(LocalDispatcher dispatcher, Delegator delegator, ShoppingCart cart, java.lang.String shipGroupSeqId, boolean newShipGroup)
Deprecated.
-
makeItemShipGroupAndAssoc
public java.util.List<GenericValue> makeItemShipGroupAndAssoc(LocalDispatcher dispatcher, Delegator delegator, ShoppingCart cart, java.lang.String shipGroupSeqId)
-
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()
-
-