ffrr.TransactionServiceglobal with sharing class TransactionService EnumsLineActionIndicates the action to be taken if existing "In Progress" transaction lines are found for the same source object and period in a transaction.
StatusThe status of the recognition transaction.
Methods
bulkCommitglobal static ffrr.TransactionService.CommitResult bulkCommit(List<Id> transactions) Commits the transactions provided. Will update the source record fields if those fields are filled in on the corresponding setting record. Input Parameters
Return ValueA CommitResult containing a list of the committed transactions. Note: This list is not in the order the transactions were provided. Sample Code
commitTransactionsglobal static Id commitTransactions(List<Id> transactionList) Commits the transactions provided. This method starts an asynchronous process. Will update the source record fields if those fields are filled in on the corresponding setting record. Input Parameters
Return ValueThe Id of the AsyncApexJob if recognition schedules recognition is off. The Id of the Revenue Management Background Process record if recognition schedules recognition is turned on. Sample Code
discardglobal static void discard(Set<Id> transactionIds) Discards one or more Recognition Transactions. Input Parameters
Sample Code
discardAsyncglobal static Id discardAsync(Set<Id> transactionIds) Discards one or more Recognition Transactions using an asynchronous process. Input Parameters
Return ValueId of the executing ffrr__RevenueManagementBackgroundProcess__c record. Sample Code
retrieveglobal static List<ffrr.TransactionService.TransactionLine> retrieve(Id elementId) Retrieves a list of Committed or In Progress transactions for the specified item (for example, project or milestone). The returned data includes only the high-level details of the transaction (such as transaction status and total recognized) and not the individual transaction lines. Input Parameters
Return ValueThe List of inprogress and committed Transaction Lines related to the recordId. Sample Code
saveglobal static Id save(ffrr.TransactionService.HeaderDetails headerDetails) Saves a recognition transaction (and associated transaction lines) with a status of "In Progress". The single supplied parameter includes both the header details for the transaction and the items that are to be included as part of the transaction. Input Parameters
Return ValueThe Id of the AsyncApexJob. Sample Code
saveglobal static ffrr.TransactionService.StagingSaveResult save(ffrr.TransactionService.StagingSaveContext context, ffrr.TransactionService.StagingSaveOptions options) Creates Recognition Transactions (and associated Transaction Lines) of Status "In Progress" using data from the Staging Table Records. Input Parameters
Return ValueThe StagingSaveResult containing either the Id of the AsyncJob if the process has been executed asynchronously or the created Recognition Transactions keyed by version. Sample Code
bulkSaveglobal static ffrr.TransactionService.SaveResult bulkSave(List<ffrr.TransactionService.HeaderDetails> headerDetails) Creates Transactions and TransactionLines using the provided HeaderDetails and LineDataToSave. Same as the save(HeaderDetails headerDetails) method except this will not start an asynchronous process. Input Parameters
Return ValueA SaveResult containing the List of Transaction Ids for the created Transactions. Sample Code
summarizeglobal static void summarize(Set<Id> transactionIds) Summarizes Recognition Transaction Lines into Recognition Transaction Summary records. Revenue and cost amounts are summarized by GLA Type, GLA Revenue or GLA Cost, and any fields included in the Summarization Fields field set on the Recognition Transaction Line object. If a transaction has both revenue and cost amounts, at least 4 summary records will be created (2 Income Statement and 2 Balance Sheet). NOTE: All fields included in the RTL Summarization Fields field set must exist on the Recognition Transaction Summary. Input Parameters
Sample Code
summarizeAsyncglobal static Id summarizeAsync(Set<Id> transactionIds) Summarizes Recognition Transaction Lines into Recognition Transaction Summary records. Revenue and cost amounts are summarized by GLA Type, GLA Revenue or GLA Cost, and any fields included in the Summarization Fields field set on the Recognition Transaction Line object. If a transaction has both revenue and cost amounts, at least 4 summary records will be created (2 Income Statement and 2 Balance Sheet). NOTE: All fields included in the RTL Summarization Fields field set must exist on the Recognition Transaction Summary. The total number of Recognition Transaction Lines must not exceed 50000 per batch, and a maximum of 10000 summary lines can be created per batch. Input Parameters
Return ValueReturns the ID of the Batch Apex Job. Sample Code
ffrr.TransactionService.CommitResultglobal with sharing class CommitResult Contains the list of transactions committed by the TransactionService.bulkCommit method. Note: This list is not in the order the transaction ids were provided to the service call. Properties
ffrr.TransactionService.HeaderDetailsglobal with sharing class HeaderDetails Contains the header and line data to be used for revenue recognition. Sample Code
Properties
MethodsHeaderDetailsglobal HeaderDetails() If set to true when replacing lines any amount on the old line will be transferred to the new one. This is used in a temporary fix for the transfer previously recognized process on POLIs. When we refactor this service should be removed and there should be a proper update process on existing RTs/RTLs ffrr.TransactionService.LineDataToSaveglobal with sharing class LineDataToSave Contains a single set of line data to be saved as part of a recognition transaction. This class contains deprecated items. Sample Code
Properties
MethodsLineDataToSaveglobal LineDataToSave() DeprecatedThe following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions. Properties
ffrr.TransactionService.SaveResultglobal with sharing class SaveResult Contains the list of transactions created by the TransactionService.bulkSave method. Properties
ffrr.TransactionService.StagingSaveContextglobal with sharing class StagingSaveContext Contains details required to create Recognition Transactions and TransactionLines from the staging records. Sample Code
Properties
MethodsStagingSaveContextglobal StagingSaveContext() The hash that matches the values in the staging table. Used to query for records in the staging table to include in this save. One context per per primary grouping record will be created. We have agreed that this does not belong on the global contract and we do not want to polluted the global API. This will be moved lower down the code path and be part of the public and not global api. ffrr.TransactionService.StagingSaveOptionsglobal with sharing class StagingSaveOptions Options to specify how the save operation will be performed. Sample Code
Properties
MethodsStagingSaveOptionsglobal StagingSaveOptions() ffrr.TransactionService.StagingSaveResultglobal with sharing class StagingSaveResult The data resulting from the Save operation Properties
MethodsStagingSaveResultglobal StagingSaveResult() ffrr.TransactionService.StagingTransactionDetailsglobal with sharing class StagingTransactionDetails Contains information that will be included on the Recognition Transaction record and additional options on how the save operation will be performed Sample Code
Properties
MethodsStagingTransactionDetailsglobal StagingTransactionDetails() ffrr.TransactionService.TransactionLineglobal with sharing class TransactionLine extends ViewService.Reference Contains the details of a recognition transaction. This class extends ffrr.ViewService.Reference Sample Code
Properties
MethodsTransactionLineglobal TransactionLine() |