Class PTopupBeanImpl

All Implemented Interfaces:
PTopupBean, PIACollectionBean, PControllerBean, Serializable, Remote, Unreferenced

public class PTopupBeanImpl extends PIAComponentCollectionBean implements PTopupBean
Controller class for topup related opertations
See Also:
  • Constructor Details

  • Method Details

    • getModelData

      public FList getModelData() throws RemoteException
      Returns the data of current account's billinfos and balance groups
      Specified by:
      getModelData in interface PTopupBean
      Returns:
      the data of current account's billinfos and balance groups
      Throws:
      RemoteException
    • validateVoucher

      public Object validateVoucher(PModelHandle payModel, PModelHandle accModel) throws RemoteException
      Validates voucher against the given voucher id and pin number.
      Specified by:
      validateVoucher in interface PTopupBean
      Parameters:
      payModel - voucher details
      accModel - current account model
      Returns:
      details of the voucher such as resources associated with it. If the voucher is not found returns null
      Throws:
      RemoteException
    • creditCardPayment

      public com.portal.app.util.CustomerValErrorData[] creditCardPayment(PModelHandle payModel, PModelHandle accModel, BillinfoNode billinfo, boolean allocateNow) throws RemoteException
      does credit card payment. calls PCM_OP_PYMT_TOPUP
      Specified by:
      creditCardPayment in interface PTopupBean
      Parameters:
      payModel - payinfo model containing the credit card detail
      accModel - current account model
      billinfo - billinfo which need to be impacted
      allocateNow - boolean indicating if topup need to be allocated immediately or it can be deferred
      Returns:
      error data if any else null
      Throws:
      RemoteException
    • validateCreditCardInfo

      public com.portal.app.util.CustomerValErrorData[] validateCreditCardInfo(PModelHandle payModel, PModelHandle accModel) throws RemoteException
      This matehod validates credit card info and throws coressponding exception if any to called method
      Specified by:
      validateCreditCardInfo in interface PTopupBean
      Parameters:
      payModel -
      accModel -
      Returns:
      Throws:
      RemoteException
    • voucherPayment

      public com.portal.app.util.CustomerError voucherPayment(PModelHandle voucherModel, PModelHandle accModel, BillinfoNode billinfo, boolean allocateNow) throws RemoteException
      does voucher topup. calls PCM_OP_PYMT_TOPUP
      Specified by:
      voucherPayment in interface PTopupBean
      Parameters:
      voucherModel - payinfo model containing the voucher detail
      accModel - current account model
      billinfo - billinfo which need to be impacted
      allocateNow - boolean indicating if topup need to be allocated immediately or it can be deferred
      payModel - payinfo model containing the voucher detail
      Returns:
      error data if any else null
      Throws:
      RemoteException
    • onFlilePayment

      public com.portal.app.util.CustomerValErrorData[] onFlilePayment(PModelHandle payModel, PModelHandle accModel, BillinfoNode billinfo, boolean allocateNow) throws RemoteException
      does onFilePayment. calls PCM_OP_PYMT_TOPUP
      Specified by:
      onFlilePayment in interface PTopupBean
      Parameters:
      payModel - payinfo model containing the payment method details
      accModel - current account model
      billinfo - billinfo which need to be impacted
      allocateNow - boolean indicating if topup need to be allocated immediately or it can be deferred
      Returns:
      error data if any else null
      Throws:
      RemoteException