public class DoDepositPMCmdImpl extends BusinessPolicyCommandImpl implements DoDepositPolicyCmd, Queryable
Parameters:
Parameter Name | Type | Descriptions |
order | OrderAccessBean | The Order Access Bean |
depositAmount | BigDecimal | The amount of the deposit |
errorViewName | String | Optional error view name passed in by the Caller. |
Behavior:
Default Error View Name:
ErrorCodes:
This command uses the following AccessBeans:
This command does not call other TaskCommand.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | PAYMENT_NUMBER
Deprecated.
|
Constructor and Description |
---|
DoDepositPMCmdImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void | convertAmountToStoreDefaultCurrency(java.lang.Long nOrderId)
Deprecated.
Converts the Deposit Amount in the currency of the order to the default currency of the Store.
|
protected java.lang.String | getBuyerLanguageId()
Deprecated.
Get the Language ID of the Buyer.
|
protected java.math.BigDecimal | getChargeAmount()
Deprecated.
Returns the Charge Amount.
|
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()
|
java.math.BigDecimal | getDepositAmount()
Deprecated.
Gets the depositAmount property of the command.
|
protected java.lang.String | getErrorViewName()
Deprecated.
Returns the name of the error view to use for reporting error.
|
protected OrderAccessBean | getOrder()
Deprecated.
Returns the OrderAccessBean representing the order whose payment is to be deposited.
|
protected java.lang.String | getStoreDefaultCurrency()
Deprecated.
Returns the default currency of the Store.
|
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.
|
java.util.Hashtable | query(java.lang.String queryString)
Deprecated.
The Cashier calls this method to construct a Hashtable of keywords and values resulted from processing the input query string against the Commerce Database.
|
void | reset()
Deprecated.
Resets the instance variables of the command.
|
protected void | setChargeAmount(java.math.BigDecimal n)
Deprecated.
Sets the Charge Amount.
|
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 | setDepositAmount(java.math.BigDecimal depositAmount)
Deprecated.
Sets the depositAmount property of the command.
|
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 the numeric currency code
|
void | setOrder(OrderAccessBean ab)
Deprecated.
Sets the order property of the command.
|
protected void | setPMDepositAmount(java.math.BigInteger depositAmount)
Deprecated.
Sets the deposit amount normalized for input to WebSphere Commerce Payments.
|
protected void | setStoreDefaultCurrency(java.lang.String s)
Deprecated.
Sets the Store Default Currency
|
protected void | setupNumericCurrencyCodeAndPMDepositAmount()
Deprecated.
This method retrieves the numeric currency code from the SETCURR Table and converts the deposit amount to a normalized form required for input to WebSphere Commerce Payments.
|
protected void | updateOrderPaymentMethod()
Deprecated.
Updates ORDPAYMTHD table with deposit info for the order.
|
public static final java.lang.String PAYMENT_NUMBER
protected void convertAmountToStoreDefaultCurrency(java.lang.Long nOrderId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected java.lang.String getBuyerLanguageId() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException
This method may return null if the memberId is not a UserId or an empty String if the user has no preferred language.
protected java.math.BigDecimal getChargeAmount()
The Charge Amount is the Deposit Amount converted to the default currency of the Store. If the default currency of the Store is the same as the currency of the order, then the Charge Amount is the same as the Deposit Amount.
protected java.lang.String getCurrencyExponent()
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.
public java.math.BigDecimal getDepositAmount()
protected java.lang.String getErrorViewName()
protected OrderAccessBean getOrder()
protected java.lang.String getStoreDefaultCurrency()
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public java.util.Hashtable query(java.lang.String queryString) throws CashierException
This method is defined by the com.ibm.etill.cashier.Queryable interface.
public void reset()
This is useful if the command instance is to be called multiple times with different command parameters.
protected void setChargeAmount(java.math.BigDecimal n)
The Charge Amount is the Deposit Amount converted to the default currency of the Store. If the default currency of the Store is the same as the currency of the order, then the Charge Amount is the same as the Deposit Amount.
protected void setCurrencyExponent(java.lang.String astrCurrencyExponent)
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.
public void setDepositAmount(java.math.BigDecimal depositAmount)
public void setErrorViewName(java.lang.String sEVN)
protected void setNumericCurrencyCode(java.lang.String astrCurrencyCode)
public void setOrder(OrderAccessBean ab)
protected void setPMDepositAmount(java.math.BigInteger depositAmount)
The normalized amount is the amount converted to the smallest denomination for the currency. For example, if the total amount is US $10.95, PMDepositAmount 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 depositAmount.
protected void setStoreDefaultCurrency(java.lang.String s)
protected void setupNumericCurrencyCodeAndPMDepositAmount() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
For example, if the amount is US $10.95, the normalized amount is 1095 in cents, which is the lowest denomination for this currency.
protected void updateOrderPaymentMethod() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException