PaymentConstants.APPROVAL_WORKING
- Working on it, check back later.
Behavior:
- Calls
CheckAccountPayment
Task command to see
if the payment previously authorized by the external
Accounting System is still valid.
- if bReleaseToFulfillment is set to true,
calls
UpdateTASpending
Task command.
then calls UpdateTASpending
Task command.
- if bReleaseToFulfillment is set to false,
calls
CheckTASpendingLimit
Task command
then calls CheckPOSpendingLimit
Task command.
- Finally, calls the
CheckPaymentAcceptPolicy
command for the
Payment Policy used for the Purchase. (The ID of the Payment Policy is stored in the ORDPAYMTHD Table).
- On return from the Business Policy command, if the policy command returns
PaymentConstants.APPROVAL_NO
or if the command receives one of these Error Codes
(ERR_CODE_CURRENCY_CONVERT_FAIL,
ERR_CODE_PURCHASE_AMOUNT_EXCEED_LIMIT_OF_TA,
ERR_CODE_PURCHASE_AMOUNT_EXCEED_LIMIT_OF_LPO,
ERR_CODE_INVALID_PO_INDIVIDUAL_PO_NOT_ALLOWED,
ERR_CODE_INVALID_PO_INDIVIDUAL_PO_NOT_UNIQUE,
ERR_CODE_INVALID_PO_PO_NOT_ACTIVE)
from any of the Task Commands above, the DoCancel
will be called to
cancel the order.
Error View Name:
- CheckPaymentAcceptErrorView
ErrorCodes:
- (Include error codes from the other subordinate commands)
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
CheckPaymentAcceptCmdImpl
public CheckPaymentAcceptCmdImpl()
getApproveAmount
protected java.math.BigDecimal getApproveAmount()
- Retrieve Approve Amount
getOrder
protected OrderAccessBean getOrder()
getReleaseToFulfillment
protected java.lang.Boolean getReleaseToFulfillment()
- Retrieve Release To Fulfillment
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.
- Specified by:
getReturnCode
in interface CheckPaymentAcceptCmd
- Returns:
- String
- See Also:
#APPROVAL_YES
,
#APPROVAL_NO
,
#APPROVAL_WORKING
performExecute
public void performExecute()
throws ECException
- Performs the main business logic of the command.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
reset
public void reset()
- Resets the instance variables of the command.
The reset() method will reset all instance variables.
If the command includes any output values that are accessible via
getters, then make sure those values are no longer needed before calling
this method to reset the instance variables of the command.
This is useful if the command instance is to be called multiple times with
different command parameters.
- Overrides:
reset
in class AbstractECCommand
setApproveAmount
public void setApproveAmount(java.math.BigDecimal approveAmount)
- Description copied from interface:
CheckPaymentAcceptCmd
- Sets the approveAmount property of the command.
- Specified by:
setApproveAmount
in interface CheckPaymentAcceptCmd
- Following copied from interface:
com.ibm.commerce.payment.commands.CheckPaymentAcceptCmd
- Parameters:
approveAmount
- the amount to be approved.
setOrder
public void setOrder(OrderAccessBean ab)
- The order to be ReApproved.
- Specified by:
setOrder
in interface CheckPaymentAcceptCmd
- Following copied from interface:
com.ibm.commerce.payment.commands.CheckPaymentAcceptCmd
- Parameters:
abOrder
- the OrderAccessBean of the Order for which
is going to be reapproved.
setReleaseToFulfillment
public void setReleaseToFulfillment(java.lang.Boolean b)
- Description copied from interface:
CheckPaymentAcceptCmd
- Sets the bRelease property of the command.
- Specified by:
setReleaseToFulfillment
in interface CheckPaymentAcceptCmd
- Following copied from interface:
com.ibm.commerce.payment.commands.CheckPaymentAcceptCmd
- Parameters:
bRelease
- set to true to indicate the order is ready to release to fulfillment.
setReturnCode
public void setReturnCode(java.lang.String s)