public class StoreAndValidatePaymentCmdImpl extends AEDPStoreTaskCmdImpl implements StoreAndValidatePaymentCmd
commandContext | The command context. |
orderId | A Long that indicates the id of the current order. |
orderAmount | A BigDecimal that indicates the total amount of the current order. |
currency | A String that specifies the currency associated with the refund currently being processed. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM Copyright notice field.
|
Constructor and Description |
---|
StoreAndValidatePaymentCmdImpl() |
Modifier and Type | Method and Description |
---|---|
OrderAccessBean | getOrderAccessBean()
This method gets a reference to the order access bean.
|
java.lang.String | getPaymentMethodId()
This method gets the payment method ID to used for the payment instruction of the order.
|
java.math.BigDecimal | getWCOrderAmount()
This method returns the total order amount.
|
java.util.ArrayList | getWCPaymentInstructions()
This method gets the list of payment instructions to be created in the payment subcomponent.
|
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()
This method executes the business logic of this command implementation.
|
void | reset()
This method resets the command fields.
|
void | setPaymentAttributes(TypedProperty requestProperties)
This method sets the protocol data when creating a single payment instruction.
|
void | setPaymentMethodId(java.lang.String nPayMthdId)
This method sets the payment method ID to be used for the payment instruction of the order.
|
public static final java.lang.String COPYRIGHT
public OrderAccessBean getOrderAccessBean()
public java.math.BigDecimal getWCOrderAmount() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setPaymentAttributes(TypedProperty requestProperties)
public java.util.ArrayList getWCPaymentInstructions() throws javax.naming.NamingException, java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, ParameterNotFoundException
public void setPaymentMethodId(java.lang.String nPayMthdId)
This method sets the payment method ID to be used for the payment instruction of the order.
It is to be used when there is only a single payment method for the entire order.
public java.lang.String getPaymentMethodId()
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public void reset()
This method resets the command fields.
After this method is invoked, and proper attributes are set, the command can be executed again.