Billing Central Apex API Developer Reference

ffbc.BillingScheduleActionFindNextBillDates

global with sharing class BillingScheduleActionFindNextBillDates

Invocable action to allow a contract's next billing date to be calculated using clicks-not-code customisations. For the API exposing this functionality, see BillingSchedulesService.calculateNextBillDates For information about using the invocable method in a flow, search for "Apex action" in the Certinia Help.

Methods

calculateNextBillDates

global static List<ffbc.BillingScheduleActionFindNextBillDates.Response> calculateNextBillDates(List<ffbc.BillingScheduleActionFindNextBillDates.Request> requests)

Calculate Next Billing Dates for active contracts.

Input Parameters

Name Type Description
requests List<ffbc.BillingScheduleActionFindNextBillDates.Request> List of request objects containing the contracts to have their next billing date calculated.

ffbc.BillingScheduleActionFindNextBillDates.Request

global with sharing class Request

This class wraps the contracts that next billing dates will be calculated for.

Properties

Name Type Description
contractId Id The ID of a contract to calculate next billing date for.

Methods

Request

global Request()

The default constructor for a Request.

ffbc.BillingScheduleActionFindNextBillDates.Response

global with sharing class Response

The response to a request to calculate the next billing date. This contains the contract ID being used for calculation, the next billing date calculated for the contract, and any errors if the next billing date could not be calculated.

Properties

Name Type Description
contractId Id The ID of the contract that the action tried to calculate next billing date for.
nextBillDate Date The next billing date for the contract calculated by the action. Or null if not calculated.
hasErrors Boolean True if there was an error calculating the next billing date.
errorMessage String Error messages if the next billing date was not calculated successfully.

Methods

Response

global Response()

The default constructor for a Response.

© Copyright 2009–2024 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.