The CheckPaymentAcceptCmd
Task Command
This Task Command is normally called during ReleaseToFulfillment. It checks if the previously approved payment for an order is still valid and if the Approved Amount is the same as the Order Amount.
The 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.CheckPaymentAcceptCmdImpl
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 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 |
setOrder(
OrderAccessBean abOrder) Sets the order property of the command. |
void |
setReleaseToFulfillment(java.lang.Boolean bRelease)
Sets the bRelease property of the command. |
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 setOrder(OrderAccessBean abOrder)
abOrder
- the OrderAccessBean representing the order for which
the approved amount is to be checkedpublic void setReleaseToFulfillment(java.lang.Boolean bRelease)
bRelease
- true to indicate the checking was requested as part
of release to fulfillment