import GeoserviceResolver from '@eastsideco/escshopify/src/easycurrency/resolvers/GeoserviceResolver.js'GeoserviceResolver
Extends:
Gets currency information from the ESC Geoservice.
Constructor Summary
| Public Constructor | ||
| public |
Create new instance of GeoserviceResolver. |
|
Member Summary
| Private Members | ||
| private |
|
|
| private |
_ratesPromise: Promise<Object, Error |
|
| private |
|
|
Method Summary
| Public Methods | ||
| public |
async getConversionRate(from: String, to: String): Number Get conversion rate for a specific currency pair. |
|
| public |
async listCurrencyCodes(): String[] List the available currencies. |
|
| Private Methods | ||
| private |
Retrieves rates from the server. |
|
Inherited Summary
| From class CurrencyResolver | ||
| public |
async getConversionRate(from: String, to: String): Number Get conversion rate for a specific currency pair. |
|
| public |
async listCurrencyCodes(): String[] List the available currencies. |
|
Public Constructors
Private Members
private _ratesPromise: Promise<Object, Error source
Public Methods
public async getConversionRate(from: String, to: String): Number source
Get conversion rate for a specific currency pair.
Override:
CurrencyResolver#getConversionRateThrow:
CurrencyResolver should implement getConversionRate |
public async listCurrencyCodes(): String[] source
List the available currencies.
Override:
CurrencyResolver#listCurrencyCodesThrow:
CurrencyResolver should implement listCurrencyCodes |