public class UsablePaymentTCListDataBean extends SmartDataBeanImpl implements com.ibm.commerce.payment.beans.UsablePaymentTCListInputDataBean, com.ibm.commerce.payment.beans.UsablePaymentTCListSmartDataBean, Delegator
PaymentTCInfo,
Serialized FormemptyString| Constructor and Description |
|---|
UsablePaymentTCListDataBean()
UsablePaymentTCListDataBean default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Protectable |
getDelegate()
Retrieves its delegate.
|
PaymentTCInfo[] |
getFilteredPaymentTCInfo()
Returns a filtered array of PaymentTCInfo bean representing payment terms and conditions that could be used
to pay for the specified Order.
|
java.lang.String |
getMessage()
Returns the message property of the Bean.
|
java.lang.Exception |
getPaymentSystemException()
Returns any Exception thrown by the Payment System during the activation of the
DataBean or null.
|
PaymentTCInfo[] |
getPaymentTCInfo()
Returns an array of PaymentTCInfo bean representing payment terms and conditions that could be used
to pay for the specified Order.
|
int |
getPrimaryRC()
Returns the primary return code as returned from the WebSphere Commerce Payments QueryAccounts
command.
|
int |
getSecondaryRC()
Returns the secondary return code as returned from the WebSphere Commerce Payments QueryAccounts
command.
|
void |
populate()
Populate the Bean Properties.
|
void |
setCompatibleMode(java.lang.String compatibleMode)
Sets the compatible mode of the payment policy.
|
void |
setOrderId(java.lang.Long aOrderId)
Sets the orderId property of the Bean.
|
void |
setReturnAllUsableTC(boolean returnAllUsableTC)
This method sets the flag that indicating whether to return all the usable payment policies when there are multiple payment policies with the same name.
|
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContextgetRequestProperties, setRequestPropertiesequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommandContext, setCommandContextgetRequestProperties, setRequestPropertiespublic UsablePaymentTCListDataBean()
public Protectable getDelegate() throws java.lang.Exception
For the UsablePaymentTCListDataBean, the getDelegate() method returns the OrderDataBean specified by the order ID. The OrderDataBean object is the Protectable object whose access control policies will indirectly control the access control for this object
getDelegate in interface Delegatorjava.lang.Exceptionpublic java.lang.String getMessage()
This is mainly for diagnostics purposes.
getMessage in interface com.ibm.commerce.payment.beans.UsablePaymentTCListSmartDataBeanpublic java.lang.Exception getPaymentSystemException()
This is useful for diagnostics or for determining whether to display a user-friendly message to the customer. This is used when an empty list of PaymentTCInfo bean is returned by the getPaymentTCInfo() method.
One possible Exception returned is the com.ibm.etill.framework.clientapi.PaymentServerCommunicationException which indicates a failure to communicate with WebSphere Commerce Payments.
getPaymentSystemException in interface com.ibm.commerce.payment.beans.UsablePaymentTCListSmartDataBeanpublic PaymentTCInfo[] getPaymentTCInfo()
getPaymentTCInfo in interface com.ibm.commerce.payment.beans.UsablePaymentTCListSmartDataBeanPaymentTCInfopublic PaymentTCInfo[] getFilteredPaymentTCInfo()
PaymentTCInfopublic int getPrimaryRC()
This is mainly for diagnostics purposes.
getPrimaryRC in interface com.ibm.commerce.payment.beans.UsablePaymentTCListSmartDataBeanpublic int getSecondaryRC()
This is mainly for diagnostics purposes.
getSecondaryRC in interface com.ibm.commerce.payment.beans.UsablePaymentTCListSmartDataBeanpublic void populate()
throws java.lang.Exception
populate in interface SmartDataBeanpopulate in class SmartDataBeanImplException.java.lang.Exception - This method should never be thrown because there is no data retrieved to populate the data bean.public void setOrderId(java.lang.Long aOrderId)
setOrderId in interface com.ibm.commerce.payment.beans.UsablePaymentTCListInputDataBeanaOrderId - the ID of the customer order.public void setCompatibleMode(java.lang.String compatibleMode)
compatibleMode - the ID of the customer order.public void setReturnAllUsableTC(boolean returnAllUsableTC)
setReturnAllUsableTC in interface com.ibm.commerce.payment.beans.UsablePaymentTCListInputDataBeanreturnAllUsableTC -