com.konakart.blif
Interface BillingMgrIf

All Known Implementing Classes:
BillingMgr

public interface BillingMgrIf

BillingMgrIf Interface which an implementation of this manager must adhere to.


Method Summary
 PaymentSchedule getPaymentSchedule(int id)
          Returns the payment schedule object for the id parameter, or Null if the payment schedule object doesn't exist in the DB.
 Subscription[] getSubscriptionsPerCustomer(java.lang.String sessionId)
          Returns an array of Subscription objects for a customer referred to by the sessionId parameter.
 int insertSubscription(java.lang.String sessionId, SubscriptionIf subscription)
          A Subscription object is inserted into the database.
 int insertSubscription(SubscriptionIf subscription)
          A Subscription object is inserted into the database.
 

Method Detail

insertSubscription

int insertSubscription(java.lang.String sessionId,
                       SubscriptionIf subscription)
                       throws java.lang.Exception
A Subscription object is inserted into the database. The following subscription attributes are compulsory: The customer id of the Subscription object is fetched from the sessionId. The id of the new object is returned.

Parameters:
sessionId -
subscription -
Returns:
Returns the id of the Subscription object
Throws:
java.lang.Exception

insertSubscription

int insertSubscription(SubscriptionIf subscription)
                       throws java.lang.Exception
A Subscription object is inserted into the database. The following subscription attributes are compulsory: The id of the new object is returned.

Parameters:
subscription -
Returns:
Returns the id of the Subscription object
Throws:
java.lang.Exception

getPaymentSchedule

PaymentSchedule getPaymentSchedule(int id)
                                   throws KKException,
                                          org.apache.torque.TorqueException,
                                          com.workingdogs.village.DataSetException
Returns the payment schedule object for the id parameter, or Null if the payment schedule object doesn't exist in the DB.

Parameters:
id - The id of the payment schedule object
Returns:
Returns a payment schedule object
Throws:
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException

getSubscriptionsPerCustomer

Subscription[] getSubscriptionsPerCustomer(java.lang.String sessionId)
                                           throws java.lang.Exception
Returns an array of Subscription objects for a customer referred to by the sessionId parameter.

Parameters:
sessionId -
Returns:
Returns an array of subscription objects
Throws:
java.lang.Exception


Copyright © 2011 DS Data Systems UK Ltd.