Accounting Apex API Developer Reference

c2g.PrepaidExpensesService

global with sharing class PrepaidExpensesService

The service class used to generate prepaid expenses.

Methods

getPrepaidExpenseLineItems

global static List<c2g.PrepaidExpensesService.PinExpenseLineItem> getPrepaidExpenseLineItems()

Use this method to retrieve all payable invoice expense line items for prepaid expenses.

generateJournalsProposal

global static List<c2g.PrepaidExpensesService.PrepaidExpenseJournalProposal> generateJournalsProposal(c2g.PrepaidExpensesService.PrepaidExpenseJournalParams journalParamsData)

Use this method to generate journal proposal lines.

Input Parameters

Name Type Description
journalParamsData c2g.PrepaidExpensesService.PrepaidExpenseJournalParams The wrapper of parameters used to spread expense lines.

Return Value

Returns a list of prepaid expenses journal proposals.

generatePrepaidExpenseJournals

global static Id generatePrepaidExpenseJournals(Map<Id, c2g.PrepaidExpensesService.PrepaidExpenseJournalParams> prepaidExpenseJournalParamsMap)

Use this method to generate prepaid expenses journals. Use GeneratePrepaidExpenseJournal (Generate Prepaid Expenses Journals) custom permission to generate prepaid expenses journals.

Input Parameters

Name Type Description
prepaidExpenseJournalParamsMap Map<Id, c2g.PrepaidExpensesService.PrepaidExpenseJournalParams> The map of Id and Prepaid Expense Journal Parameters (i.e. expenseLineId, prepaidExpenseDefinition, prepaidExpenseGla, startDate, endDate).

c2g.PrepaidExpensesService.PinExpenseLineItem

global with sharing class PinExpenseLineItem

This data type used to pass the prepaid expense lines data.

Properties

Name Type Description
expenseLineId Id The id of the payable expense line item.
pinId Id The id of payable invoice.
pinNumber String The pin number of payable invoice.
expenseLineNo Integer The line number of payable expense line item.
prepaid Boolean The prepaid indicator of payable expense line item.
description String The line description of payable invoice expense line item.
startDate Date The start date of payable invoice expense line item.
endDate Date The end date of payable invoice expense line item.
glaName String The name of gla on payable invoice expense line item.
accountName String The name of account on payable invoice.
homeValue Decimal The amount of home value on payable invoice expense line item.

c2g.PrepaidExpensesService.PrepaidExpenseJournalProposal

global with sharing class PrepaidExpenseJournalProposal

This data type is used to retrieve the prepaid expenses journal proposal data.

Properties

Name Type Description
expenseLineId Id The id of the prepaid expense line item.
name String The name of the prepaid expense line.
interval String The value of the interval between journals for prepaid expenses journals.
noOfJournals Integer The value of the number of journals.
dateToPost Date The date on which the prepaid expenses journals will be posted.
glaId Id The GLA Id for prepaid expenses journals.
glaName String The GLA name for prepaid expenses journals.
debitAmount Decimal The debit amount of prepaid expenses journals.
creditAmount Decimal The credit amount of prepaid expenses journals.
amortizationAmount Decimal The amortization amount of prepaid expenses journals.
currencyCode String The currency code of prepaid expenses journals.
currencyId Id The currencyId of prepaid expenses journals.
documentRate Decimal The document rate of prepaid expenses journals.
dualRate Decimal The dual rate of prepaid expenses journals.
iconCls String The delete icon lightning class (slds-show/slds-hide) for prepaid expenses journals.
dimension1 String Dimension 1 for the prepaid expenses journals.
dimension2 String Dimension 2 for the prepaid expenses journals.
dimension3 String Dimension 3 for the prepaid expenses journals.
dimension4 String Dimension 4 for the prepaid expenses journals.
dimension1Id String The Id of Dimension 1 for the prepaid expenses journals.
dimension2Id String The Id of Dimension 2 for the prepaid expenses journals.
dimension3Id String The Id of Dimension 3 for the prepaid expenses journals.
dimension4Id String The Id of Dimension 4 for the prepaid expenses journals.
journals List<c2g.PrepaidExpensesService.PrepaidExpenseJournalProposal> The journal list for each prepaid expenses journal.

c2g.PrepaidExpensesService.PrepaidExpenseJournalParams

global with sharing class PrepaidExpenseJournalParams

The data type used to post the prepaid expense journal parameters.

Properties

Name Type Description
expenseLineId List<Id> The Id list of prepaid expense lines.
prepaidExpenseDefinition Id The prepaid expenses definition Id.
prepaidExpenseGla Id The prepaid expenses GLA Id.
startDate Date The start date from which prepaid expenses are to be generated.
endDate Date The end date until which prepaid expenses are to be generated.
dimensions c2g.PrepaidExpensesService.PrepaidExpensesDimensions The object dimensions (all four dimensions) for which prepaid expenses are to be generated.

Methods

PrepaidExpenseJournalParams

global PrepaidExpenseJournalParams()

PrepaidExpenseJournalParams

global PrepaidExpenseJournalParams(List<Id> expenseLineId, Id prepaidExpenseDefinition, Id prepaidExpenseGla, Date startDate, Date endDate, c2g.PrepaidExpensesService.PrepaidExpensesDimensions dimensions)

c2g.PrepaidExpensesService.PrepaidExpensesDimensions

global with sharing class PrepaidExpensesDimensions

Data type used to post all the four dimensions for the prepaid expenses.

Properties

Name Type Description
dimension1 Id The Id of Dimension 1 for the prepaid expenses journals.
dimension2 Id The Id of Dimension 2 for the prepaid expenses journals.
dimension3 Id The Id of Dimension 3 for the prepaid expenses journals.
dimension4 Id The Id of Dimension 4 for the prepaid expenses journals.

Methods

PrepaidExpensesDimensions

global PrepaidExpensesDimensions(Id dimension1, Id dimension2, Id dimension3, Id dimension4)

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