com.ibm.commerce.order.beans

Class UsableShipChargesAndAccountByShipModeDataBean

    • Constructor Detail

      • UsableShipChargesAndAccountByShipModeDataBean

        public UsableShipChargesAndAccountByShipModeDataBean()
        InstructsPerOrderItemBlockListDataBean default constructor.
    • Method Detail

      • populate

        public void populate()
        This method is used to populate the UsableShipChargesAndAccountByShipModeDataBean. You must set OrderId using the setOrderId method before running the populate() method.
        Specified by:
        populate in interface SmartDataBean
        Overrides:
        populate in class SmartDataBeanImpl
        See Also:
        setOrderId(String)
      • setOrderId

        public void setOrderId(java.lang.String ordersId)
        This method sets the order ID of the order to collate shipping mode and shipping charge data for.
        Specified by:
        setOrderId in interface UsableShipChargesAndAccountByShipModeInputDataBean
        Parameters:
        ordersId - The order ID of the order to collate shipping mode and shipping charge data for
      • getNumberOfShipModes

        public int getNumberOfShipModes()
        This method returns the number of ship modes that exist across all order items for the order.
        Returns:
        int The number of unique ship modes that exist for this order.
      • getShipChargesByShipMode

        public ShipChargesByShipMode[] getShipChargesByShipMode()
        This method returns the shipping charges by ship mode.
        Returns:
        ShipChargesByShipMode The Shipping Charges for shipModes
      • isShipChargesExist

        public boolean isShipChargesExist()
        Tells the caller if shipping charges were found for this order. In all cases shipping charges should be found.
        Returns:
        boolean true if shipping charges exist for the order false if none were found
      • getOwner

        public java.lang.Long getOwner()
                                throws java.lang.Exception
        Description copied from interface: Protectable
        Returns the member ID of the owner.
        Specified by:
        getOwner in interface Protectable
        Returns:
        The member ID of the owner
        Throws:
        java.lang.Exception
      • getDelegate

        public Protectable getDelegate()
                                throws java.lang.Exception
        Description copied from interface: Delegator
        Returns the Protectable object whose access control policies will indirectly control the access control for this object
        Specified by:
        getDelegate in interface Delegator
        Returns:
        The Protectable object whose access control policies will indirectly control the access control for this object
        Throws:
        java.lang.Exception