portal.paymentadjustment
Class paBean

java.lang.Object
  |
  +--portal.paymentadjustment.paBean

public class paBean
extends java.lang.Object
implements portal.paymentadjustment.PaymentAdjustment


Constructor Summary
paBean()
           
 
Method Summary
 java.lang.String cancelTransaction(java.lang.String _pTransId, java.lang.String _pTransType, java.lang.String _pOperatorId)
          Makes a transaction to cancel already made transaction.
 java.util.Vector getAccountActivities(java.lang.String[] accountId, java.lang.String transType, java.lang.String startDate, java.lang.String endDate)
          gets the Activities for given account(s)
 java.util.Vector getAccountActivitiesRange(java.lang.String startAccId, java.lang.String endAccId, java.lang.String transType, java.lang.String startDate, java.lang.String endDate)
          This returns the Activities range from Transaction table for a range of Accounts
 java.util.Vector getAccountAdjustments(java.lang.String[] accountId, java.lang.String startDate, java.lang.String endDate)
          This returns all non-cancelled adjustments for a given Account and a date range.
 java.util.Vector getAccountAdjustmentsRange(java.lang.String startAccId, java.lang.String endAccId, java.lang.String startDate, java.lang.String endDate)
          This returns all non-cancelled adjustments for a given Account range and a date range.
 java.util.Vector getAccountReceipts(java.lang.String[] accountId, java.lang.String startDate, java.lang.String endDate)
          Method: Vector getAccountReceipts HH Purpose: This retuns all receipts of non-cancelled payments for a given Account and a date range.
 java.util.Vector getAccountReceiptsRange(java.lang.String startAccId, java.lang.String endAccId, java.lang.String startDate, java.lang.String endDate)
          This returns the non-cancelled payment activities range from Transaction table for a range of Accounts
 java.util.Vector getBalance(java.lang.String[] accountId)
          This returns the balance amount for the given account(s)
 java.util.Vector getBalanceRange(java.lang.String startAccId, java.lang.String endAccId)
          This returns the details of billing_balance table for a range of accounts
 java.util.Vector getIspvnActivities(java.lang.String[] ispvnId, java.lang.String transType, java.lang.String startDate, java.lang.String endDate)
          Gets activities of given Isp(s)
 java.util.Vector getIspvnReceipts(java.lang.String[] _pIspvnId, java.lang.String _pStartDate, java.lang.String _pEndDate)
          This returns all receipts of non-cancelled payments
 java.util.Vector getPaActivities(java.lang.String[] accountId, java.lang.String startDate, java.lang.String endDate)
          This returns all non-cancelled payments and adjustments
 java.util.Vector getPaActivitiesRange(java.lang.String startAccId, java.lang.String endAccId, java.lang.String startDate, java.lang.String endDate)
          This returns all non-cancelled payments and adjustments for a given Account and date range
 portal.base.BillingTransaction getTransactionDetails(java.lang.String _pTransId)
          Gets Transaction details including the balance of the account
 java.lang.String makeAdjustment(portal.base.BillingTransaction _pTransObj)
          Makes a debit or credit adjustment
 java.lang.String makePayment(portal.base.BillingTransaction _pTransObj)
          Makes the payment against an invoice/order
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

paBean

public paBean()
Method Detail

makePayment

public java.lang.String makePayment(portal.base.BillingTransaction _pTransObj)
Makes the payment against an invoice/order
Specified by:
makePayment in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
The - transaction object with all necessary values set.
Returns:
Id will be returned if success or 0 will be returned.

makeAdjustment

public java.lang.String makeAdjustment(portal.base.BillingTransaction _pTransObj)
Makes a debit or credit adjustment
Specified by:
makeAdjustment in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
The - transaction object with all necessary values set.
Returns:
Id will be returned if success or 0 will be returned.

cancelTransaction

public java.lang.String cancelTransaction(java.lang.String _pTransId,
                                          java.lang.String _pTransType,
                                          java.lang.String _pOperatorId)
Makes a transaction to cancel already made transaction.
Specified by:
cancelTransaction in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
the - Transaction Id of the previous transaction, Transaction Type like CINV,CADJ and Operator Id.
Returns:
Id will be returned if success or 0 will be returned.

getAccountActivities

public java.util.Vector getAccountActivities(java.lang.String[] accountId,
                                             java.lang.String transType,
                                             java.lang.String startDate,
                                             java.lang.String endDate)
gets the Activities for given account(s)
Specified by:
getAccountActivities in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
the - Transaction Id of the previous transaction, Transaction Type like CINV,CADJ and Operator Id.
Returns:
Vector having activity details

getIspvnActivities

