|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.command.BusinessPolicyCommandImpl | +--com.ibm.commerce.payment.commands.DoPaymentCLCmdImpl
This DoPaymentPolicy
business policy
command implementation class is the default implementation class
for authorizing payment that specify the "Credit" Payment Policy.
Parameter:
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.
Fields inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl |
policyId, requestProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.payment.commands.DoPaymentPolicyCmd |
CC_VALID_Y_RANGE, COPYRIGHT, defaultCommandClassName, ERRTASK_NAME, MESSAGE_FOR_BUYER, NAME, NVP_FIELD, PM_MESSAGE_FOR_BUYER, PM_MESSAGE_FOR_MERCHANT, PM_PRIMARY_RC, PM_SECONDARY_RC, WCSHOSTNAME, WCSWEBSERVERPORT, WEBPATH |
Constructor Summary | |
DoPaymentCLCmdImpl()
|
Method Summary | |
protected AccountAccessBean |
getAccount()
This returns the Account Access Bean. |
protected java.lang.Long |
getAccountId()
This returns the Account ID. |
protected java.lang.Long |
getBuyerPOId()
This returns the Buyer Purchase Order ID. |
java.lang.String |
getContentType()
Returns the Content Type (or MIME type) of the return data, or null if
the type is not known. |
protected java.lang.Long |
getCreditLineId()
|
protected java.lang.String |
getErrorViewName()
Retrieve the error view name passed in by the Caller. |
protected OrderAccessBean |
getOrder()
This returns the Order Access Bean. |
java.lang.String |
getOrderState()
Returns the single character String value that the called command wants the Calling command to use to set the Status of the order. |
protected TypedProperty |
getPaymentAttributes()
|
byte[] |
getReturnData()
Returns the byte Array containing Return Data from the Payment System. |
protected java.math.BigDecimal |
getTotalAmount()
|
boolean |
isReadyToCallExecute()
This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command. |
void |
performExecute()
Performs the main business logic of the command. |
void |
reset()
Resets the instance variables of the command. |
void |
setAccount(AccountAccessBean abAccount)
Sets the abAccount property of the command. |
void |
setBuyerPOId(java.lang.Long n)
Set Optional buyerPOId. |
protected void |
setCreditLineId(java.lang.Long n)
|
void |
setErrorViewName(java.lang.String sEVN)
Optional error view name passed in by the Caller. |
void |
setOrder(OrderAccessBean ab)
The order to be ReApproved. |
void |
setOrderState(java.lang.String s)
|
void |
setPaymentAttributes(TypedProperty paymentAttributes)
Sets the paymentAttributes property of the command. |
void |
setTotalAmount(java.math.BigDecimal totalAmount)
Sets the totalAmount property of the command. |
protected void |
updateOrderPaymentMethod()
This is called by performExecute to update ORDPAYMTHD table with refund info |
Methods inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl |
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, 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.BusinessPolicyCommand |
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties |
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 |
Constructor Detail |
public DoPaymentCLCmdImpl()
Method Detail |
protected AccountAccessBean getAccount()
protected java.lang.Long getAccountId() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException
protected java.lang.Long getBuyerPOId()
public java.lang.String getContentType()
null
if
the type is not known.getContentType
in interface DoPaymentPolicyCmd
String
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
.protected java.lang.Long getCreditLineId()
protected java.lang.String getErrorViewName()
protected OrderAccessBean getOrder()
public java.lang.String getOrderState()
getOrderState
in interface DoPaymentPolicyCmd
protected TypedProperty getPaymentAttributes()
public byte[] getReturnData()
getReturnData
in interface DoPaymentPolicyCmd
protected java.math.BigDecimal getTotalAmount()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class AbstractECCommand
com.ibm.commerce.command.AbstractECCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void reset()
This is useful if the command instance is to be called multiple times with different command parameters.
reset
in class AbstractECCommand
public void setAccount(AccountAccessBean abAccount)
DoPaymentPolicyCmd
setAccount
in interface DoPaymentPolicyCmd
com.ibm.commerce.payment.commands.DoPaymentPolicyCmd
abAccount
- the AccountAccessBean of the Order is associated withpublic void setBuyerPOId(java.lang.Long n)
setBuyerPOId
in interface DoPaymentPolicyCmd
com.ibm.commerce.payment.commands.DoPaymentPolicyCmd
nBuyerPOId
- the Buyer Purchase Order Reference Number of the Order is associated withprotected void setCreditLineId(java.lang.Long n)
public void setErrorViewName(java.lang.String sEVN)
setErrorViewName
in interface DoPaymentPolicyCmd
public void setOrder(OrderAccessBean ab)
setOrder
in interface DoPaymentPolicyCmd
com.ibm.commerce.payment.commands.DoPaymentPolicyCmd
abOrder
- the OrderAccessBean of the Order for which payment
is to be processed.public void setOrderState(java.lang.String s)
public void setPaymentAttributes(TypedProperty paymentAttributes)
setPaymentAttributes
in interface DoPaymentPolicyCmd
requestProperties
- the requestProperties object that contains all
the command parameters are to be passed to this command.public void setTotalAmount(java.math.BigDecimal totalAmount)
setTotalAmount
in interface DoPaymentPolicyCmd
totalAmount
- the total price of the Order for which payment
is to be processed.protected void updateOrderPaymentMethod() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |