com.ibm.commerce.payments.plugin.samples

Class QueryablePluginAdapterBean

  • All Implemented Interfaces:
    java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean


    public class QueryablePluginAdapterBean
    extends PluginAdapterBean
    This is the abstract base class for plug-in bean implementations supporting queries.
    See Also:
    Serialized Form
    • Constructor Detail

      • QueryablePluginAdapterBean

        public QueryablePluginAdapterBean()
    • Method Detail

      • getAvailableBalance

        public java.math.BigDecimal getAvailableBalance(PluginContext pluginContext,
                                                        PaymentInstruction paymentInstruction)
                                                 throws PluginException
        This method returns the available balance. This function is not supported now, it will throw FunctionNotSupportedException if called.
        Parameters:
        pluginContext -
        paymentInstruction -
        Returns:
        BigDecimal
        Throws:
        PluginException
      • getCredit

        public Credit getCredit(PluginContext pluginContext,
                                Credit credit)
                         throws PluginException
        This method returns the credit. This function is not supported now, it will throw FunctionNotSupportedException if called.
        Parameters:
        pluginContext -
        credit -
        Returns:
        Credit
        Throws:
        PluginException
      • getPayment

        public Payment getPayment(PluginContext pluginContext,
                                  Payment payment)
                           throws PluginException
        This method returns the payment. This function is not supported now, it will throw FunctionNotSupportedException if called.
        Parameters:
        pluginContext -
        payment -
        Returns:
        Payment
        Throws:
        PluginException