com.ibm.commerce.payment.commands
Interface CheckPaymentAcceptPolicyCmd

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

public interface CheckPaymentAcceptPolicyCmd
extends BusinessPolicyCommand

The CheckPaymentAcceptPolicyCmd Business Policy Command

This handles the payment approval check specific to the payment method used in the original approval.

This command returns one of three possible answers:

See Also:
CheckPaymentAcceptCLCmdImpl, CheckPaymentAcceptPMCmdImpl

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
static java.lang.String defaultCommandClassName
          The default implementation of this command.
static java.lang.String ERRTASK_NAME
          Name of the default error view for this command.
static java.lang.String NAME
          The name of this command.
 
Method Summary
 java.lang.String getReturnCode()
          Returns a code indicating the result of the check.
 void setApproveAmount(java.math.BigDecimal approveAmount)
          Sets the approveAmount property of the command.
 void setErrorViewName(java.lang.String sEVN)
          Sets the error view to be used to report error.
 void setOrder( OrderAccessBean abOrder)
          Sets the order property of the command.
 
Methods inherited from interface com.ibm.commerce.command. BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
The name of this command.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation of this command.
See Also:
Constant Field Values

ERRTASK_NAME

public static final java.lang.String ERRTASK_NAME
Name of the default error view for this command. The constant value of this field is "CheckPaymentAcceptErrorView".
See Also:
Constant Field Values
Method Detail

getReturnCode

public java.lang.String getReturnCode()
Returns a code indicating the result of the check.

Possible return codes are:

Returns:
the String return code

setApproveAmount

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

setErrorViewName

public void setErrorViewName(java.lang.String sEVN)
Sets the error view to be used to report error. This overrides the default error view of the command.
Parameters:
sEVN - the Error View name
See Also:
ERRTASK_NAME

setOrder

public void setOrder(OrderAccessBean abOrder)
Sets the order property of the command.
Parameters:
abOrder - the OrderAccessBean representing the order for which the approved amount is to be checked