fferpcore.ExchangeRateServiceglobal inherited sharing class ExchangeRateService Returns or updates exchange rates stored in Foundations. Methods
getRatesglobal static Map<String, Decimal> getRates(String groupName, String rateType, Date effectiveDate, String relativeCurrency, Set<String> targetCurrencies) Get exchange rates for a set of currencies that are effective on a specific date. Input Parameters
Return ValueA map of exchange rates that uses the currency ISO codes as keys. getRateTablesglobal static fferpcore.ExchangeRateService.RateTablesResult getRateTables(fferpcore.ExchangeRateService.RateTablesRequest rateTableRequest) Get exchange rates for a set of currencies covering multiple dates and groups. Input Parameters
Return ValueAn implementation of RateTablesResult that provides access to the table data. setRatesglobal static void setRates(List<fferpcore.ExchangeRateService.SetRateRequest> requests) Update exchange rates stored in Foundations. Input Parameters
fferpcore.ExchangeRateService.RateTablesResultglobal interface RateTablesResult A wrapper for accessing exchange rate tables that are returned from the database. MethodsgetRateTableExchangeRateService.RateTable getRateTable(String groupName, String rateType) Get an exchange rate table for a specific exchange rate group and type. Input Parameters
Return ValueA rate table containing exchange rates for multiple currencies and dates. fferpcore.ExchangeRateService.RateTableglobal interface RateTable A set of exchange rates for multiple currencies and dates. Methods
getRateTypeString getRateType() Get the type of exchange rate for the data in this RateTable, such as Spot or Historical. Return ValueThe type of exchange rate. getStartDateDate getStartDate() Get the earliest effective date for the data in this rate table. Return ValueThe start date for the data in this rate table. getEndDateDate getEndDate() Get the latest effective date for the range of data in this RateTable. Return ValueThe last date for the data in this rate table. getRateDecimal getRate(Date effectiveDate, String relativeCurrency, String targetCurrency) Get the exchange rate for a currency that is effective on a specific date. Input Parameters
Return ValueThe exchange rate. getRatesMap<String, Decimal> getRates(Date effectiveDate, String relativeCurrency, Set<String> targetCurrencies) Get exchange rates for a set of currencies that are effective on a specific date. Input Parameters
Return ValueA map of exchange rates that uses the currency ISO codes as keys. getAvailableCurrenciesSet<String> getAvailableCurrencies(Date effectiveDate) Get the currencies that contain exchange rates on the specified date. Input Parameters
Return ValueA set of ISO codes for the available currencies. getStartDateDate getStartDate(Date effectiveDate, String targetCurrency) Get the date that an exchange rate is first effective. Input Parameters
Return ValueThe first date that the exchange rate is effective. getEndDateDate getEndDate(Date effectiveDate, String targetCurrency) Get the last date that an exchange rate is effective. Input Parameters
Return ValueThe last date that the exchange rate is effective. fferpcore.ExchangeRateService.RateTablesRequestglobal inherited sharing class RateTablesRequest A request object that stores the parameters required to query the exchange rate data. Used exclusively with getRateTables. Properties
MethodsRateTablesRequestglobal RateTablesRequest(Set<String> groupNames, Date fromDate, Date toDate, Set<String> rateTypes) fferpcore.ExchangeRateService.SetRateRequestglobal inherited sharing class SetRateRequest Data required to update the exchange rates for one date range for a specific exchange rate group and type. Properties
Methods
SetRateRequestglobal SetRateRequest(String rateGroup, String rateType, Date startDate, Date endDate, String relativeCurrency, Map<String, Decimal> ratesByCurrency) Constructs a request with multiple exchange rates. Input Parameters
SetRateRequestglobal SetRateRequest(String rateGroup, String rateType, Date startDate, Date endDate, String relativeCurrency, String targetCurrency, Decimal rate) Constructs a request with a single exchange rate. Input Parameters
|