public java.util.Vector getIspvnActivities(java.lang.String[] ispvnId,
                                           java.lang.String transType,
                                           java.lang.String startDate,
                                           java.lang.String endDate)
Gets activities of given Isp(s)
Specified by:
getIspvnActivities in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
List - of Isp(s), Transaction type, Daterange specified by Start and End date.
Returns:
Vector containing the information about Activities

getTransactionDetails

public portal.base.BillingTransaction getTransactionDetails(java.lang.String _pTransId)
Gets Transaction details including the balance of the account
Specified by:
getTransactionDetails in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
Transaction - Id
Returns:
Vector containing the information about the transaction

getIspvnReceipts

public java.util.Vector getIspvnReceipts(java.lang.String[] _pIspvnId,
                                         java.lang.String _pStartDate,
                                         java.lang.String _pEndDate)
This returns all receipts of non-cancelled payments
Specified by:
getIspvnReceipts in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
Isp(s) - and a date range specified by Start and End date
Returns:
Vector containing the information about receipts of non-cancelled payments

getAccountReceipts

public java.util.Vector getAccountReceipts(java.lang.String[] accountId,
                                           java.lang.String startDate,
                                           java.lang.String endDate)
Method: Vector getAccountReceipts HH Purpose: This retuns all receipts of non-cancelled payments for a given Account and a date range.
Specified by:
getAccountReceipts in interface portal.paymentadjustment.PaymentAdjustment

getPaActivities

public java.util.Vector getPaActivities(java.lang.String[] accountId,
                                        java.lang.String startDate,
                                        java.lang.String endDate)
This returns all non-cancelled payments and adjustments
Specified by:
getPaActivities in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
Account(s) - and a date range specified by Start and End date
Returns:
Vector containing the information about non-cancelled payments and adjustments

getPaActivitiesRange

public java.util.Vector getPaActivitiesRange(java.lang.String startAccId,
                                             java.lang.String endAccId,
                                             java.lang.String startDate,
                                             java.lang.String endDate)
This returns all non-cancelled payments and adjustments for a given Account and date range
Specified by:
getPaActivitiesRange in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
Account(s) - and a date range specified by Start and End date
Returns:
Vector containing the information about non-cancelled payments and adjustments

getAccountAdjustments

public java.util.Vector getAccountAdjustments(java.lang.String[] accountId,
                                              java.lang.String startDate,
                                              java.lang.String endDate)
This returns all non-cancelled adjustments for a given Account and a date range.
Specified by:
getAccountAdjustments in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
Account(s) - and a date range specified by Start and End date
Returns:
Vector containing the information about non-cancelled adjustments

getAccountAdjustmentsRange

public java.util.Vector getAccountAdjustmentsRange(java.lang.String startAccId,
                                                   java.lang.String endAccId,
                                                   java.lang.String startDate,
                                                   java.lang.String endDate)
This returns all non-cancelled adjustments for a given Account range and a date range.
Specified by:
getAccountAdjustmentsRange in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
Account(s) - and a date range specified by Start and End date
Returns:
Vector containing the information about non-cancelled adjustments

getBalance

public java.util.Vector getBalance(java.lang.String[] accountId)
This returns the balance amount for the given account(s)
Specified by:
getBalance in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
Account(s) -  
Returns:
Vector containing the information in the billing_balance table

getAccountActivitiesRange

public java.util.Vector getAccountActivitiesRange(java.lang.String startAccId,
                                                  java.lang.String endAccId,
                                                  java.lang.String transType,
                                                  java.lang.String startDate,
                                                  java.lang.String endDate)
This returns the Activities range from Transaction table for a range of Accounts
Specified by:
getAccountActivitiesRange in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
Range - of Accounts specified by start & end accountId, TransactionType, and date range.
Returns:
Vector containing the information about the Account activities

getAccountReceiptsRange

public java.util.Vector getAccountReceiptsRange(java.lang.String startAccId,
                                                java.lang.String endAccId,
                                                java.lang.String startDate,
                                                java.lang.String endDate)
This returns the non-cancelled payment activities range from Transaction table for a range of Accounts
Specified by:
getAccountReceiptsRange in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
Range - of Accounts specified by start & end accountId and date range.
Returns:
Vector containing the information about the Account activities

getBalanceRange

public java.util.Vector getBalanceRange(java.lang.String startAccId,
                                        java.lang.String endAccId)
This returns the details of billing_balance table for a range of accounts
Specified by:
getBalanceRange in interface portal.paymentadjustment.PaymentAdjustment
Parameters:
Range - of Accounts specified by start & end accountId
Returns:
Vector containing the information about the billing balance table