Oanda rate1/20/2024 ![]() In your own model, create a class that implements the IExchangeRateProvider interface. Follow these steps to create an exchange rate provider. ![]() ExchangeRateProviderOanda – This example of an exchange rate provider that is implemented by Microsoft connects to the OANDA service to return exchange rates.Ĭode examples are taken from the ExchangeRateProviderOanda class.IExchangeRateResponseExchangeRate – The exchange rate provider uses this interface to store a specific exchange rate for a specific currency pair.IExchangeRateResponseCurrencyPair – The exchange rate provider uses this interface to store the details for a specific currency pair that is returned from the service.IExchangeRateResponse – The exchange rate provider uses this interface to store the currency pairs and the exchange rates that are returned from the service.IExchangeRateCalendar – This interface represents an exchange rate calendar that is used to retrieve the next working day (Monday through Friday).This data includes the date range, options, and the currency pairs to retrieve rates for. IExchangeRateRequest – This interface represents data that is specific to a request to import exchange rates.The user can change these values on the Configure exchange rate providers page ( General ledger > Currencies **> **Configure exchange rate providers). IExchangeRateProviderConfigDefaults – The exchange rate provider can create and provide default values for its configuration.This interface enables the provider to retrieve this configuration. IExchangeRateProviderConfig – Each exchange rate provider can have a unique configuration.The exchange rate provider uses this interface to inform the framework about the options that it supports. IExchangeRateProviderSupportedOptions – The exchange rate provider supports several options when rates are imported.IExchangeRateProviderFrameworkFactory – This interface enables the exchange rate provider to construct various types of provider framework classes that represent some of the interfaces in the illustration.IExchangeRateProvider – By implementing this interface, you enable the exchange rate provider framework to recognize a class as an exchange rate provider. ![]() Here are the interfaces and classes that are shown in the illustration: NET language, it's easy to use the Microsoft. Exchange rate providers are written in X++. New exchange rate providers should be derived from the IExchangeRateProvider interface. The following illustration shows the main interfaces and classes that make up the exchange rate provider framework, and the relationships among them. For more information, see (./extensibility/register-subclass-factory-methods). The Managed Extension Framework makes the SysPlugin extension framework available to non-X++ code.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |