com.ibm.commerce.returns.commands
Class RefundByCreditPolicyCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.command.BusinessPolicyCommandImpl
com.ibm.commerce.returns.commands.RefundPaymentPolicyCmdImpl
com.ibm.commerce.returns.commands.RefundByCreditPolicyCmdImpl
- All Implemented Interfaces:
- BusinessPolicyCommand, ECCommand, ECTargetableCommand, RefundPaymentPolicyCmd, TaskCommand
- public class RefundByCreditPolicyCmdImpl
- extends RefundPaymentPolicyCmdImpl
- implements RefundPaymentPolicyCmd
Implementation of the Task command RefundPaymentPolicyCmd interface. Refund using the credit line. The first policy with the name "Credit" with the policy type of "Payment" is used for the refund.
- See Also:
- Serialized Form
Method Summary |
protected void |
doWork()
Get the policies of type "Payment" and call the method callDoRefundPolicy() with the identifier of the first policy with the name "Credit". |
Methods inherited from class com.ibm.commerce.returns.commands.RefundPaymentPolicyCmdImpl |
callDoRefundPolicy, getErrorViewName, getOrder, getPaymentPolicyId, getRefundAmount, getRMA, performExecute, reset, setErrorViewName, setOrder, setPaymentPolicyId, setRefundAmount, setRMA, validateParameters |
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, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CREDIT_POLICY_NAME
protected static final transient java.lang.String CREDIT_POLICY_NAME
-
- See Also:
- Constant Field Values
CREDIT_POLICY_TYPE
protected static final transient java.lang.String CREDIT_POLICY_TYPE
RefundByCreditPolicyCmdImpl
public RefundByCreditPolicyCmdImpl()
- RefundByCreditPolicyCmdImpl constructor.
doWork
protected void doWork()
throws ECException
- Get the policies of type "Payment" and call the method callDoRefundPolicy() with the identifier of the first policy with the name "Credit".
-
- Specified by:
- doWork in class RefundPaymentPolicyCmdImpl
-
- Throws:
- ECException
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.