public class PrimeRefundCmdImpl extends ARefundTaskCmdImpl implements PrimeRefundCmd
PrimeRefundCmdImpl
interface.
Behaviour
ReturnProcessCmd
when the return is submitted or edited.
This command utilizes these access beans
defaultCommandClassName, NAME
Constructor and Description |
---|
PrimeRefundCmdImpl()
This method is the default constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getPermissionForRefund(java.lang.Long orderId,
java.math.BigDecimal localAmount)
This method returns if the refund with specified amount is permitted for
current order.
|
void |
performExecute()
This method executes the command, which creates refund instructions and
RMA for Payment Rules in corresponding WebSphere Commerce Payments
tables(EDPREFINST and EDPRMA), respectively.
|
void |
processFG()
This method executes the foreground tasks, which creates the refund data
idempotently.
|
void |
reset()
This method resets the instance variable of this command.
|
void |
validateParameters()
This method checks if the mandatory parameters is present.
|
getCurrency, getCurrentStoreId, getPaymentPolicyId, getRefundInstructions, getRmaId, isProcessBGExecutableInFG, setBgJobStatusInDb, setCurrency, setPaymentPolicyId, setRefundInstructions, setRMAAB, setRmaId, toString, validateInsideProcessFG
getEdpException, getEDPOrderId, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, getStatus, isIdempotent, isProcessBGTasksRequired, resetServices, setBGProcessFinished, setEdpException, setEDPOrderId, setEDPResults, setOrderChannel, setOrderId, setProcessBGTasksRequired, setStatus
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
setPaymentPolicyId, setRMAAB
setRmaId
getCurrency, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, setEDPResults, setOrderId
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public PrimeRefundCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- The WebSphere Commerce specific exceptionpublic void processFG() throws EDPException, ECException
This method executes the foreground tasks, which creates the refund data idempotently.
EDPException
- In case of a Payment Rules errorECException
- In case of an ECExceptionpublic void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class ARefundTaskCmdImpl
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- The WebSphere Commerce specific exceptionpublic java.lang.Boolean getPermissionForRefund(java.lang.Long orderId, java.math.BigDecimal localAmount) throws EDPException, ECException
orderId
- The current order IDlocalAmount
- The amount to process in current refundEDPException
- In case of any Payment Rules exceptionECException
- In case of any ECException