com.ibm.commerce.returns.commands

Class ARefundTaskCmdImpl

    • Constructor Detail

      • ARefundTaskCmdImpl

        public ARefundTaskCmdImpl()
    • Method Detail

      • setRmaId

        public void setRmaId(java.lang.Long localRmaId)
        This method sets the identifier of current RMA(Return Merchandise Authorization).
        Specified by:
        setRmaId in interface ARefundTaskCmd
        Parameters:
        localRmaId - The identifier of current RMA
      • getRmaId

        public final java.lang.Long getRmaId()
        This method returns the identifier of current RMA.
        Returns:
        The identifier of current RMA
      • setCurrency

        public void setCurrency(java.lang.String localCurrency)
        This method sets the current currency.
        Parameters:
        localCurrency - The currency to set
      • getRefundInstructions

        public java.util.ArrayList getRefundInstructions()
        This method returns the refund instructions.
        Returns:
        The refund instructions
      • setRefundInstructions

        public void setRefundInstructions(java.util.ArrayList localRefundInstructions)
        This method sets the refund instructions.
        Parameters:
        localRefundInstructions - ArrayList The current refund instructions to process
      • toString

        public java.lang.String toString()
        This method converts this request data into a human-readable string.
        Overrides:
        toString in class AEDPTaskCmdImpl
        Returns:
        a human-readable string representing the data of this request
      • validateInsideProcessFG

        public void validateInsideProcessFG()
                                     throws EDPException
        This method validates if the required parameters are present for the foreground tasks. In this implementation, it will call AEDPTaskCmdImpl.validateInsideProcessFG(), then check if RMA ID is present.
        Overrides:
        validateInsideProcessFG in class AEDPTaskCmdImpl
        Throws:
        EDPException - In case Payment Rules error
      • isProcessBGExecutableInFG

        public boolean isProcessBGExecutableInFG()
        This method checks if the background tasks can be processed in the foreground thread.
        Overrides:
        isProcessBGExecutableInFG in class AEDPTaskCmdImpl
        Returns:
        If the background tasks can be processed in the foreground thread
      • setBgJobStatusInDb

        public void setBgJobStatusInDb(java.lang.Integer bgJobStatus)
                                throws J2EEException,
                                       InputException,
                                       ECException
        This method sets the background status on the current refund.
        Parameters:
        bgJobStatus - The new status
        Throws:
        J2EEException - If EJBs cannot be accessed
        InputException - If an invalid status or invalid order is selected
        ECException - If store cannot be retrieved
      • getCurrentStoreId

        public java.lang.Integer getCurrentStoreId()
                                            throws ECException
        This method returns the store id through RMA. Because in Hub store, the store id in the command context is the id of Hub store. While the expected behavior is that it should be the owning store id, so this method gets the store id from the RMA.
        Returns:
        storeId The store ID in RMA
        Throws:
        ECException - If store id cannot be retrieved from the RMA
      • setRMAAB

        public void setRMAAB(RMAAccessBean anRMAAB)
        This method sets the RMA being accessed.
        Parameters:
        anRMAAB - The RMA access bean
      • reset

        public void reset()
        This method resets the instance variable of this command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AEDPTaskCmdImpl
      • getPaymentPolicyId

        public java.lang.Long getPaymentPolicyId()
        This method returns the payment policy ID and the corresponding policy will be used as the refund method.
        Returns:
        The payment policy ID and the corresponding policy will be used as the refund method
      • setPaymentPolicyId

        public void setPaymentPolicyId(java.lang.Long localPaymentPolicyId)
        This method sets the payment policy ID and the corresponding policy will be used as the refund method, this value is set by ReturnProcessCmdImpl.
        Parameters:
        localPaymentPolicyId - The payment policy ID to set.