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:
PaymentConstants.APPROVAL_YES
- The authorization is still
valid and the Approved Amount is the same as the Order Amount.PaymentConstants.APPROVAL_NO
- A re-authorization was
attempted but was declined.PaymentConstants.APPROVAL_WORKING
- Working on it, check back
later.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
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
public static final java.lang.String ERRTASK_NAME
Method Detail |
---|
public java.lang.String getReturnCode()
Possible return codes are:
PaymentConstants.APPROVAL_YES
- The authorization is still
valid and the Approved Amount is the same as the Order Amount.PaymentConstants.APPROVAL_NO
- A re-authorization was
attempted but was declined.PaymentConstants.APPROVAL_WORKING
- Working on it, check back
later.public void setApproveAmount(java.math.BigDecimal approveAmount)
approveAmount
- the approved amount to be
checkedpublic void setErrorViewName(java.lang.String sEVN)
sEVN
- the Error View nameERRTASK_NAME
public void setOrder(OrderAccessBean abOrder)
abOrder
- the OrderAccessBean representing the order for which
the approved amount is to be checked