Home Manual Reference Source Repository
public class | source

CurrencyResolver

Direct Subclass:

GeoserviceResolver

Provides information about available currencies. This is an abstract class which resolvers should extend from.

Method Summary

Public Methods
public

async getConversionRate(from: String, to: String): Number

Get conversion rate for a specific currency pair.

public

List the available currencies.

Public Methods

public async getConversionRate(from: String, to: String): Number source

Get conversion rate for a specific currency pair.

Params:

NameTypeAttributeDescription
from String
to String

Return:

Number

Throw:

Error

CurrencyResolver should implement getConversionRate

public async listCurrencyCodes(): String[] source

List the available currencies.

Return:

String[]

Throw:

Error

CurrencyResolver should implement listCurrencyCodes