public class CheckPaymentAcceptPMCmdImpl extends BusinessPolicyCommandImpl implements CheckPaymentAcceptPolicyCmd, java.lang.Runnable
Parameters:
Parameter Name | Type | Descriptions |
abOrder | OrderAccessBean | The Order Access Bean |
dApproveAmount | BigDecimal | The amount should have been or to be approved |
errorViewName | String | Optional error view name passed in by the Caller. |
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 same as the Order Amount.
(For WebSphere Commerce Payments, a previously approved payment is no longer valid if it has expired.)
The command returns one of three possible answers:
Default Error View Name:
ErrorCodes:
This command uses the following AccessBeans:
This command does not call other TaskCommand.
Constructor and Description |
---|
CheckPaymentAcceptPMCmdImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal | getApproveAmount()
Deprecated.
Returns the approveAmount property of the command.
|
protected java.lang.String | getCurrencyExponent()
Deprecated.
Returns the currency exponent.
|
protected java.lang.Double | getCurrencyFactor()
Deprecated.
instead of using the currency factor, use the currency exponent methods to shift the decimal point getCurrencyExponent()
|
protected java.lang.String | getErrorViewName()
Deprecated.
Returns the name of the error view to use for reporting error.
|
protected java.lang.String | getNumericCountryCode(java.lang.String productVendor, java.lang.String country)
Deprecated.
Returns the numeric country/region code for the specified country/region as specified by the product/vendor in the Country Code Table (COUNTCODE).
|
protected java.lang.String | getNumericCurrencyCode()
Deprecated.
Gets Numeric Currency Code.
|
protected OrderAccessBean | getOrder()
Deprecated.
Returns the OrderAccessBean representing the order for which the approved amount is to be checked.
|
java.math.BigInteger | getOrderAmountInPMFormat()
Deprecated.
Returns the order total amount in PM format.
|
protected java.math.BigInteger | getPMApproveAmount()
Deprecated.
Gets the approve amount normalized for input to WebSphere Commerce Payments.
|
java.lang.String | getReturnCode()
Deprecated.
Returns the String return code indicating the payment approval status of the specified order.
|
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 | run()
Deprecated.
Requests authorization for expired payment or previously unapproved portion of payment if the approved amount is less than the total order amount.
|
void | setApproveAmount(java.math.BigDecimal approveAmount)
Deprecated.
Sets the approveAmount property of the command.
|
protected void | setCurrencyExponent(java.lang.String astrCurrencyExponent)
Deprecated.
Sets Currency Exponent.
|
protected void | setCurrencyFactor(java.lang.Double d)
Deprecated.
instead of using the currency factor, use the currency exponent methods to shift the decimal point setCurrencyExponent(String)
|
void | setErrorViewName(java.lang.String sEVN)
Deprecated.
Sets the error view to be used to report error.
|
protected void | setNumericCurrencyCode(java.lang.String astrCurrencyCode)
Deprecated.
Sets Numeric Currency Code.
|
void | setOrder(OrderAccessBean ab)
Deprecated.
Sets the order property of the command.
|
void | setOrderAmountInPMFormat(java.math.BigInteger orderAmountInPMFormat)
Deprecated.
Sets the order total amount in PM format.
|
protected void | setPMApproveAmount(java.math.BigInteger approveAmount)
Deprecated.
Sets the approve amount normalized for input to WebSphere Commerce Payments.
|
protected void | setupNumericCurrencyCodeAndPMApproveAmount()
Deprecated.
This method retrieves the numeric currency code from the SETCURR Table and converts the approve amount to a normalized form required for input to WebSphere Commerce Payments.
|
public java.math.BigDecimal getApproveAmount()
protected java.lang.String getCurrencyExponent()
protected java.lang.String getErrorViewName()
protected OrderAccessBean getOrder()
public java.lang.String getReturnCode()
Possible return codes are:
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public void reset()
This is useful if the command instance is to be called multiple times with different command parameters.
public void run()
public void setApproveAmount(java.math.BigDecimal approveAmount)
protected void setCurrencyExponent(java.lang.String astrCurrencyExponent)
public void setErrorViewName(java.lang.String sEVN)
protected void setNumericCurrencyCode(java.lang.String astrCurrencyCode)
protected java.lang.String getNumericCurrencyCode()
public void setOrder(OrderAccessBean ab)
protected void setPMApproveAmount(java.math.BigInteger approveAmount)
The normalized amount is the amount converted to the smallest denomination for the currency. For example, if the approve amount is US $10.95, PMApproveAmount is 1095 in cents, which is the lowest denomination for this currency. If there is no smaller denomination other than the main currency unit for the currency, the normalized amount is the same as the approveAmount.
protected java.math.BigInteger getPMApproveAmount()
The normalized amount is the amount converted to the smallest denomination for the currency. For example, if the approve amount is US $10.95, PMApproveAmount is 1095 in cents, which is the lowest denomination for this currency. If there is no smaller denomination other than the main currency unit for the currency, the normalized amount is the same as the approveAmount.
protected void setupNumericCurrencyCodeAndPMApproveAmount() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected java.lang.String getNumericCountryCode(java.lang.String productVendor, java.lang.String country) throws ECException
public java.math.BigInteger getOrderAmountInPMFormat()
public void setOrderAmountInPMFormat(java.math.BigInteger orderAmountInPMFormat)
protected void setCurrencyFactor(java.lang.Double d)
Currency factor is the multiplication factor that could be used to convert a currency amount to its lowest denomination. For example, the currency factor for US Dollar is 100. To convert US $5.00 to cents, multiply the currency amount by the currency factor of 100. You get 500 cents.
protected java.lang.Double getCurrencyFactor()
Currency factor is the multiplication factor that could be used to convert a currency amount to its lowest denomination. For example, the currency factor for US Dollar is 100. To convert US $5.00 to cents, multiply the currency amount by the currency factor of 100. You get 500 cents.