public class CRMProcessBillingRunBean extends CRMProcess
Constructor and Description |
---|
CRMProcessBillingRunBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
billAccountReceivable(com.crm.dataobject.billing.CRMDOBillingRun billingRun,
com.crm.dataobject.accounts.CRMDOAccountReceivable account,
java.lang.Boolean billPreview)
Bills an account.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
billJob(com.crm.dataobject.billing.CRMDOBillingRun billingRun,
com.crm.dataobject.jobs.CRMDOJob job,
java.lang.Boolean billPreview)
Bills a job of an account by a billing run.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
billSubscription(com.crm.dataobject.billing.CRMDOBillingRun billingRun,
com.crm.dataobject.subscriptions.CRMDOSubscription subscription,
java.lang.Boolean billPreview)
Bills a subscription of an account by a billing run.
|
com.crm.dataobject.billing.CRMDOBillingRunTransaction |
constructCreditTransaction(com.crm.dataobject.accounts.CRMDOAccountReceivable account,
java.util.ArrayList<com.crm.dataobject.billing.CRMDORatedBillingItem> ratedBillingItems,
com.crm.dataobject.billing.CRMDOBillingRun billingRun,
com.crm.dataobject.billing.CRMDOBillingRunDefinition billingRunDefinition)
Creates a credit note transaction by an account, a list of rated billing items, a billing run and a billing run definition.
|
com.crm.dataobject.billing.CRMDOBillingRunTransaction |
constructDebitTransaction(com.crm.dataobject.accounts.CRMDOAccountReceivable account,
java.util.ArrayList<com.crm.dataobject.billing.CRMDORatedBillingItem> ratedBillingItems,
com.crm.dataobject.billing.CRMDOBillingRun billingRun,
com.crm.dataobject.billing.CRMDOBillingRunDefinition billingRunDefinition)
Creates an invoice transaction by an account, a list of rated billing items, a billing run and a billing run definition.
|
com.crm.dataobject.billing.CRMDOBillingRun |
createBillingRunResults(com.crm.dataobject.billing.CRMDOBillingRun billingRun,
java.util.Date startDate)
Creates the billing run results.
|
void |
execute(com.crm.dataobject.billing.CRMDOBillingRun billingRun)
Executes a billing run.
|
void |
saveRatedBillingItems(com.crm.dataobject.billing.CRMDOBillingRun billingRun,
java.util.ArrayList<com.crm.dataobject.CRMDO> ratedBillingItems)
Saves the rated billing items.
|
void |
saveResults(com.crm.dataobject.billing.CRMDOBillingRun billingRun,
com.crm.dataobject.accounts.CRMDOAccountReceivable account)
Saves the results of a billing run of an account.
|
java.util.Date |
sendToScheduler(com.crm.dataobject.billing.CRMDOBillingRun billingRun)
Sends a billing run to the scheduler.
|
com.crm.dataobject.billing.CRMDOBillingRun |
setAdditionalInformation(com.crm.dataobject.billing.CRMDOBillingRun billingRun,
com.crm.dataobject.billing.BillingTermDefinitionClassification definitionClassification,
java.lang.Boolean quickLoad)
Sets additional information for a billing run.
|
void |
updateSubscriptionInformation(com.crm.dataobject.subscriptions.CRMDOSubscription subscription)
Updates subscription rating information.
|
createCronExpressionFromDate, createCronExpressionFromDate, setMandatoryField
public void execute(com.crm.dataobject.billing.CRMDOBillingRun billingRun) throws java.lang.Exception
billingRun
- - the billing run to executejava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable billSubscription(com.crm.dataobject.billing.CRMDOBillingRun billingRun, com.crm.dataobject.subscriptions.CRMDOSubscription subscription, java.lang.Boolean billPreview) throws java.lang.Exception, com.crm.exception.MandatoryFieldException
billingRun
- - the billing run to usesubscription
- - the subscription to billbillPreview
- - a boolean indicating if the account should be billed, or if it should execute in preview modejava.lang.Exception
com.crm.exception.MandatoryFieldException
public com.crm.dataobject.accounts.CRMDOAccountReceivable billAccountReceivable(com.crm.dataobject.billing.CRMDOBillingRun billingRun, com.crm.dataobject.accounts.CRMDOAccountReceivable account, java.lang.Boolean billPreview) throws java.lang.Exception, com.crm.exception.MandatoryFieldException
billingRun
- - the billing run to useaccount
- - the account to billbillPreview
- - a boolean indicating if the account should be billed, or if it should execute in preview modejava.lang.Exception
com.crm.exception.MandatoryFieldException
public com.crm.dataobject.accounts.CRMDOAccountReceivable billJob(com.crm.dataobject.billing.CRMDOBillingRun billingRun, com.crm.dataobject.jobs.CRMDOJob job, java.lang.Boolean billPreview) throws java.lang.Exception, com.crm.exception.MandatoryFieldException
billingRun
- - the billing run to usejob
- - the job to billbillPreview
- - a boolean indicating if the account should be billed, or if it should execute in preview modejava.lang.Exception
com.crm.exception.MandatoryFieldException
public void saveResults(com.crm.dataobject.billing.CRMDOBillingRun billingRun, com.crm.dataobject.accounts.CRMDOAccountReceivable account) throws java.lang.Exception
billingRun
- - the billing run to useaccount
- - the account to usejava.lang.Exception
public void saveRatedBillingItems(com.crm.dataobject.billing.CRMDOBillingRun billingRun, java.util.ArrayList<com.crm.dataobject.CRMDO> ratedBillingItems) throws java.lang.Exception
billingRun
- - the billing run to useratedBillingItems
- - the rated billing items to savejava.lang.Exception
public void updateSubscriptionInformation(com.crm.dataobject.subscriptions.CRMDOSubscription subscription) throws java.lang.Exception
subscription
- - the subscription to updatejava.lang.Exception
public com.crm.dataobject.billing.CRMDOBillingRun setAdditionalInformation(com.crm.dataobject.billing.CRMDOBillingRun billingRun, com.crm.dataobject.billing.BillingTermDefinitionClassification definitionClassification, java.lang.Boolean quickLoad) throws java.lang.Exception
billingRun
- - the billing run to usequickLoad
- - a boolean indicating if the additional information should be quick loadedjava.lang.Exception
public com.crm.dataobject.billing.CRMDOBillingRunTransaction constructDebitTransaction(com.crm.dataobject.accounts.CRMDOAccountReceivable account, java.util.ArrayList<com.crm.dataobject.billing.CRMDORatedBillingItem> ratedBillingItems, com.crm.dataobject.billing.CRMDOBillingRun billingRun, com.crm.dataobject.billing.CRMDOBillingRunDefinition billingRunDefinition) throws java.lang.Exception
account
- - the account to useratedBillingItems
- - the rated billing items to usebillingRun
- - the billing run to usebillingRunDefinition
- - the billing run definition to usejava.lang.Exception
public com.crm.dataobject.billing.CRMDOBillingRunTransaction constructCreditTransaction(com.crm.dataobject.accounts.CRMDOAccountReceivable account, java.util.ArrayList<com.crm.dataobject.billing.CRMDORatedBillingItem> ratedBillingItems, com.crm.dataobject.billing.CRMDOBillingRun billingRun, com.crm.dataobject.billing.CRMDOBillingRunDefinition billingRunDefinition) throws java.lang.Exception
account
- - the account to useratedBillingItems
- - the rated billing items to usebillingRun
- - the billing run to usebillingRunDefinition
- - the billing run definition to usejava.lang.Exception
public java.util.Date sendToScheduler(com.crm.dataobject.billing.CRMDOBillingRun billingRun) throws java.lang.Exception, com.crm.exception.MandatoryFieldException
billingRun
- - the billing run to send to the schedulerjava.lang.Exception
com.crm.exception.MandatoryFieldException
public com.crm.dataobject.billing.CRMDOBillingRun createBillingRunResults(com.crm.dataobject.billing.CRMDOBillingRun billingRun, java.util.Date startDate) throws java.lang.Exception
billingRun
- - the billing run to create the results forstartDate
- - the start date to create the results fromjava.lang.Exception