DoPaymentActionsPolicyCmdImplpublic class DoPaymentCLCmdImpl extends BusinessPolicyCommandImpl implements DoPaymentPolicyCmd
DoPaymentPolicy business policy
command implementation class is the default implementation class
for authorizing payment that specify the "Credit" Payment Policy.
| Parameter Name | Type | Descriptions |
| abOrder | OrderAccessBean | The Order ID of the Order |
| bdTotalAmount | BigDecimal | The Total Amount to be authorized |
| nPolicyId | Long | The ID of the Payment Policy to use for the Purchase. |
| nBuyerPOId | Long | Optional buyerPOId |
| errorViewName | String | Optional error view name passed in by the Caller. |
PaymentConstants.ERR_CODE_CREDIT_LINE_NOT_AVAILABLE (1981)
- Credit Line not available or no longer active.
CC_VALID_Y_RANGE, defaultCommandClassName, ERRTASK_NAME, MESSAGE_FOR_BUYER, NAME, NVP_field, NVP_FIELD, PM_MESSAGE_FOR_BUYER, PM_MESSAGE_FOR_MERCHANT, PM_PRIMARY_RC, PM_SECONDARY_RC, WCSHOSTNAME, WCSWEBSERVERPORT, WEBPATH| Constructor and Description |
|---|
DoPaymentCLCmdImpl()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Deprecated.
Returns the Content Type (or MIME type) of the return data, or
null if
the type is not known. |
java.lang.String |
getOrderState()
Deprecated.
Returns the single character String value that the called command
wants the Calling command to use to set the Status of the order.
|
byte[] |
getReturnData()
Deprecated.
Returns the byte Array containing Return Data from the Payment System.
|
boolean |
isReadyToCallExecute()
Deprecated.
This method is called by the Command Framework to check if all basic mandatory
parameters have been set for this command.
|
void |
performExecute()
Deprecated.
Performs the main business logic of the command.
|
void |
reset()
Deprecated.
Resets the instance variables of the command.
|
void |
setAccount(AccountAccessBean abAccount)
Deprecated.
Sets the account property of the command.
|
void |
setBuyerPOId(java.lang.Long n)
Deprecated.
Sets the optional buyerPOId if the customer (buyer) had specified a buyer purchase order number.
|
void |
setErrorViewName(java.lang.String sEVN)
Deprecated.
Sets the error view to be used to report error.
|
void |
setOrder(OrderAccessBean ab)
Deprecated.
Sets the order property of the command.
|
void |
setOrderState(java.lang.String s)
Deprecated.
Sets the order state to be returned to the caller.
|
void |
setPaymentAttributes(TypedProperty paymentAttributes)
Deprecated.
Sets the paymentAttributes property of the command.
|
void |
setTotalAmount(java.math.BigDecimal totalAmount)
Deprecated.
Sets the totalAmount property of the command.
|
getPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic java.lang.String getContentType()
null if
the type is not known.getContentType in interface DoPaymentPolicyCmdString containing the name of the MIME type of the return data,
or null if the type is not known. Since this command implementation does not have
return data, the method returns null.public java.lang.String getOrderState()
getOrderState in interface DoPaymentPolicyCmdpublic byte[] getReturnData()
getReturnData in interface DoPaymentPolicyCmdpublic boolean isReadyToCallExecute()
isReadyToCallExecute in interface com.ibm.websphere.command.CommandisReadyToCallExecute in class AbstractECTargetableCommandpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
This is useful if the command instance is to be called multiple times with different command parameters.
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setAccount(AccountAccessBean abAccount)
setAccount in interface DoPaymentPolicyCmdabAccount - the AccountAccessBean representing the account the order is associated withpublic void setBuyerPOId(java.lang.Long n)
setBuyerPOId in interface DoPaymentPolicyCmdn - the internal ID of the BuyerPO record representing the purchase order number specifiedpublic void setErrorViewName(java.lang.String sEVN)
setErrorViewName in interface DoPaymentPolicyCmdsEVN - the Error View nameDoPaymentPolicyCmd.ERRTASK_NAMEpublic void setOrder(OrderAccessBean ab)
setOrder in interface DoPaymentPolicyCmdab - the OrderAccessBean representing the order for which payment
is to be processedpublic void setOrderState(java.lang.String s)
s - a String representing the preferred order statepublic void setPaymentAttributes(TypedProperty paymentAttributes)
setPaymentAttributes in interface DoPaymentPolicyCmdpaymentAttributes - the TypedProperty object that contains all
the command parameters that are to be passed to this command.public void setTotalAmount(java.math.BigDecimal totalAmount)
setTotalAmount in interface DoPaymentPolicyCmdtotalAmount - the total price of the Order for which payment
is to be processed.