com.ibm.commerce.payment.commands
Interface CheckPaymentAcceptPolicyCmd

All Superinterfaces:
BusinessPolicyCommand, ECCommand, TaskCommand
All Known Implementing Classes:
CheckPaymentAcceptCLCmdImpl, CheckPaymentAcceptTestCmdImpl, CheckPaymentAcceptPMCmdImpl

public interface CheckPaymentAcceptPolicyCmd
extends BusinessPolicyCommand

The CheckPaymentAcceptPolicyCmd Business Policy Command
This handles the policy specified payment approval check method
Please look at build-in implementation, CheckPaymentAcceptCLCmdImpl and CheckPaymentAcceptPMCmdImpl, for more detail


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
          The default implementation class.
static java.lang.String ERRTASK_NAME
          Name of the Error View for this command.
static java.lang.String NAME
           
 
Method Summary
 java.lang.String getReturnCode()
          Returns the String containing Return Code.
 void setApproveAmount(java.math.BigDecimal approveAmount)
          Sets the approveAmount property of the command.
 void setErrorViewName(java.lang.String sEVN)
          Optional error view name passed in by the Caller.
 void setOrder(OrderAccessBean abOrder)
          Sets the order property of the command.
 
Methods inherited from interface com.ibm.commerce.command.BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class.

ERRTASK_NAME

public static final java.lang.String ERRTASK_NAME
Name of the Error View for this command. The constant value of this field is "DoDepositErrorView".

NAME

public static final java.lang.String NAME
Method Detail

getReturnCode

public java.lang.String getReturnCode()
Returns the String containing Return Code. If the Payment System does not use Return Data then the byte Array will be null or of zero length.
Returns:
String
See Also:
#APPROVAL_YES, #APPROVAL_NO, #APPROVAL_WORKING

setApproveAmount

public void setApproveAmount(java.math.BigDecimal approveAmount)
Sets the approveAmount property of the command.
Parameters:
approveAmount - the amount to be approved.

setErrorViewName

public void setErrorViewName(java.lang.String sEVN)
Optional error view name passed in by the Caller.

setOrder

public void setOrder(OrderAccessBean abOrder)
Sets the order property of the command.
Parameters:
abOrder - the OrderAccessBean of the Order for which is going to be reapproved.