Package com.portal.app.ccare.comp
Class PTopupBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PTopupBeanImpl
- All Implemented Interfaces:
PTopupBean,PIACollectionBean,PControllerBean,Serializable,Remote,Unreferenced
Controller class for topup related opertations
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.portal.app.util.CustomerValErrorData[]creditCardPayment(PModelHandle payModel, PModelHandle accModel, BillinfoNode billinfo, boolean allocateNow) does credit card payment.Returns the data of current account's billinfos and balance groupscom.portal.app.util.CustomerValErrorData[]onFlilePayment(PModelHandle payModel, PModelHandle accModel, BillinfoNode billinfo, boolean allocateNow) does onFilePayment.com.portal.app.util.CustomerValErrorData[]validateCreditCardInfo(PModelHandle payModel, PModelHandle accModel) This matehod validates credit card info and throws coressponding exception if any to called methodvalidateVoucher(PModelHandle payModel, PModelHandle accModel) Validates voucher against the given voucher id and pin number.com.portal.app.util.CustomerErrorvoucherPayment(PModelHandle voucherModel, PModelHandle accModel, BillinfoNode billinfo, boolean allocateNow) does voucher topup.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChild, updateMethods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferencedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.portal.bas.PControllerBean
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
-
Constructor Details
-
PTopupBeanImpl
Constructor for PTopupBeanImpl- Throws:
RemoteException
-
-
Method Details
-
getModelData
Returns the data of current account's billinfos and balance groups- Specified by:
getModelDatain interfacePTopupBean- Returns:
- the data of current account's billinfos and balance groups
- Throws:
RemoteException
-
validateVoucher
Validates voucher against the given voucher id and pin number.- Specified by:
validateVoucherin interfacePTopupBean- Parameters:
payModel- voucher detailsaccModel- 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:
creditCardPaymentin interfacePTopupBean- Parameters:
payModel- payinfo model containing the credit card detailaccModel- current account modelbillinfo- billinfo which need to be impactedallocateNow- 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:
validateCreditCardInfoin interfacePTopupBean- 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:
voucherPaymentin interfacePTopupBean- Parameters:
voucherModel- payinfo model containing the voucher detailaccModel- current account modelbillinfo- billinfo which need to be impactedallocateNow- boolean indicating if topup need to be allocated immediately or it can be deferredpayModel- 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:
onFlilePaymentin interfacePTopupBean- Parameters:
payModel- payinfo model containing the payment method detailsaccModel- current account modelbillinfo- billinfo which need to be impactedallocateNow- boolean indicating if topup need to be allocated immediately or it can be deferred- Returns:
- error data if any else null
- Throws:
RemoteException
-