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

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.command.BusinessPolicyCommandImpl
                          |
                          +--com.ibm.commerce.tools.optools.returns.commands.CSRDisplayRefundPaymentInfoCmdImpl
                                |
                                +--com.ibm.commerce.tools.optools.returns.commands.CSRDisplayRefundByOriginalPaymentCmdImpl
All Implemented Interfaces:
BusinessPolicyCommand, CSRDisplayRefundPaymentInfoCmd, ECCommand, ECTargetableCommand, TaskCommand

public class CSRDisplayRefundByOriginalPaymentCmdImpl
extends CSRDisplayRefundPaymentInfoCmdImpl

Policy command which retrieves refund mechanism information for a return. This implementation is executed for RMAs whose refund policy type is set to 'use original order' and the refund information is based on the payment used for one of the orders participating in the return. The original payment must have been processed using Websphere Commerce Payments.

Default implementation of the CSRDisplayRefundPaymentInfoCmd interface.

Utilizes these access beans

See Also:
DetermineReturnCreditVehicleCmd, Serialized Form

Field Summary
 
Fields inherited from class com.ibm.commerce.tools.optools.returns.commands. CSRDisplayRefundPaymentInfoCmdImpl
creditAccountInformation, iRMA
 
Fields inherited from class com.ibm.commerce.command. BusinessPolicyCommandImpl
policyId, requestProperties
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.tools.optools.returns.commands. CSRDisplayRefundPaymentInfoCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
CSRDisplayRefundByOriginalPaymentCmdImpl()
           
 
Method Summary
 void performExecute()
          Executes the policy command.
 void populateCreditAccountInformation()
          Populates refund mechanism information with data based on the payment for the order in RMA.refundAgainstOrdID.
 void validateParameters()
          Validate input parameters.
 
Methods inherited from class com.ibm.commerce.tools.optools.returns.commands. CSRDisplayRefundPaymentInfoCmdImpl
addInfoToVector, getCreditAccountInformation, getRMA, setRMA
 
Methods inherited from class com.ibm.commerce.command. BusinessPolicyCommandImpl
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command. BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
 

Constructor Detail

CSRDisplayRefundByOriginalPaymentCmdImpl

public CSRDisplayRefundByOriginalPaymentCmdImpl()
Method Detail

performExecute

public void performExecute()
                    throws ECException
Executes the policy command. Calls populateCreditAccountInformation.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

populateCreditAccountInformation

public void populateCreditAccountInformation()
                                      throws ECException
Populates refund mechanism information with data based on the payment for the order in RMA.refundAgainstOrdID.
Throws:
ECException

validateParameters

public void validateParameters()
                        throws ECException
Validate input parameters. Requires that RMA is set.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - If no RMA is passed in, throw ECApplicationException specifying _ERR_BAD_MISSING_CMD_PARAMETER
See Also:
ECCommand.validateParameters()