com.ibm.commerce.tools.optools.returns.commands

Class CSRDisplayRefundPaymentInfoCmdImpl

    • Constructor Detail

      • CSRDisplayRefundPaymentInfoCmdImpl

        public CSRDisplayRefundPaymentInfoCmdImpl()
    • Method Detail

      • getCreditAccountInformation

        public java.util.Vector getCreditAccountInformation()
        Description copied from interface: CSRDisplayRefundPaymentInfoCmd
        Gets refund mechanism information for the set RMA. Returns a Vector of Hashtables that contain Hashtables. A sample usage of the output is as follows:

                        Vector creditInfo  = getCreditAccountInformation()
        
                        if ( creditInfo != null && creditInfo.size() != 0 )
                        {
                           for (int i = 0; i < creditInfo.size(); i++ )
                           {
                   
                              Hashtable ht1 = (Hashtable) creditInfo.elementAt(i);
                              Enumeration enum = ht1.elements();
                              Hashtable ht2 = (Hashtable) enum.nextElement(); // only 1 element in this hashtable
                              String labelKey = (String) ht2.get("LABEL_KEY"); // gets the label key from the ReturnNLS.properties file
                              String value = (String) ht2.get("VALUE");         // gets the value
                           }
                        }   
        
        Specified by:
        getCreditAccountInformation in interface CSRDisplayRefundPaymentInfoCmd
      • getRMA

        public RMAAccessBean getRMA()
        Gets the RMA set for the command
        Returns:
        RMA access bean