c2g.StatementsEmailServiceglobal with sharing class StatementsEmailService The service class used to generate and email statements Methods
getAllStatementsForCompanyAndRuleglobal static List<c2g.StatementsEmailService.Statement> getAllStatementsForCompanyAndRule(Id companyId, Id ruleId) Use this method to retrieve all statements for given company, for a given statement rule. Input Parameters
Return ValueReturns a list of Statement wrapper. sendEmailsglobal static Id sendEmails(Set<Id> accountIds, Id statementRuleId) Method to run Statement batch process. Use the CollectionsSendStatements (Send Email Statements) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns Id of Statement__c object. sendEmailsglobal static Id sendEmails(Set<Id> accountIdsSelected, Id statementRuleId, Id statementId) Method to run Statement batch process having some Accounts selected. Same method is used to re-run batch for excluded and errored records. Use the CollectionsSendStatements (Send Email Statements) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns Id of Statement__c object. getAllStatementAccountsForCompanyAndStatementglobal static List<c2g.StatementsEmailService.StatementAccount> getAllStatementAccountsForCompanyAndStatement(Id companyId, Id statementId) Use this method to retrieve all statement accounts for given company, excluding all sent in given statement. Input Parameters
Return ValueReturns a list of Statement Account wrapper. c2g.StatementsEmailService.Statementglobal with sharing class Statement c2g.StatementsEmailService.StatementAccountglobal with sharing class StatementAccount |