Class WeightPackageSession

  • All Implemented Interfaces:
    java.io.Serializable

    public class WeightPackageSession
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Detail

      • module

        public static final java.lang.String module
      • dispatcherName

        protected java.lang.String dispatcherName
      • delegatorName

        protected java.lang.String delegatorName
      • primaryOrderId

        protected java.lang.String primaryOrderId
      • primaryShipGrpSeqId

        protected java.lang.String primaryShipGrpSeqId
      • picklistBinId

        protected java.lang.String picklistBinId
      • shipmentId

        protected java.lang.String shipmentId
      • invoiceId

        protected java.lang.String invoiceId
      • facilityId

        protected java.lang.String facilityId
      • carrierPartyId

        protected java.lang.String carrierPartyId
      • dimensionUomId

        protected java.lang.String dimensionUomId
      • weightUomId

        protected java.lang.String weightUomId
      • estimatedShipCost

        protected java.math.BigDecimal estimatedShipCost
      • actualShipCost

        protected java.math.BigDecimal actualShipCost
      • weightPackageSeqId

        protected int weightPackageSeqId
    • Constructor Detail

      • WeightPackageSession

        public WeightPackageSession()
      • WeightPackageSession

        public WeightPackageSession​(LocalDispatcher dispatcher,
                                    GenericValue userLogin,
                                    java.lang.String facilityId,
                                    java.lang.String picklistBinId,
                                    java.lang.String orderId,
                                    java.lang.String shipGrpSeqId)
      • WeightPackageSession

        public WeightPackageSession​(LocalDispatcher dispatcher,
                                    GenericValue userLogin,
                                    java.lang.String facilityId)
    • Method Detail

      • getDelegator

        public Delegator getDelegator()
      • createWeightPackageLine

        public void createWeightPackageLine​(java.lang.String orderId,
                                            java.math.BigDecimal packageWeight,
                                            java.math.BigDecimal packageLength,
                                            java.math.BigDecimal packageWidth,
                                            java.math.BigDecimal packageHeight,
                                            java.lang.String shipmentBoxTypeId)
                                     throws GeneralException
        Throws:
        GeneralException
      • getWeightPackageSeqId

        public int getWeightPackageSeqId()
      • getFacilityId

        public java.lang.String getFacilityId()
      • setFacilityId

        public void setFacilityId​(java.lang.String facilityId)
      • getPrimaryOrderId

        public java.lang.String getPrimaryOrderId()
      • setPrimaryOrderId

        public void setPrimaryOrderId​(java.lang.String primaryOrderId)
      • getPrimaryShipGroupSeqId

        public java.lang.String getPrimaryShipGroupSeqId()
      • setPrimaryShipGroupSeqId

        public void setPrimaryShipGroupSeqId​(java.lang.String primaryShipGrpSeqId)
      • setPicklistBinId

        public void setPicklistBinId​(java.lang.String picklistBinId)
      • getPicklistBinId

        public java.lang.String getPicklistBinId()
      • setEstimatedShipCost

        public void setEstimatedShipCost​(java.math.BigDecimal estimatedShipCost)
      • getEstimatedShipCost

        public java.math.BigDecimal getEstimatedShipCost()
      • setActualShipCost

        public void setActualShipCost​(java.math.BigDecimal actualShipCost)
      • getActualShipCost

        public java.math.BigDecimal getActualShipCost()
      • getShipmentId

        public java.lang.String getShipmentId()
      • setShipmentId

        public void setShipmentId​(java.lang.String shipmentId)
      • getInvoiceId

        public java.lang.String getInvoiceId()
      • setInvoiceId

        public void setInvoiceId​(java.lang.String invoiceId)
      • getWeightUomId

        public java.lang.String getWeightUomId()
      • setWeightUomId

        public void setWeightUomId​(java.lang.String weightUomId)
      • getDimensionUomId

        public java.lang.String getDimensionUomId()
      • setCarrierPartyId

        public void setCarrierPartyId​(java.lang.String carrierPartyId)
      • setDimensionUomId

        public void setDimensionUomId​(java.lang.String dimensionUomId)
      • getShippableWeight

        public java.math.BigDecimal getShippableWeight​(java.lang.String orderId)
      • setPackageWeight

        public void setPackageWeight​(java.math.BigDecimal packageWeight,
                                     int weightPackageSeqId)
      • setPackageLength

        public void setPackageLength​(java.math.BigDecimal packageLength,
                                     int weightPackageSeqId)
      • setPackageWidth

        public void setPackageWidth​(java.math.BigDecimal packageWidth,
                                    int weightPackageSeqId)
      • setPackageHeight

        public void setPackageHeight​(java.math.BigDecimal packageHeight,
                                     int weightPackageSeqId)
      • setShipmentBoxTypeId

        public void setShipmentBoxTypeId​(java.lang.String shipmentBoxTypeId,
                                         int weightPackageSeqId)
      • deletePackedLine

        public void deletePackedLine​(int weightPackageSeqId)
      • setDimensionAndShipmentBoxType

        public void setDimensionAndShipmentBoxType​(int weightPackageSeqId)
      • clearPackedLines

        public void clearPackedLines​(java.lang.String orderId)
      • complete

        public java.lang.String complete​(java.lang.String orderId,
                                         java.util.Locale locale,
                                         java.lang.String calculateOnlineShippingRateFromUps)
                                  throws GeneralException
        Throws:
        GeneralException
      • completeShipment

        public boolean completeShipment​(java.lang.String orderId,
                                        java.lang.String calculateOnlineShippingRateFromUps)
                                 throws GeneralException
        Throws:
        GeneralException
      • getShipmentCostEstimate

        public java.math.BigDecimal getShipmentCostEstimate​(GenericValue orderItemShipGroup,
                                                            java.lang.String orderId,
                                                            java.lang.String productStoreId,
                                                            java.util.List<GenericValue> shippableItemInfo,
                                                            java.math.BigDecimal shippableTotal,
                                                            java.math.BigDecimal shippableWeight,
                                                            java.math.BigDecimal shippableQuantity)
      • getShipmentCostEstimate

        public java.math.BigDecimal getShipmentCostEstimate​(java.lang.String shippingContactMechId,
                                                            java.lang.String shipmentMethodTypeId,
                                                            java.lang.String carrierPartyId,
                                                            java.lang.String carrierRoleTypeId,
                                                            java.lang.String orderId,
                                                            java.lang.String productStoreId,
                                                            java.util.List<GenericValue> shippableItemInfo,
                                                            java.math.BigDecimal shippableTotal,
                                                            java.math.BigDecimal shippableWeight,
                                                            java.math.BigDecimal shippableQuantity)
      • savePackagesInfo

        protected void savePackagesInfo​(java.lang.String orderId,
                                        java.lang.String calculateOnlineShippingRateFromUps)
                                 throws GeneralException
        Throws:
        GeneralException
      • getOrderedQuantity

        protected java.lang.Integer getOrderedQuantity​(java.lang.String orderId)