ffbc.BillingSchedulesServiceglobal with sharing class BillingSchedulesService
Methods
generateglobal static ffbc.BillingSchedulesService.GenerateResponse generate(ffbc.BillingSchedulesService.GenerateRequest request) Generates billing schedules for active contracts. Input Parameters
Exceptions Thrown
Return ValueA response containing information about the billing schedules that were generated and the errors that occurred. generateAllAsyncglobal static Id generateAllAsync(ffbc.BillingSchedulesService.GenerateAllRequest request) Generates billing schedules for all contract line items. The billing schedules are generated asynchronously by queueable Apex. Input Parameters
Exceptions Thrown
Return ValueThe ID of the asynchronous process that is to generate the billing schedules. generateAsyncglobal static Id generateAsync(ffbc.BillingSchedulesService.GenerateRequest request) Generates billing schedules for active and expired contracts. The billing schedules are generated asynchronously by queueable Apex. Input Parameters
Return ValueThe ID of the asynchronous process that will generate the billing schedules. generateForLinesglobal static ffbc.BillingSchedulesService.GenerateResponse generateForLines(ffbc.BillingSchedulesService.GenerateForLineRequest request) Generates billing schedules for the contract lines specified. Contract lines that are canceled will not have any schedules generated. Input Parameters
Exceptions Thrown
Return ValueA response containing information about the billing schedules that were generated and the errors that occurred. calculateNextBillDatesglobal static ffbc.BillingSchedulesService.NextBillDateResponse calculateNextBillDates(ffbc.BillingSchedulesService.NextBillDateRequest request) Calculates the date on which a given contract will be next billed. If the contract will never be billed, then a `null` date is returned for that particular contract. Input Parameters
Return ValueResponse containing a method accepting contract ID and returning the date on which the corresponding contract will be billed next. getNumberOfMonthsToGenerateBillingSchedulesglobal static Integer getNumberOfMonthsToGenerateBillingSchedules() Returns the default number of future months for which to generate billing schedules. This is determined by the Billing Schedule Number of Months field in the Billing Central Settings custom setting. If the custom field does not contain a value, the default value of 12 is used. Exceptions Thrown
Return ValueThe default number of months for which to generate billing schedules. ffbc.BillingSchedulesService.BaseGenerateRequestglobal with sharing abstract class BaseGenerateRequest Properties
ffbc.BillingSchedulesService.GenerateAllRequestglobal with sharing class GenerateAllRequest Contains the parameters for generating billing schedules for all contract line items. Properties
Methodsffbc.BillingSchedulesService.GenerateForLineRequestglobal with sharing class GenerateForLineRequest extends BaseGenerateRequest This class provides the criteria for generating billing schedules from contract line items. Contract lines that are canceled will not have any schedules generated. This class extends ffbc.BillingSchedulesService.BaseGenerateRequest Properties
MethodsGenerateForLineRequestglobal GenerateForLineRequest() The default constructor for a GenerateForLineRequest object. ffbc.BillingSchedulesService.GenerateRequestglobal with sharing class GenerateRequest extends BaseGenerateRequest This class provides the criteria for generating billing schedules from contracts. This class extends ffbc.BillingSchedulesService.BaseGenerateRequest Properties
Methodsffbc.BillingSchedulesService.GenerateResponseglobal with sharing class GenerateResponse extends Response Returned by the service methods. Contains the Ids of the billing schedules generated and errors that occurred. This class extends ffbc.Response Properties
ffbc.BillingSchedulesService.NextBillDateRequestglobal with sharing class NextBillDateRequest A request to calculate and return the dates on which the contracts will be next billed. Properties
MethodsNextBillDateRequestglobal NextBillDateRequest(Set<Id> contractIds) Creates a request with the given contract IDs in scope. ffbc.BillingSchedulesService.NextBillDateResponseglobal with sharing class NextBillDateResponse extends Response The result of calculating the date on which a given contract will be billed next. This class extends ffbc.Response MethodsgetNextBillDateForContractglobal Date getNextBillDateForContract(Id contractId) Retrieves the date on which the given contract will be next billed |