LookupsRepository

Repository for the lookups endpoints. Generally, the API lookups are considered static. We can safely cache the responses in memory and reuse them so long as the requested locale remains the same between requests

Constructors

Link copied to clipboard
constructor(dataProvider: LookupsDataProvider)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Fetch the list of API defined document categories for the given locale Will use cached value if it exists, the provided locale matches the cache, and forceRefresh is false

Link copied to clipboard

Fetch the list of API supported currencies for the given locale Will use cached value if it exists, the provided locale matches the cache, and forceRefresh is false

Link copied to clipboard

Fetch the list of API supported locales. Will use cached value if it exists and forceRefresh is false