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
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 |
CSRDisplayRefundByOriginalPaymentCmdImpl
public CSRDisplayRefundByOriginalPaymentCmdImpl()
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()
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.