c2g.PaymentsPlusServiceglobal with sharing class PaymentsPlusService The service class relating to Payments Plus. EnumsCheckStatusIndicates the status of the check you want to create.
Methods
addToProposalglobal static List<Id> addToProposal(Id paymentId, List<Id> transactionLineIds) This method adds the selected transactions to the payment proposal. Use the ManagePayments (Manage Payments) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns a list containing all new log IDs generated during the Add to Proposal process. Sample Code
addToProposalglobal static List<Id> addToProposal(Id paymentId, List<c2g.PaymentsPlusService.ProposalLine> proposalLines) This method adds part payment transactions to the payment proposal. Use the ManagePayments (Manage Payments) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns a list containing all new log IDs generated during the Add to Proposal process. Sample Code
removeFromProposalglobal static List<Id> removeFromProposal(Id paymentId, List<Id> transactionLineIds) This method removes the selected transactions from the payment proposal. Use the ManagePayments (Manage Payments) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns a list containing all new Log IDs generated during the Remove from Proposal process. Sample Code
createMediaDataglobal static Id createMediaData(Id paymentId) This method generates the payment information needed for bank files or to print checks. Use the ManagePayments (Manage Payments) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns the ID of the payment media control related to the selected payment Id. Sample Code
createMediaDataAsyncglobal static Id createMediaDataAsync(Id paymentId) This method generates the payment information needed for bank files or to print checks. It runs in the background and you will be notified when it finishes. Use the ManagePayments (Manage Payments) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns the ID of the batch process record for the job. Sample Code
updateCheckNumbersglobal static void updateCheckNumbers(Id paymentId, List<c2g.PaymentsPlusService.Check> checks) This method updates the check numbers associated with the selected payment. Use the ManagePayments (Manage Payments) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service does not return a value. Sample Code
postAndMatchAsyncglobal static Id postAndMatchAsync(Id paymentId) This method does the post and match for the given payment proposal. It runs in the background and you will be notified when it finishes. Use the PostandMatchPayments (Post and Match Payments) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns the ID of the batch process record for the job or null if running off platform. Sample Code
discardAsyncglobal static Id discardAsync(Id paymentId) This method performs the discard for the selected payment proposal. It runs in the background and you will be notified when it finishes. Use the DiscardPayments (Discard Payments) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns the ID of the batch process record for the job. Sample Code
removeAccountsAsyncglobal static Id removeAccountsAsync(Id paymentId, List<Id> accountIds, String removeAccountsReason) This method removes the selected accounts from the selected payment proposal. This method only applies to electronic payments. It runs in the background and you will be notified when it finishes. Use the ManagePayments (Manage Payments) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns the ID of the batch process record for the job. Sample Code
cancelPaymentAsyncglobal static Id cancelPaymentAsync(Id paymentId, c2g.PaymentsPlusService.CancelPaymentCriteria cancelCriteria) This method cancels all the available accounts from a payment proposal using the selected criteria. Use the CancelPayments (Cancel Payments) custom permission to cancel all payments proposals. It runs in the background and you will be notified when it finishes. Input Parameters
Return ValueThis service returns the ID of the batch process record for the job. Sample Code
cancelPaymentAsyncglobal static Id cancelPaymentAsync(Id paymentId, c2g.PaymentsPlusService.CancelPaymentCriteria cancelCriteria, List<Id> entityIds) This method cancels a list of accounts or payable invoices from a payment proposal using the selected criteria. Use the CancelPayments (Cancel Payments) custom permission to cancel all payments proposals. It runs in the background and you will be notified when it finishes. Input Parameters
Return ValueThis service returns the ID of the batch process record for the job. Sample Code
Sample Code
resubmitCancelPaymentAsyncglobal static Id resubmitCancelPaymentAsync(Id paymentId) This method resubmits the cancel process to cancel all remaining accounts from a previously canceled payment proposal. Use the CancelPayments (Cancel Payments) custom permission to resubmit all payments proposals to cancel. It runs in the background and you will be notified when it finishes. Input Parameters
Return ValueThis service returns the ID of the batch process record for the job. Sample Code
c2g.PaymentsPlusService.Checkglobal virtual with sharing class Check implements Comparable Holds the information needed to create checks through the updateCheckNumbers API. Sample Code
Properties
MethodsCheckglobal Check() Holds the API representation of a check. Return ValueThis constructor does not return a value. c2g.PaymentsPlusService.CancelPaymentCriteriaglobal with sharing class CancelPaymentCriteria Holds the canceling information needed to perform a Cancel Payment operation. Sample Code
Properties
MethodsCancelPaymentCriteriaglobal CancelPaymentCriteria() Holds the criteria used for the Cancel Payment operation. Return ValueThis constructor does not return a value. c2g.PaymentsPlusService.ProposalLineglobal with sharing class ProposalLine Batch Control Log Message field Properties
MethodsProposalLineglobal ProposalLine() Holds the API representation of the transaction line to be added to the payment proposal. Return ValueThis constructor does not return a value. |